From patchwork Thu Jun 8 08:18:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 103344 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2326581qgd; Thu, 8 Jun 2017 01:18:57 -0700 (PDT) X-Received: by 10.98.0.8 with SMTP id 8mr36161209pfa.127.1496909937309; Thu, 08 Jun 2017 01:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496909937; cv=none; d=google.com; s=arc-20160816; b=tBH0eKUgr2mMB6RJyaIKFpFN9tgZAxXiPbBiluFbwFTWvzd5rcIDJFrcMX8jKqSrKE S60F5D4wWErdXayRwcAz6MbMJeWVlWktwLn91aLStwO6KQMB6MOkZfoRiucIykx5G6+D OjiPtOs1vkP2iyfVbih9IwhdM5wO9mL5wIg3pSepcKkiPQeuda6brByf1/+QAgO4ef8O 0z9mDk2MGq3h6epcmIisOWycaDn42Hlz2m3eAnyAnMd0kyDjStua4r6Lg5hf2w0pgAoy xOIrNM0Npgb9a8o+QLRBbABQd7xsZBHC1cyK3AHbtkclZ4fz8AWwWoKmaCd9eBszlvsO 4K6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=YiG88eZEQYqEzzS2rlzxbS702Ei2ErcdCe7aBduFtGY=; b=pLbuMNRF3+rS+IYR4obZG90VI7kcwGYZ+JsM2FBS3U+nbBEqOGpqB53uCA2f4tKebc k4OC5E9BU8j1j1pbeIKb4MgOP6tVS77x49VzPyAN8c5AIw3BFe30w/Z2PPPu0aC3BPXE vitJAF3UgHvpfI1HCO+Zo98ojfio56HIxczE31+VMzpaNdJsC7LZM/1nCvfTmL7drGr4 Ecd05s3xhLRHfmBFi97GslZL63g5sya2V+bM+0COoHV9Qce1gY0FL22OQ/lztnxwY7SW SJqT8FT+h/VOjxnDjrJaKHjlmHCuWyav4q2RbRJ41Q5jJ35bLm3OyIb08othKwSlf4v2 ADBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id v32si3743262plb.497.2017.06.08.01.18.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 01:18:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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) 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) 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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Acked-by: Haojian Zhuang diff --git a/EmbeddedPkg/Universal/MmcDxe/Mmc.h b/EmbeddedPkg/Universal/MmcDxe/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 specific + ECSD ECSDData __attribute__((aligned(8))); // MMC V4 extended card specific } CARD_INFO; typedef struct _MMC_HOST_INSTANCE {