From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (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 D785821B00DC3 for ; Thu, 9 Nov 2017 23:27:45 -0800 (PST) Received: by mail-pg0-x241.google.com with SMTP id 207so3994733pgc.12 for ; Thu, 09 Nov 2017 23:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M+VbjSlNTD5xmyQcXL0q76Hb6Jq5cH2A+8AsTYcmp0A=; b=kkRvdXkzNPOyQdvTZN4G2v4dLNz45N6S/LIGXGwLxTVD15+FVIlO5fwiUUEItTwCLY d5PTARNtmugQ1EhdApcUvOEtriMmtxGMK9MPfUenxwcTwvx8nSbRPFHvRuYgL5heIaBX Qg6DQHiqhVcHD1iTHtbTMrdFCcFvQf3R18LvY= 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:in-reply-to :references; bh=M+VbjSlNTD5xmyQcXL0q76Hb6Jq5cH2A+8AsTYcmp0A=; b=tAqIyoTXZ1TFN8NeChR4i1MYz01jgz5zJYZZqWtL1lOGqVGUOlUMgWF77TpsLTT1FW vrfmqAqMvydVMghAjsRsPKdN8hdfKh1Wml55xy6MNmX0EaODevakGt91df5m6a14YsnD JUCjh8GmT0MR/JwCHSJmeY9K0slv2MU5fWw1na7Aq8wZwEa5lY0+KhXm/xFLvCEl/TYd VKoZiV5GmJKaatDB3p1tkemUnTibJG9PyzZnQxojD18z8k9hMls+n1Zy/JKadezwtWpB uqoGCM6xPLqH1auAjo6GcTIMQLCZi6Te6oikOcumNreLNo2M7f81VXtUDU9OC11cyMFH 6t3g== X-Gm-Message-State: AJaThX5FJrom3bgK51lBa2dsMK3hUP7s+lI0/VwL3AQnoKgQZVkOMkAT c7LPigPmksxTFyOdq/pgge4ViQ== X-Google-Smtp-Source: ABhQp+TPuhTlfKNhamO6G/gpO2kjzFoED23f6eyzjWScqlApjtQgkF/tgczDeBLg6dOuI1k0l+Db2A== X-Received: by 10.84.192.131 with SMTP id c3mr3241935pld.435.1510299108329; Thu, 09 Nov 2017 23:31:48 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h29sm17718369pfd.65.2017.11.09.23.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Nov 2017 23:31:47 -0800 (PST) From: Ming Huang X-Google-Original-From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Cc: ard.biesheuvel@linaro.org, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, mengfanrong@huawei.com, waip23@126.com, Liu Yi , Heyi Guo Date: Fri, 10 Nov 2017 15:31:32 +0800 Message-Id: <1510299092-38746-2-git-send-email-huangming23@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510299092-38746-1-git-send-email-huangming23@huawei.com> References: <1510299092-38746-1-git-send-email-huangming23@huawei.com> Subject: [PATCH edk2-non-osi v2] Hisilicon D0x: Remove uncacheable attribute from memory resource HOB 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: Fri, 10 Nov 2017 07:27:46 -0000 If uncacheable attribute is included in memory resource HOB, GCD spaces will also have EFI_MEMORY_UC capability, then NonCoherentPciIoAllocateBuffer of NonDiscoverablePciDeviceDxe module will allocate DMA buffer of EFI_MEMORY_UC type, which will cause alignment fault exception with BaseMemoryLibOptDxe. This not only affects NonDiscoverablePciDeviceDxe, it removes the UC attribute from all DRAM regions in the UEFI memory map, which makes much more sense on ARM Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liu Yi Signed-off-by: Heyi Guo --- Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi | Bin 90272 -> 90336 bytes Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi | Bin 152576 -> 152480 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi index 354abcc..31e2903 100644 Binary files a/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D03/MemoryInitPei/MemoryInit.efi differ diff --git a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi index b94e0cb..eb71c44 100644 Binary files a/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi and b/Platform/Hisilicon/D05/MemoryInitPei/MemoryInit.efi differ -- 1.9.1