From nobody Sat May 18 18:13:05 2024 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+109787+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+109787+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1697685636; cv=none; d=zohomail.com; s=zohoarc; b=dJJVE7Y/Qi3BtPlXbwcRMvw+k1Z6T9mMabrPyNKPkPxPcu9pCnw5IcLxA1jKkdWSvjsQaWiLOHf+qrF93Qn0bB6YYq5S3ouWfUXjj2kLErZJKOAVGKtU8LtAeRZy7aEvaSfwhNzDKiUqUQtOIKXWynjgzfaK287Ss+IHxB8K8rE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697685636; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=ktzT0SO0BRvraeAI+9gE19zUSp8kxtI8yvVvVBiMqNs=; b=ZDxIHRtXJY7jZj7TWpUlJEIe5fU6SVKIkc9hv5RzQVIxTgbo/z8HroYtLeBl8WKmy7Bcf6keNc4xzmZqSjDKyvp4/ZJPI+DK9tN7EEx/EUnONf7wJhHelsY1u7w2VJFKHyLSXmYn+DlwUfWdP0Mw/hxAo8Xx/cGRgfRj/ecki+I= 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+109787+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 1697685636292106.6420282930585; Wed, 18 Oct 2023 20:20:36 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=B9fcVyHiClQ0CVxyWmIPzGPq4hggnnRWS2NuA4ugodA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1697685635; v=1; b=osfo8glKzFSood7/TXrfueXZVgqLBKfMl55k9NIgLmXeEE0KexIyfgbuMjKqQk3qbqCVVb7m pPXtNeReG4BsYWPNLp6m4cVZDJouMUejvTlJVHZ61HGxbTgAp4rTpc/8zktEbJNKXg0cxzvuRoZ uShXebBRIRv+PFPQitOcPxXM= X-Received: by 127.0.0.2 with SMTP id k6m6YY1788612xm1ryArPbBK; Wed, 18 Oct 2023 20:20:35 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.19730.1697685634667328369 for ; Wed, 18 Oct 2023 20:20:34 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="371226793" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="371226793" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 20:20:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="733406103" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="733406103" X-Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.55.100]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 20:20:21 -0700 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Isaac Oram , Liming Gao , Eric Dong , Yuanhao Xie Subject: [edk2-devel] [PATCH] Remove memory cache setting for memory under 1MB Date: Thu, 19 Oct 2023 11:20:10 +0800 Message-Id: <20231019032010.154-1-yuanhao.xie@intel.com> MIME-Version: 1.0 Precedence: Bulk 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,yuanhao.xie@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: o6YqTmtOfCHn56WG0MKsEy6Tx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1697685637620100001 Content-Type: text/plain; charset="utf-8" With the fact that CSM is not supported, the request is to remove the cache setting for memory under 1MB. This can be treated as the missing part of legacy CSM deprecation. This patch only set the 00000 to 9FFFF and C0000 to FFFFF as Write Back. A0000-BFFFF range is still uncacheable for VGA. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Signed-off-by: Yuanhao Xie Reviewed-by: Eric Dong --- Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c | = 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCache= MtrrLib.c b/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheM= trrLib.c index 05728275a5..38a8db6b3f 100644 --- a/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib= .c +++ b/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib= .c @@ -245,7 +245,7 @@ SetCacheMtrrAfterEndOfPei ( &MtrrSetting, 0xC0000, 0x40000, - CacheWriteProtected + CacheWriteBack ); ASSERT_EFI_ERROR ( Status); =20 --=20 2.36.1.windows.1 -=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 (#109787): https://edk2.groups.io/g/devel/message/109787 Mute This Topic: https://groups.io/mt/102037244/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-