From nobody Mon Feb 9 20:32:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+81380+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81380+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1633135969; cv=none; d=zohomail.com; s=zohoarc; b=mYYqL43dEz3GY3mLqFIRTeOUKJFPhlkoxi/k+ck+soUR3fzm/e0Z7c5HGaDDShf9V7pnBkWnvJzY21tqpTI+6MybZeC/Q6E/Egvfb/HBGRdOh1nAxLacTD3uKU1yS5xgzLQ+0r6BKKz3tKzb9GQj911DWXkXhJO7X1cWThuzm5Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1633135969; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Xtj7v6fBGAg02g0wDPO7bYIZJ0JpFNrpeXcNZcEauro=; b=YElGHeHF+xJLkrw0XfID2VQrDihMNn1ctRvQPrg+5T6RsmLG1zqOPXKXsl7ApnaPgmKFLDDXId8Km2monAdUsrBTecUMq78TQCPESEPkHG/QdzHTHIJlTh6SBfPr8EkQY9KePBC6fNxYPaVvo2ks/H72xc/n12CcvJZemaPYHlk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+81380+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1633135969536575.9240542898193; Fri, 1 Oct 2021 17:52:49 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id mGuDYY1788612x6tHnevsEne; Fri, 01 Oct 2021 17:52:49 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.5777.1633135968326986995 for ; Fri, 01 Oct 2021 17:52:48 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DDB8D6E; Fri, 1 Oct 2021 17:52:48 -0700 (PDT) X-Received: from u200856.usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BCF463F766; Fri, 1 Oct 2021 17:52:47 -0700 (PDT) From: "Jeremy Linton" To: devel@edk2.groups.io Cc: pete@akeo.ie, ardb+tianocore@kernel.org, leif@nuviainc.com, awarkentin@vmware.com, Sunny.Wang@arm.com, samer.el-haj-mahmoud@arm.com, Jeremy Linton Subject: [edk2-devel] [PATCH 4/5] Platform/RaspberryPi: Normal memory should not be marked as uncached Date: Fri, 1 Oct 2021 19:52:37 -0500 Message-Id: <20211002005238.40280-5-jeremy.linton@arm.com> In-Reply-To: <20211002005238.40280-1-jeremy.linton@arm.com> References: <20211002005238.40280-1-jeremy.linton@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jeremy.linton@arm.com X-Gm-Message-State: UAyq3GKzTmaLHk6S6cAFdY9Nx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1633135969; bh=GYu3RZG5ctxJosVn51Mg5dIBLab7iRs+6W/mR/fv9G8=; h=Cc:Date:From:Reply-To:Subject:To; b=oLLHQkd0WkV/iX1zJBk06/1JBSvfAAm9QHKlK8QY6AWXWfkV/oaxYo6khu+5KXfIBKl kXMQajD/qASzHrYzDhP7pfcxUEqmoJDO+B2JVv93ccmxAuGfwBdFtLN33i7E1Jp3Rd/CA pD11TiyCUy8NwsyfdM4yPUqd6EYJyNffXRw= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1633135970363100013 Content-Type: text/plain; charset="utf-8" The efi spec seems to indicate that the efi uncacheable attribute should be mapped to device memory rather than normal-nc. This means that the uefi mem attribute for the >3G ram doesn't match the remainder of the RAM in the machine. So, lets remove the uncacheable attribute to make it more consistent. Signed-off-by: Jeremy Linton --- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Platform/= RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c index 2ef7da67bd..415d99fadb 100644 --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c @@ -499,7 +499,7 @@ ApplyVariables ( =20 Status =3D gDS->AddMemorySpace (EfiGcdMemoryTypeSystemMemory, 3UL * BA= SE_1GB, SystemMemorySizeBelow4GB - (3UL * SIZE_1GB), - EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_ME= MORY_WB); + EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB); ASSERT_EFI_ERROR (Status); Status =3D gDS->SetMemorySpaceAttributes (3UL * BASE_1GB, SystemMemorySizeBelow4GB - (3UL * SIZE_1GB), EFI_MEMOR= Y_WB); @@ -511,7 +511,7 @@ ApplyVariables ( // Status =3D gDS->AddMemorySpace (EfiGcdMemoryTypeSystemMemory, 4UL * = BASE_1GB, SystemMemorySize - (4UL * SIZE_1GB), - EFI_MEMORY_UC | EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_= MEMORY_WB); + EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB); ASSERT_EFI_ERROR (Status); Status =3D gDS->SetMemorySpaceAttributes (4UL * BASE_1GB, SystemMemorySize - (4UL * SIZE_1GB), EFI_MEMORY_WB); --=20 2.13.7 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#81380): https://edk2.groups.io/g/devel/message/81380 Mute This Topic: https://groups.io/mt/86014864/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-