Re: [PATCH] firmware: qcom: scm: Hide QCOM_SCM instead of depending on ARCH_QCOM
From: Sasha Levin
Date: Sun Nov 22 2026 - 10:28:59 EST
On Sat, Nov 21, 2026 at 10:16:36PM -0700, Nathan Chancellor wrote:
> This now allows
>
> # CONFIG_ARCH_QCOM is not set
> CONFIG_QCOM_SCM=m
> CONFIG_QCOM_TZMEM=m
> # CONFIG_QCOM_TZMEM_MODE_GENERIC is not set
> CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=y
>
> which breaks the build (or install if depmod is postponed until then)
> for me.
This is older than this patch. v7.3 gives the same config from your
allno.config and depmod fails the same way.
With SHM Bridge enabled, qcom_scm and qcom_tzmem call each other, so
they can't be two separate modules. That goes back to f86c61498a57
("firmware: qcom: tzmem: enable SHM Bridge support"), and it happens
with ARCH_QCOM=y too.
I sent a patch that builds qcom_tzmem into the qcom-scm module:
[PATCH] firmware: qcom: Build the TrustZone memory allocator into qcom-scm
--
Thanks,
Sasha