powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp
authorShrikanth Hegde <sshegde@linux.ibm.com>
Fri, 12 Apr 2024 09:20:47 +0000 (14:50 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Apr 2024 13:51:15 +0000 (23:51 +1000)
commit6d4341638516bf97b9a34947e0bd95035a8230a5
tree4aa7cce6c213b84becf0a842d78e80baa3d75c39
parent9c74ecfd0fc46e2eaf92c1b6169cc0c8a87f1dc2
powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp

Couple of Minor fixes:

- hcall return values are long. Fix that for h_get_mpp, h_get_ppp and
parse_ppp_data

- If hcall fails, values set should be at-least zero. It shouldn't be
uninitialized values. Fix that for h_get_mpp and h_get_ppp

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240412092047.455483-3-sshegde@linux.ibm.com
arch/powerpc/include/asm/hvcall.h
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/lparcfg.c