[PATCH] firmware: arm_ffa: Correct 32-bit response handling in NOTIFICATION_INFO_GET
Sudeep Holla
sudeep.holla at arm.com
Thu Jan 1 09:49:05 PST 2026
On Thu, 18 Dec 2025 14:20:01 +0000, Sudeep Holla wrote:
> The FF-A specification allows NOTIFICATION_INFO_GET to return either a
> 64-bit (FFA_FN64_SUCCESS) or a 32-bit (FFA_SUCCESS) response, depending on
> whether the firmware chooses the SMC64 or SMC32 calling convention.
>
> The driver previously detected the response format by checking ret.a0, but
> still interpreted the returned ID lists (x3..x17 or w3..w7) as if they always
> followed the 64-bit SMC64 layout. In the SMC32 case, the upper 32 bits of
> each argument register are undefined by the calling convention, meaning the
> driver could read stale or garbage values when parsing notification IDs.
>
> [...]
Applied to sudeep.holla/linux (for-next/ffa/updates), thanks!
[1/1] firmware: arm_ffa: Correct 32-bit response handling in NOTIFICATION_INFO_GET
https://git.kernel.org/sudeep.holla/c/be4d4543f780
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list