mirror of https://github.com/acidanthera/audk.git
IntelSiliconPkg IntelVTdPmrPei: Use HostAddressWidth in DMAR correctly
According to VTd spec, HostAddressWidth + 1 should be used as the real host address width value. Host Address Width: This field indicates the maximum DMA physical addressability supported by this platform. The system address map reported by the BIOS indicates what portions of this addresses are populated. The Host Address Width (HAW) of the platform is computed as (N+1), where N is the value reported in this field. For example, for a platform supporting 40 bits of physical addressability, the value of 100111b is reported in this field. Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
e8097a74b7
commit
9dd8b1908e
|
@ -677,7 +677,7 @@ InitVTdPmrForAll (
|
|||
LowBottom = 0;
|
||||
LowTop = 0;
|
||||
HighBottom = 0;
|
||||
HighTop = LShiftU64 (1, VTdInfo->HostAddressWidth);
|
||||
HighTop = LShiftU64 (1, VTdInfo->HostAddressWidth + 1);
|
||||
|
||||
Status = SetDmaProtectedRange (
|
||||
VTdInfo,
|
||||
|
|
Loading…
Reference in New Issue