From nobody Fri Dec 27 20:01:08 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 1496909939042710.3873729701696; Thu, 8 Jun 2017 01:18:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C455B2094553A; Thu, 8 Jun 2017 01:17:47 -0700 (PDT) Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) (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 8166520945524 for ; Thu, 8 Jun 2017 01:17:46 -0700 (PDT) Received: by mail-pg0-x233.google.com with SMTP id v18so13719663pgb.1 for ; Thu, 08 Jun 2017 01:18:55 -0700 (PDT) Received: from localhost.localdomain (60-249-34-38.HINET-IP.hinet.net. [60.249.34.38]) by smtp.gmail.com with ESMTPSA id t82sm9455988pfe.88.2017.06.08.01.18.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 01:18:54 -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=Aa5osWCZz743R7L/6RP/jP3zJOiqjEi6SHA74GtcClQ=; b=FuiI7bclHuFxCzfTg8SUxyehVlcp5pqzUeA8Jh92mLUdnSQtHb99HaSpjgDCh8yKcd OU0gKzhxR5ZpnYFiTJMvfIlyyiSGIctfJHRfmB7drVN81Ctep+766UYh5+6xXuWpQvFf VAmxg88gwW77b/SZ7+lvfmLkPbMzvCAF17Zsc= 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=Aa5osWCZz743R7L/6RP/jP3zJOiqjEi6SHA74GtcClQ=; b=ldcsQ/u8/q7JsVbRKJSqQkbaQ/5mWgE71y46qXM/mlVr0Ad5F7pvSONcKUOdBqzIQ7 f8ik1e602S+gA/sfNrGGykdMmibIf4fGz0hotfF9FfXM0JgF9JD3V4EC5mY+YECRba4f 8pxTm8LFXwbJPZ5Ts2p+gkgsCFdEvH8rpDJANrrp/C8vzJjnCJiZpJJGbLYRxDLA1hFk La9aQVgE8IU5JUQQDWxFNyqAY0k57jrTagybdP/yquFAbdSuQDDK1R7uV8bDp0socerP dn6sr1XES9WigDCaVsl8TUonAkgc8HodkPRG6OIDOVRZAzvFSY6AAUaA8DnbcN3wlFcG YLEw== X-Gm-Message-State: AODbwcBbHPla9m4Q9jiEKii3nh/QJK4Vhc4FRoxuSsix91X2/D+RPQIL NCEIoOur8KWq7Rpw X-Received: by 10.84.139.195 with SMTP id 61mr11044290plr.56.1496909935156; Thu, 08 Jun 2017 01:18:55 -0700 (PDT) From: Jun Nie To: olivier.martin@arm.com, haojian.zhuang@linaro.org, edk2-devel@lists.01.org Date: Thu, 8 Jun 2017 16:18:47 +0800 Message-Id: <1496909927-16812-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [edk2] [PATCH] 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 Acked-by: Haojian Zhuang --- EmbeddedPkg/Universal/MmcDxe/Mmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmbeddedPkg/Universal/MmcDxe/Mmc.h b/EmbeddedPkg/Universal/Mmc= Dxe/Mmc.h index 8a7d5a3..ca1a9d5 100644 --- a/EmbeddedPkg/Universal/MmcDxe/Mmc.h +++ b/EmbeddedPkg/Universal/MmcDxe/Mmc.h @@ -319,7 +319,7 @@ typedef struct { OCR OCRData; CID CIDData; CSD CSDData; - ECSD ECSDData; // MMC V4 extended card spec= ific + ECSD ECSDData __attribute__((aligned(8))); // MMC V4 extended card= specific } CARD_INFO; =20 typedef struct _MMC_HOST_INSTANCE { --=20 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel