Re: [PATCH] firmware: smccc: default ARM_SMCCC_SOC_ID to disabled
From: Satya Durga Srinivasu Prabhala
Date: Wed Jan 14 2026 - 13:04:25 EST
Hello Dmitry,
On 1/13/2026 3:25 AM, Dmitry Baryshkov wrote:
On Mon, Jan 12, 2026 at 10:24:06PM -0800, Satya Durga Srinivasu Prabhala wrote:As I mentioned in the other replies, vendor interface exists before the standard
The ARM SMCCC SoC ID driver is currently enabled by default and publishesNAK, the userspace should not depend on the exact kernel configuration.
SMCCC-provided SoC identification into /sys/bus/soc/devices/socX/*.
On platforms where a vendor SoC driver already exposes widely-consumed
attributes (e.g. Qualcomm socinfo [1]), enabling the SMCCC driver changes
the format of /sys/devices/soc0/soc_id (e.g. "jep106:XXYY:ZZZZ" instead
of a vendor logical ID like "519") and breaks existing userspace consumers.
Flip the default of CONFIG_ARM_SMCCC_SOC_ID from y to n. Platforms that
prefer SMCCC over a vendor driver can explicitly enable it.
Consider working with distribution kernels, which would enable this
driver anyway.
interface and user space heavily relies on soc0 already. If not disabling the
SMCCC SOC ID by default. I believe, we should at-least have a way to make
sure vendors can disable SMCCC SOC ID by some means or have vendor
interface takes precedence.
Best,
Satya
This avoids unexpected format changes and keeps the generic SoC sysfs
stable on systems that rely on vendor-specific identification.
[1]
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/soc/qcom/socinfo.c
Signed-off-by: Satya Durga Srinivasu Prabhala <satya.prabhala@xxxxxxxxxxxxxxxx>
---
drivers/firmware/smccc/Kconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)