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 7D068941A69 for ; Wed, 18 Oct 2023 13:29:07 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=SRRP9Z6Q6n1Ei70ucKsPw+aWGmVgOOPpHUhyvBlhxLU=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1697635746; v=1; b=n/sbK0tdFJxjUXXc+wOVMiYizywGGEvvyw0KEP0k2JcGU+ABd7Ulqt3/rW0PLkesLj5IYVm4 eEsSuw8MOT6bzs6fhjpct+NTKfBk1G11GDtSM+A6rOrJLMhE3aMySTn9q4qpn1gNysjzMlVgpoz zxR5XlI4BAcjxOsdie1VXVo0= X-Received: by 127.0.0.2 with SMTP id tfsWYY7687511xEsSdse1Qvu; Wed, 18 Oct 2023 06:29:06 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.281165.1697635745380101479 for ; Wed, 18 Oct 2023 06:29:05 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-695-z74D3uO5MBembEuIAdQmnA-1; Wed, 18 Oct 2023 09:28:58 -0400 X-MC-Unique: z74D3uO5MBembEuIAdQmnA-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C3CCF88D027; Wed, 18 Oct 2023 13:28:57 +0000 (UTC) X-Received: from [10.39.192.202] (unknown [10.39.192.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 560892166B26; Wed, 18 Oct 2023 13:28:57 +0000 (UTC) Message-ID: <51858967-4f57-da20-aa8c-221c43e4bc3c@redhat.com> Date: Wed, 18 Oct 2023 15:28:56 +0200 MIME-Version: 1.0 Subject: Re: [edk2-devel] [PATCH] Remove memory cache setting for memory under 1MB To: devel@edk2.groups.io, yuanhao.xie@intel.com References: <20231018115531.108-1-yuanhao.xie@intel.com> From: "Laszlo Ersek" In-Reply-To: <20231018115531.108-1-yuanhao.xie@intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: NauybtKlFxMA7ikoZ7DCE7wvx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="n/sbK0td"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.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 On 10/18/23 13:55, Yuanhao Xie wrote: > 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. >=20 > This patch only set the 00000 to 9FFFF and C0000 to FFFFF as Write Back. > A0000-BFFFF range is still uncacheable for VGA. >=20 > M: Chasel Chiu > M: Nate DeSimone > M: Isaac Oram > R: Liming Gao > R: Eric Dong > Signed-off-by: Yuanhao Xie > --- > Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c = | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCac= heMtrrLib.c b/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCach= eMtrrLib.c > index 05728275a5..38a8db6b3f 100644 > --- a/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrL= ib.c > +++ b/Platform/Intel/MinPlatformPkg/Library/SetCacheMtrrLib/SetCacheMtrrL= ib.c > @@ -245,7 +245,7 @@ SetCacheMtrrAfterEndOfPei ( > &MtrrSetting, > 0xC0000, > 0x40000, > - CacheWriteProtected > + CacheWriteBack > ); > ASSERT_EFI_ERROR ( Status); > =20 Patch subject line is bogus; first, it does not identify edk2-platforms between the brackets, second, the subject proper does not identify MinPlatformPkg. Laszlo -=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 (#109747): https://edk2.groups.io/g/devel/message/109747 Mute This Topic: https://groups.io/mt/102037244/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-