From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C8F5A2196233C for ; Sun, 11 Jun 2017 18:58:24 -0700 (PDT) Received: by mail-pf0-x22d.google.com with SMTP id 83so46101890pfr.0 for ; Sun, 11 Jun 2017 18:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=jVVpuaKJIE7WsvImh068er9Li08AKUHGPBMZsXSeqvU=; b=cNXYwX9HRjyuF3PpX0JqkTbQCJlCSfU9b8zHAeFhf3gFWPggk8RFa0yNixTwdYsCHP LOQbf4blzMuFBl0DQa3ztGJpCFATvTzQIyTVcIICBNRqGD6DxCHgWSTFgre1pTmqa4CX hYL8bY5OHtLSE3W33so+sBfNIBgM11tZPo5rs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jVVpuaKJIE7WsvImh068er9Li08AKUHGPBMZsXSeqvU=; b=QsHtESOPRJXQFLq7wZkdvVK+c43fT9x9dgYjd03EVkaNpvpKbwKRBAUNiR7b14SrhN Xm/9gJEk1wZZ94VQrsd4rLClDEJBXTXU3k2tTar8F2SdSGhDIKFbu3e1nR2nCd8ZuIx6 jrigk6XYTLXRRIXGbZ8cTQRUm9JtRmOO1GzcZL9iGSP2PH/gBMpg+mhwhQIThMcB5Tz5 szmAxtLRyBy8ajS0ftouUaudsxuobhBijNiUHzPdnhgCU7Wv0aeXEH8AxcDmm/c1Scmt Lf1mTzUxNSvfrRkD6H7Cen6C+GKm3/OCCsjItaPJexqolxG4p9zyivyz4ZovtjsVspFD SKlw== X-Gm-Message-State: AKS2vOzRKAzLlMvPXceIXckxiWOebWZRxKIKByIlpWNiuBISAvc5ql4Y uoAO6WHeP36KzWTS X-Received: by 10.98.56.6 with SMTP id f6mr6678013pfa.199.1497232777422; Sun, 11 Jun 2017 18:59:37 -0700 (PDT) Received: from localhost.localdomain (118-163-176-124.HINET-IP.hinet.net. [118.163.176.124]) by smtp.gmail.com with ESMTPSA id 189sm15245959pgi.66.2017.06.11.18.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Jun 2017 18:59:36 -0700 (PDT) From: Jun Nie To: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, olivier.martin@arm.com, haojian.zhuang@linaro.org, edk2-devel@lists.01.org Cc: shawn.guo@linaro.org, jason.liu@linaro.org, Jun Nie Date: Mon, 12 Jun 2017 09:59:28 +0800 Message-Id: <1497232768-8993-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [PATCH v2] EmbeddedPkg/MmcDxe: Add alignment for ECSD data X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 01:58:25 -0000 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 --- 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