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::243; helo=mail-pg0-x243.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (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 5599020349DAA for ; Mon, 13 Nov 2017 04:19:43 -0800 (PST) Received: by mail-pg0-x243.google.com with SMTP id j16so7013218pgn.9 for ; Mon, 13 Nov 2017 04:23:49 -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=dcRSWRgd5fR4M72rudjkamcwhm/tsEmOhA9Ry6hyz+8=; b=f9aUBYjimFnYEeIqA5XaoR4BiN8jZLCnzy4p88MgA9SXAjnVmyjfcXp2HaoIAsfdG1 MrNZ38cz+Jq9rQPTAUZ5/4qqMRHHHiawI9DUMGvJQoIb14/oBhctVZpLs6uTvGDqdLOB lJl/jpraswnpRx32h5BfIOpy2X8sFgwHaTBuQ= 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=dcRSWRgd5fR4M72rudjkamcwhm/tsEmOhA9Ry6hyz+8=; b=ezH+E739e+oWiHmlID6Bx/MQG1XeUBbw1f0M+nq0Sth+ov/vWkLOpBt2UUTEXQ14uQ ljgmmy1lK4KgwFZnRn0SkmkZGwKZVrY5JQ84LtEFhfr2qIUuDwjpcekM5ExB812+SJBl A8MJdWmhOCl9V3f+LW6OjDV2hbA/1gzYvvnfN3kW4UeSUqifotjNio5XbAdEhlGfLBs3 5ijg3/Wn6pUU9aKqNzlDF1fwCI1cJJh+prGbZWfqwlbIMdXCglZykzt+AxGG0YpQ8Dm+ 21rqd3bVBZ3TMMvZSfSntwjD+h0K37R6dfvzK2Z/hqmMOD4kUDeSFIHPEed+oh/HMVHg tv9A== X-Gm-Message-State: AJaThX7J9GTfu1aEz2qVQ2VIyoZTfGsYfr4TbwPN1uIzEBFSPzl72DmY igd4qCJx268Mf6FppGmgdLiGHQ== X-Google-Smtp-Source: AGs4zMYN0blAVfHcXeIO+N1qvoNSzM8n8PoHwF1c+8lz6YM+gO9uSVxYLqfiCLeXic56xT7DyzkDDQ== X-Received: by 10.84.214.2 with SMTP id h2mr2427951pli.261.1510575829289; Mon, 13 Nov 2017 04:23:49 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id i85sm4755507pfi.54.2017.11.13.04.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Nov 2017 04:23:48 -0800 (PST) From: Heyi Guo 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: Mon, 13 Nov 2017 20:23:24 +0800 Message-Id: <1510575804-42572-2-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1510575804-42572-1-git-send-email-heyi.guo@linaro.org> References: <1510575804-42572-1-git-send-email-heyi.guo@linaro.org> Subject: [PATCH edk2-non-osi v3] 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: Mon, 13 Nov 2017 12:19:43 -0000 From: Ming Huang 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 Signed-off-by: Ming Huang --- 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