Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: "Christian Marangi (Ansuel)" <ansuelsmth@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	kernel test robot <lkp@intel.com>,
	Sudeep Holla <sudeep.holla@arm.com>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [linux-next:master 9185/10024] drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c:59:2: error: write to reserved register 'R7'
Date: Mon, 20 Jan 2025 13:44:42 +0000	[thread overview]
Message-ID: <Z45TSqieqbzufJWS@bogus> (raw)
In-Reply-To: <CA+_ehUzNMb2sGALem+Y3eDnJVPRTryybKGVja5QmC8u0_KagsA@mail.gmail.com>

On Mon, Jan 20, 2025 at 02:37:19PM +0100, Christian Marangi (Ansuel) wrote:
> Il giorno lun 20 gen 2025 alle ore 14:34 Sudeep Holla
> <sudeep.holla@arm.com> ha scritto:
> >
> > On Mon, Jan 20, 2025 at 02:01:30PM +0100, Ulf Hansson wrote:
> > > + Sudeep,
> > >
> > > On Mon, 20 Jan 2025 at 11:37, Christian Marangi (Ansuel)
> > > <ansuelsmth@gmail.com> wrote:

[...]

> > > >
> > > > Mhhhh.... Any idea how to fix this? Maybe we have to exclude some flags?
> > > > Error is "error: write to reserved register 'R7'" and I guess it's very specific
> > > > to some kind of ARM ERRATA.
> > >
> > > I don't know to be honest. The arm-scmi transport driver
> > > (drivers/firmware/arm_scmi/transports/smc.c) is having similar calls
> > > with 9 parameters to arm_smccc_1_1_invoke(). Not sure why it's a
> > > problem here and not there?
> > >
> >
> > I think it is known issue and must be solved with the below patch if my
> > understanding is right.
> >
> 
> If it's a known issue and affects also other use of smcc why we need
> specific fix in the driver makefile instead of a more generic one.
>

IIUC, arm_smccc_1_1_invoke() is a macro which can be used anywhere.
There are reasons why we can't move it to a module and export it.

> Do you have a link for the known issue?
>

Nothing handy, but quick google search gave me this:
https://bugs.llvm.org/show_bug.cgi?id=45826

--
Regards,
Sudeep

  reply	other threads:[~2025-01-20 13:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20 10:32 [linux-next:master 9185/10024] drivers/pmdomain/mediatek/airoha-cpu-pmdomain.c:59:2: error: write to reserved register 'R7' kernel test robot
2025-01-20 10:36 ` Christian Marangi (Ansuel)
2025-01-20 13:01   ` Ulf Hansson
2025-01-20 13:34     ` Sudeep Holla
2025-01-20 13:37       ` Christian Marangi (Ansuel)
2025-01-20 13:44         ` Sudeep Holla [this message]
2025-01-20 14:52           ` Christian Marangi (Ansuel)
2025-01-20 15:05             ` Sudeep Holla
2025-01-20 15:20               ` Christian Marangi (Ansuel)
2025-01-20 15:28                 ` Christian Marangi (Ansuel)
2025-01-20 15:31                   ` Christian Marangi (Ansuel)
2025-01-20 15:33                     ` Sudeep Holla
2025-01-20 15:35                   ` Sudeep Holla
2025-01-20 17:28             ` Nathan Chancellor
2025-01-20 17:39               ` Christian Marangi (Ansuel)
2025-01-20 18:02                 ` Nathan Chancellor
2025-01-22  1:33                   ` Philip Li

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=Z45TSqieqbzufJWS@bogus \
    --to=sudeep.holla@arm.com \
    --cc=ansuelsmth@gmail.com \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox