Skip to content

Commit 2a49326

Browse files
strongtzandersson
authored andcommitted
arm64: dts: qcom: sc7280: Mark FastRPC context banks as dma-coherent
The FastRPC context banks are DMA-coherent on sc7280 platform. Mark them as such. This allows LLM inferencing on the CDSP using Qualcomm AI Engine Direct SDK on the qcs6490 platform. Signed-off-by: Xilin Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent d838ac6 commit 2a49326

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/arm64/boot/dts/qcom/sc7280.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3906,18 +3906,21 @@
39063906
compatible = "qcom,fastrpc-compute-cb";
39073907
reg = <3>;
39083908
iommus = <&apps_smmu 0x1803 0x0>;
3909+
dma-coherent;
39093910
};
39103911

39113912
compute-cb@4 {
39123913
compatible = "qcom,fastrpc-compute-cb";
39133914
reg = <4>;
39143915
iommus = <&apps_smmu 0x1804 0x0>;
3916+
dma-coherent;
39153917
};
39163918

39173919
compute-cb@5 {
39183920
compatible = "qcom,fastrpc-compute-cb";
39193921
reg = <5>;
39203922
iommus = <&apps_smmu 0x1805 0x0>;
3923+
dma-coherent;
39213924
};
39223925
};
39233926
};
@@ -4145,55 +4148,63 @@
41454148
reg = <1>;
41464149
iommus = <&apps_smmu 0x11a1 0x0420>,
41474150
<&apps_smmu 0x1181 0x0420>;
4151+
dma-coherent;
41484152
};
41494153

41504154
compute-cb@2 {
41514155
compatible = "qcom,fastrpc-compute-cb";
41524156
reg = <2>;
41534157
iommus = <&apps_smmu 0x11a2 0x0420>,
41544158
<&apps_smmu 0x1182 0x0420>;
4159+
dma-coherent;
41554160
};
41564161

41574162
compute-cb@3 {
41584163
compatible = "qcom,fastrpc-compute-cb";
41594164
reg = <3>;
41604165
iommus = <&apps_smmu 0x11a3 0x0420>,
41614166
<&apps_smmu 0x1183 0x0420>;
4167+
dma-coherent;
41624168
};
41634169

41644170
compute-cb@4 {
41654171
compatible = "qcom,fastrpc-compute-cb";
41664172
reg = <4>;
41674173
iommus = <&apps_smmu 0x11a4 0x0420>,
41684174
<&apps_smmu 0x1184 0x0420>;
4175+
dma-coherent;
41694176
};
41704177

41714178
compute-cb@5 {
41724179
compatible = "qcom,fastrpc-compute-cb";
41734180
reg = <5>;
41744181
iommus = <&apps_smmu 0x11a5 0x0420>,
41754182
<&apps_smmu 0x1185 0x0420>;
4183+
dma-coherent;
41764184
};
41774185

41784186
compute-cb@6 {
41794187
compatible = "qcom,fastrpc-compute-cb";
41804188
reg = <6>;
41814189
iommus = <&apps_smmu 0x11a6 0x0420>,
41824190
<&apps_smmu 0x1186 0x0420>;
4191+
dma-coherent;
41834192
};
41844193

41854194
compute-cb@7 {
41864195
compatible = "qcom,fastrpc-compute-cb";
41874196
reg = <7>;
41884197
iommus = <&apps_smmu 0x11a7 0x0420>,
41894198
<&apps_smmu 0x1187 0x0420>;
4199+
dma-coherent;
41904200
};
41914201

41924202
compute-cb@8 {
41934203
compatible = "qcom,fastrpc-compute-cb";
41944204
reg = <8>;
41954205
iommus = <&apps_smmu 0x11a8 0x0420>,
41964206
<&apps_smmu 0x1188 0x0420>;
4207+
dma-coherent;
41974208
};
41984209

41994210
/* note: secure cb9 in downstream */
@@ -4203,27 +4214,31 @@
42034214
reg = <11>;
42044215
iommus = <&apps_smmu 0x11ab 0x0420>,
42054216
<&apps_smmu 0x118b 0x0420>;
4217+
dma-coherent;
42064218
};
42074219

42084220
compute-cb@12 {
42094221
compatible = "qcom,fastrpc-compute-cb";
42104222
reg = <12>;
42114223
iommus = <&apps_smmu 0x11ac 0x0420>,
42124224
<&apps_smmu 0x118c 0x0420>;
4225+
dma-coherent;
42134226
};
42144227

42154228
compute-cb@13 {
42164229
compatible = "qcom,fastrpc-compute-cb";
42174230
reg = <13>;
42184231
iommus = <&apps_smmu 0x11ad 0x0420>,
42194232
<&apps_smmu 0x118d 0x0420>;
4233+
dma-coherent;
42204234
};
42214235

42224236
compute-cb@14 {
42234237
compatible = "qcom,fastrpc-compute-cb";
42244238
reg = <14>;
42254239
iommus = <&apps_smmu 0x11ae 0x0420>,
42264240
<&apps_smmu 0x118e 0x0420>;
4241+
dma-coherent;
42274242
};
42284243
};
42294244
};

0 commit comments

Comments
 (0)