From patchwork Mon Jun 12 01:59:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 103574 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp738478qgd; Sun, 11 Jun 2017 18:59:39 -0700 (PDT) X-Received: by 10.84.224.1 with SMTP id r1mr54890092plj.262.1497232779124; Sun, 11 Jun 2017 18:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497232779; cv=none; d=google.com; s=arc-20160816; b=yhXxEVSxC3mm7fdmvp7rAAwr3wQi1JFMVFnWXsJUCmoGOWo249HBN1KfxKFlimLCHq Y8dHfkzO9nw1eNFdswjRfV//NcC5k2D/kD/oUO7MGZxh+pE9fD8RyNiNIUD62M3Mz8AH nYMvbPgollVzaC6auGCUcXeF+mPE7TTHN5sQGBc+4lm9v0WFhlofuB0w5jGJxkkTVxDo tZnwD9rKPAfcsL/lIunPualVctm4oqdG1vzp3BudEcbyLcfyCIFc2WLf6PaTAtgwgUmp OEwVL3lNctuO1zgOUwSBtqh/BUxjjQglX8kwGHjWsvmHZ+rgn4TDdQOKryiGBpc0MRsc 3yjQ== 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=skpZGEtlI+xgzPxgjyw/Kp5s4D101SjOo1+e1NaN9oc=; b=Frr49nOGaKBWKlbBQ147uwMed/UfWzT4IZIx6Em5XP8Our/rl/NNZHiF7Int0tPqnC yDeSXk5C16sVovwgMV7zzKLX/TRw+MESd/H64qNN39ES4qpIdVgUUZeHLPmem8i3EuB7 XPnVp4Sf39bXomjPTSL2OUYi5RH/amqFo/9Vdb10EiRWaeSOjSspgonVbwEzpWtm7IQ7 XuGY2ZTM6PQryFOEyzPWVM+DH4QJ6fTD2VS86K3YxAMNr0DmJ2WsjQnmsBew7TSB7qyV rYQ2MguKvt7QSguI1A3jYp4pH80SLsBxfoL2WtUco9gBaFMhd933Dxa7FLpOjvJO6PB3 Q/KQ== 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 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id c41si5860312plj.187.2017.06.11.18.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jun 2017 18:59:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; 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 2001:19d0:306:5::1 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 C47E521BB2501; Sun, 11 Jun 2017 18:58:25 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 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 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 | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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;