devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/14] Clean up RPM bus clocks remnants
@ 2023-09-12 13:31 Konrad Dybcio
  2023-09-12 13:31 ` [PATCH v2 01/14] arm64: dts: qcom: msm8916: Drop RPM bus clocks Konrad Dybcio
                   ` (15 more replies)
  0 siblings, 16 replies; 34+ messages in thread
From: Konrad Dybcio @ 2023-09-12 13:31 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	Sibi Sankar, Will Deacon, Robin Murphy, Joerg Roedel,
	Greg Kroah-Hartman, Wesley Cheng
  Cc: Marijn Suijten, Alexey Minnekhanov, linux-arm-msm,
	linux-remoteproc, devicetree, linux-kernel, linux-arm-kernel,
	iommu, linux-usb, Konrad Dybcio, Krzysztof Kozlowski

After the recent cleanups ([1], [2]) some in-tree abusers that directly
accessed the RPM bus clocks, effectively circumventing and working
against the efforts of the interconnect framework, were found.

Patches 1-5 drop deprecated references and the rest attempt to stop
direct bus clock abuses.

Depends on [2].

8996 and 8998 remoteproc changes were not tested, they never worked on
my Sony phones.

[1] https://lore.kernel.org/linux-arm-msm/20230526-topic-smd_icc-v7-0-09c78c175546@linaro.org/
[2] https://lore.kernel.org/linux-arm-msm/20230721-topic-icc_bindings-v1-0-93e2bc728fb7@linaro.org/

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Changes in v2:
- Incorporate [3] into the sdm630 patch, add required bindings fixes
- dt-bindings: remoteproc: qcom,adsp: Remove AGGRE2 clock: Merge entries (krzk)
- Pick up a-b (krzk)
- Add "sdm630: Fix USB2 clock-names order"
- Link to v1: https://lore.kernel.org/r/20230721-topic-rpm_clk_cleanup-v1-0-cf6cd5c621d5@linaro.org

[3] https://lore.kernel.org/linux-arm-msm/20230719073520.2644966-1-alexeymin@postmarketos.org/#t

---
Konrad Dybcio (14):
      arm64: dts: qcom: msm8916: Drop RPM bus clocks
      arm64: dts: qcom: msm8996: Drop RPM bus clocks
      arm64: dts: qcom: qcs404: Drop RPM bus clocks
      dt-bindings: arm-smmu: Fix SDM630 clocks description
      dt-bindings: usb: qcom,dwc3: Fix SDM660 clock description
      arm64: dts: qcom: sdm630: Drop RPM bus clocks
      arm64: dts: qcom: msm8939: Drop RPM bus clocks
      dt-bindings: remoteproc: qcom,adsp: Remove AGGRE2 clock
      dt-bindings: remoteproc: qcom,msm8996-mss-pil: Remove PNoC clock
      remoteproc: qcom: q6v5-mss: Remove PNoC clock from 8996 MSS
      arm64: dts: qcom: msm8998: Remove AGGRE2 clock from SLPI
      arm64: dts: qcom: msm8996: Remove AGGRE2 clock from SLPI
      arm64: dts: qcom: msm8996: Remove PNoC clock from MSS
      arm64: dts: qcom: sdm630: Fix USB2 clock-names order

 .../devicetree/bindings/iommu/arm,smmu.yaml        |  2 +-
 .../devicetree/bindings/remoteproc/qcom,adsp.yaml  | 20 +-------
 .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml  |  2 -
 .../devicetree/bindings/usb/qcom,dwc3.yaml         |  6 +--
 arch/arm64/boot/dts/qcom/msm8916.dtsi              |  9 ----
 arch/arm64/boot/dts/qcom/msm8939.dtsi              | 12 -----
 arch/arm64/boot/dts/qcom/msm8996.dtsi              | 43 ++++++-----------
 arch/arm64/boot/dts/qcom/msm8998.dtsi              |  5 +-
 arch/arm64/boot/dts/qcom/qcs404.dtsi               |  9 ----
 arch/arm64/boot/dts/qcom/sdm630.dtsi               | 55 +++++-----------------
 drivers/remoteproc/qcom_q6v5_mss.c                 |  1 -
 11 files changed, 34 insertions(+), 130 deletions(-)
