devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add support for APPS SMMU on QCS615
@ 2024-10-11  6:31 Qingqing Zhou
  2024-10-11  6:31 ` [PATCH 1/4] dt-bindings: firmware: qcom,scm: document SCM " Qingqing Zhou
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Qingqing Zhou @ 2024-10-11  6:31 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt, conor+dt, robimarko,
	quic_gurus, will, robin.murphy, joro
  Cc: linux-arm-msm, devicetree, linux-kernel, iommu, Qingqing Zhou

Enable APPS SMMU function on QCS615 platform. SMMU is required for
multiple functions including USB/UFS/Ethernet.

The reason of adding scm node:
SMMU driver probe will check qcom_scm ready or not, without scm
node, SMMU driver probe will defer, so add the scm node for SMMU
probe normally.
The dmesg log without scm node:
platform 15000000.iommu: deferred probe pending: arm-smmu: qcom_scm not ready

With the scm node, SMMU can probe normally, but scm driver still fails
to probe because of one scm bug.
The dmesg log of the scm bug:
qcom_scm firmware:scm: error (____ptrval____): Failed to enable the TrustZone memory allocator
qcom_scm firmware:scm: probe with driver qcom_scm failed with error 4
The scm bug mentioned above is fixed:
https://lore.kernel.org/all/20241005140150.4109700-2-quic_kuldsing@quicinc.com/
But above patch to fix scm bug doesn't impact building of current patch series, this
patch series can build successfully without above patch.

Dependency:
https://lore.kernel.org/all/20240926-add_initial_support_for_qcs615-v3-0-e37617e91c62@quicinc.com/

Qingqing Zhou (4):
  dt-bindings: firmware: qcom,scm: document SCM on QCS615
  dt-bindings: arm-smmu: Document Qualcomm QCS615 apps smmu
  arm64: dts: qcom: qcs615: add scm node
  arm64: dts: qcom: qcs615: add the APPS SMMU node

 .../bindings/firmware/qcom,scm.yaml           |  1 +
 .../devicetree/bindings/iommu/arm,smmu.yaml   |  1 +
 arch/arm64/boot/dts/qcom/qcs615.dtsi          | 81 +++++++++++++++++++
 3 files changed, 83 insertions(+)

-- 
2.17.1


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

end of thread, other threads:[~2024-10-14  9:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11  6:31 [PATCH 0/4] Add support for APPS SMMU on QCS615 Qingqing Zhou
2024-10-11  6:31 ` [PATCH 1/4] dt-bindings: firmware: qcom,scm: document SCM " Qingqing Zhou
2024-10-11  6:48   ` Krzysztof Kozlowski
2024-10-11  6:31 ` [PATCH 2/4] dt-bindings: arm-smmu: Document Qualcomm QCS615 apps smmu Qingqing Zhou
2024-10-11  6:48   ` Krzysztof Kozlowski
2024-10-14  3:09     ` Qingqing Zhou
2024-10-14  6:52       ` Krzysztof Kozlowski
2024-10-14  9:53         ` Qingqing Zhou
2024-10-11  6:31 ` [PATCH 3/4] arm64: dts: qcom: qcs615: add scm node Qingqing Zhou
2024-10-11  6:31 ` [PATCH 4/4] arm64: dts: qcom: qcs615: add the APPS SMMU node Qingqing Zhou

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).