From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9619C7803DA for ; Wed, 25 Oct 2023 08:45:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=QcJH1XgWOl3zX0hoznI0v4yNNDP7jhzBOJFYo6wLWWU=; 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=1698223540; v=1; b=grJAEiGV4mjzVYJjDIM4MWF1QAX08NwPngkun15xTFX2L4R5rbX1q7chPL6AZodleX7oswmy 4DGJAISQlIaPXX/fJB4q8hUyZjKHbZrTOjPi8gU23mHzA8dHcJEMussCRmga1lrLXbM0u5cdDH2 KWyURtaDsqsO3kMDK7/caFM4= X-Received: by 127.0.0.2 with SMTP id qEesYY7687511xWdv3PUw809; Wed, 25 Oct 2023 01:45:40 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.39237.1698223539824194575 for ; Wed, 25 Oct 2023 01:45:39 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="391133443" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="391133443" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 01:45:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="6461798" X-Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.55.100]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 01:44:17 -0700 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Eric Dong , Chasel Chiu , Nate DeSimone , Isaac Oram , Liming Gao , Yuanhao Xie Subject: [edk2-devel] [edk2-platforms V2] MinPlatformPkg:Remove memory cache setting for memory under 1MB Date: Wed, 25 Oct 2023 16:45:21 +0800 Message-Id: <20231025084521.2526-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: EascC4LsR9lwENiBleuNyJHEx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=grJAEiGV; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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. Reviewed-by: Eric Dong Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Signed-off-by: Yuanhao Xie --- Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c b/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.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); -- 2.36.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110026): https://edk2.groups.io/g/devel/message/110026 Mute This Topic: https://groups.io/mt/102174308/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-