---
base-commit: 66d9573193967138cd12e232d4b5bc2b57e0d1ac
change-id: 20230721-topic-rpm_clk_cleanup-1b2f4a1acd01

Best regards,
-- 
Konrad Dybcio <konrad.dybcio@linaro.org>


^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: [PATCH v2 02/14] arm64: dts: qcom: msm8996: Drop RPM bus clocks
@ 2023-09-13 10:17 Yassine Oudjana
  0 siblings, 0 replies; 34+ messages in thread
From: Yassine Oudjana @ 2023-09-13 10:17 UTC (permalink / raw)
  To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Mathieu Poirier,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Manivannan Sadhasivam, Sibi Sankar, Will Deacon, Robin Murphy,
	Joerg Roedel, Greg Kroah-Hartman, Wesley Cheng
  Cc: Marijn Suijten, Alexey Minnekhanov, linux-arm-msm,
	linux-remoteproc, devicetree, linux-kernel, linux-arm-kernel,
	iommu, linux-usb

On 12/09/2023 4:31 pm, Konrad Dybcio wrote:
> These clocks are now handled from within the icc framework and are
> no longer registered from within the CCF. Remove them.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
>   arch/arm64/boot/dts/qcom/msm8996.dtsi | 27 ++++-----------------------
>   1 file changed, 4 insertions(+), 23 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi
> index c8e0986425ab..acef67ab0581 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
> @@ -798,9 +798,6 @@ bimc: interconnect@408000 {
>   			compatible = "qcom,msm8996-bimc";
>   			reg = <0x00408000 0x5a000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a";
> -			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
> -				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
>   		};
>   
>   		tsens0: thermal-sensor@4a9000 {
> @@ -851,18 +848,12 @@ cnoc: interconnect@500000 {
>   			compatible = "qcom,msm8996-cnoc";
>   			reg = <0x00500000 0x1000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a";
> -			clocks = <&rpmcc RPM_SMD_CNOC_CLK>,
> -				 <&rpmcc RPM_SMD_CNOC_A_CLK>;
>   		};
>   
>   		snoc: interconnect@524000 {
>   			compatible = "qcom,msm8996-snoc";
>   			reg = <0x00524000 0x1c000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a";
> -			clocks = <&rpmcc RPM_SMD_SNOC_CLK>,
> -				 <&rpmcc RPM_SMD_SNOC_A_CLK>;
>   		};
>   
>   		a0noc: interconnect@543000 {
> @@ -882,19 +873,14 @@ a1noc: interconnect@562000 {
>   			compatible = "qcom,msm8996-a1noc";
>   			reg = <0x00562000 0x5000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a";
> -			clocks = <&rpmcc RPM_SMD_AGGR1_NOC_CLK>,
> -				 <&rpmcc RPM_SMD_AGGR1_NOC_A_CLK>;
>   		};
>   
>   		a2noc: interconnect@583000 {
>   			compatible = "qcom,msm8996-a2noc";
>   			reg = <0x00583000 0x7000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a", "aggre2_ufs_axi", "ufs_axi";
> -			clocks = <&rpmcc RPM_SMD_AGGR2_NOC_CLK>,
> -				 <&rpmcc RPM_SMD_AGGR2_NOC_A_CLK>,
> -				 <&gcc GCC_AGGRE2_UFS_AXI_CLK>,
> +			clock-names = "aggre2_ufs_axi", "ufs_axi";
> +			clocks = <&gcc GCC_AGGRE2_UFS_AXI_CLK>,
>   				 <&gcc GCC_UFS_AXI_CLK>;
>   		};
>   
> @@ -902,19 +888,14 @@ mnoc: interconnect@5a4000 {
>   			compatible = "qcom,msm8996-mnoc";
>   			reg = <0x005a4000 0x1c000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a", "iface";
> -			clocks = <&rpmcc RPM_SMD_MMAXI_CLK>,
> -				 <&rpmcc RPM_SMD_MMAXI_A_CLK>,
> -				 <&mmcc AHB_CLK_SRC>;
> +			clock-names = "iface";
> +			clocks = <&mmcc AHB_CLK_SRC>;
>   		};
>   
>   		pnoc: interconnect@5c0000 {
>   			compatible = "qcom,msm8996-pnoc";
>   			reg = <0x005c0000 0x3000>;
>   			#interconnect-cells = <1>;
> -			clock-names = "bus", "bus_a";
> -			clocks = <&rpmcc RPM_SMD_PCNOC_CLK>,
> -				 <&rpmcc RPM_SMD_PCNOC_A_CLK>;
>   		};
>   
>   		tcsr_mutex: hwlock@740000 {

Tested-by: Yassine Oudjana <y.oudjana@protonmail.com>




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

end of thread, other threads:[~2024-01-02 21:26 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-12 13:31 [PATCH v2 00/14] Clean up RPM bus clocks remnants Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 01/14] arm64: dts: qcom: msm8916: Drop RPM bus clocks Konrad Dybcio
2023-09-13  7:07   ` Krzysztof Kozlowski
2023-09-13  8:47     ` Konrad Dybcio
2023-09-13  8:53       ` Krzysztof Kozlowski
2023-09-13 10:48         ` Konrad Dybcio
2023-09-13 11:14           ` Krzysztof Kozlowski
2023-09-13 11:14             ` Konrad Dybcio
2024-01-02 10:01               ` Aiqun Yu (Maria)
2023-09-12 13:31 ` [PATCH v2 02/14] arm64: dts: qcom: msm8996: " Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 03/14] arm64: dts: qcom: qcs404: " Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 04/14] dt-bindings: arm-smmu: Fix SDM630 clocks description Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 05/14] dt-bindings: usb: qcom,dwc3: Fix SDM660 clock description Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 06/14] arm64: dts: qcom: sdm630: Drop RPM bus clocks Konrad Dybcio
2023-09-13  7:13   ` Krzysztof Kozlowski
2023-09-13 12:08     ` Konrad Dybcio
2023-09-14  6:26       ` Krzysztof Kozlowski
2023-09-14  7:41         ` Konrad Dybcio
2024-01-02 21:17   ` Marijn Suijten
2023-09-12 13:31 ` [PATCH v2 07/14] arm64: dts: qcom: msm8939: " Konrad Dybcio
2023-09-13  7:15   ` Krzysztof Kozlowski
2023-09-12 13:31 ` [PATCH v2 08/14] dt-bindings: remoteproc: qcom,adsp: Remove AGGRE2 clock Konrad Dybcio
2023-09-13  7:16   ` Krzysztof Kozlowski
2023-09-12 13:31 ` [PATCH v2 09/14] dt-bindings: remoteproc: qcom,msm8996-mss-pil: Remove PNoC clock Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 10/14] remoteproc: qcom: q6v5-mss: Remove PNoC clock from 8996 MSS Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 11/14] arm64: dts: qcom: msm8998: Remove AGGRE2 clock from SLPI Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 12/14] arm64: dts: qcom: msm8996: " Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 13/14] arm64: dts: qcom: msm8996: Remove PNoC clock from MSS Konrad Dybcio
2023-09-12 13:31 ` [PATCH v2 14/14] arm64: dts: qcom: sdm630: Fix USB2 clock-names order Konrad Dybcio
2023-09-13  7:17   ` Krzysztof Kozlowski
2023-09-13  7:19   ` Krzysztof Kozlowski
2023-09-18 11:05 ` [PATCH v2 00/14] Clean up RPM bus clocks remnants Will Deacon
2023-09-20 18:30 ` (subset) " Bjorn Andersson
  -- strict thread matches above, loose matches on Subject: below --
2023-09-13 10:17 [PATCH v2 02/14] arm64: dts: qcom: msm8996: Drop RPM bus clocks Yassine Oudjana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).