[PATCH RESEND v2 43/51] powerpc/pseries/lparcfg: return h_get_ppp()'s status as a long
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:30:16 PST 2026
> h_get_ppp() returns the status of the H_GET_PPP hcall as an unsigned
> int. update_ppp() hands it on as its ssize_t result, and
> lparcfg_write() turns the hcall statuses it knows into an errno and
> returns anything else as it is. So when H_GET_PPP fails, say with
> H_PARAMETER (-4), the status comes back as 4294967292 and a write to
> /proc/powerpc/lparcfg reports that many bytes written.
>
> Return the status as the long it is. lparcfg_write() then treats it
> like the status of H_SET_PPP: an unknown error status is at least
> negative, and one of the positive long-busy statuses comes back as a
> byte count, as it does for H_SET_PPP already. Before commit
> 11529396ea31 ("powerpc/pseries: Split processor entitlement retrieval
> and gathering to helper routines") a failed H_GET_PPP turned into -EIO.
>
> Reported-by: Chris Mason <mason at kernel.org>
> Fixes: 11529396ea31 ("powerpc/pseries: Split processor entitlement retrieval and gathering to helper routines")
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=43
More information about the kexec
mailing list