public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  MMC and buffer alignment question
@ 2014-03-19 14:16 Markus Niebel
  2014-03-19 14:22 ` Eric Nelson
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Niebel @ 2014-03-19 14:16 UTC (permalink / raw)
  To: u-boot

Hello Pantelis,

short question to the usage of the mmc command (and also the mmc driver API): is it intended that mmc read / write may fail when the supplied address in RAM is not aligned?

ARMV7 will give output like this:

U-Boot > mmc read 12000002 44 44

MMC read: dev # 0, block # 68, count 68 ... INFO: 24994 of 25000 loops left to DAT0 timeout
ERROR: v7_dcache_inval_range - start address is not aligned - 0x12000002
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x12008802
68 blocks read: OK

On my platform (i.MX6 / Cortex A9) the alignment needed is 32 Byte.

Special commands inside the mmc drivers and in env_mmc implement the alignment magic. Shouldn't the mmc do the magic (and if neccesarry provide help using temp buffers if needed) so that all users outside can read / write without caring for special cases?

Markus

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-19 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-19 14:16 [U-Boot] MMC and buffer alignment question Markus Niebel
2014-03-19 14:22 ` Eric Nelson
2014-03-19 14:44   ` Wolfgang Denk
2014-03-19 17:40     ` Markus Niebel
2014-03-19 18:18       ` Eric Nelson
2014-03-19 19:17         ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox