summaryrefslogtreecommitdiff
path: root/wiki/EMMC-speed-raw-data.wiki
blob: ae6b2ea3b0fc453550ee27e725ee7cf173e4d2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
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