Re: [PATCH v9 3/7] firmware: arm_rmm: Move RSI support out of arch/arm64
From: Aneesh Kumar K . V
Date: Sat Aug 29 2026 - 01:58:37 EST
Jason Gunthorpe <jgg@xxxxxxxxxx> writes:
>> The RSI SMCCC function IDs describe a firmware ABI and are not arm64
>> architecture specific definitions. Follow-up changes need to use them from
>> non-arch code, including drivers/firmware/smccc and the Arm CCA guest
>> driver.
>>
>> Move the complete Realm Service Interface (RSI) implementation from
>> arch/arm64 to drivers/firmware/arm_rmm. The RSI SMCCC definitions and
>> command helpers are also moved to include/linux so they can be shared by
>> architecture code and firmware or driver code. This also keeps the
>> firmware interface outside architecture code, as requested [1].
>>
>> [1] https://lore.kernel.org/all/agsNO9cc7H-b0H8L@willie-the-truck
>>
>> Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@xxxxxxxxxx>
>
> The sashiko remarks don't look useful
>
> Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
>
>> [ ... 321 lines skipped ... ]
>> -#include <asm/rsi_smc.h>
>> +#define RSI_PDEV_NAME "arm-cca-dev"
>
> This name shows up on the smccc bus as a device, '-dev' doesn't seem
> to make sense as a device name to me, I'd drop it.
>
I will drop the -dev from the name. The final name is "arm-rsi"
>
> And is this arm-cca or should it be called arm-rsi with a different SMCC device for
> arm-rmi ?
>
We do that in patch 6. This patch deals with only code movement.
+++ b/include/linux/arm-smccc-rsi.h
@@ -8,6 +8,8 @@
#include <linux/arm-smccc.h>
+#define RSI_DEV_NAME "arm-rsi-dev"
+
-aneesh