All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets
@ 2020-09-17 20:39 ` Dmitry Baryshkov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable CONFIG_INTERCONNECT and interconnect drivers for several Qualcomm
chipsets to enable bus bandwidth control on these SoCs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 63003ec116ee..2e746ebb9245 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1023,6 +1023,12 @@ CONFIG_SLIMBUS=m
 CONFIG_SLIM_QCOM_CTRL=m
 CONFIG_SLIM_QCOM_NGD_CTRL=m
 CONFIG_MUX_MMIO=y
+CONFIG_INTERCONNECT=y
+CONFIG_INTERCONNECT_QCOM=y
+CONFIG_INTERCONNECT_QCOM_MSM8916=m
+CONFIG_INTERCONNECT_QCOM_SDM845=m
+CONFIG_INTERCONNECT_QCOM_SM8150=m
+CONFIG_INTERCONNECT_QCOM_SM8250=m
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets
@ 2020-09-17 20:39 ` Dmitry Baryshkov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable CONFIG_INTERCONNECT and interconnect drivers for several Qualcomm
chipsets to enable bus bandwidth control on these SoCs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 63003ec116ee..2e746ebb9245 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1023,6 +1023,12 @@ CONFIG_SLIMBUS=m
 CONFIG_SLIM_QCOM_CTRL=m
 CONFIG_SLIM_QCOM_NGD_CTRL=m
 CONFIG_MUX_MMIO=y
+CONFIG_INTERCONNECT=y
+CONFIG_INTERCONNECT_QCOM=y
+CONFIG_INTERCONNECT_QCOM_MSM8916=m
+CONFIG_INTERCONNECT_QCOM_SDM845=m
+CONFIG_INTERCONNECT_QCOM_SM8150=m
+CONFIG_INTERCONNECT_QCOM_SM8250=m
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/4] arm64: defconfig: qcom: enable GPU clock controller for SM8[12]50
  2020-09-17 20:39 ` Dmitry Baryshkov
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  -1 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable GPU Clock Controller for SM8150 and SM8250 to allow using
Adreon GPU on these SoCs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 2e746ebb9245..7c741e73a282 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -889,6 +889,8 @@ CONFIG_SDM_VIDEOCC_845=y
 CONFIG_SDM_DISPCC_845=y
 CONFIG_SM_GCC_8150=y
 CONFIG_SM_GCC_8250=y
+CONFIG_SM_GPUCC_8150=y
+CONFIG_SM_GPUCC_8250=y
 CONFIG_QCOM_HFPLL=y
 CONFIG_HWSPINLOCK=y
 CONFIG_HWSPINLOCK_QCOM=y
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/4] arm64: defconfig: qcom: enable GPU clock controller for SM8[12]50
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable GPU Clock Controller for SM8150 and SM8250 to allow using
Adreon GPU on these SoCs.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 2e746ebb9245..7c741e73a282 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -889,6 +889,8 @@ CONFIG_SDM_VIDEOCC_845=y
 CONFIG_SDM_DISPCC_845=y
 CONFIG_SM_GCC_8150=y
 CONFIG_SM_GCC_8250=y
+CONFIG_SM_GPUCC_8150=y
+CONFIG_SM_GPUCC_8250=y
 CONFIG_QCOM_HFPLL=y
 CONFIG_HWSPINLOCK=y
 CONFIG_HWSPINLOCK_QCOM=y
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/4] arm64: defconfig: enable Qualcomm ASoC modules
  2020-09-17 20:39 ` Dmitry Baryshkov
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  -1 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable CONFIG_SND_SOC_QCOM and several platform drivers to be built as modules.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 7c741e73a282..d0a0d5d27c32 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -689,6 +689,9 @@ CONFIG_SND_BCM2835_SOC_I2S=m
 CONFIG_SND_SOC_FSL_SAI=m
 CONFIG_SND_MESON_AXG_SOUND_CARD=m
 CONFIG_SND_MESON_GX_SOUND_CARD=m
