rockchip: rk35xx: Fix writing to eMMC
Subsystems (2)
cover rockchip: rk35xx: Fix writing to eMMC
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This series fixes this issue by changing RK356x and RK3588 boards to prefer use of the more reliably HS200 mode.
This series depend on the series "rockchip: rk35xx: Sync device tree with linux v6.8-rc1" [1].
[1] https://patchwork.ozlabs.org/cover/1891669/
Jonas Karlman (3):
rockchip: rk35xx: Remove use of eMMC DDR52 mode
rockchip: rk356x: Enable eMMC HS200 mode
rockchip: rk3588: Enable eMMC HS200 mode
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 - arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 1 - arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 1 - arch/arm/dts/rk3566-soquartz-u-boot.dtsi | 1 - arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi | 1 - arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 1 - arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 1 - arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 1 - arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 - arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 1 - arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 - arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 1 - configs/anbernic-rgxx3-rk3566_defconfig | 2 ++ configs/bpi-r2-pro-rk3568_defconfig | 2 ++ configs/evb-rk3568_defconfig | 2 ++ configs/evb-rk3588_defconfig | 2 ++ configs/lubancat-2-rk3568_defconfig | 2 ++ configs/nanopc-t6-rk3588_defconfig | 2 ++ configs/neu6a-io-rk3588_defconfig | 2 ++ configs/neu6b-io-rk3588_defconfig | 2 ++ configs/odroid-m1-rk3568_defconfig | 2 ++ configs/orangepi-5-plus-rk3588_defconfig | 2 ++ configs/quartz64-a-rk3566_defconfig | 2 ++ configs/quartz64-b-rk3566_defconfig | 2 ++ configs/quartzpro64-rk3588_defconfig | 2 ++ configs/radxa-cm3-io-rk3566_defconfig | 2 ++ configs/rock-3a-rk3568_defconfig | 2 ++ configs/rock5a-rk3588s_defconfig | 2 ++ configs/rock5b-rk3588_defconfig | 2 ++ configs/soquartz-blade-rk3566_defconfig | 2 ++ configs/soquartz-cm4-rk3566_defconfig | 2 ++ configs/soquartz-model-a-rk3566_defconfig | 2 ++ configs/turing-rk1-rk3588_defconfig | 2 ++ 33 files changed, 42 insertions(+), 12 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/3 rockchip: rk35xx: Remove use of eMMC DDR52 mode
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
Fix this by removing the mmc-ddr-1_8v prop from sdhci nodes.
--- arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 - arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 1 - arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 1 - arch/arm/dts/rk3566-soquartz-u-boot.dtsi | 1 - arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi | 1 - arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 1 - arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 1 - arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 1 - arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 - arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 1 - arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 - arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 1 - 12 files changed, 12 deletions(-)
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +0 -1
@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +0 -1
@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };
arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi +0 -1
@@ -7,5 +7,4 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; };
arch/arm/dts/rk3566-soquartz-u-boot.dtsi +0 -1
@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };
arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi +0 -1
@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi +0 -1
@@ -14,7 +14,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +0 -1
@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;
arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi +0 -1
@@ -16,7 +16,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +0 -1
@@ -20,7 +20,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0 -1
@@ -31,7 +31,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0 -1
@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };
arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0 -1
@@ -7,6 +7,5 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };
Signature · 1 line
2.43.0
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Thanks,
Eugen
Quoted 159 lines
Fix this by removing the mmc-ddr-1_8v prop from sdhci nodes.
Signed-off-by Jonas Karlman <[email protected]>--- arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 - arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 1 - arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 1 - arch/arm/dts/rk3566-soquartz-u-boot.dtsi | 1 - arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi | 1 - arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 1 - arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 1 - arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 1 - arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 - arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 1 - arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 - arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 1 - 12 files changed, 12 deletions(-)arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +0
-1@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi +0
-1@@ -7,5 +7,4 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; };arch/arm/dts/rk3566-soquartz-u-boot.dtsi +0
-1@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi +0
-1@@ -14,7 +14,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi +0
-1@@ -16,7 +16,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +0
-1@@ -20,7 +20,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0
-1@@ -31,7 +31,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0
-1@@ -7,6 +7,5 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),
MMC DDR52 (52MHz) and HS200 (200MHz)
RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changing hs400_txclk_tapnum to 8
HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Regards,
Jonas
Quoted 22 lines
Thanks,
EugenQuoted 18 lines
Fix this by removing the mmc-ddr-1_8v prop from sdhci nodes.
Signed-off-by Jonas Karlman <[email protected]>--- arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 - arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 1 - arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 1 - arch/arm/dts/rk3566-soquartz-u-boot.dtsi | 1 - arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi | 1 - arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 1 - arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 1 - arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 1 - arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 - arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 1 - arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 - arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 1 - 12 files changed, 12 deletions(-)
[snip]
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Quoted 6 lines
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
My main mode of testing eMMC in U-Boot has been to enable following Kconfig options,
CONFIG_MMC_HS200_SUPPORT=yCONFIG_MMC_HS400_SUPPORT=yCONFIG_MMC_HS400_ES_SUPPORT=yCONFIG_MMC_SPEED_MODE_SET=y
and from U-Boot cli run following,
=> mmc rescan <mode> && mmc info && mmc read 10000000 2000 10000 => mmc rescan <mode> && mmc info && mmc write 20000000 4000 10000
for each of the modes below.
0 = MMC legacy
1 = MMC High Speed (26MHz)
3 = MMC High Speed (52MHz)
4 = MMC DDR52 (52MHz)
10 = HS200 (200MHz)
11 = HS400 (200MHz)
12 = HS400ES (200MHz)
on different boards and different eMMC modules.
Using some modes the read or write return ERROR instead of OK. When ERROR was reported a rescan or board reset was needed to test next mode.
Please also note that I have only tested in U-Boot, not in linux.
Quoted 5 lines
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
I can see now that my wording was very confusing.
Write for HS400/HS400ES mode only worked on RK3568 after modification to the driver, on RK3588 write always returned error for me.
So on RK3568 HS400 modes could be made work, on remaining SoCs there was issues.
Regards,
Jonas
Quoted 3 lines
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Jonas,
Quoted 70 lines · Jonas Karlman
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Quoted 6 lines
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
My main mode of testing eMMC in U-Boot has been to enable following
Kconfigoptions,
CONFIG_MMC_HS200_SUPPORT=yCONFIG_MMC_HS400_SUPPORT=yCONFIG_MMC_HS400_ES_SUPPORT=yCONFIG_MMC_SPEED_MODE_SET=yand from U-Boot cli run following,
=> mmc rescan <mode> && mmc info && mmc read 10000000 2000 10000 => mmc rescan <mode> && mmc info && mmc write 20000000 4000 10000
for each of the modes below.
0 = MMC legacy 1 = MMC High Speed (26MHz) 3 = MMC High Speed (52MHz) 4 = MMC DDR52 (52MHz) 10 = HS200 (200MHz) 11 = HS400 (200MHz) 12 = HS400ES (200MHz)
Quoted 7 lines
on different boards and different eMMC modules.
Using some modes the read or write return ERROR instead of OK. When ERROR was reported a rescan or board reset was needed to test next mode.
Please also note that I have only tested in U-Boot, not in linux.
Thanks for the tips on how to test these.
I have run the following commands on an RK3588 Jaguar (master branch + your v6.8-rc1 DTS sync patch series + Jaguar patch series):
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc read 10000000 2000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc read at each of the 7 supported modes. The result is:
1 fail in HS200, 2 fails in HS400, the rest passes just fine.
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc write 20000000 4000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc write at each of the 7 supported modes. The result is:
20 fails in DDR52, 2 fails in HS200, the rest passes just fine.
So it seems DDR52, HS200 and HS400 aren't stable on my board, but HS400ES somehow is (which is enabled in our defconfig).
I'll check if there's an easier way to test the Linux kernel than rebooting with a newer DTB between every try.
Cheers,
Quentin
Quoted 21 lines
Quoted 5 lines
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
I can see now that my wording was very confusing.
Write for HS400/HS400ES mode only worked on RK3568 after modification to the driver, on RK3588 write always returned error for me.
So on RK3568 HS400 modes could be made work, on remaining SoCs there was issues.
Regards,
JonasQuoted 3 lines
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Quentin,
Quoted 86 lines · Quentin Schulz
Hi Jonas,
Quoted 70 lines · Jonas Karlman
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Quoted 6 lines
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
My main mode of testing eMMC in U-Boot has been to enable following
Kconfigoptions,
CONFIG_MMC_HS200_SUPPORT=yCONFIG_MMC_HS400_SUPPORT=yCONFIG_MMC_HS400_ES_SUPPORT=yCONFIG_MMC_SPEED_MODE_SET=yand from U-Boot cli run following,
=> mmc rescan <mode> && mmc info && mmc read 10000000 2000 10000 => mmc rescan <mode> && mmc info && mmc write 20000000 4000 10000
for each of the modes below.
0 = MMC legacy 1 = MMC High Speed (26MHz) 3 = MMC High Speed (52MHz) 4 = MMC DDR52 (52MHz) 10 = HS200 (200MHz) 11 = HS400 (200MHz) 12 = HS400ES (200MHz)Quoted 7 lines
on different boards and different eMMC modules.
Using some modes the read or write return ERROR instead of OK. When ERROR was reported a rescan or board reset was needed to test next mode.
Please also note that I have only tested in U-Boot, not in linux.
Thanks for the tips on how to test these.
I have run the following commands on an RK3588 Jaguar (master branch + your v6.8-rc1 DTS sync patch series + Jaguar patch series):
Quoted 7 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc read 10000000 2000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc read at each of the 7 supported modes. The result is:
1 fail in HS200, 2 fails in HS400, the rest passes just fine.
I am wondering if your HS200 fails could be because MMC DDR52 (52MHz) was being tested prior to the HS200 mode.
What happens if you exclude the mmc-ddr-1_8v prop and mode 4 in your test loops?
I did some quick re-test on a ROCK 5A (rk3588s) and ROCK 5B (rk3588) with DDR52 removed and could only see very few read fails with HS400.
Quoted 11 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc write 20000000 4000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc write at each of the 7 supported modes. The result is:
20 fails in DDR52, 2 fails in HS200, the rest passes just fine.So it seems DDR52, HS200 and HS400 aren't stable on my board, but HS400ES somehow is (which is enabled in our defconfig).
Please re-test with DDR52 mode skipped and see if you get any other result for HS200 mode.
And you are correct, HR400ES seem to also be working fine on my RK3588 boards. I can see now that on my old testing commit [1] I only mention and drop the hs400 mode and not the hs400es mode for rk3588. Could also be the change to emmc_data_strobe pinctrl that got synced from linux v6.7 that help improve HR400ES mode results.
From a very quick re-test on two boards with two different emmc modules I could only see a few "Select HS400 failed -70" lines being reported when testing read and/or write using your test loops (with a few modes skipped and smaller amount of data to read/write). Remaining modes seem to be working okay.
[1] https://github.com/Kwiboo/u-boot-rockchip/commit/cb1521aea8dee730bddcc5772afa28aa71fc69f9
[2] https://lore.kernel.org/all/[email protected]/
Regards,
Jonas
Quoted 28 lines
I'll check if there's an easier way to test the Linux kernel than rebooting with a newer DTB between every try.
Cheers,
QuentinQuoted 21 lines
Quoted 5 lines
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
I can see now that my wording was very confusing.
Write for HS400/HS400ES mode only worked on RK3568 after modification to the driver, on RK3588 write always returned error for me.
So on RK3568 HS400 modes could be made work, on remaining SoCs there was issues.
Regards,
JonasQuoted 3 lines
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Jonas,
Quoted 97 lines · Jonas Karlman
Hi Quentin,
Quoted 86 lines · Quentin Schulz
Hi Jonas,
Quoted 70 lines · Jonas Karlman
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Quoted 6 lines
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
My main mode of testing eMMC in U-Boot has been to enable following
Kconfigoptions,
CONFIG_MMC_HS200_SUPPORT=yCONFIG_MMC_HS400_SUPPORT=yCONFIG_MMC_HS400_ES_SUPPORT=yCONFIG_MMC_SPEED_MODE_SET=yand from U-Boot cli run following,
=> mmc rescan <mode> && mmc info && mmc read 10000000 2000 10000 => mmc rescan <mode> && mmc info && mmc write 20000000 4000 10000
for each of the modes below.
0 = MMC legacy 1 = MMC High Speed (26MHz) 3 = MMC High Speed (52MHz) 4 = MMC DDR52 (52MHz) 10 = HS200 (200MHz) 11 = HS400 (200MHz) 12 = HS400ES (200MHz)Quoted 7 lines
on different boards and different eMMC modules.
Using some modes the read or write return ERROR instead of OK. When ERROR was reported a rescan or board reset was needed to test next mode.
Please also note that I have only tested in U-Boot, not in linux.
Thanks for the tips on how to test these.
I have run the following commands on an RK3588 Jaguar (master branch + your v6.8-rc1 DTS sync patch series + Jaguar patch series):
Quoted 7 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc read 10000000 2000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc read at each of the 7 supported modes. The result is:
1 fail in HS200, 2 fails in HS400, the rest passes just fine.
Quoted 9 lines
I am wondering if your HS200 fails could be because MMC DDR52 (52MHz) was being tested prior to the HS200 mode.
What happens if you exclude the mmc-ddr-1_8v prop and mode 4 in your test loops?
I did some quick re-test on a ROCK 5A (rk3588s) and ROCK 5B (rk3588) with DDR52 removed and could only see very few read fails with HS400.
OK so I did something completely different instead. rescan in one mode, do a read, power cycle, rescan in another mode, do a read, power cycle, etc....
All tests passed.
Then...
Quoted 5 lines
Quoted 5 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc write 20000000 4000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Quoted 7 lines
Quoted 6 lines
Which is 20 iterations of an mmc write at each of the 7 supported modes. The result is:
20 fails in DDR52, 2 fails in HS200, the rest passes just fine.So it seems DDR52, HS200 and HS400 aren't stable on my board, but HS400ES somehow is (which is enabled in our defconfig).
I did the same for the write:
rescan in one mode, do a write, power cycle, rescan in another mode, do a write, power cycle, etc....
And this brought surprising results:
EVERYTHING except HS200, HS400 and HS400ES failed. Like not even a block was written.
Now, that was not really what I remember happening yesterday. So it seems that the modes before HS200 may rely somehow on previous rescans/reads.
So I tested this theory by just running a single mmc read of one block after doing a rescan and before doing a write. This didn't help.
Now, I forced a HS400ES read before doing writes at modes below HS200 (excluded) and they didn't work. However, once I did a single block read in HS400 instead of HS400ES, the writes in those same modes started to work (except DDR52).
They also worked when doing a single block read in HS200.
For all those tests, I still had mmc-ddr-1_8v in my DT.
So, I would say everything that isn't HS200+ is broken on RK3588? Did the modes below DDR52 work for you?
Cheers,
Quentin
Quoted 50 lines
Please re-test with DDR52 mode skipped and see if you get any other result for HS200 mode.
And you are correct, HR400ES seem to also be working fine on my RK3588 boards. I can see now that on my old testing commit [1] I only mention and drop the hs400 mode and not the hs400es mode for rk3588. Could also be the change to
emmc_data_strobepinctrl that got synced from linux v6.7 that help improve HR400ES mode results.From a very quick re-test on two boards with two different emmc modules
I could only see a few "Select HS400 failed -70" lines being reported when testing read and/or write using your test loops (with a few modes skipped and smaller amount of data to read/write). Remaining modes seem to be working okay.[1] https://github.com/Kwiboo/u-boot-rockchip/commit/cb1521aea8dee730bddcc5772afa28aa71fc69f9
[2] https://lore.kernel.org/all/[email protected]/Regards,
JonasQuoted 28 lines
I'll check if there's an easier way to test the Linux kernel than rebooting with a newer DTB between every try.
Cheers,
QuentinQuoted 21 lines
Quoted 5 lines
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
I can see now that my wording was very confusing.
Write for HS400/HS400ES mode only worked on RK3568 after modification to the driver, on RK3588 write always returned error for me.
So on RK3568 HS400 modes could be made work, on remaining SoCs there was issues.
Regards,
JonasQuoted 3 lines
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Hi Jonas,
Quoted 56 lines · Quentin Schulz
Hi Jonas,
Quoted 53 lines · Jonas Karlman
Hi Quentin,
Quoted 50 lines · Quentin Schulz
Hi Jonas,
Quoted 47 lines · Jonas Karlman
Hi Quentin,
Quoted 43 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz), MMC DDR52 (52MHz) and HS200 (200MHz) RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
OK so just tested this in Linux kernel 5.10 from Rockchip and v6.6.7 with some patches for rk3588 (and the jaguar dts). I ran the following tests:
$ fio --filename=/dev/mmcblk0 --rw=read --direct=1 --name=fioBench --bs=1M --ioengine=libaio --cmdprio_percentage=100 --output-format=json --allow_file_create=0 --time_based=1 --runtime=60 --ioscheduler=none
$ fio --filename=/dev/mmcblk0 --rw=write --direct=1 --name=fioBench --bs=1M --ioengine=libaio --cmdprio_percentage=100 --output-format=json --allow_file_create=0 --time_based=1 --runtime=60 --ioscheduler=none;
It worked in HS200, HS400, HS400ES without any issue. It worked in high-speed.
It was a bit "difficult" to get the kernel to switch to DDR52 because even with the property gone from the DTB it would detect the card as HS200. I had to comment out https://elixir.bootlin.com/linux/latest/source/drivers/mmc/host/sdhci.c#L4558 to force it into DDR52 (or what I assume to be DDR52 :) the kernel prints: "mmc0: new DDR MMC card at address 0001" ). It failed reads in that mode so didn't even test writes, but not sure if it's a fair test with the aforementioned line commented out. I see it's also there in the SDHCI implementation in U-Boot, so maybe it's just that mmc rescan 4 doesn't actually make much sense to test since I would assume it would just detect it as HS200 even without the DT property? (or maybe something really is missing there in the SDHCI logic?).
I couldn't quickly find out how to put the eMMC into non high-speed mode so gave up on that.
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
Quoted 14 lines · Quentin Schulz
OK so just tested this in Linux kernel 5.10 from Rockchip and v6.6.7 with some patches for rk3588 (and the jaguar dts). I ran the following tests:
$ fio --filename=/dev/mmcblk0 --rw=read --direct=1 --name=fioBench --bs=1M --ioengine=libaio --cmdprio_percentage=100 --output-format=json --allow_file_create=0 --time_based=1 --runtime=60 --ioscheduler=none$ fio --filename=/dev/mmcblk0 --rw=write --direct=1 --name=fioBench --bs=1M --ioengine=libaio --cmdprio_percentage=100 --output-format=json --allow_file_create=0 --time_based=1 --runtime=60 --ioscheduler=none;
Quoted 8 lines
It worked in HS200, HS400, HS400ES without any issue. It worked in high-speed.
It was a bit "difficult" to get the kernel to switch to DDR52 because even with the property gone from the DTB it would detect the card as HS200. I had to comment out
https://elixir.bootlin.com/linux/latest/source/drivers/mmc/host/sdhci.c#L4558
to force it into DDR52 (or what I assume to be DDR52 :) the kernel
prints: "mmc0: new DDR MMC card at address 0001" ).
As a note, the mode selection has been buggy like that for a while. Fixing that in the kernel drivers is already on my TODO list.
Quoted 10 lines
It failed reads in
that mode so didn't even test writes, but not sure if it's a fair test with the aforementioned line commented out. I see it's also there in the SDHCI implementation in U-Boot, so maybe it's just that mmc rescan 4 doesn't actually make much sense to test since I would assume it would just detect it as HS200 even without the DT property? (or maybe something really is missing there in the SDHCI logic?).I couldn't quickly find out how to put the eMMC into non high-speed mode so gave up on that.
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
In reply to Quentin SchulzHi Quentin,
Quoted 133 lines · Quentin Schulz
Hi Jonas,
Quoted 97 lines · Jonas Karlman
Hi Quentin,
Quoted 86 lines · Quentin Schulz
Hi Jonas,
Quoted 70 lines · Jonas Karlman
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Jonas,
Quoted 24 lines · Jonas Karlman
Hi Eugen,
Quoted 10 lines · Eugen Hristev
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
This is related to the old issue I encountered last year with mmc write?
Yes, I think it is.
I did some testing on RK3566/RK3568/RK3588S/RK3588 boards with different eMMC modules with following result:
Read seem to work with all enabled modes:
RK3566: MMC legacy, MMC High Speed (26MHz), MMC High Speed (52MHz),MMC DDR52 (52MHz) and HS200 (200MHz)RK3568/RK3588S/RK3588: all above + HS400 (200MHz) and HS400ES (200MHz)
Quoted 9 lines
However, write had issues with some of the modes:
MMC DDR52 (52MHz): all RK35xx
HS400/HS400ES: only on RK3568 after changinghs400_txclk_tapnumto 8HS200 seem to be the most stable write speed that worked on all SoCs.
So, dropping MMC DDR52 (52MHz) and enable use of HS200 (200MHz) seem to be the best option to get speedy and working read and write eMMC.
Quoted 6 lines
1) we have this enabled on RK3588 Jaguar in upstream Linux... I may have improperly tested it then, would you mind sharing how you tested this mode on RK3588 so I can reproduce this and fix it on our product if we're impacted? I assume because we have HS200/HS400/HS400-ES enabled, DDR52 would never be used? (our eMMC is soldered and support the former modes).
My main mode of testing eMMC in U-Boot has been to enable following
Kconfigoptions,
CONFIG_MMC_HS200_SUPPORT=yCONFIG_MMC_HS400_SUPPORT=yCONFIG_MMC_HS400_ES_SUPPORT=yCONFIG_MMC_SPEED_MODE_SET=yand from U-Boot cli run following,
=> mmc rescan <mode> && mmc info && mmc read 10000000 2000 10000 => mmc rescan <mode> && mmc info && mmc write 20000000 4000 10000
for each of the modes below.
0 = MMC legacy 1 = MMC High Speed (26MHz) 3 = MMC High Speed (52MHz) 4 = MMC DDR52 (52MHz) 10 = HS200 (200MHz) 11 = HS400 (200MHz) 12 = HS400ES (200MHz)Quoted 7 lines
on different boards and different eMMC modules.
Using some modes the read or write return ERROR instead of OK. When ERROR was reported a rescan or board reset was needed to test next mode.
Please also note that I have only tested in U-Boot, not in linux.
Thanks for the tips on how to test these.
I have run the following commands on an RK3588 Jaguar (master branch + your v6.8-rc1 DTS sync patch series + Jaguar patch series):
Quoted 7 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc read 10000000 2000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Which is 20 iterations of an mmc read at each of the 7 supported modes. The result is:
1 fail in HS200, 2 fails in HS400, the rest passes just fine.Quoted 9 lines
I am wondering if your HS200 fails could be because MMC DDR52 (52MHz) was being tested prior to the HS200 mode.
What happens if you exclude the mmc-ddr-1_8v prop and mode 4 in your test loops?
I did some quick re-test on a ROCK 5A (rk3588s) and ROCK 5B (rk3588) with DDR52 removed and could only see very few read fails with HS400.
OK so I did something completely different instead. rescan in one mode, do a read, power cycle, rescan in another mode, do a read, power cycle, etc....
All tests passed.
Then...
Quoted 5 lines
Quoted 5 lines
=> for j in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do for i in 0 1 3 4 10 11 12; do mmc rescan $i && mmc write 20000000 4000 100000; if test $? -ne 0; then echo $i FAILED; fi; done; done
Quoted 7 lines
Quoted 6 lines
Which is 20 iterations of an mmc write at each of the 7 supported modes. The result is:
20 fails in DDR52, 2 fails in HS200, the rest passes just fine.So it seems DDR52, HS200 and HS400 aren't stable on my board, but HS400ES somehow is (which is enabled in our defconfig).
I did the same for the write:
Quoted 7 lines
rescan in one mode, do a write, power cycle, rescan in another mode, do a write, power cycle, etc....
And this brought surprising results:
EVERYTHING except HS200, HS400 and HS400ES failed. Like not even a block was written.
I now vaguely remember something similar from when I tested back in November, however during re-testing before posting this series I only tested without a full power reset between different modes :-)
Quoted 8 lines
Now, that was not really what I remember happening yesterday. So it seems that the modes before HS200 may rely somehow on previous rescans/reads.
So I tested this theory by just running a single mmc read of one block after doing a rescan and before doing a write. This didn't help.
Quoted 6 lines
Now, I forced a HS400ES read before doing writes at modes below HS200 (excluded) and they didn't work. However, once I did a single block read in HS400 instead of HS400ES, the writes in those same modes started to work (except DDR52).
They also worked when doing a single block read in HS200.
Thanks for testing this more thoroughly!
Quoted 5 lines
For all those tests, I still had mmc-ddr-1_8v in my DT.
So, I would say everything that isn't HS200+ is broken on RK3588? Did the modes below DDR52 work for you?
I re-tested booting of a SD-card on RK3588 and found out following:
- Write in DDR52 mode never works, hence this patch
- Read works in all modes directly after a power reset
- First write in modes that isn't HS200+ fails => mmc rescan 0 && mmc write 2000000 4000 1 # ERROR
- Second+ write in same mode that just failed works => mmc write 2000000 4000 1 # OK
- After a rescan to HS200 mode (probably any HS200+) first write in modes that isn't HS200+ no longer fails until power reset => mmc rescan 10 && mmc rescan 0 && mmc write 2000000 4000 1 # OK
- When rockchip_sdhci_execute_tuning() is empty, changing to HS200 mode no longer "fixes" the write for slower modes
=> mmc rescan 10 && mmc rescan 0 && mmc write 2000000 4000 1 # ERROR
- Trying to execute tuning for modes slower then HS200 fails as expected
So based on testing I would say that any mode that isn't HS200+ is only semi-broken because writing seem to start working after a second try. And after tuning has been executed in HS200+ any other mode seem to work.
Maybe we should enable the HS200 options for ROCKCHIP_RK3588 by default instead of explicitly enabling it in defconfig for boards that have MMC_SDHCI_ROCKCHIP enabled?
drivers/mmc/Kconfig +2 -0
@@ -665,6 +665,8 @@ config MMC_SDHCI_ROCKCHIP depends on ARCH_ROCKCHIP depends on DM_MMC && BLK depends on MMC_SDHCI + imply MMC_HS200_SUPPORT if ROCKCHIP_RK3588 + imply SPL_MMC_HS200_SUPPORT if ROCKCHIP_RK3588 help Support for Arasan SDHCI host controller on Rockchip ARM SoCs platform
Regards,
Jonas
Quoted 54 lines
Cheers,
QuentinQuoted 50 lines
Please re-test with DDR52 mode skipped and see if you get any other result for HS200 mode.
And you are correct, HR400ES seem to also be working fine on my RK3588 boards. I can see now that on my old testing commit [1] I only mention and drop the hs400 mode and not the hs400es mode for rk3588. Could also be the change to
emmc_data_strobepinctrl that got synced from linux v6.7 that help improve HR400ES mode results.From a very quick re-test on two boards with two different emmc modules
I could only see a few "Select HS400 failed -70" lines being reported when testing read and/or write using your test loops (with a few modes skipped and smaller amount of data to read/write). Remaining modes seem to be working okay.[1] https://github.com/Kwiboo/u-boot-rockchip/commit/cb1521aea8dee730bddcc5772afa28aa71fc69f9
[2] https://lore.kernel.org/all/[email protected]/Regards,
JonasQuoted 28 lines
I'll check if there's an easier way to test the Linux kernel than rebooting with a newer DTB between every try.
Cheers,
QuentinQuoted 21 lines
Quoted 5 lines
2) Why are we not enabling HS400/HS400-ES for RK3588 boards? You seem to be saying there are issues with HS400/HS400-ES on RK3568 but you didn't mention the status for RK3588. Did I misunderstand the last sentence? Can you please rephrase in that case?
I can see now that my wording was very confusing.
Write for HS400/HS400ES mode only worked on RK3568 after modification to the driver, on RK3588 write always returned error for me.
So on RK3568 HS400 modes could be made work, on remaining SoCs there was issues.
Regards,
JonasQuoted 3 lines
Cheers,
Quentin
Re: [PATCH 1/3] rockchip: rk35xx: Remove use of eMMC DDR52 mode
In reply to Jonas KarlmanQuoted 6 lines · Jonas Karlman
Writing to eMMC using DDR52 mode does not work reliably or at all on RK356x and RK3588 boards.
Fix this by removing the mmc-ddr-1_8v prop from sdhci nodes.
Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 156 lines
--- arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 1 - arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 1 - arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 1 - arch/arm/dts/rk3566-soquartz-u-boot.dtsi | 1 - arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi | 1 - arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi | 1 - arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 1 - arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi | 1 - arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 - arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 1 - arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 1 - arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi | 1 - 12 files changed, 12 deletions(-)arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +0
-1@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi +0
-1@@ -7,5 +7,4 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; };arch/arm/dts/rk3566-soquartz-u-boot.dtsi +0
-1@@ -4,7 +4,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; pinctrl-names = "default"; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; };arch/arm/dts/rk3568-lubancat-2-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;arch/arm/dts/rk3568-nanopi-r5s-u-boot.dtsi +0
-1@@ -14,7 +14,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-radxa-e25-u-boot.dtsi +0
-1@@ -16,7 +16,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +0
-1@@ -20,7 +20,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +0
-1@@ -31,7 +31,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +0
-1@@ -8,7 +8,6 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };arch/arm/dts/rk3588s-rock-5a-u-boot.dtsi +0
-1@@ -7,6 +7,5 @@ &sdhci { cap-mmc-highspeed; - mmc-ddr-1_8v; mmc-hs200-1_8v; };
PATCH 2/3 rockchip: rk356x: Enable eMMC HS200 mode
In reply to Jonas KarlmanWriting to eMMC using HS200 mode work more reliably then other modes on RK356x boards.
Enable MMC_HS200_SUPPORT Kconfig option to prefer use of HS200 mode.
--- configs/anbernic-rgxx3-rk3566_defconfig | 2 ++ configs/bpi-r2-pro-rk3568_defconfig | 2 ++ configs/evb-rk3568_defconfig | 2 ++ configs/lubancat-2-rk3568_defconfig | 2 ++ configs/odroid-m1-rk3568_defconfig | 2 ++ configs/quartz64-a-rk3566_defconfig | 2 ++ configs/quartz64-b-rk3566_defconfig | 2 ++ configs/radxa-cm3-io-rk3566_defconfig | 2 ++ configs/rock-3a-rk3568_defconfig | 2 ++ configs/soquartz-blade-rk3566_defconfig | 2 ++ configs/soquartz-cm4-rk3566_defconfig | 2 ++ configs/soquartz-model-a-rk3566_defconfig | 2 ++ 12 files changed, 24 insertions(+)
configs/anbernic-rgxx3-rk3566_defconfig +2 -0
@@ -61,6 +61,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/bpi-r2-pro-rk3568_defconfig +2 -0
@@ -60,6 +60,8 @@ CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y CONFIG_SUPPORT_EMMC_BOOT=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/evb-rk3568_defconfig +2 -0
@@ -54,6 +54,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/lubancat-2-rk3568_defconfig +2 -0
@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/odroid-m1-rk3568_defconfig +2 -0
@@ -72,6 +72,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/quartz64-a-rk3566_defconfig +2 -0
@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/quartz64-b-rk3566_defconfig +2 -0
@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/radxa-cm3-io-rk3566_defconfig +2 -0
@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/rock-3a-rk3568_defconfig +2 -0
@@ -68,6 +68,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/soquartz-blade-rk3566_defconfig +2 -0
@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/soquartz-cm4-rk3566_defconfig +2 -0
@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/soquartz-model-a-rk3566_defconfig +2 -0
@@ -63,6 +63,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
Signature · 1 line
2.43.0
Re: [PATCH 2/3] rockchip: rk356x: Enable eMMC HS200 mode
Quoted 6 lines · Jonas Karlman
Writing to eMMC using HS200 mode work more reliably then other modes on RK356x boards.
Enable
MMC_HS200_SUPPORTKconfigoption to prefer use of HS200 mode.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 171 lines
--- configs/anbernic-rgxx3-rk3566_defconfig | 2 ++ configs/bpi-r2-pro-rk3568_defconfig | 2 ++ configs/evb-rk3568_defconfig | 2 ++ configs/lubancat-2-rk3568_defconfig | 2 ++ configs/odroid-m1-rk3568_defconfig | 2 ++ configs/quartz64-a-rk3566_defconfig | 2 ++ configs/quartz64-b-rk3566_defconfig | 2 ++ configs/radxa-cm3-io-rk3566_defconfig | 2 ++ configs/rock-3a-rk3568_defconfig | 2 ++ configs/soquartz-blade-rk3566_defconfig | 2 ++ configs/soquartz-cm4-rk3566_defconfig | 2 ++ configs/soquartz-model-a-rk3566_defconfig | 2 ++ 12 files changed, 24 insertions(+)configs/anbernic-rgxx3-rk3566_defconfig +2
-0@@ -61,6 +61,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/bpi-r2-pro-rk3568_defconfig +2
-0@@ -60,6 +60,8 @@ CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y CONFIG_SUPPORT_EMMC_BOOT=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/evb-rk3568_defconfig +2
-0@@ -54,6 +54,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/lubancat-2-rk3568_defconfig +2
-0@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/odroid-m1-rk3568_defconfig +2
-0@@ -72,6 +72,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartz64-a-rk3566_defconfig +2
-0@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartz64-b-rk3566_defconfig +2
-0@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/radxa-cm3-io-rk3566_defconfig +2
-0@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock-3a-rk3568_defconfig +2
-0@@ -68,6 +68,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-blade-rk3566_defconfig +2
-0@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-cm4-rk3566_defconfig +2
-0@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-model-a-rk3566_defconfig +2
-0@@ -63,6 +63,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
Re: [PATCH 2/3] rockchip: rk356x: Enable eMMC HS200 mode
In reply to Jonas KarlmanQuoted 7 lines · Jonas Karlman
Writing to eMMC using HS200 mode work more reliably then other modes on RK356x boards.
Enable
MMC_HS200_SUPPORTKconfigoption to prefer use of HS200 mode.Signed-off-by Jonas Karlman <[email protected]>
BR,
Weizhao
Quoted 174 lines
--- configs/anbernic-rgxx3-rk3566_defconfig | 2 ++ configs/bpi-r2-pro-rk3568_defconfig | 2 ++ configs/evb-rk3568_defconfig | 2 ++ configs/lubancat-2-rk3568_defconfig | 2 ++ configs/odroid-m1-rk3568_defconfig | 2 ++ configs/quartz64-a-rk3566_defconfig | 2 ++ configs/quartz64-b-rk3566_defconfig | 2 ++ configs/radxa-cm3-io-rk3566_defconfig | 2 ++ configs/rock-3a-rk3568_defconfig | 2 ++ configs/soquartz-blade-rk3566_defconfig | 2 ++ configs/soquartz-cm4-rk3566_defconfig | 2 ++ configs/soquartz-model-a-rk3566_defconfig | 2 ++ 12 files changed, 24 insertions(+)configs/anbernic-rgxx3-rk3566_defconfig +2
-0@@ -61,6 +61,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/bpi-r2-pro-rk3568_defconfig +2
-0@@ -60,6 +60,8 @@ CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y CONFIG_SUPPORT_EMMC_BOOT=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/evb-rk3568_defconfig +2
-0@@ -54,6 +54,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/lubancat-2-rk3568_defconfig +2
-0@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/odroid-m1-rk3568_defconfig +2
-0@@ -72,6 +72,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartz64-a-rk3566_defconfig +2
-0@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartz64-b-rk3566_defconfig +2
-0@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/radxa-cm3-io-rk3566_defconfig +2
-0@@ -55,6 +55,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock-3a-rk3568_defconfig +2
-0@@ -68,6 +68,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-blade-rk3566_defconfig +2
-0@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-cm4-rk3566_defconfig +2
-0@@ -62,6 +62,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/soquartz-model-a-rk3566_defconfig +2
-1@@ -63,6 +63,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y --2.43.0
PATCH 3/3 rockchip: rk3588: Enable eMMC HS200 mode
In reply to Jonas KarlmanWriting to eMMC using HS200 mode work more reliably then other modes on RK3588 boards.
Enable MMC_HS200_SUPPORT Kconfig option to prefer use of HS200 mode.
--- configs/evb-rk3588_defconfig | 2 ++ configs/nanopc-t6-rk3588_defconfig | 2 ++ configs/neu6a-io-rk3588_defconfig | 2 ++ configs/neu6b-io-rk3588_defconfig | 2 ++ configs/orangepi-5-plus-rk3588_defconfig | 2 ++ configs/quartzpro64-rk3588_defconfig | 2 ++ configs/rock5a-rk3588s_defconfig | 2 ++ configs/rock5b-rk3588_defconfig | 2 ++ configs/turing-rk1-rk3588_defconfig | 2 ++ 9 files changed, 18 insertions(+)
configs/evb-rk3588_defconfig +2 -0
@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/nanopc-t6-rk3588_defconfig +2 -0
@@ -66,6 +66,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/neu6a-io-rk3588_defconfig +2 -0
@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/neu6b-io-rk3588_defconfig +2 -0
@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/orangepi-5-plus-rk3588_defconfig +2 -0
@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/quartzpro64-rk3588_defconfig +2 -0
@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/rock5a-rk3588s_defconfig +2 -0
@@ -56,6 +56,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/rock5b-rk3588_defconfig +2 -0
@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
configs/turing-rk1-rk3588_defconfig +2 -0
@@ -75,6 +75,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
Signature · 1 line
2.43.0
Re: [PATCH 3/3] rockchip: rk3588: Enable eMMC HS200 mode
Quoted 6 lines · Jonas Karlman
Writing to eMMC using HS200 mode work more reliably then other modes on RK3588 boards.
Enable
MMC_HS200_SUPPORTKconfigoption to prefer use of HS200 mode.Signed-off-by Jonas Karlman <[email protected]>
Thanks,
- Kever
Quoted 129 lines
--- configs/evb-rk3588_defconfig | 2 ++ configs/nanopc-t6-rk3588_defconfig | 2 ++ configs/neu6a-io-rk3588_defconfig | 2 ++ configs/neu6b-io-rk3588_defconfig | 2 ++ configs/orangepi-5-plus-rk3588_defconfig | 2 ++ configs/quartzpro64-rk3588_defconfig | 2 ++ configs/rock5a-rk3588s_defconfig | 2 ++ configs/rock5b-rk3588_defconfig | 2 ++ configs/turing-rk1-rk3588_defconfig | 2 ++ 9 files changed, 18 insertions(+)configs/evb-rk3588_defconfig +2
-0@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/nanopc-t6-rk3588_defconfig +2
-0@@ -66,6 +66,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/neu6a-io-rk3588_defconfig +2
-0@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/neu6b-io-rk3588_defconfig +2
-0@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/orangepi-5-plus-rk3588_defconfig +2
-0@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartzpro64-rk3588_defconfig +2
-0@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock5a-rk3588s_defconfig +2
-0@@ -56,6 +56,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock5b-rk3588_defconfig +2
-0@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/turing-rk1-rk3588_defconfig +2
-0@@ -75,6 +75,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y
Re: [PATCH 3/3] rockchip: rk3588: Enable eMMC HS200 mode
In reply to Jonas KarlmanQuoted 7 lines · Jonas Karlman
Writing to eMMC using HS200 mode work more reliably then other modes on RK3588 boards.
Enable
MMC_HS200_SUPPORTKconfigoption to prefer use of HS200 mode.Signed-off-by Jonas Karlman <[email protected]>
BR,
Weizhao
Quoted 132 lines
--- configs/evb-rk3588_defconfig | 2 ++ configs/nanopc-t6-rk3588_defconfig | 2 ++ configs/neu6a-io-rk3588_defconfig | 2 ++ configs/neu6b-io-rk3588_defconfig | 2 ++ configs/orangepi-5-plus-rk3588_defconfig | 2 ++ configs/quartzpro64-rk3588_defconfig | 2 ++ configs/rock5a-rk3588s_defconfig | 2 ++ configs/rock5b-rk3588_defconfig | 2 ++ configs/turing-rk1-rk3588_defconfig | 2 ++ 9 files changed, 18 insertions(+)configs/evb-rk3588_defconfig +2
-0@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/nanopc-t6-rk3588_defconfig +2
-0@@ -66,6 +66,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/neu6a-io-rk3588_defconfig +2
-0@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/neu6b-io-rk3588_defconfig +2
-0@@ -48,6 +48,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/orangepi-5-plus-rk3588_defconfig +2
-0@@ -69,6 +69,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/quartzpro64-rk3588_defconfig +2
-0@@ -53,6 +53,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock5a-rk3588s_defconfig +2
-0@@ -56,6 +56,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/rock5b-rk3588_defconfig +2
-0@@ -71,6 +71,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=yconfigs/turing-rk1-rk3588_defconfig +2
-1@@ -75,6 +75,8 @@ CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y CONFIG_MISC=y CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_SPL_MMC_HS200_SUPPORT=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y --2.43.0