IntelSiliconPkg/VtdInfoSample: Fix IGD RMRR memory.
Fix a calculation problem in IGD RMRR memory.
Cc: Zeng Star <zeng.star@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Zeng Star <zeng.star@intel.com>
(cherry picked from commit c13cb4aebf
)
This commit is contained in:
@ -159,7 +159,7 @@ PatchDmar (
|
||||
/// Calculate GTT mem size
|
||||
///
|
||||
GttMemSize = 0;
|
||||
GttMode = PciRead16 (PCI_LIB_ADDRESS(0, 0, 0, R_SA_GGC) & B_SKL_SA_GGC_GGMS_MASK) >> N_SKL_SA_GGC_GGMS_OFFSET;
|
||||
GttMode = (PciRead16 (PCI_LIB_ADDRESS(0, 0, 0, R_SA_GGC)) & B_SKL_SA_GGC_GGMS_MASK) >> N_SKL_SA_GGC_GGMS_OFFSET;
|
||||
if (GttMode <= V_SKL_SA_GGC_GGMS_8MB) {
|
||||
GttMemSize = (1 << GttMode) * (1024) * (1024);
|
||||
}
|
||||
|
Reference in New Issue
Block a user