From: Andrew Fish <afish@apple.com>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Jun Nie <jun.nie@linaro.org>,
jason.liu@linaro.org, edk2-devel@lists.01.org,
shawn.guo@linaro.org, haojian.zhuang@linaro.org,
ard.biesheuvel@linaro.org
Subject: Re: [PATCH v2] EmbeddedPkg/MmcDxe: Add alignment for ECSD data
Date: Mon, 12 Jun 2017 09:03:18 -0700 [thread overview]
Message-ID: <082EA522-E46C-43AB-90F3-F9B1DB936C34@apple.com> (raw)
In-Reply-To: <20170612155315.GK26676@bivouac.eciton.net>
> On Jun 12, 2017, at 8:53 AM, Leif Lindholm <leif.lindholm@linaro.org> wrote:
>
> On Mon, Jun 12, 2017 at 09:59:28AM +0800, Jun Nie wrote:
>> Add alignment for ECSD data for DMA access. Otherwise
>> the data is corrupted on Sanechips platform.
>
> I never did see a reply to my proposed solution, and the below is not
> it. Can you explain why you prefer this one?
>
And it is still exposed to enum optimization changing the alignment of the structure.
Thanks,
Andrew Fish
> /
> Leif
>
>> 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
>>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2017-06-12 16:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=082EA522-E46C-43AB-90F3-F9B1DB936C34@apple.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox