From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.27568.1613365999964009221 for ; Sun, 14 Feb 2021 21:13:20 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: guo.dong@intel.com) IronPort-SDR: 14dQmkCbFq0NwigNZ2mT2ZxVGY2kNWyEWJ0qJb9trgcrAwkYbu6gBozsvAS1WCrH945JsvlAM1 FBSFAFkQNLdA== X-IronPort-AV: E=McAfee;i="6000,8403,9895"; a="179117707" X-IronPort-AV: E=Sophos;i="5.81,179,1610438400"; d="scan'208";a="179117707" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2021 21:13:15 -0800 IronPort-SDR: zIXE1WCnUOTnlnf18TqQAXsJPRz2ZZ6hPZ6CgFzxDVMRBMkTf1KFmB3LiobMxBbspJo1z7Vkn6 hXO1/A9FSAZQ== X-IronPort-AV: E=Sophos;i="5.81,179,1610438400"; d="scan'208";a="398905002" Received: from gdong1-mobl.amr.corp.intel.com ([10.209.67.41]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2021 21:13:14 -0800 From: "Guo Dong" To: devel@edk2.groups.io Cc: maurice.ma@intel.com, benjamin.you@intel.com Subject: [edk2-devel] [PATCH] UefiPayloadPkg/UefiPayloadEntry: Remove 4GB memory WA Date: Sun, 14 Feb 2021 22:13:08 -0700 Message-Id: <20210215051308.11796-1-guo.dong@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Previous it would hang in CpuDxe if DXE drivers are dispatched above 4GB. Now remove the work around since the fixed in CpuDxe are merged. Signed-off-by: Guo Dong --- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c index 805f5448d9..c403b0a80a 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -40,11 +40,6 @@ MemInfoCallback ( EFI_RESOURCE_ATTRIBUTE_WRITE_THROUGH_CACHEABLE | EFI_RESOURCE_ATTRIBUTE_WRITE_BACK_CACHEABLE; - if (Base >= BASE_4GB ) { - // Remove tested attribute to avoid DXE core to dispatch driver to memory above 4GB - Attribue &= ~EFI_RESOURCE_ATTRIBUTE_TESTED; - } - BuildResourceDescriptorHob (Type, Attribue, (EFI_PHYSICAL_ADDRESS)Base, Size); DEBUG ((DEBUG_INFO , "buildhob: base = 0x%lx, size = 0x%lx, type = 0x%x\n", Base, Size, Type)); -- 2.16.2.windows.1