public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Trilok Soni <trilokkumar.soni@oss.qualcomm.com>,
	Satya Durga Srinivasu Prabhala <satya.prabhala@oss.qualcomm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Sudeep Holla <sudeep.holla@arm.com>,
	Lorenzo Pieralisi <lpieralisi@kernel.org>,
	linux-arm-msm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, trilok.soni@oss.qualcomm.com
Subject: Re: [PATCH] firmware: smccc: default ARM_SMCCC_SOC_ID to disabled
Date: Tue, 20 Jan 2026 17:47:11 +0000	[thread overview]
Message-ID: <aW-_n_gWV_cxlS-L@bogus> (raw)
In-Reply-To: <qv2do4mmxrlspkr2b2vzsozedxzdocoyapymll63laowljue3d@ycq3mlxrrllt>

On Mon, Jan 19, 2026 at 11:21:07AM -0600, Bjorn Andersson wrote:
> On Mon, Jan 19, 2026 at 02:53:42PM +0000, Sudeep Holla wrote:

[...]

> > 
> > OK if we are going there, can we blame the firmware for exposing this
> > information which is standard ? Sorry to repeat by firmware is exporting
> > that info in OS agnostic way and other OSes use that as the information as
> > it is standard way. Why can't we make Linux use or work with that information
> > as that removes all these vendor specific fragmentation created over years.
> 
> I certainly don't blame the firmware for providing a generic interface
> for exposing such information, it sounds like a good idea to me. My
> concern is that we're not "abstracting" this away from the applications,
> within the kernel.
> 

I see your point, but the purpose of the SOC_ID interface is to avoid encoding
vendor-specific interpretation in the kernel and to push that problem to
userspace. If we now need the kernel to provide an abstraction based on
vendor-specific information from the device tree and SOC_ID information from
the firmware, then I don’t think that’s feasible - SOC_ID was designed
specifically so that the kernel wouldn’t interpret it.

> I think the UAPI should provide one answer to the question "what target
> am I on right now" - not two (or N) different answers.
> 

I’m not sure that’s an exact match for the question. The socX nodes simply
indicate which SoCs are present and expose the associated identification
information for the system that’s running. It’s not clear whether this is
limited to the application processor only, whether it can also include I/O
components, or whether the identifier is required to be unique.

> > This point is orthogonal to user-space break.
> > 
> 
> With multiple socX instances exposed the UAPI no longer matches my
> interpretation of its purpose (feel free to tell me that I have
> misunderstood the purpose).
> 

I can’t say that you’ve misunderstood it; it may be that I’m misunderstanding
it. My interpretation is that it provides information about all the SoCs on
the system. That could include multiple instances of the same SoC, different
variants, or even I/O chips such as Bluetooth or Wi-Fi. That’s my take on the
socX nodes, but I may be wrong.

> > > What does it even mean to have two different socs presented here? How
> > > would userspace know which one to refer to? Should it refer to both and
> > > guess which one makes more sense to it?
> > > 
> > 
> > Yes, the standard interface doesn't have much info though, so it could be
> > union of it if the applications prefer that way.
> > 
> > > 
> > > To me, when you decided to add a second caller to soc_device_register()
> > > you created a regression in the userspace interface. If nothing else
> > > it's a leaky abstraction.
> > > 
> > 
> > In that case, shouldn't soc_device_register() made to give error when an
> > attempt to call it more that one time then ?
> 
> Based on my understanding of the purpose, that seems reasonable to me.
> 

It's exactly opposite based on my understanding though 😉.

> > Also should be change the
> > ABI documents to refer it as soc0 and not socX ?
> > 
> 
> I'm still grappling with the thought of what does it actually mean to
> find N socX nodes. Perhaps I'm wrong and the answer is that these are
> just different blobs of soc information and userspace should consume
> them all? (Just doesn't feel very user friendly to me).
> 

Why ? If the intention was to provide as much information as possible
about the running system.

-- 
Regards,
Sudeep


  reply	other threads:[~2026-01-20 17:47 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-13  6:24 [PATCH] firmware: smccc: default ARM_SMCCC_SOC_ID to disabled Satya Durga Srinivasu Prabhala
2026-01-13  8:04 ` Mukesh Ojha
2026-01-14 21:07   ` Sudeep Holla
2026-01-13 10:57 ` Will Deacon
2026-01-14 16:58   ` Satya Durga Srinivasu Prabhala
2026-01-14 21:13     ` Sudeep Holla
2026-01-13 11:25 ` Dmitry Baryshkov
2026-01-14 18:04   ` Satya Durga Srinivasu Prabhala
2026-01-14 19:37     ` Dmitry Baryshkov
2026-01-14 21:03       ` Sudeep Holla
2026-01-15 20:14       ` Satya Durga Srinivasu Prabhala
2026-01-15 20:40         ` Dmitry Baryshkov
2026-01-13 12:29 ` Sudeep Holla
2026-01-14 16:50   ` Satya Durga Srinivasu Prabhala
2026-01-14 21:01     ` Sudeep Holla
2026-01-15 18:42       ` Satya Durga Srinivasu Prabhala
2026-01-15 20:18         ` Dmitry Baryshkov
2026-01-15 23:51           ` Satya Durga Srinivasu Prabhala
2026-01-16  0:01           ` Bjorn Andersson
2026-01-16 10:39         ` Sudeep Holla
2026-01-16 20:53           ` Satya Durga Srinivasu Prabhala
2026-01-16 23:53             ` Trilok Soni
2026-01-17 21:43               ` Bjorn Andersson
2026-01-18 14:31               ` Sudeep Holla
2026-01-18 21:16                 ` Bjorn Andersson
2026-01-19 14:53                   ` Sudeep Holla
2026-01-19 16:44                     ` Dmitry Baryshkov
2026-01-19 16:56                       ` Sudeep Holla
2026-01-19 17:20                         ` Dmitry Baryshkov
2026-01-19 17:25                           ` Bjorn Andersson
2026-01-19 19:46                             ` Dmitry Baryshkov
2026-01-19 20:25                               ` Bjorn Andersson
2026-01-19 17:21                     ` Bjorn Andersson
2026-01-20 17:47                       ` Sudeep Holla [this message]
2026-01-17 21:51             ` Bjorn Andersson
2026-01-14 17:12 ` Neil Armstrong
2026-01-14 21:06   ` Sudeep Holla
2026-01-15 20:24   ` Satya Durga Srinivasu Prabhala

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=aW-_n_gWV_cxlS-L@bogus \
    --to=sudeep.holla@arm.com \
    --cc=andersson@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=satya.prabhala@oss.qualcomm.com \
    --cc=trilok.soni@oss.qualcomm.com \
    --cc=trilokkumar.soni@oss.qualcomm.com \
    /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