public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2] EmbeddedPkg/MmcDxe: Add alignment for ECSD data
@ 2017-06-12  1:59 Jun Nie
  2017-06-12 15:53 ` Leif Lindholm
  0 siblings, 1 reply; 11+ messages in thread
From: Jun Nie @ 2017-06-12  1:59 UTC (permalink / raw)
  To: ard.biesheuvel, leif.lindholm, olivier.martin, haojian.zhuang,
	edk2-devel
  Cc: shawn.guo, jason.liu, Jun Nie

Add alignment for ECSD data for DMA access. Otherwise
the data is corrupted on Sanechips platform.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 EmbeddedPkg/Universal/MmcDxe/Mmc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/EmbeddedPkg/Universal/MmcDxe/Mmc.h b/EmbeddedPkg/Universal/MmcDxe/Mmc.h
index 8a7d5a3..6e3ab17 100644
--- a/EmbeddedPkg/Universal/MmcDxe/Mmc.h
+++ b/EmbeddedPkg/Universal/MmcDxe/Mmc.h
@@ -319,6 +319,7 @@ typedef struct  {
   OCR       OCRData;
   CID       CIDData;
   CSD       CSDData;
+  UINT64    Pad;                              // For 8 bytes alignment of ECSDData
   ECSD      ECSDData;                         // MMC V4 extended card specific
 } CARD_INFO;
 
-- 
1.9.1



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

end of thread, other threads:[~2017-06-14 15:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12  1:59 [PATCH v2] EmbeddedPkg/MmcDxe: Add alignment for ECSD data Jun Nie
2017-06-12 15:53 ` Leif Lindholm
2017-06-12 16:03   ` Andrew Fish
2017-06-13  2:14   ` Jun Nie
2017-06-13  4:01     ` Andrew Fish
2017-06-13  4:13       ` Jun Nie
2017-06-13  4:25         ` Andrew Fish
2017-06-13  4:44           ` Jun Nie
2017-06-13  9:18     ` Leif Lindholm
2017-06-14  2:50       ` Jun Nie
2017-06-14 15:18         ` Leif Lindholm

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