Skip to content

Commit ed8ff04

Browse files
committed
Merge tag 'qcom-arm64-fixes-for-6.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes
One last Qualcomm ARM64 DeviceTree fix for v6.4 Changes related to cache management for DMA memory caused WiFi to stop work on SC7180 and SC7280 based products, using TF-A. These changes marks the relevant device dma-coherent to correct the behavior. * tag 'qcom-arm64-fixes-for-6.4-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: arm64: dts: qcom: sc7280: Mark SCM as dma-coherent for chrome devices arm64: dts: qcom: sc7180: Mark SCM as dma-coherent for trogdor arm64: dts: qcom: sc7180: Mark SCM as dma-coherent for IDP dt-bindings: firmware: qcom,scm: Document that SCM can be dma-coherent Link: https://lore.kernel.org/r/20230622203248.106422-1-andersson@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 5b017b5 + 7b59e8a commit ed8ff04

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

Documentation/devicetree/bindings/firmware/qcom,scm.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ properties:
7171
minItems: 1
7272
maxItems: 3
7373

74+
dma-coherent: true
75+
7476
interconnects:
7577
maxItems: 1
7678

arch/arm64/boot/dts/qcom/sc7180-idp.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@
393393
qcom,spare-regs = <&tcsr_regs_2 0xb3e4>;
394394
};
395395

396+
&scm {
397+
/* TF-A firmware maps memory cached so mark dma-coherent to match. */
398+
dma-coherent;
399+
};
400+
396401
&sdhc_1 {
397402
status = "okay";
398403

arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,11 @@ hp_i2c: &i2c9 {
892892
qcom,spare-regs = <&tcsr_regs_2 0xb3e4>;
893893
};
894894

895+
&scm {
896+
/* TF-A firmware maps memory cached so mark dma-coherent to match. */
897+
dma-coherent;
898+
};
899+
895900
&sdhc_1 {
896901
status = "okay";
897902

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
};
370370

371371
firmware {
372-
scm {
372+
scm: scm {
373373
compatible = "qcom,scm-sc7180", "qcom,scm";
374374
};
375375
};

arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@
7979
firmware-name = "ath11k/WCN6750/hw1.0/wpss.mdt";
8080
};
8181

82+
&scm {
83+
/* TF-A firmware maps memory cached so mark dma-coherent to match. */
84+
dma-coherent;
85+
};
86+
8287
&wifi {
8388
status = "okay";
8489

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@
656656
};
657657

658658
firmware {
659-
scm {
659+
scm: scm {
660660
compatible = "qcom,scm-sc7280", "qcom,scm";
661661
};
662662
};

0 commit comments

Comments
 (0)