From nobody Fri Apr 26 11:58:10 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; dkim=fail spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1497232780190436.93823289636464; Sun, 11 Jun 2017 18:59:40 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C47E521BB2501; Sun, 11 Jun 2017 18:58:25 -0700 (PDT) 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) 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) X-Original-To: edk2-devel@lists.01.org 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) 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 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: [edk2] [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: , Cc: jason.liu@linaro.org, shawn.guo@linaro.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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/Mmc= Dxe/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 spec= ific } CARD_INFO; =20 --=20 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel