* [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem
@ 2024-11-22 15:26 Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP Krzysztof Kozlowski
` (5 more replies)
0 siblings, 6 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-22 15:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Krzysztof Kozlowski
Hi,
Context of this depends on my audio patches:
https://lore.kernel.org/all/20241101-sm8750-audio-v1-0-730aec176459@linaro.org/
Best regards,
Krzysztof
---
Krzysztof Kozlowski (4):
arm64: dts: qcom: sm8750: Add CDSP
arm64: dts: qcom: sm8750: Add Modem / MPSS
arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS
arm64: dts: qcom: sm8750-qrd: Enable CDSP and mention MPSS
arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 15 ++
arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 14 ++
arch/arm64/boot/dts/qcom/sm8750.dtsi | 286 ++++++++++++++++++++++++++++++++
3 files changed, 315 insertions(+)
---
base-commit: 9c09904fa09686ebb44c64857744d5521c81acf2
change-id: 20241122-b4-sm8750-cdsp-38a6c2643a3d
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
@ 2024-11-22 15:26 ` Krzysztof Kozlowski
2024-12-05 17:32 ` Konrad Dybcio
2024-11-22 15:26 ` [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS Krzysztof Kozlowski
` (4 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-22 15:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Krzysztof Kozlowski
Add nodes for the CDSP and its SMP2P. These are compatible with earlier
SM8650 with difference in one more interrupt.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8750.dtsi | 194 +++++++++++++++++++++++++++++++++++
1 file changed, 194 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index 12ad35f0885282d0191e596d0962e242ff30a28a..344331cd97e292a46e3061760817acf643fbe1ff 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -551,6 +551,32 @@ smp2p_adsp_in: slave-kernel {
};
};
+ smp2p-cdsp {
+ compatible = "qcom,smp2p";
+
+ interrupts-extended = <&ipcc IPCC_CLIENT_CDSP
+ IPCC_MPROC_SIGNAL_SMP2P
+ IRQ_TYPE_EDGE_RISING>;
+
+ mboxes = <&ipcc IPCC_CLIENT_CDSP
+ IPCC_MPROC_SIGNAL_SMP2P>;
+
+ qcom,smem = <94>, <432>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <5>;
+
+ smp2p_cdsp_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ smp2p_cdsp_in: slave-kernel {
+ qcom,entry-name = "slave-kernel";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
+
soc: soc@0 {
compatible = "simple-bus";
@@ -3246,6 +3272,174 @@ nsp_noc: interconnect@320c0000 {
qcom,bcm-voters = <&apps_bcm_voter>;
#interconnect-cells = <2>;
};
+
+ remoteproc_cdsp: remoteproc@32300000 {
+ compatible = "qcom,sm8750-cdsp-pas", "qcom,sm8650-cdsp-pas";
+ reg = <0x0 0x32300000 0x0 0x1400000>;
+
+ interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_cdsp_in 7 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog",
+ "fatal",
+ "ready",
+ "handover",
+ "stop-ack",
+ "shutdown-ack";
+
+ clocks = <&rpmhcc RPMH_CXO_CLK>;
+ clock-names = "xo";
+
+ interconnects = <&nsp_noc MASTER_CDSP_PROC QCOM_ICC_TAG_ALWAYS
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+
+ power-domains = <&rpmhpd RPMHPD_CX>,
+ <&rpmhpd RPMHPD_MXC>,
+ <&rpmhpd RPMHPD_NSP>;
+ power-domain-names = "cx",
+ "mxc",
+ "nsp";
+
+ memory-region = <&cdsp_mem>, <&q6_cdsp_dtb_mem>, <&global_sync_mem>;
+ qcom,qmp = <&aoss_qmp>;
+ qcom,smem-states = <&smp2p_cdsp_out 0>;
+ qcom,smem-state-names = "stop";
+
+ status = "disabled";
+
+ glink-edge {
+ interrupts-extended = <&ipcc IPCC_CLIENT_CDSP
+ IPCC_MPROC_SIGNAL_GLINK_QMP
+ IRQ_TYPE_EDGE_RISING>;
+ mboxes = <&ipcc IPCC_CLIENT_CDSP
+ IPCC_MPROC_SIGNAL_GLINK_QMP>;
+ qcom,remote-pid = <5>;
+ label = "cdsp";
+
+ fastrpc {
+ compatible = "qcom,fastrpc";
+ qcom,glink-channels = "fastrpcglink-apps-dsp";
+ label = "cdsp";
+ qcom,non-secure-domain;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ compute-cb@1 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <1>;
+ iommus = <&apps_smmu 0x19c1 0x0>,
+ <&apps_smmu 0x0c21 0x0>,
+ <&apps_smmu 0x0c01 0x40>;
+ dma-coherent;
+ };
+
+ compute-cb@2 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <2>;
+ iommus = <&apps_smmu 0x1962 0x0>,
+ <&apps_smmu 0x0c02 0x20>,
+ <&apps_smmu 0x0c42 0x0>,
+ <&apps_smmu 0x19c2 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@3 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <3>;
+ iommus = <&apps_smmu 0x1963 0x0>,
+ <&apps_smmu 0x0c23 0x0>,
+ <&apps_smmu 0x0c03 0x40>,
+ <&apps_smmu 0x19c3 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@4 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <4>;
+ iommus = <&apps_smmu 0x1964 0x0>,
+ <&apps_smmu 0x0c24 0x0>,
+ <&apps_smmu 0x0c04 0x40>,
+ <&apps_smmu 0x19c4 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@5 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <5>;
+ iommus = <&apps_smmu 0x1965 0x0>,
+ <&apps_smmu 0x0c25 0x0>,
+ <&apps_smmu 0x0c05 0x40>,
+ <&apps_smmu 0x19c5 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@6 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <6>;
+ iommus = <&apps_smmu 0x1966 0x0>,
+ <&apps_smmu 0x0c06 0x20>,
+ <&apps_smmu 0x0c46 0x0>,
+ <&apps_smmu 0x19c6 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@7 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <7>;
+ iommus = <&apps_smmu 0x1967 0x0>,
+ <&apps_smmu 0x0c27 0x0>,
+ <&apps_smmu 0x0c07 0x40>,
+ <&apps_smmu 0x19c7 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@8 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <8>;
+ iommus = <&apps_smmu 0x1968 0x0>,
+ <&apps_smmu 0x0c08 0x20>,
+ <&apps_smmu 0x0c48 0x0>,
+ <&apps_smmu 0x19c8 0x0>;
+ dma-coherent;
+ };
+
+ /* note: secure cb9 in downstream */
+
+ compute-cb@12 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <12>;
+ iommus = <&apps_smmu 0x196c 0x0>,
+ <&apps_smmu 0x0c2c 0x20>,
+ <&apps_smmu 0x0c0c 0x40>,
+ <&apps_smmu 0x19cc 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@13 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <13>;
+ iommus = <&apps_smmu 0x196d 0x0>,
+ <&apps_smmu 0x0c0d 0x20>,
+ <&apps_smmu 0x0c2e 0x0>,
+ <&apps_smmu 0x0c4d 0x0>,
+ <&apps_smmu 0x19cd 0x0>;
+ dma-coherent;
+ };
+
+ compute-cb@14 {
+ compatible = "qcom,fastrpc-compute-cb";
+ reg = <14>;
+ iommus = <&apps_smmu 0x196e 0x0>,
+ <&apps_smmu 0x0c0e 0x20>,
+ <&apps_smmu 0x19ce 0x0>;
+ dma-coherent;
+ };
+ };
+ };
+ };
};
timer {
--
2.43.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP Krzysztof Kozlowski
@ 2024-11-22 15:26 ` Krzysztof Kozlowski
2024-12-05 17:34 ` Konrad Dybcio
2024-11-22 15:26 ` [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS Krzysztof Kozlowski
` (3 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-22 15:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Krzysztof Kozlowski
Add nodes for the MPSS and its SMP2P. These are compatible with earlier
SM8650 with difference in lack of fifth memory region for Qlink Logging.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8750.dtsi | 92 ++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index 344331cd97e292a46e3061760817acf643fbe1ff..798b3634299fc2bad96ed6061d4a304c35e5bafd 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -577,6 +577,45 @@ smp2p_cdsp_in: slave-kernel {
};
};
+ smp2p-modem {
+ compatible = "qcom,smp2p";
+
+ interrupts-extended = <&ipcc IPCC_CLIENT_MPSS
+ IPCC_MPROC_SIGNAL_SMP2P
+ IRQ_TYPE_EDGE_RISING>;
+
+ mboxes = <&ipcc IPCC_CLIENT_MPSS
+ IPCC_MPROC_SIGNAL_SMP2P>;
+
+ qcom,smem = <435>, <428>;
+ qcom,local-pid = <0>;
+ qcom,remote-pid = <1>;
+
+ smp2p_modem_out: master-kernel {
+ qcom,entry-name = "master-kernel";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ smp2p_modem_in: slave-kernel {
+ qcom,entry-name = "slave-kernel";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ ipa_smp2p_out: ipa-ap-to-modem {
+ qcom,entry-name = "ipa";
+ #qcom,smem-state-cells = <1>;
+ };
+
+ ipa_smp2p_in: ipa-modem-to-ap {
+ qcom,entry-name = "ipa";
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ /* TODO: smem mailbox in and out */
+ };
+
soc: soc@0 {
compatible = "simple-bus";
@@ -3440,6 +3479,59 @@ compute-cb@14 {
};
};
};
+
+ remoteproc_mpss: remoteproc@4080000 {
+ compatible = "qcom,sm8750-mpss-pas";
+ reg = <0x0 0x04080000 0x0 0x4040>;
+
+ interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_modem_in 1 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_modem_in 2 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_modem_in 3 IRQ_TYPE_EDGE_RISING>,
+ <&smp2p_modem_in 7 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "wdog",
+ "fatal",
+ "ready",
+ "handover",
+ "stop-ack",
+ "shutdown-ack";
+
+ clocks = <&rpmhcc RPMH_CXO_CLK>;
+ clock-names = "xo";
+
+ interconnects = <&mc_virt MASTER_LLCC QCOM_ICC_TAG_ALWAYS
+ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
+
+ power-domains = <&rpmhpd RPMHPD_CX>,
+ <&rpmhpd RPMHPD_MSS>;
+ power-domain-names = "cx",
+ "mss";
+
+ memory-region = <&mpss_mem>, <&q6_mpss_dtb_mem>,
+ <&dsm_partition_1_mem>,
+ <&dsm_partition_2_mem>;
+
+ qcom,qmp = <&aoss_qmp>;
+
+ qcom,smem-states = <&smp2p_modem_out 0>;
+ qcom,smem-state-names = "stop";
+
+ status = "disabled";
+
+ glink-edge {
+ interrupts-extended = <&ipcc IPCC_CLIENT_MPSS
+ IPCC_MPROC_SIGNAL_GLINK_QMP
+ IRQ_TYPE_EDGE_RISING>;
+
+ mboxes = <&ipcc IPCC_CLIENT_MPSS
+ IPCC_MPROC_SIGNAL_GLINK_QMP>;
+
+ qcom,remote-pid = <1>;
+
+ label = "mpss";
+ };
+ };
};
timer {
--
2.43.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS Krzysztof Kozlowski
@ 2024-11-22 15:26 ` Krzysztof Kozlowski
2024-12-05 17:34 ` Konrad Dybcio
2024-11-22 15:26 ` [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: " Krzysztof Kozlowski
` (2 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-22 15:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Krzysztof Kozlowski
Enable the CDSP on MPT8750 board and add firmware for the modem, however
keep it as failed because modem crashes after booting for unknown
reasons.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
index 8eeed7f2f7766326cfc7830002768087e9783b9b..e2562ea5996ddfb1bee03b367082f4e1890131f3 100644
--- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
@@ -791,6 +791,21 @@ &remoteproc_adsp {
status = "okay";
};
+&remoteproc_cdsp {
+ firmware-name = "qcom/sm8750/cdsp.mbn",
+ "qcom/sm8750/cdsp_dtb.mbn";
+
+ status = "okay";
+};
+
+&remoteproc_mpss {
+ firmware-name = "qcom/sm8750/modem.mbn",
+ "qcom/sm8750/modem_dtb.mbn";
+
+ /* Modem crashes with "DOG detects stalled initialization" */
+ status = "fail";
+};
+
&tlmm {
/* reserved for secure world */
gpio-reserved-ranges = <36 4>, <74 1>;
--
2.43.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: Enable CDSP and mention MPSS
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
` (2 preceding siblings ...)
2024-11-22 15:26 ` [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS Krzysztof Kozlowski
@ 2024-11-22 15:26 ` Krzysztof Kozlowski
2024-12-05 17:35 ` Konrad Dybcio
2024-11-22 22:16 ` [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Dmitry Baryshkov
2024-11-23 16:38 ` Krzysztof Kozlowski
5 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-22 15:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Krzysztof Kozlowski
Enable the CDSP and MPSS (modem) on QRD8750 board.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Not tested on QRD hardware.
---
arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
index 341774bb042ff88af8acf49c2f0ef14f9994dfc9..840a6d8f8a24670a01376f8fce511da222159016 100644
--- a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
@@ -789,6 +789,20 @@ &remoteproc_adsp {
status = "okay";
};
+&remoteproc_cdsp {
+ firmware-name = "qcom/sm8750/cdsp.mbn",
+ "qcom/sm8750/cdsp_dtb.mbn";
+
+ status = "okay";
+};
+
+&remoteproc_mpss {
+ firmware-name = "qcom/sm8750/modem.mbn",
+ "qcom/sm8750/modem_dtb.mbn";
+
+ status = "okay";
+};
+
&tlmm {
/* reserved for secure world */
gpio-reserved-ranges = <36 4>, <74 1>;
--
2.43.0
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
` (3 preceding siblings ...)
2024-11-22 15:26 ` [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: " Krzysztof Kozlowski
@ 2024-11-22 22:16 ` Dmitry Baryshkov
2024-11-23 16:38 ` Krzysztof Kozlowski
5 siblings, 0 replies; 18+ messages in thread
From: Dmitry Baryshkov @ 2024-11-22 22:16 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
On Fri, Nov 22, 2024 at 04:26:47PM +0100, Krzysztof Kozlowski wrote:
> Hi,
>
> Context of this depends on my audio patches:
> https://lore.kernel.org/all/20241101-sm8750-audio-v1-0-730aec176459@linaro.org/
>
For the series:
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
` (4 preceding siblings ...)
2024-11-22 22:16 ` [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Dmitry Baryshkov
@ 2024-11-23 16:38 ` Krzysztof Kozlowski
5 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-23 16:38 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 22/11/2024 16:26, Krzysztof Kozlowski wrote:
> Hi,
>
> Context of this depends on my audio patches:
> https://lore.kernel.org/all/20241101-sm8750-audio-v1-0-730aec176459@linaro.org/
I forgot to link the bindings:
https://lore.kernel.org/all/20241122085623.19988-1-krzysztof.kozlowski@linaro.org/
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP
2024-11-22 15:26 ` [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP Krzysztof Kozlowski
@ 2024-12-05 17:32 ` Konrad Dybcio
2024-12-06 9:10 ` Krzysztof Kozlowski
0 siblings, 1 reply; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-05 17:32 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
> Add nodes for the CDSP and its SMP2P. These are compatible with earlier
> SM8650 with difference in one more interrupt.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
[...]
> +
> + remoteproc_cdsp: remoteproc@32300000 {
> + compatible = "qcom,sm8750-cdsp-pas", "qcom,sm8650-cdsp-pas";
> + reg = <0x0 0x32300000 0x0 0x1400000>;
The size seems to be 0x100000
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS
2024-11-22 15:26 ` [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS Krzysztof Kozlowski
@ 2024-12-05 17:34 ` Konrad Dybcio
2024-12-06 9:22 ` Krzysztof Kozlowski
0 siblings, 1 reply; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-05 17:34 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
> Add nodes for the MPSS and its SMP2P. These are compatible with earlier
> SM8650 with difference in lack of fifth memory region for Qlink Logging.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
[...]
> +
> + remoteproc_mpss: remoteproc@4080000 {
> + compatible = "qcom,sm8750-mpss-pas";
> + reg = <0x0 0x04080000 0x0 0x4040>;
This also seems to be 0x100000-long
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS
2024-11-22 15:26 ` [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS Krzysztof Kozlowski
@ 2024-12-05 17:34 ` Konrad Dybcio
2024-12-06 8:56 ` Krzysztof Kozlowski
0 siblings, 1 reply; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-05 17:34 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
> Enable the CDSP on MPT8750 board and add firmware for the modem, however
> keep it as failed because modem crashes after booting for unknown
> reasons.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> index 8eeed7f2f7766326cfc7830002768087e9783b9b..e2562ea5996ddfb1bee03b367082f4e1890131f3 100644
> --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> @@ -791,6 +791,21 @@ &remoteproc_adsp {
> status = "okay";
> };
>
> +&remoteproc_cdsp {
> + firmware-name = "qcom/sm8750/cdsp.mbn",
> + "qcom/sm8750/cdsp_dtb.mbn";
> +
> + status = "okay";
> +};
> +
> +&remoteproc_mpss {
> + firmware-name = "qcom/sm8750/modem.mbn",
> + "qcom/sm8750/modem_dtb.mbn";
> +
> + /* Modem crashes with "DOG detects stalled initialization" */
> + status = "fail";
That is a bad sign, let's hold off merging this as we may be
missing some resource..
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: Enable CDSP and mention MPSS
2024-11-22 15:26 ` [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: " Krzysztof Kozlowski
@ 2024-12-05 17:35 ` Konrad Dybcio
2024-12-06 8:57 ` Krzysztof Kozlowski
0 siblings, 1 reply; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-05 17:35 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
> Enable the CDSP and MPSS (modem) on QRD8750 board.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Not tested on QRD hardware.
Not great given the status = "fail" on MTP..
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS
2024-12-05 17:34 ` Konrad Dybcio
@ 2024-12-06 8:56 ` Krzysztof Kozlowski
2024-12-13 12:46 ` Konrad Dybcio
0 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-06 8:56 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 05/12/2024 18:34, Konrad Dybcio wrote:
> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>> Enable the CDSP on MPT8750 board and add firmware for the modem, however
>> keep it as failed because modem crashes after booting for unknown
>> reasons.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>> arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 15 +++++++++++++++
>> 1 file changed, 15 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>> index 8eeed7f2f7766326cfc7830002768087e9783b9b..e2562ea5996ddfb1bee03b367082f4e1890131f3 100644
>> --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>> @@ -791,6 +791,21 @@ &remoteproc_adsp {
>> status = "okay";
>> };
>>
>> +&remoteproc_cdsp {
>> + firmware-name = "qcom/sm8750/cdsp.mbn",
>> + "qcom/sm8750/cdsp_dtb.mbn";
>> +
>> + status = "okay";
>> +};
>> +
>> +&remoteproc_mpss {
>> + firmware-name = "qcom/sm8750/modem.mbn",
>> + "qcom/sm8750/modem_dtb.mbn";
>> +
>> + /* Modem crashes with "DOG detects stalled initialization" */
>> + status = "fail";
>
> That is a bad sign, let's hold off merging this as we may be
> missing some resource..
Luckily there are reports that all modems on recent boards crash (sm8550
and newer), so probably nothing wrong was in this DTS. :)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: Enable CDSP and mention MPSS
2024-12-05 17:35 ` Konrad Dybcio
@ 2024-12-06 8:57 ` Krzysztof Kozlowski
0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-06 8:57 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 05/12/2024 18:35, Konrad Dybcio wrote:
> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>> Enable the CDSP and MPSS (modem) on QRD8750 board.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> ---
>>
>> Not tested on QRD hardware.
>
> Not great given the status = "fail" on MTP..
Well, someone will try it. Either it crashes or not. If it crashes, then
person will send report or patch to change it. If it does not, then it
will mean it is tested.
This is a shiny new platform, so no one expects this platform to work
flawlessly and no users are impacted by such untested code. Merging this
has only benefits: more test coverage by early adopters.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP
2024-12-05 17:32 ` Konrad Dybcio
@ 2024-12-06 9:10 ` Krzysztof Kozlowski
2024-12-06 10:52 ` Konrad Dybcio
0 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-06 9:10 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 05/12/2024 18:32, Konrad Dybcio wrote:
> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>> Add nodes for the CDSP and its SMP2P. These are compatible with earlier
>> SM8650 with difference in one more interrupt.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>
> [...]
>
>> +
>> + remoteproc_cdsp: remoteproc@32300000 {
>> + compatible = "qcom,sm8750-cdsp-pas", "qcom,sm8650-cdsp-pas";
>> + reg = <0x0 0x32300000 0x0 0x1400000>;
>
> The size seems to be 0x100000
Even 0x10000 (one less 0) according to downstream DTS. 0x100000 would be
entire touring qdsp6v7 map (1 MB).
However we always - sm8450, sm8550, sm8650 - map here 20 MB for some
reason. Any ideas? Let's correct all platforms to 0x100000?
For the record, there were no differences in downstream kernel.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS
2024-12-05 17:34 ` Konrad Dybcio
@ 2024-12-06 9:22 ` Krzysztof Kozlowski
2024-12-06 9:29 ` Krzysztof Kozlowski
0 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-06 9:22 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 05/12/2024 18:34, Konrad Dybcio wrote:
> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>> Add nodes for the MPSS and its SMP2P. These are compatible with earlier
>> SM8650 with difference in lack of fifth memory region for Qlink Logging.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>
> [...]
>
>> +
>> + remoteproc_mpss: remoteproc@4080000 {
>> + compatible = "qcom,sm8750-mpss-pas";
>> + reg = <0x0 0x04080000 0x0 0x4040>;
>
> This also seems to be 0x100000-long
Oh, we all love to copy code, starting from sm8150, I think. Depends
which block we actually assign here - this should be 0x10000 (downstream
DTS) or 0x100000.
Older PIL remoteproc loaders (qcom_q6v5_adsp.c) seem to access only the
smaller 0x10000 region.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS
2024-12-06 9:22 ` Krzysztof Kozlowski
@ 2024-12-06 9:29 ` Krzysztof Kozlowski
0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-06 9:29 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 06/12/2024 10:22, Krzysztof Kozlowski wrote:
> On 05/12/2024 18:34, Konrad Dybcio wrote:
>> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>>> Add nodes for the MPSS and its SMP2P. These are compatible with earlier
>>> SM8650 with difference in lack of fifth memory region for Qlink Logging.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>>
>> [...]
>>
>>> +
>>> + remoteproc_mpss: remoteproc@4080000 {
>>> + compatible = "qcom,sm8750-mpss-pas";
>>> + reg = <0x0 0x04080000 0x0 0x4040>;
>>
>> This also seems to be 0x100000-long
>
> Oh, we all love to copy code, starting from sm8150, I think. Depends
> which block we actually assign here - this should be 0x10000 (downstream
> DTS) or 0x100000.
>
> Older PIL remoteproc loaders (qcom_q6v5_adsp.c) seem to access only the
> smaller 0x10000 region.
SM8150 had it correct - 4040. All others are copy-paste. I'll do some
tests and send patches.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP
2024-12-06 9:10 ` Krzysztof Kozlowski
@ 2024-12-06 10:52 ` Konrad Dybcio
0 siblings, 0 replies; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-06 10:52 UTC (permalink / raw)
To: Krzysztof Kozlowski, Konrad Dybcio, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 6.12.2024 10:10 AM, Krzysztof Kozlowski wrote:
> On 05/12/2024 18:32, Konrad Dybcio wrote:
>> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>>> Add nodes for the CDSP and its SMP2P. These are compatible with earlier
>>> SM8650 with difference in one more interrupt.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>>
>> [...]
>>
>>> +
>>> + remoteproc_cdsp: remoteproc@32300000 {
>>> + compatible = "qcom,sm8750-cdsp-pas", "qcom,sm8650-cdsp-pas";
>>> + reg = <0x0 0x32300000 0x0 0x1400000>;
>>
>> The size seems to be 0x100000
> Even 0x10000 (one less 0) according to downstream DTS. 0x100000 would be
> entire touring qdsp6v7 map (1 MB).
>
> However we always - sm8450, sm8550, sm8650 - map here 20 MB for some
> reason. Any ideas?
No clue. I made this comment based on what the computer told me.
Maybe some Q6 folks would know..
> Let's correct all platforms to 0x100000?
After we figure it out, sure
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS
2024-12-06 8:56 ` Krzysztof Kozlowski
@ 2024-12-13 12:46 ` Konrad Dybcio
0 siblings, 0 replies; 18+ messages in thread
From: Konrad Dybcio @ 2024-12-13 12:46 UTC (permalink / raw)
To: Krzysztof Kozlowski, Konrad Dybcio, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 6.12.2024 9:56 AM, Krzysztof Kozlowski wrote:
> On 05/12/2024 18:34, Konrad Dybcio wrote:
>> On 22.11.2024 4:26 PM, Krzysztof Kozlowski wrote:
>>> Enable the CDSP on MPT8750 board and add firmware for the modem, however
>>> keep it as failed because modem crashes after booting for unknown
>>> reasons.
>>>
>>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>> ---
>>> arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 15 +++++++++++++++
>>> 1 file changed, 15 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>>> index 8eeed7f2f7766326cfc7830002768087e9783b9b..e2562ea5996ddfb1bee03b367082f4e1890131f3 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
>>> @@ -791,6 +791,21 @@ &remoteproc_adsp {
>>> status = "okay";
>>> };
>>>
>>> +&remoteproc_cdsp {
>>> + firmware-name = "qcom/sm8750/cdsp.mbn",
>>> + "qcom/sm8750/cdsp_dtb.mbn";
>>> +
>>> + status = "okay";
>>> +};
>>> +
>>> +&remoteproc_mpss {
>>> + firmware-name = "qcom/sm8750/modem.mbn",
>>> + "qcom/sm8750/modem_dtb.mbn";
>>> +
>>> + /* Modem crashes with "DOG detects stalled initialization" */
>>> + status = "fail";
>>
>> That is a bad sign, let's hold off merging this as we may be
>> missing some resource..
>
> Luckily there are reports that all modems on recent boards crash (sm8550
> and newer), so probably nothing wrong was in this DTS. :)
Do we have anyone looking into that?
Konrad
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2024-12-13 12:46 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 15:26 [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 1/4] arm64: dts: qcom: sm8750: Add CDSP Krzysztof Kozlowski
2024-12-05 17:32 ` Konrad Dybcio
2024-12-06 9:10 ` Krzysztof Kozlowski
2024-12-06 10:52 ` Konrad Dybcio
2024-11-22 15:26 ` [PATCH 2/4] arm64: dts: qcom: sm8750: Add Modem / MPSS Krzysztof Kozlowski
2024-12-05 17:34 ` Konrad Dybcio
2024-12-06 9:22 ` Krzysztof Kozlowski
2024-12-06 9:29 ` Krzysztof Kozlowski
2024-11-22 15:26 ` [PATCH 3/4] arm64: dts: qcom: sm8750-mtp: Enable CDSP and mention MPSS Krzysztof Kozlowski
2024-12-05 17:34 ` Konrad Dybcio
2024-12-06 8:56 ` Krzysztof Kozlowski
2024-12-13 12:46 ` Konrad Dybcio
2024-11-22 15:26 ` [PATCH 4/4] arm64: dts: qcom: sm8750-qrd: " Krzysztof Kozlowski
2024-12-05 17:35 ` Konrad Dybcio
2024-12-06 8:57 ` Krzysztof Kozlowski
2024-11-22 22:16 ` [PATCH 0/4] arm64: dts: qcom: sm8750: CDSP and modem Dmitry Baryshkov
2024-11-23 16:38 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox