summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wiki/EMMC-speed-raw-data.wiki676
-rw-r--r--wiki/EMMC-speed-raw-data/mmc.sh38
2 files changed, 714 insertions, 0 deletions
diff --git a/wiki/EMMC-speed-raw-data.wiki b/wiki/EMMC-speed-raw-data.wiki
new file mode 100644
index 0000000..ae6b2ea
--- /dev/null
+++ b/wiki/EMMC-speed-raw-data.wiki
@@ -0,0 +1,676 @@
+h1. EMMC-speed-raw-data
+
+h2. Preface
+
+Testing of HS200 using kernel v5.0 and HS400 using renesas-devel-20190306-v5.0 on
+the following boards:
+
+* E3 1.0 / Ebisu-4D
+* H3 ES2.0 / Salvator-XS
+* M3-W / Salvator-X
+* M3-N / Salvator-XS
+
+
+h2. renesas-devel-20190306-v5.0
+
+h3. E3 1.0 / Ebisu-4D
+
+* dmesg | grep mmc0
+[ 2.977456] renesas_sdhi_internal_dmac ee160000.sd: mmc0 base at 0xee160000 max clock rate 200 MHz
+[ 3.061607] mmc0: new HS400 MMC card at address 0001
+[ 3.072077] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.077188] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.087688] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.094290] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 10 (mmc HS400)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee160000.sd/mmc_host/mmc0/mmc0:0001/cid
+150100424753443352074e1b520e1500
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 6.19636 s, 86.6 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.3704 s, 123 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 5.59537 s, 95.9 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.74477 s, 143 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.73702 s, 144 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.75046 s, 143 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 8.98055 s, 59.8 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.087 s, 53.2 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 8.76716 s, 61.2 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 26.3785 s, 20.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 25.7717 s, 20.8 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 25.5235 s, 21.0 MB/s
+
+h3. H3 ES2.0 / Salvator-XS
+
+* dmesg | grep mmc0
+[ 3.638737] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.726050] mmc0: new HS400 MMC card at address 0001
+[ 3.734480] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.744840] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.755265] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.765367] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 10 (mmc HS400)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+1501004247534433520760a14ca96300
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.7236 s, 28.7 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.0568 s, 33.4 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 13.5902 s, 39.5 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.25914 s, 165 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.2559 s, 165 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.27348 s, 164 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 13.7446 s, 39.1 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 14.255 s, 37.7 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.9957 s, 31.6 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 20.9244 s, 25.7 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 20.9963 s, 25.6 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.3432 s, 29.3 MB/s
+
+h3. M3-W / Salvator-X
+
+* dmesg | grep mmc0
+[ 2.908701] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.028399] mmc0: new HS400 MMC card at address 0001
+[ 3.038233] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.046540] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.060175] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.072615] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 10 (mmc HS400)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+15010042475344335207e3d561ae8300
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.2969 s, 52.1 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.736 s, 50.0 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 12.3474 s, 43.5 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 2.41708 s, 222 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 2.30209 s, 233 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 2.42179 s, 222 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 7.41429 s, 72.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 8.75909 s, 61.3 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 9.18989 s, 58.4 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.7652 s, 28.6 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.7519 s, 28.6 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.0232 s, 29.8 MB/s
+
+h3. M3-N / Salvator-XS
+
+* dmesg | grep mmc0
+[ 3.138064] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.322792] mmc0: new HS200 MMC card at address 0001
+[ 3.328545] mmcblk0: mmc0:0001 eMMC 28.8 GiB
+[ 3.333443] mmcblk0boot0: mmc0:0001 eMMC partition 1 4.00 MiB
+[ 3.339705] mmcblk0boot1: mmc0:0001 eMMC partition 2 4.00 MiB
+[ 3.351206] mmcblk0rpmb: mmc0:0001 eMMC partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 9 (mmc HS200)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+89010a654d4d4320200126140246b200
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.0305 s, 33.5 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.4025 s, 32.7 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.3156 s, 52.0 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.39188 s, 122 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.5587 s, 118 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.73909 s, 113 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 25.9352 s, 20.7 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 13.8409 s, 38.8 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 14.2439 s, 37.7 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 33.2101 s, 16.2 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 33.1642 s, 16.2 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 33.1741 s, 16.2 MB/s
+
+h2. v5.0
+
+h3. E3 1.0 / Ebisu-4D
+
+* dmesg | grep mmc0
+[ 2.913485] renesas_sdhi_internal_dmac ee160000.sd: mmc0 base at 0xee160000 max clock rate 200 MHz
+[ 2.997527] mmc0: new HS200 MMC card at address 0001
+[ 3.007954] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.013098] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.023460] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.030193] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 9 (mmc HS200)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee160000.sd/mmc_host/mmc0/mmc0:0001/cid
+150100424753443352074e1b520e1500
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 17.5103 s, 30.7 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 6.28591 s, 85.4 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 13.8617 s, 38.7 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.90563 s, 137 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.88221 s, 138 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.90208 s, 138 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.3188 s, 32.9 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 12.5534 s, 42.8 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 12.7248 s, 42.2 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 26.37 s, 20.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 26.3305 s, 20.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 27.0765 s, 19.8 MB/s
+
+h3. H3 ES2.0 / Salvator-XS
+
+* dmesg | grep mmc0
+[ 3.639006] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.722240] mmc0: new HS200 MMC card at address 0001
+[ 3.727982] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.732859] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.739120] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.745221] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 9 (mmc HS200)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+1501004247534433520760a14ca96300
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 20.471 s, 26.2 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 19.5774 s, 27.4 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 15.4084 s, 34.8 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.19071 s, 128 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.18751 s, 128 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 4.19751 s, 128 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.5855 s, 32.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 17.1501 s, 31.3 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 17.2643 s, 31.1 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 22.0624 s, 24.3 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 22.0098 s, 24.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 20.5633 s, 26.1 MB/s
+
+h3. M3-W / Salvator-X
+
+* dmesg | grep mmc0
+[ 3.137959] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.256875] mmc0: new HS200 MMC card at address 0001
+[ 3.262728] mmcblk0: mmc0:0001 eMMC 28.8 GiB
+[ 3.267669] mmcblk0boot0: mmc0:0001 eMMC partition 1 4.00 MiB
+[ 3.280205] mmcblk0boot1: mmc0:0001 eMMC partition 2 4.00 MiB
+[ 3.293733] mmcblk0rpmb: mmc0:0001 eMMC partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 9 (mmc HS200)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+89010a654d4d4320200126140246b200
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 15.1949 s, 35.3 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.8901 s, 49.3 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 16.583 s, 32.4 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.5155 s, 51.1 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.5016 s, 51.1 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.5351 s, 51.0 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 23.6249 s, 22.7 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 19.8348 s, 27.1 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 20.4312 s, 26.3 MB/s
+
+h4. Write to MMC, no direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 30.4137 s, 17.7 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 33.1452 s, 16.2 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 33.0829 s, 16.2 MB/s
+
+h3. M3-N / Salvator-XS
+
+* dmesg | grep mmc0
+[ 2.911377] renesas_sdhi_internal_dmac ee140000.sd: mmc0 base at 0xee140000 max clock rate 200 MHz
+[ 3.008909] mmc0: new HS200 MMC card at address 0001
+[ 3.018096] mmcblk0: mmc0:0001 BGSD3R 29.1 GiB
+[ 3.026954] mmcblk0boot0: mmc0:0001 BGSD3R partition 1 16.0 MiB
+[ 3.033266] mmcblk0boot1: mmc0:0001 BGSD3R partition 2 16.0 MiB
+[ 3.039519] mmcblk0rpmb: mmc0:0001 BGSD3R partition 3 4.00 MiB, chardev (243:0)
+* cat /sys/kernel/debug/mmc0/ios
+clock: 200000000 Hz
+vdd: 21 (3.3 ~ 3.4 V)
+bus mode: 2 (push-pull)
+chip select: 0 (don't care)
+power mode: 2 (on)
+bus width: 3 (8 bits)
+timing spec: 9 (mmc HS200)
+signal voltage: 1 (1.80 V)
+driver type: 0 (driver type B)
+* cat /sys/devices/platform/soc/ee140000.sd/mmc_host/mmc0/mmc0:0001/cid
+15010042475344335207e3d561ae8300
+
+h4. Read from MMC, direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 9.14324 s, 58.7 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 5.08557 s, 106 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 7.94226 s, 67.6 MB/s
+
+h4. Read from MMC, no direct
+
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.35788 s, 160 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.29605 s, 163 MB/s
+# dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 3.36475 s, 160 MB/s
+
+h4. Write to MMC, direct
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 10.7108 s, 50.1 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 11.0851 s, 48.4 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 7.36998 s, 72.8 MB/s
+
+h4. Write to MMC, nodirect
+
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 19.7179 s, 27.2 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 19.6944 s, 27.3 MB/s
+# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+512+0 records in
+512+0 records out
+536870912 bytes (537 MB) copied, 18.9546 s, 28.3 MB/s
+
+h2. Test Script
+
+"Script used for testing":../../wiki/EMMC-speed-raw-data/mmc.sh
diff --git a/wiki/EMMC-speed-raw-data/mmc.sh b/wiki/EMMC-speed-raw-data/mmc.sh
new file mode 100644
index 0000000..0faaa82
--- /dev/null
+++ b/wiki/EMMC-speed-raw-data/mmc.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+do_one ()
+{
+ echo "# $@"
+ "$@"
+}
+
+do_test ()
+{
+ for i in $(seq 3); do
+ do_one "$@"
+ sleep 10
+ done
+}
+
+echo "# dmesg | grep mmc0"
+dmesg | grep mmc0
+do_one cat /sys/kernel/debug/mmc0/ios
+do_one cat /sys/devices/platform/soc/*/mmc_host/mmc0/mmc0:0001/cid
+
+echo
+echo "Read from MMC, direct"
+do_test dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct
+
+echo
+echo "Read from MMC, no direct"
+do_test dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512
+
+echo
+echo "Write to MMC, direct"
+do_test dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct
+
+echo
+echo "Write to MMC, no direct"
+do_test dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512
+
+echo