From: Catalin Marinas <catalin.marinas@arm.com>
To: Sudeep Holla <sudeep.holla@kernel.org>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
kernel test robot <lkp@intel.com>,
oe-kbuild-all@lists.linux.dev, Marc Zyngier <maz@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>,
Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: [linux-next:master 8264/14724] drivers/firmware/smccc/smccc.c:141:1: error: r7 cannot be used in asm here
Date: Wed, 7 Oct 2026 11:19:26 +0100 [thread overview]
Message-ID: <asYcrh_nBx-3Veqk@arm.com> (raw)
In-Reply-To: <20261007-stalwart-umber-perch-1cf23a@sudeepholla>
On Wed, Oct 07, 2026 at 10:18:16AM +0100, Sudeep Holla wrote:
> On Wed, Oct 07, 2026 at 10:10:42AM +0100, Catalin Marinas wrote:
> > On Wed, Oct 07, 2026 at 09:44:29AM +0100, Sudeep Holla wrote:
> > > diff --git i/drivers/firmware/smccc/smccc.c w/drivers/firmware/smccc/smccc.c
> > > index afc2e4d602ba..dfbd04c8eeac 100644
> > > --- i/drivers/firmware/smccc/smccc.c
> > > +++ w/drivers/firmware/smccc/smccc.c
> > > @@ -116,8 +116,7 @@ static bool __init smccc_probe_smccc_device(const struct smccc_device_info *smcc
> > > if (IS_ENABLED(CONFIG_ARM) && ARM_SMCCC_IS_64(smccc_dev->func_id))
> > > return false;
> > >
> > > - arm_smccc_1_1_invoke(smccc_dev->func_id,
> > > - 0, 0, 0, 0, 0, 0, 0, &res);
> > > + arm_smccc_1_1_invoke(smccc_dev->func_id, &res);
> >
> > I think that's going in the right direction and works for TRNG. However,
> > the RSI_ABI_VERSION func_id requires another argument (I think requested
> > interface revision). We could pass (func_id, 0, &res) but I wonder
> > whether this probe function is generic enough to always assume all
> > arguments are 0.
>
> Agreed, one other thought I had initially was to see if we can simply use
> SMCCC_ARCH_FEATURES(FID) but the spec states
> "Function ID of an Arm Architecture Service Function"
> which could soon become restrictive but IIUC it is not as per the uses
> today in this driver. We could move to that as it is purely SMCCC spec
> and doesn't rely on other SMCCC based specs.
The spec I have around (DEN0028 1.6 G) limits arch_func_id to:
- Arm Architecture Service range:
0x80000000-0x8000FFFF and 0xC0000000-0xC000FFFF
- Standard Hypervisor Service range:
0x85000000-0x8500FFFF and 0xC5000000-0xC500FFFF
Any arch_func_id values outside of these ranges are invalid. Both
TRNG_VERSION (0x84000050) and RSI_ABI_VERSION (0xC4000190) are Standard
Secure Service calls, so outside those ranges. So, if I got this
correctly, it wouldn't work in this case (or I need a newer spec).
--
Catalin
next prev parent reply other threads:[~2026-10-07 10:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 22:25 [linux-next:master 8264/14724] drivers/firmware/smccc/smccc.c:141:1: error: r7 cannot be used in asm here kernel test robot
2026-10-07 6:58 ` Aneesh Kumar K.V
2026-10-07 8:44 ` Sudeep Holla
2026-10-07 9:10 ` Catalin Marinas
2026-10-07 9:18 ` Sudeep Holla
2026-10-07 10:19 ` Catalin Marinas [this message]
2026-10-07 10:25 ` Sudeep Holla
2026-10-07 9:46 ` Aneesh Kumar K.V
2026-10-07 9:39 ` Aneesh Kumar K.V
2026-10-07 9:47 ` Sudeep Holla
2026-10-07 8:48 ` Aneesh Kumar K.V
2026-10-07 9:51 ` Aneesh Kumar K.V
2026-10-09 13:42 ` Jason Gunthorpe
2026-10-10 9:57 ` Aneesh Kumar K.V
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=asYcrh_nBx-3Veqk@arm.com \
--to=catalin.marinas@arm.com \
--cc=aneesh.kumar@kernel.org \
--cc=jgg@nvidia.com \
--cc=jonathan.cameron@oss.qualcomm.com \
--cc=lkp@intel.com \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sudeep.holla@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.