From: sashiko-bot@kernel.org
To: "Snehal Koukuntla" <snehalreddy@google.com>
Cc: "Oliver Upton" <oupton@kernel.org>,
"Marc Zyngier" <maz@kernel.org>,
kvmarm@lists.linux.dev
Subject: Re: [PATCH 1/2] firmware: arm_ffa: Add FFA_FN64_MEM_RECLAIM2 function ID
Date: Mon, 21 Sep 2026 16:58:41 +0000 [thread overview]
Message-ID: <20260921165841.93EE21F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921164748.2958578-2-snehalreddy@google.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] arm_ffa: missing 32-bit counterpart for FFA_FN64_MEM_RECLAIM2
--
commit b51b8a72f11f56713926464f6a895ddb89b963d1
Author: Snehal Koukuntla <snehalreddy@google.com>
firmware: arm_ffa: Add FFA_FN64_MEM_RECLAIM2 function ID
This commit introduces the FFA_FN64_MEM_RECLAIM2 function ID in arm_ffa.h
to support the FFA_MEM_RECLAIM2 ABI introduced in FF-A v1.3 ALP5. This ABI
allows an owner to reclaim exclusive access to pages without requiring
intermediate transaction state maintenance.
Link: https://support.arm.com/documentation/den0140/j
> diff --git a/include/linux/arm_ffa.h b/include/linux/arm_ffa.h
> index e71d83ee0aef3..c78cfd72832a7 100644
> --- a/include/linux/arm_ffa.h
> +++ b/include/linux/arm_ffa.h
> @@ -78,6 +78,7 @@
> #define FFA_EL3_INTR_HANDLE FFA_SMC_32(0x8C)
> #define FFA_MSG_SEND_DIRECT_REQ2 FFA_SMC_64(0x8D)
> #define FFA_MSG_SEND_DIRECT_RESP2 FFA_SMC_64(0x8E)
> +#define FFA_FN64_MEM_RECLAIM2 FFA_SMC_64(0x91)
[Severity: Low]
Does the missing 32-bit counterpart for FFA_FN64_MEM_RECLAIM2 break
FFA_FN_NATIVE() compatibility on 32-bit architectures?
Every other FFA_FN64_ prefix in the header has a 32-bit counterpart. If
FFA_FN_NATIVE(MEM_RECLAIM2) is ever used on a 32-bit build, it will evaluate
to FFA_MEM_RECLAIM2 due to the architecture-conditional logic, which does
not exist here, and would cause a compilation failure.
For 64-bit exclusive ABIs like FFA_MSG_SEND_DIRECT_REQ2, the convention
is to omit the FN64_ prefix entirely.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921164748.2958578-1-snehalreddy@google.com?part=1
next prev parent reply other threads:[~2026-09-21 16:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 16:47 [PATCH 0/2] KVM: arm64: Support FFA_FN64_MEM_RECLAIM2 in host handler Snehal Koukuntla
2026-09-21 16:47 ` [PATCH 1/2] firmware: arm_ffa: Add FFA_FN64_MEM_RECLAIM2 function ID Snehal Koukuntla
2026-09-21 16:58 ` sashiko-bot [this message]
2026-09-22 11:16 ` Snehal Koukuntla
2026-09-22 12:15 ` Sudeep Holla
2026-09-23 8:38 ` Snehal Koukuntla
2026-09-21 16:47 ` [PATCH 2/2] KVM: arm64: Support FFA_FN64_MEM_RECLAIM2 in host handler Snehal Koukuntla
2026-09-21 16:59 ` sashiko-bot
2026-09-22 10:07 ` Vincent Donnefort
2026-09-22 11:16 ` Snehal Koukuntla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921165841.93EE21F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=snehalreddy@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox