|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1] arm/optee: Use only least 32 bits for SMC type arg according to SMCCC
Hi Roman, On 06/01/2021 11:26, Roman Skakun wrote: This patch added additional sanity and increases an understanding for getting proper value from the first argument for SMC call on aarch64 according to SMCC Convention. I would suggest the following commit message: "xen/arm: optee: The function identifier is always 32-bitPer the SMCCC specification (see section 3.1 in ARM DEN 0028D), the function identifier is only stored in the least significant 32-bits. The most significant 32-bits should be ignored. The function optee_handle_call() is now updated to ignore the most significant 32-bits. "Note that I used the version D rather than B because the latter has buggy wording (it seems to suggest that the least significants bits should be ignored). Furthermore, I checked vsmc.c (the layer that dispatch the SMC) and it was already handled properly thanks to commit 7f4217cc6057 "xen/arm: vsmc: The function identifier is always 32-bit".
I would suggest:/* The function identifier is always stored in the least significant 32-bit (see section ARM DEN 0028D) */ I can update it while committing, if both Volodymyr and you are happy with changes. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |