mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS
@ 2025-02-21 16:02 Krzysztof Kozlowski
  2025-02-21 16:03 ` [PATCH RFC v2 2/2] remoteproc: qcom: pas: " Krzysztof Kozlowski
  2025-03-14 14:17 ` [PATCH RFC v2 1/2] dt-bindings: remoteproc: " Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-21 16:02 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	linux-arm-msm, linux-remoteproc, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Conor Dooley

Add remote processor PAS loader for SM8750 MPSS (modem).  Device looks
fully compatible with SM8650, however it lacks fifth memory region for
Qlink Logging, according to downstream sources.  This is a bit tricky,
because updated downstream sources for newer downstream release dropped
that fifth memory region as well.

There might be other differences against SM8650, because the modem
currently crashes after starting.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Changes in v2:
Split from previous MPSS+CDSP:
https://lore.kernel.org/all/20250220154132.199358-1-krzysztof.kozlowski@linaro.org/

Retain the Ack - no changes to the binding itself.
---
 .../bindings/remoteproc/qcom,sm8550-pas.yaml    | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml
index 8bfded3c66ef..2dd479cf4821 100644
--- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml
@@ -24,6 +24,7 @@ properties:
           - qcom,sm8650-adsp-pas
           - qcom,sm8650-cdsp-pas
           - qcom,sm8650-mpss-pas
+          - qcom,sm8750-mpss-pas
           - qcom,x1e80100-adsp-pas
           - qcom,x1e80100-cdsp-pas
       - items:
@@ -164,6 +165,21 @@ allOf:
           minItems: 5
           maxItems: 5
 
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,sm8750-mpss-pas
+    then:
+      properties:
+        interrupts:
+          minItems: 6
+        interrupt-names:
+          minItems: 6
+        memory-region:
+          minItems: 4
+          maxItems: 4
+
   - if:
       properties:
         compatible:
@@ -191,6 +207,7 @@ allOf:
             - qcom,sdx75-mpss-pas
             - qcom,sm8550-mpss-pas
             - qcom,sm8650-mpss-pas
+            - qcom,sm8750-mpss-pas
     then:
       properties:
         power-domains:
-- 
2.43.0


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

* [PATCH RFC v2 2/2] remoteproc: qcom: pas: Add SM8750 MPSS
  2025-02-21 16:02 [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS Krzysztof Kozlowski
@ 2025-02-21 16:03 ` Krzysztof Kozlowski
  2025-03-14 14:17 ` [PATCH RFC v2 1/2] dt-bindings: remoteproc: " Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-21 16:03 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Manivannan Sadhasivam,
	linux-arm-msm, linux-remoteproc, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski

Add remote processor PAS loaders for SM8750 MPSS (modem), which differs
from SM8650 by lack of fifth memory region for Qlink Logging.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Changes in v2:
None
---
 drivers/remoteproc/qcom_q6v5_pas.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
index 97c4bdd9222a..c34b7780f786 100644
--- a/drivers/remoteproc/qcom_q6v5_pas.c
+++ b/drivers/remoteproc/qcom_q6v5_pas.c
@@ -1409,6 +1409,30 @@ static const struct adsp_data sm8650_mpss_resource = {
 	.region_assign_vmid = QCOM_SCM_VMID_MSS_MSA,
 };
 
+static const struct adsp_data sm8750_mpss_resource = {
+	.crash_reason_smem = 421,
+	.firmware_name = "modem.mdt",
+	.dtb_firmware_name = "modem_dtb.mdt",
+	.pas_id = 4,
+	.dtb_pas_id = 0x26,
+	.minidump_id = 3,
+	.auto_boot = false,
+	.decrypt_shutdown = true,
+	.proxy_pd_names = (char*[]){
+		"cx",
+		"mss",
+		NULL
+	},
+	.load_state = "modem",
+	.ssr_name = "mpss",
+	.sysmon_name = "modem",
+	.ssctl_id = 0x12,
+	.smem_host_id = 1,
+	.region_assign_idx = 2,
+	.region_assign_count = 2,
+	.region_assign_vmid = QCOM_SCM_VMID_MSS_MSA,
+};
+
 static const struct of_device_id adsp_of_match[] = {
 	{ .compatible = "qcom,msm8226-adsp-pil", .data = &adsp_resource_init},
 	{ .compatible = "qcom,msm8953-adsp-pil", .data = &msm8996_adsp_resource},
@@ -1474,6 +1498,7 @@ static const struct of_device_id adsp_of_match[] = {
 	{ .compatible = "qcom,sm8650-adsp-pas", .data = &sm8550_adsp_resource},
 	{ .compatible = "qcom,sm8650-cdsp-pas", .data = &sm8650_cdsp_resource},
 	{ .compatible = "qcom,sm8650-mpss-pas", .data = &sm8650_mpss_resource},
+	{ .compatible = "qcom,sm8750-mpss-pas", .data = &sm8750_mpss_resource},
 	{ .compatible = "qcom,x1e80100-adsp-pas", .data = &x1e80100_adsp_resource},
 	{ .compatible = "qcom,x1e80100-cdsp-pas", .data = &x1e80100_cdsp_resource},
 	{ },
-- 
2.43.0


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

* Re: [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS
  2025-02-21 16:02 [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS Krzysztof Kozlowski
  2025-02-21 16:03 ` [PATCH RFC v2 2/2] remoteproc: qcom: pas: " Krzysztof Kozlowski
@ 2025-03-14 14:17 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2025-03-14 14:17 UTC (permalink / raw)
  To: Mathieu Poirier, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Manivannan Sadhasivam, linux-arm-msm, linux-remoteproc,
	devicetree, linux-kernel, Krzysztof Kozlowski
  Cc: Conor Dooley


On Fri, 21 Feb 2025 17:02:59 +0100, Krzysztof Kozlowski wrote:
> Add remote processor PAS loader for SM8750 MPSS (modem).  Device looks
> fully compatible with SM8650, however it lacks fifth memory region for
> Qlink Logging, according to downstream sources.  This is a bit tricky,
> because updated downstream sources for newer downstream release dropped
> that fifth memory region as well.
> 
> There might be other differences against SM8650, because the modem
> currently crashes after starting.
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: remoteproc: Add SM8750 MPSS
      commit: 89f95f2108de52431bbf0ca432e337fc1f40ee00
[2/2] remoteproc: qcom: pas: Add SM8750 MPSS
      commit: 6174206a4b5bebc0b4e01a684672e2bf79df38d8

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2025-03-14 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-21 16:02 [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS Krzysztof Kozlowski
2025-02-21 16:03 ` [PATCH RFC v2 2/2] remoteproc: qcom: pas: " Krzysztof Kozlowski
2025-03-14 14:17 ` [PATCH RFC v2 1/2] dt-bindings: remoteproc: " Bjorn Andersson

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®