diff options
| author | Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org> | 2026-10-10 15:32:49 +0530 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2026-10-12 12:11:33 +0100 |
| commit | c6e78a4080a3b310a9f61db778d6dee7bc646cb7 (patch) | |
| tree | b224d7e32a599b053687125bfbf4be4c1bb03ff6 /tools/perf/scripts/python | |
| parent | 02e32115ed9875ec453237a1d6cb2d2821189f84 (diff) | |
firmware: smccc: Pass only the required device probe arguments
The device probe passes zeroes for all seven argument registers to
arm_smccc_1_1_invoke(). On ARM32 Thumb-2, this binds an input to r7 and
GCC 8.5 reports "r7 cannot be used in asm here".
The current smccc_devices entries need at most one argument after the
function ID: TRNG_VERSION has none and RSI_ABI_VERSION takes a requested
version. Pass zero for that argument and omit the unused arguments,
avoiding the r7 constraint. Check argument requirements when adding new
probe functions to smccc_devices.
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Sudeep Holla <sudeep.holla@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Steven Price <steven.price@arm.com>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
Fixes: d8263a131bb0 ("firmware: hwrng: arm_smccc_trng: Register as an SMCCC device")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202610070641.B8hxBJcf-lkp@intel.com/
Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