+CONFIG_SND_SOC_QCOM=m
+CONFIG_SND_SOC_APQ8016_SBC=m
+CONFIG_SND_SOC_MSM8996=m
 CONFIG_SND_SOC_SDM845=m
 CONFIG_SND_SOC_ROCKCHIP=m
 CONFIG_SND_SOC_ROCKCHIP_SPDIF=m
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/4] arm64: defconfig: enable Qualcomm ASoC modules
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable CONFIG_SND_SOC_QCOM and several platform drivers to be built as modules.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 7c741e73a282..d0a0d5d27c32 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -689,6 +689,9 @@ CONFIG_SND_BCM2835_SOC_I2S=m
 CONFIG_SND_SOC_FSL_SAI=m
 CONFIG_SND_MESON_AXG_SOUND_CARD=m
 CONFIG_SND_MESON_GX_SOUND_CARD=m
+CONFIG_SND_SOC_QCOM=m
+CONFIG_SND_SOC_APQ8016_SBC=m
+CONFIG_SND_SOC_MSM8996=m
 CONFIG_SND_SOC_SDM845=m
 CONFIG_SND_SOC_ROCKCHIP=m
 CONFIG_SND_SOC_ROCKCHIP_SPDIF=m
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/4] arm64: defconfig: enable Qualcomm ADSP Peripheral Image Loader
  2020-09-17 20:39 ` Dmitry Baryshkov
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  -1 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable Peripheral Image Loader for the Qualcomm Technology Inc. ADSP
remote processors.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index d0a0d5d27c32..30037e02110b 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -909,6 +909,7 @@ CONFIG_ARM_SMMU=y
 CONFIG_ARM_SMMU_V3=y
 CONFIG_QCOM_IOMMU=y
 CONFIG_REMOTEPROC=y
+CONFIG_QCOM_Q6V5_ADSP=m
 CONFIG_QCOM_Q6V5_MSS=m
 CONFIG_QCOM_Q6V5_PAS=m
 CONFIG_QCOM_SYSMON=m
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/4] arm64: defconfig: enable Qualcomm ADSP Peripheral Image Loader
@ 2020-09-17 20:39   ` Dmitry Baryshkov
  0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Baryshkov @ 2020-09-17 20:39 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon
  Cc: linux-arm-msm, linux-arm-kernel

Enable Peripheral Image Loader for the Qualcomm Technology Inc. ADSP
remote processors.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index d0a0d5d27c32..30037e02110b 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -909,6 +909,7 @@ CONFIG_ARM_SMMU=y
 CONFIG_ARM_SMMU_V3=y
 CONFIG_QCOM_IOMMU=y
 CONFIG_REMOTEPROC=y
+CONFIG_QCOM_Q6V5_ADSP=m
 CONFIG_QCOM_Q6V5_MSS=m
 CONFIG_QCOM_Q6V5_PAS=m
 CONFIG_QCOM_SYSMON=m
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets
  2020-09-17 20:39 ` Dmitry Baryshkov
@ 2020-11-04 13:27   ` Ionela Voinescu
  -1 siblings, 0 replies; 10+ messages in thread
From: Ionela Voinescu @ 2020-11-04 13:27 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Bjorn Andersson, Andy Gross, Catalin Marinas, Will Deacon,
	linux-arm-msm, linux-arm-kernel

Hi guys,

On Thursday 17 Sep 2020 at 23:39:10 (+0300), Dmitry Baryshkov wrote:
> Enable CONFIG_INTERCONNECT and interconnect drivers for several Qualcomm
> chipsets to enable bus bandwidth control on these SoCs.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
>  arch/arm64/configs/defconfig | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 63003ec116ee..2e746ebb9245 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1023,6 +1023,12 @@ CONFIG_SLIMBUS=m
>  CONFIG_SLIM_QCOM_CTRL=m
>  CONFIG_SLIM_QCOM_NGD_CTRL=m
>  CONFIG_MUX_MMIO=y
> +CONFIG_INTERCONNECT=y
> +CONFIG_INTERCONNECT_QCOM=y
> +CONFIG_INTERCONNECT_QCOM_MSM8916=m
> +CONFIG_INTERCONNECT_QCOM_SDM845=m
> +CONFIG_INTERCONNECT_QCOM_SM8150=m
> +CONFIG_INTERCONNECT_QCOM_SM8250=m

This needs an additional

+CONFIG_INTERCONNECT_QCOM_OSM_L3=m
or
+CONFIG_INTERCONNECT_QCOM_OSM_L3=y

Without it cpufreq fails to initialize on DB845c.

When CONFIG_INTERCONNECT_QCOM_OSM_L3=n (which is what it will default to
when doing ARCH=arm64 make defcofnig), the osm_l3 is not registered as a
provider and therefore will not be found when doing:
qcom_cpufreq_hw_driver_probe() -> dev_pm_opp_of_find_icc_paths() ->
of_icc_get_by_index().

