* [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing
@ 2025-12-29 11:57 Krzysztof Kozlowski
2025-12-29 12:10 ` Konrad Dybcio
2026-01-05 19:16 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-29 11:57 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gaurav Kashyap, Melody Olvera, linux-arm-msm,
devicetree, linux-kernel
Cc: Krzysztof Kozlowski, stable
Bindings always required "qcom,num-ees" and "num-channels" properties,
as reported by dtbs_check:
sm8750-mtp.dtb: dma-controller@1dc4000 (qcom,bam-v1.7.4): 'anyOf' conditional failed, one must be fixed:
'qcom,powered-remotely' is a required property
'num-channels' is a required property
'qcom,num-ees' is a required property
'clocks' is a required property
'clock-names' is a required property
However since commit 5068b5254812 ("dmaengine: qcom: bam_dma: Fix DT
error handling for num-channels/ees") missing properties are actually
fatal and BAM does not probe:
bam-dma-engine 1dc4000.dma-controller: num-channels unspecified in dt
bam-dma-engine 1dc4000.dma-controller: probe with driver bam-dma-engine failed with error -22
Fixes: eeb0f3e4ea67 ("arm64: dts: qcom: sm8750: Add QCrypto nodes")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/sm8750.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index 3040c02fb6e4..bd555ec9e04a 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -2076,6 +2076,8 @@ cryptobam: dma-controller@1dc4000 {
<&apps_smmu 0x481 0>;
qcom,ee = <0>;
+ qcom,num-ees = <4>;
+ num-channels = <20>;
qcom,controlled-remotely;
};
--
2.51.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing
2025-12-29 11:57 [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing Krzysztof Kozlowski
@ 2025-12-29 12:10 ` Konrad Dybcio
2026-01-05 19:16 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2025-12-29 12:10 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Gaurav Kashyap, Melody Olvera,
linux-arm-msm, devicetree, linux-kernel
Cc: stable
On 12/29/25 12:57 PM, Krzysztof Kozlowski wrote:
> Bindings always required "qcom,num-ees" and "num-channels" properties,
> as reported by dtbs_check:
>
> sm8750-mtp.dtb: dma-controller@1dc4000 (qcom,bam-v1.7.4): 'anyOf' conditional failed, one must be fixed:
> 'qcom,powered-remotely' is a required property
> 'num-channels' is a required property
> 'qcom,num-ees' is a required property
> 'clocks' is a required property
> 'clock-names' is a required property
>
> However since commit 5068b5254812 ("dmaengine: qcom: bam_dma: Fix DT
> error handling for num-channels/ees") missing properties are actually
> fatal and BAM does not probe:
>
> bam-dma-engine 1dc4000.dma-controller: num-channels unspecified in dt
> bam-dma-engine 1dc4000.dma-controller: probe with driver bam-dma-engine failed with error -22
>
> Fixes: eeb0f3e4ea67 ("arm64: dts: qcom: sm8750: Add QCrypto nodes")
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing
2025-12-29 11:57 [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing Krzysztof Kozlowski
2025-12-29 12:10 ` Konrad Dybcio
@ 2026-01-05 19:16 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2026-01-05 19:16 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gaurav Kashyap, Melody Olvera, linux-arm-msm, devicetree,
linux-kernel, Krzysztof Kozlowski
Cc: stable
On Mon, 29 Dec 2025 12:57:35 +0100, Krzysztof Kozlowski wrote:
> Bindings always required "qcom,num-ees" and "num-channels" properties,
> as reported by dtbs_check:
>
> sm8750-mtp.dtb: dma-controller@1dc4000 (qcom,bam-v1.7.4): 'anyOf' conditional failed, one must be fixed:
> 'qcom,powered-remotely' is a required property
> 'num-channels' is a required property
> 'qcom,num-ees' is a required property
> 'clocks' is a required property
> 'clock-names' is a required property
>
> [...]
Applied, thanks!
[1/1] arm64: qcom: sm8750: Fix BAM DMA probing
commit: 1c6192ec9c4ab8bdb7b2cf8763b7ef7e38671ffe
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-05 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-29 11:57 [PATCH] arm64: qcom: sm8750: Fix BAM DMA probing Krzysztof Kozlowski
2025-12-29 12:10 ` Konrad Dybcio
2026-01-05 19:16 ` 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®