Skip to contentSkip to conversation

arm64: dts: amlogic: Make mmc host controller interrupts level-sensitive

PATCH In review Heiner Kallweit 8 participants 15 messages Jan 26, 2023 – Feb 10, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: amlogic: Make mmc host controller interrupts level-sensitive

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

---
v2:
- apply the fix also to meson-axg
- apply the fix to all host controller instances

---
 arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 4 ++--
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 +++---
 arch/arm64/boot/dts/amlogic/meson-gx.dtsi         | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -2
index ed895fb32..a6a3095de 100644
@@ -1886,7 +1886,7 @@ apb: bus@ffe00000 {
 			sd_emmc_b: mmc@5000 {
 				compatible = "amlogic,meson-axg-mmc";
 				reg = <0x0 0x5000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 				clocks = <&clkc CLKID_SD_EMMC_B>,
 					<&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -1898,7 +1898,7 @@ sd_emmc_b: mmc@5000 {
 			sd_emmc_c: mmc@7000 {
 				compatible = "amlogic,meson-axg-mmc";
 				reg = <0x0 0x7000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 				clocks = <&clkc CLKID_SD_EMMC_C>,
 					<&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +3 -3
index 6d7272b2c..13fdaba21 100644
@@ -2324,7 +2324,7 @@ uart_A: serial@24000 {
 		sd_emmc_a: mmc@ffe03000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe03000 0x0 0x800>;
-			interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_A>,
 				 <&clkc CLKID_SD_EMMC_A_CLK0>,
@@ -2336,7 +2336,7 @@ sd_emmc_a: mmc@ffe03000 {
 		sd_emmc_b: mmc@ffe05000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe05000 0x0 0x800>;
-			interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_B>,
 				 <&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -2348,7 +2348,7 @@ sd_emmc_b: mmc@ffe05000 {
 		sd_emmc_c: mmc@ffe07000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe07000 0x0 0x800>;
-			interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_C>,
 				 <&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +3 -3
index e3c12e0be..5eed15035 100644
@@ -603,21 +603,21 @@ apb: apb@d0000000 {
 			sd_emmc_a: mmc@70000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x70000 0x0 0x800>;
-				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
 			sd_emmc_b: mmc@72000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x72000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
 			sd_emmc_c: mmc@74000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x74000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 		};
Signature · 1 line
2.39.1
#1 lore raw

Tested 6.1/6.2rc3 on axg (JetHub D1/D1+).

Quoted 95 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

---
v2:
- apply the fix also to meson-axg
- apply the fix to all host controller instances

---
  arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 4 ++--
  arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 +++---
  arch/arm64/boot/dts/amlogic/meson-gx.dtsi         | 6 +++---
  3 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -2
index ed895fb32..a6a3095de 100644
@@ -1886,7 +1886,7 @@ apb: bus@ffe00000 {
  			sd_emmc_b: mmc@5000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x5000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_B>,
  					<&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -1898,7 +1898,7 @@ sd_emmc_b: mmc@5000 {
  			sd_emmc_c: mmc@7000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x7000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_C>,
  					<&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +3 -3
index 6d7272b2c..13fdaba21 100644
@@ -2324,7 +2324,7 @@ uart_A: serial@24000 {
  		sd_emmc_a: mmc@ffe03000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe03000 0x0 0x800>;
-			interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_A>,
  				 <&clkc CLKID_SD_EMMC_A_CLK0>,
@@ -2336,7 +2336,7 @@ sd_emmc_a: mmc@ffe03000 {
  		sd_emmc_b: mmc@ffe05000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe05000 0x0 0x800>;
-			interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_B>,
  				 <&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -2348,7 +2348,7 @@ sd_emmc_b: mmc@ffe05000 {
  		sd_emmc_c: mmc@ffe07000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe07000 0x0 0x800>;
-			interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_C>,
  				 <&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +2 -2
index e3c12e0be..5eed15035 100644
@@ -603,21 +603,21 @@ apb: apb@d0000000 {
  			sd_emmc_a: mmc@70000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x70000 0x0 0x800>;
-				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
 
  			sd_emmc_b: mmc@72000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x72000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";

arch/arm64/boot/dts/amlogic/meson-gx.dtsi apb: apb@d0000000 { · line 623

Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +1 -1
  			};
 
  			sd_emmc_c: mmc@74000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x74000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
  		};

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic

maintainer
#2 lore raw
In reply to Heiner Kallweit

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

If the test doesn't report any breakage, I'll probably ask you that.

Neil

Quoted 96 lines

---
v2:
- apply the fix also to meson-axg
- apply the fix to all host controller instances

---
  arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 4 ++--
  arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 +++---
  arch/arm64/boot/dts/amlogic/meson-gx.dtsi         | 6 +++---
  3 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -2
index ed895fb32..a6a3095de 100644
@@ -1886,7 +1886,7 @@ apb: bus@ffe00000 {
  			sd_emmc_b: mmc@5000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x5000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_B>,
  					<&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -1898,7 +1898,7 @@ sd_emmc_b: mmc@5000 {
  			sd_emmc_c: mmc@7000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x7000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_C>,
  					<&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +3 -3
index 6d7272b2c..13fdaba21 100644
@@ -2324,7 +2324,7 @@ uart_A: serial@24000 {
  		sd_emmc_a: mmc@ffe03000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe03000 0x0 0x800>;
-			interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_A>,
  				 <&clkc CLKID_SD_EMMC_A_CLK0>,
@@ -2336,7 +2336,7 @@ sd_emmc_a: mmc@ffe03000 {
  		sd_emmc_b: mmc@ffe05000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe05000 0x0 0x800>;
-			interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_B>,
  				 <&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -2348,7 +2348,7 @@ sd_emmc_b: mmc@ffe05000 {
  		sd_emmc_c: mmc@ffe07000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe07000 0x0 0x800>;
-			interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_C>,
  				 <&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +3 -3
index e3c12e0be..5eed15035 100644
@@ -603,21 +603,21 @@ apb: apb@d0000000 {
  			sd_emmc_a: mmc@70000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x70000 0x0 0x800>;
-				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
 
  			sd_emmc_b: mmc@72000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x72000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
 
  			sd_emmc_c: mmc@74000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x74000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
  		};
#3 lore raw
Quoted 12 lines · Neil Armstrong

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

Quoted 2 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

reviewer
#4 lore raw
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Neil Armstrong

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

... Well, I wonder is this might be linked to instabilities seen with very high speed mode (such as SDR104) and DDR modes. We have seen quite a lot of those over the years. In any case, if it helps stabilize the MMC on amlogic, it would be great if it can be picked up by stable.

Quoted 8 lines
Quoted 3 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

#5 lore raw
Quoted 29 lines · Jerome Brunet
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Neil Armstrong

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

Quoted 4 lines

... Well, I wonder is this might be linked to instabilities seen with very high speed mode (such as SDR104) and DDR modes. We have seen quite a lot of those over the years. In any case, if it helps stabilize the MMC on amlogic, it would be great if it can be picked up by stable.

On S905X, I'm still getting SDR104 failures with this change at both 208MHz and 150MHz so maybe not completely.

[    9.071641] mmc1: tuning execution failed: -5
[    9.579765] mmc1: tuning execution failed: -5
[    9.761580] mmc1: tuning execution failed: -5
[    9.871836] mmc1: tuning execution failed: -5
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Quoted 7 lines
Quoted 1 line

Heiner

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic

#6 lore raw
Quoted 35 lines · Da Xue
Quoted 29 lines · Jerome Brunet
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Neil Armstrong

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

Quoted 4 lines

... Well, I wonder is this might be linked to instabilities seen with very high speed mode (such as SDR104) and DDR modes. We have seen quite a lot of those over the years. In any case, if it helps stabilize the MMC on amlogic, it would be great if it can be picked up by stable.

Quoted 7 lines

On S905X, I'm still getting SDR104 failures with this change at both 208MHz and 150MHz so maybe not completely.

[    9.071641] mmc1: tuning execution failed: -5
[    9.579765] mmc1: tuning execution failed: -5
[    9.761580] mmc1: tuning execution failed: -5
[    9.871836] mmc1: tuning execution failed: -5

Are these the same before the change ? or did those appear with the change ?

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
Quoted 5 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic

reviewer
#7 lore raw
Quoted 35 lines · On Tue 07 Feb 2023 at 09:22, [email protected] wrote:
Quoted 34 lines · Da Xue
Quoted 33 lines · Jerome Brunet
Quoted 17 lines · Heiner Kallweit
Quoted 16 lines · Neil Armstrong

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

... Well, I wonder is this might be linked to instabilities seen with very high speed mode (such as SDR104) and DDR modes. We have seen quite a lot of those over the years. In any case, if it helps stabilize the MMC on amlogic, it would be great if it can be picked up by stable.

Quoted 8 lines
Quoted 6 lines

On S905X, I'm still getting SDR104 failures with this change at both 208MHz and 150MHz so maybe not completely.

[    9.071641] mmc1: tuning execution failed: -5
[    9.579765] mmc1: tuning execution failed: -5
[    9.761580] mmc1: tuning execution failed: -5
[    9.871836] mmc1: tuning execution failed: -5

Are these the same before the change ? or did those appear with the change ?

This is a change Da is carrying in his tree.
LePotato is limited to high speed mode @50Mhz in upstream due to previous instabilities with the SDR modes

The error above shows a systematic failure to find a valid SDR tuning. It is actually a lot better than an unstable success.

IMO, It's another hint that we need to look at high speed modes again with this change.

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 11 lines
Quoted 6 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic

maintainer
#8 lore raw
In reply to Heiner Kallweit

Le 27/01/2023 à 14:02, Heiner Kallweit a écrit :

Quoted 17 lines · Neil Armstrong
Quoted 16 lines

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

I understand, but the Fixes tag must reflect what commit introduced the breakage, so either keep a single patch but list all commits introducing the MMC, SD & SDIO nodes on the 3 families, or split in 3 and specify the commit introducing the MMC, SD & SDIO node on each family.

I'll prefer the later.

If the patch isn't applicable for older kernels, it doesn't matter as the stable team will only apply the fix on a tree if it applies and builds.
If you target an older release you can submit them a patch reworked to apply correctly if the original patch is already only Linus master tree.

And don't forget adding the Tested-by tags.

Thanks,
Neil

Quoted 9 lines
Quoted 3 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

#9 lore raw
Quoted 31 lines · Neil Armstrong

Le 27/01/2023 à 14:02, Heiner Kallweit a écrit :

Quoted 17 lines · Neil Armstrong
Quoted 16 lines

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

I understand, but the Fixes tag must reflect what commit introduced the breakage, so either keep a single patch but list all commits introducing the MMC, SD & SDIO nodes on the 3 families, or split in 3 and specify the commit introducing the MMC, SD & SDIO node on each family.

Quoted 7 lines

I'll prefer the later.

If the patch isn't applicable for older kernels, it doesn't matter as the stable team will only apply the fix on a tree if it applies and builds.
If you target an older release you can submit them a patch reworked to apply correctly if the original patch is already only Linus master tree.

Do you need a revert for the current "TEST"-annotated commit in linux-next as part of the series?

Quoted 15 lines

And don't forget adding the Tested-by tags.

Thanks,
Neil

Quoted 9 lines
Quoted 3 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

Heiner

maintainer
#10 lore raw
Quoted 34 lines · Heiner Kallweit
Quoted 33 lines · Neil Armstrong

Le 27/01/2023 à 14:02, Heiner Kallweit a écrit :

Quoted 17 lines · Neil Armstrong
Quoted 16 lines

Hi,

Quoted 5 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Thanks, I applied it in for-next so it runs on the CI tests.

Quoted 4 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")
Quoted 7 lines
Quoted 3 lines

I think we should find a better Fixes or perhaps split in 3 so it targets the right commit adding the nodes for each family.

This would be the cleanest option, right. Practically it shouldn't make much of a difference. The chosen commit is from 2019, SDIO interrupt support has been added just recently, and regarding MMC/SD it seems no problems caused by edge-triggered interrupts are known.

I understand, but the Fixes tag must reflect what commit introduced the breakage, so either keep a single patch but list all commits introducing the MMC, SD & SDIO nodes on the 3 families, or split in 3 and specify the commit introducing the MMC, SD & SDIO node on each family.

I'll prefer the later.

Quoted 7 lines
Quoted 5 lines

If the patch isn't applicable for older kernels, it doesn't matter as the stable team will only apply the fix on a tree if it applies and builds.
If you target an older release you can submit them a patch reworked to apply correctly if the original patch is already only Linus master tree.

Do you need a revert for the current "TEST"-annotated commit in linux-next as part of the series?

No need, I'll remove it from for-next.

Neil

Quoted 18 lines
Quoted 16 lines

And don't forget adding the Tested-by tags.

Thanks,
Neil

Quoted 9 lines
Quoted 3 lines

If the test doesn't report any breakage, I'll probably ask you that.

Sure.

Quoted 2 lines

Neil

Heiner

Heiner

#11 lore raw

[snip]

I’m running 6.1.11 with the SDIO interrupts patch reverted and all has been stable on the fleet of boxes/boards I do regular testing with (GXBB, GXL, GXM, and G12B) including a GXL/S905D box with QCA9337 SDIO module (not Broadcom):

dmesg | grep mmc:

[    0.367445] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    0.367585] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    0.438023] mmc0: new high speed SDHC card at address aaaa
[    0.439588] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    0.445490]  mmcblk0: p1 p2
[    0.467743] mmc1: new HS200 MMC card at address 0001
[    0.469224] mmcblk1: mmc1:0001 8GME4R 7.28 GiB 
[    0.473984] mmcblk1boot0: mmc1:0001 8GME4R 4.00 MiB 
[    0.477618] mmcblk1boot1: mmc1:0001 8GME4R 4.00 MiB 
[    0.481144] mmcblk1rpmb: mmc1:0001 8GME4R 512 KiB, chardev (242:0)
[    1.241005] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq
[    1.315526] mmc2: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[    1.325778] mmc2: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[    1.330215] mmc2: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[    1.331121] mmc2: queuing unknown CIS tuple 0x14 [] (0 bytes)
[    1.334849] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[    2.151829] fsck: /dev/mmcblk0p1: 174 files, 16383/65501 clusters
[    3.027147] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[   11.436461] ath10k_sdio mmc2:0001:1: qca9377 hw1.1 sdio target 0x05020001 chip_id 0x00000000 sub 0000:0000
[   11.436498] ath10k_sdio mmc2:0001:1: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   11.437107] ath10k_sdio mmc2:0001:1: firmware ver WLAN.TF.1.1.1-00061-QCATFSWPZ-1 api 5 features ignore-otp crc32 7746e551
[   11.637668] ath10k_sdio mmc2:0001:1: failed to fetch board data for bus=sdio,vendor=0271,device=0701,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9377/hw1.0/board-2.bin
[   11.662008] ath10k_sdio mmc2:0001:1: board_file api 1 bmi_id N/A crc32 544289f7
[   13.058331] meson-gx-mmc d0070000.mmc: unaligned sg offset 76, disabling descriptor DMA for transfer
[   13.113495] ath10k_sdio mmc2:0001:1: htt-ver 3.32 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   13.208767] mmc2: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[   13.218831] mmc2: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[   13.223276] mmc2: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[   13.224178] mmc2: queuing unknown CIS tuple 0x14 [] (0 bytes)

I have working WiFi and the connection is stable enough for Kodi to stream 1080p movies over SMB from a NAS several rooms away.

After the 3x patches landed this morning I’ve reverted the revert (restoring SDIO interrupts) and run testing. I see no issues with the Broadcom based devices, but the QCA9337 box throws mmc2 errors and I lose ath10k_sdio WiFi:

[    0.367531] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    0.370721] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    0.443723] mmc0: new high speed SDHC card at address aaaa
[    0.445327] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    0.451643]  mmcblk0: p1 p2
[    0.467863] mmc1: new HS200 MMC card at address 0001
[    0.469371] mmcblk1: mmc1:0001 8GME4R 7.28 GiB 
[    0.473818] mmcblk1boot0: mmc1:0001 8GME4R 4.00 MiB 
[    0.477483] mmcblk1boot1: mmc1:0001 8GME4R 4.00 MiB 
[    0.480965] mmcblk1rpmb: mmc1:0001 8GME4R 512 KiB, chardev (242:0)
[    1.237254] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq
[    1.311137] mmc2: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[    1.321494] mmc2: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[    1.326091] mmc2: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[    1.327011] mmc2: queuing unknown CIS tuple 0x14 [] (0 bytes)
[    1.330601] mmc2: new ultra high speed SDR104 SDIO card at address 0001
[    2.147468] fsck: /dev/mmcblk0p1: 174 files, 16383/65501 clusters
[    3.013209] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[   11.529545] ath10k_sdio mmc2:0001:1: qca9377 hw1.1 sdio target 0x05020001 chip_id 0x00000000 sub 0000:0000
[   11.529579] ath10k_sdio mmc2:0001:1: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   11.530109] ath10k_sdio mmc2:0001:1: firmware ver WLAN.TF.1.1.1-00061-QCATFSWPZ-1 api 5 features ignore-otp crc32 7746e551
[   11.709471] ath10k_sdio mmc2:0001:1: failed to fetch board data for bus=sdio,vendor=0271,device=0701,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA9377/hw1.0/board-2.bin
[   11.713685] ath10k_sdio mmc2:0001:1: board_file api 1 bmi_id N/A crc32 544289f7
[   13.030691] ath10k_sdio mmc2:0001:1: ignoring unsolicited htc ep0 event
[   13.145651] ath10k_sdio mmc2:0001:1: rx underflow interrupt error
[   14.148946] ath10k_sdio mmc2:0001:1: failed to receive control response completion, polling..
[   15.172824] ath10k_sdio mmc2:0001:1: ctl_resp never came in (-110)
[   15.172854] ath10k_sdio mmc2:0001:1: failed to connect to HTC: -110
[   15.175891] ath10k_sdio mmc2:0001:1: could not init core (-110)
[   15.248722] mmc2: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[   15.258621] mmc2: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[   15.262933] mmc2: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[   15.263802] mmc2: queuing unknown CIS tuple 0x14 [] (0 bytes)
[   15.266333] ath10k_sdio mmc2:0001:1: could not probe fw (-110)

I’ve had the impression for some time that this SDIO module is less tolerant of mmc things than the Broadcom modules, and that might be relevant. However I can reproduce this consistently by reverting one patch (reverting the revert of the SDIO interrupts addition).

Please let me know how I can assist with testing or diagnostics. It’s no trouble to give remote access to the box if that would help.

Christian

reviewer Tested-by on v2 1/1
#12 lore raw
In reply to Heiner Kallweit
Quoted 6 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Quoted 7 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

On the vim3:

Thanks a lot for this !

Quoted 92 lines

---
v2:
- apply the fix also to meson-axg
- apply the fix to all host controller instances

---
 arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 4 ++--
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 +++---
 arch/arm64/boot/dts/amlogic/meson-gx.dtsi         | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -2
index ed895fb32..a6a3095de 100644
@@ -1886,7 +1886,7 @@ apb: bus@ffe00000 {
 			sd_emmc_b: mmc@5000 {
 				compatible = "amlogic,meson-axg-mmc";
 				reg = <0x0 0x5000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 				clocks = <&clkc CLKID_SD_EMMC_B>,
 					<&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -1898,7 +1898,7 @@ sd_emmc_b: mmc@5000 {
 			sd_emmc_c: mmc@7000 {
 				compatible = "amlogic,meson-axg-mmc";
 				reg = <0x0 0x7000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 				clocks = <&clkc CLKID_SD_EMMC_C>,
 					<&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +3 -3
index 6d7272b2c..13fdaba21 100644
@@ -2324,7 +2324,7 @@ uart_A: serial@24000 {
 		sd_emmc_a: mmc@ffe03000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe03000 0x0 0x800>;
-			interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_A>,
 				 <&clkc CLKID_SD_EMMC_A_CLK0>,
@@ -2336,7 +2336,7 @@ sd_emmc_a: mmc@ffe03000 {
 		sd_emmc_b: mmc@ffe05000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe05000 0x0 0x800>;
-			interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_B>,
 				 <&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -2348,7 +2348,7 @@ sd_emmc_b: mmc@ffe05000 {
 		sd_emmc_c: mmc@ffe07000 {
 			compatible = "amlogic,meson-axg-mmc";
 			reg = <0x0 0xffe07000 0x0 0x800>;
-			interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 			clocks = <&clkc CLKID_SD_EMMC_C>,
 				 <&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +3 -3
index e3c12e0be..5eed15035 100644
@@ -603,21 +603,21 @@ apb: apb@d0000000 {
 			sd_emmc_a: mmc@70000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x70000 0x0 0x800>;
-				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
 			sd_emmc_b: mmc@72000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x72000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 
 			sd_emmc_c: mmc@74000 {
 				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
 				reg = <0x0 0x74000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
 				status = "disabled";
 			};
 		};
reviewer Tested-by on v2 1/1
#13 lore raw
In reply to Heiner Kallweit
Quoted 7 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Quoted 7 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

Thanks Heiner!
This fixes the rtw88 SDIO wifi card for me on my SM1 SoC based X96 Air (Gbit variant) after commit 066ecde6d826 ("mmc: meson-gx: add SDIO interrupt support")

Best regards,
Martin

Tested-by on v2 1/1
#14 lore raw
In reply to Heiner Kallweit

hi,

Quoted 6 lines · Heiner Kallweit

The usage of edge-triggered interrupts lead to lost interrupts under load, see [0]. This was confirmed to be fixed by using level-triggered interrupts.
The report was about SDIO. However, as the host controller is the same for SD and MMC, apply the change to all mmc controller instances.

Quoted 7 lines

[0] https://www.spinics.net/lists/linux-mmc/msg73991.html

Fixes 1499218c80c9 ("arm64: dts: move common G12A & G12B modes to meson-g12-common.dtsi")

this fixes wifi issue on Radxa Zero/Zero2. thank you so much!

--
FUKAUMI Naoki

Quoted 92 lines

---
v2:
- apply the fix also to meson-axg
- apply the fix to all host controller instances

---
  arch/arm64/boot/dts/amlogic/meson-axg.dtsi        | 4 ++--
  arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 +++---
  arch/arm64/boot/dts/amlogic/meson-gx.dtsi         | 6 +++---
  3 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/amlogic/meson-axg.dtsi +2 -2
index ed895fb32..a6a3095de 100644
@@ -1886,7 +1886,7 @@ apb: bus@ffe00000 {
  			sd_emmc_b: mmc@5000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x5000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_B>,
  					<&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -1898,7 +1898,7 @@ sd_emmc_b: mmc@5000 {
  			sd_emmc_c: mmc@7000 {
  				compatible = "amlogic,meson-axg-mmc";
  				reg = <0x0 0x7000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  				clocks = <&clkc CLKID_SD_EMMC_C>,
  					<&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +3 -3
index 6d7272b2c..13fdaba21 100644
@@ -2324,7 +2324,7 @@ uart_A: serial@24000 {
  		sd_emmc_a: mmc@ffe03000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe03000 0x0 0x800>;
-			interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_A>,
  				 <&clkc CLKID_SD_EMMC_A_CLK0>,
@@ -2336,7 +2336,7 @@ sd_emmc_a: mmc@ffe03000 {
  		sd_emmc_b: mmc@ffe05000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe05000 0x0 0x800>;
-			interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_B>,
  				 <&clkc CLKID_SD_EMMC_B_CLK0>,
@@ -2348,7 +2348,7 @@ sd_emmc_b: mmc@ffe05000 {
  		sd_emmc_c: mmc@ffe07000 {
  			compatible = "amlogic,meson-axg-mmc";
  			reg = <0x0 0xffe07000 0x0 0x800>;
-			interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  			clocks = <&clkc CLKID_SD_EMMC_C>,
  				 <&clkc CLKID_SD_EMMC_C_CLK0>,
arch/arm64/boot/dts/amlogic/meson-gx.dtsi +3 -3
index e3c12e0be..5eed15035 100644
@@ -603,21 +603,21 @@ apb: apb@d0000000 {
  			sd_emmc_a: mmc@70000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x70000 0x0 0x800>;
-				interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
 
  			sd_emmc_b: mmc@72000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x72000 0x0 0x800>;
-				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
 
  			sd_emmc_c: mmc@74000 {
  				compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  				reg = <0x0 0x74000 0x0 0x800>;
-				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
+				interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
  				status = "disabled";
  			};
  		};