This being said, it also does not feel right for cpufreq enablement
to depend on L3 scaling enablement, so better error filtering might be
needed in the drivers instead. But I'll leave that decision to you,
while the above is only a quick fix.

The issue is reproduced with linux next 20201104, after applying the
iommu patches at [1].

Hope it helps,
Ionela.

[1]
https://lore.kernel.org/lkml/160399513141.1314250.8831514745970142969.b4-ty@kernel.org/

>  CONFIG_EXT2_FS=y
>  CONFIG_EXT3_FS=y
>  CONFIG_EXT4_FS_POSIX_ACL=y
> -- 
> 2.28.0
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets
@ 2020-11-04 13:27   ` Ionela Voinescu
  0 siblings, 0 replies; 10+ messages in thread
From: Ionela Voinescu @ 2020-11-04 13:27 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Catalin Marinas, Bjorn Andersson, Andy Gross, linux-arm-msm,
	Will Deacon, linux-arm-kernel

Hi guys,

On Thursday 17 Sep 2020 at 23:39:10 (+0300), Dmitry Baryshkov wrote:
> Enable CONFIG_INTERCONNECT and interconnect drivers for several Qualcomm
> chipsets to enable bus bandwidth control on these SoCs.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
>  arch/arm64/configs/defconfig | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 63003ec116ee..2e746ebb9245 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1023,6 +1023,12 @@ CONFIG_SLIMBUS=m
>  CONFIG_SLIM_QCOM_CTRL=m
>  CONFIG_SLIM_QCOM_NGD_CTRL=m
>  CONFIG_MUX_MMIO=y
> +CONFIG_INTERCONNECT=y
> +CONFIG_INTERCONNECT_QCOM=y
> +CONFIG_INTERCONNECT_QCOM_MSM8916=m
> +CONFIG_INTERCONNECT_QCOM_SDM845=m
> +CONFIG_INTERCONNECT_QCOM_SM8150=m
> +CONFIG_INTERCONNECT_QCOM_SM8250=m

This needs an additional

+CONFIG_INTERCONNECT_QCOM_OSM_L3=m
or
+CONFIG_INTERCONNECT_QCOM_OSM_L3=y

Without it cpufreq fails to initialize on DB845c.

When CONFIG_INTERCONNECT_QCOM_OSM_L3=n (which is what it will default to
when doing ARCH=arm64 make defcofnig), the osm_l3 is not registered as a
provider and therefore will not be found when doing:
qcom_cpufreq_hw_driver_probe() -> dev_pm_opp_of_find_icc_paths() ->
of_icc_get_by_index().

This being said, it also does not feel right for cpufreq enablement
to depend on L3 scaling enablement, so better error filtering might be
needed in the drivers instead. But I'll leave that decision to you,
while the above is only a quick fix.

The issue is reproduced with linux next 20201104, after applying the
iommu patches at [1].

Hope it helps,
Ionela.

[1]
https://lore.kernel.org/lkml/160399513141.1314250.8831514745970142969.b4-ty@kernel.org/

>  CONFIG_EXT2_FS=y
>  CONFIG_EXT3_FS=y
>  CONFIG_EXT4_FS_POSIX_ACL=y
> -- 
> 2.28.0
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-04 13:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 20:39 [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets Dmitry Baryshkov
2020-09-17 20:39 ` Dmitry Baryshkov
2020-09-17 20:39 ` [PATCH 2/4] arm64: defconfig: qcom: enable GPU clock controller for SM8[12]50 Dmitry Baryshkov
2020-09-17 20:39   ` Dmitry Baryshkov
2020-09-17 20:39 ` [PATCH 3/4] arm64: defconfig: enable Qualcomm ASoC modules Dmitry Baryshkov
2020-09-17 20:39   ` Dmitry Baryshkov
2020-09-17 20:39 ` [PATCH 4/4] arm64: defconfig: enable Qualcomm ADSP Peripheral Image Loader Dmitry Baryshkov
2020-09-17 20:39   ` Dmitry Baryshkov
2020-11-04 13:27 ` [PATCH 1/4] arm64: defconfig: enable INTERCONNECT for Qualcomm chipsets Ionela Voinescu
2020-11-04 13:27   ` Ionela Voinescu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.