mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mukesh Ojha <quic_mojha@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Komal Bajaj <quic_kbajaj@quicinc.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>,
	Bjorn Andersson <quic_bjorande@quicinc.com>,
	"Konrad Dybcio" <konrad.dybcio@linaro.org>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH] arm64: defconfig: Enable secure QFPROM driver
Date: Wed, 19 Jun 2024 22:08:10 +0530	[thread overview]
Message-ID: <ZnMJcuJ0DvDHaY4S@hu-mojha-hyd.qualcomm.com> (raw)
In-Reply-To: <rx4kwsdzprnblczndf4t4ditxl64dztkzooqljpvz6eehuqqgy@rv745qkxmxmq>

On Wed, Jun 19, 2024 at 04:14:50PM +0300, Dmitry Baryshkov wrote:
> On Wed, Jun 19, 2024 at 05:40:42PM GMT, Mukesh Ojha wrote:
> > On Wed, Jun 19, 2024 at 01:08:48PM +0200, Krzysztof Kozlowski wrote:
> > > On 19/06/2024 12:56, Komal Bajaj wrote:
> > > > Enable the secure QFPROM driver which is used by QDU1000
> > > 
> > > Qualcomm QDU1000. You are changing kernel-wide defconfig, not some
> > > Qualcomm downstream stuff.
> > > 
> > > > platform for reading the secure qfprom region to get the
> > > > DDR channel configuration.
> > > > 
> > > > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com>
> > > > ---
> > > >  arch/arm64/configs/defconfig | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > > 
> > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> > > > index 838b4466d6f6..c940437ae1b3 100644
> > > > --- a/arch/arm64/configs/defconfig
> > > > +++ b/arch/arm64/configs/defconfig
> > > > @@ -1575,6 +1575,7 @@ CONFIG_NVMEM_LAYERSCAPE_SFP=m
> > > >  CONFIG_NVMEM_MESON_EFUSE=m
> > > >  CONFIG_NVMEM_MTK_EFUSE=y
> > > >  CONFIG_NVMEM_QCOM_QFPROM=y
> > > > +CONFIG_NVMEM_QCOM_SEC_QFPROM=y
> > > 
> > > Module
> > 
> > Should not this be inline with what CONFIG_NVMEM_QCOM_QFPROM is having ?
> > Either both CONFIG_NVMEM_QCOM_QFPROM and CONFIG_NVMEM_QCOM_SEC_QFPROM
> > should be m or both y
> 
> Looking back in time, CONFIG_NVMEM_QCOM_QFPROM was enabled as built-in
> to get TSENS to work (which makes sense, we don't want the CPUs to
> burn). What the actual users for NVMEM_QCOM_SEC_QFPROM?


CONFIG_NVMEM_QCOM_QFPROM and CONFIG_NVMEM_QCOM_SEC_QFPROM are similar driver
for same device and only difference is register region lies in secure space
for the latter;

Currently, LLCC is the only client for CONFIG_NVMEM_QCOM_SEC_QFPROM, however
if someday if the region lies in non-secure space in that case, client
started depending on CONFIG_NVMEM_QCOM_QFPROM.

It reminds me, we have not yet put depends on for LLCC on NVMEM_QCOM_SEC_QFPROM
doing which is resulting in recursive dependency[1].

It looks we need to select NVMEM_QCOM_SEC_QFPROM from QCOM_LLCC config and that
may not need config enablement here.

[1]
fs/sysfs/Kconfig:2:error: recursive dependency detected!
fs/sysfs/Kconfig:2:     symbol SYSFS is selected by CONFIGFS_FS
fs/configfs/Kconfig:2:  symbol CONFIGFS_FS is selected by GPIO_SIM
drivers/gpio/Kconfig:1884:      symbol GPIO_SIM depends on GPIOLIB
drivers/gpio/Kconfig:6: symbol GPIOLIB is selected by I2C_MUX_LTC4306
drivers/i2c/muxes/Kconfig:47:   symbol I2C_MUX_LTC4306 depends on I2C_MUX
drivers/i2c/Kconfig:62: symbol I2C_MUX is selected by DRM_SII902X
drivers/gpu/drm/bridge/Kconfig:270:     symbol DRM_SII902X depends on DRM_BRIDGE
drivers/gpu/drm/bridge/Kconfig:2:       symbol DRM_BRIDGE is selected by DRM_MSM
drivers/gpu/drm/msm/Kconfig:3:  symbol DRM_MSM depends on QCOM_LLCC
drivers/soc/qcom/Kconfig:47:    symbol QCOM_LLCC depends on NVMEM_QCOM_SEC_QFPROM
drivers/nvmem/Kconfig:230:      symbol NVMEM_QCOM_SEC_QFPROM depends on NVMEM
drivers/nvmem/Kconfig:2:        symbol NVMEM is selected by EEPROM_AT24
drivers/misc/eeprom/Kconfig:4:  symbol EEPROM_AT24 depends on SYSFS
For a resolution refer to Documentation/kbuild/kconfig-language.rst

-Mukesh

> 
> > 
> > -Mukesh
> > > 
> > > >  CONFIG_NVMEM_RMEM=m
> > > >  CONFIG_NVMEM_ROCKCHIP_EFUSE=y
> > > >  CONFIG_NVMEM_ROCKCHIP_OTP=y
> > > > --
> > > > 2.42.0
> > > > 
> > > 
> > > Best regards,
> > > Krzysztof
> > > 
> 
> -- 
> With best wishes
> Dmitry

  reply	other threads:[~2024-06-19 16:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 10:56 Komal Bajaj
2024-06-19 10:57 ` Dmitry Baryshkov
2024-06-19 11:08 ` Krzysztof Kozlowski
2024-06-19 12:10   ` Mukesh Ojha
2024-06-19 12:23     ` Krzysztof Kozlowski
2024-06-19 13:14     ` Dmitry Baryshkov
2024-06-19 16:38       ` Mukesh Ojha [this message]
2024-06-19 16:51         ` Bjorn Andersson
2024-06-19 18:46           ` Mukesh Ojha
2024-06-19 16:42     ` Bjorn Andersson
2024-06-20  9:43       ` Komal Bajaj

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=ZnMJcuJ0DvDHaY4S@hu-mojha-hyd.qualcomm.com \
    --to=quic_mojha@quicinc.com \
    --cc=catalin.marinas@arm.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_bjorande@quicinc.com \
    --cc=quic_kbajaj@quicinc.com \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=will@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®