[edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpu: Remove hardcode 48 address size limitation

Ni, Ray ray.ni at intel.com
Sat May 15 00:04:22 UTC 2021


Laszlo,
Do you think that another API is also needed: GetPhysicalAddressWidth() that returns number 36/52?
physical address width is needed by (besides those that rely on the width for mask calculation):
  UefiCpuPkg\CpuMpPei\CpuPaging.c
  UefiCpuPkg\PiSmmCpuDxeSmm\X64\PageTbl.c
  MdeModulePkg\Core\DxeIplPeim\X64\VirtualMemory.c
  MdeModulePkg\Universal\Acpi\S3SaveStateDxe\AcpiS3ContextSave.c
  MdeModulePkg\Universal\CapsulePei\UefiCapsule.c
  MdePkg\Library\SmmIoLib\SmmIoLib.c
  OvmfPkg\XenPlatformPei\MemDetect.c
  UefiCpuPkg\Universal\Acpi\S3Resume2Pei\S3Resume.c
  UefiPayloadPkg\UefiPayloadEntry\X64\VirtualMemory.c


GetPhysicalAddressMask() can call GetPhysicalAddressWidth().

Since it's a large-scale change but the SMM high MMIO access bug is critical/urgent, I prefer to firstly push this bug fix change and then work on the new APIs.

https://bugzilla.tianocore.org/show_bug.cgi?id=3394 was submitted to capture this.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75134): https://edk2.groups.io/g/devel/message/75134
Mute This Topic: https://groups.io/mt/82765279/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210514/2b4d270f/attachment.htm>


More information about the edk2-devel-archive mailing list