From: Star Zeng Date: Tue, 16 Jan 2018 08:41:42 +0000 (+0800) Subject: IntelSiliconPkg IntelVTdPmrPei: Refine comments about PHMR/PLMR.Limit X-Git-Tag: edk2-stable201903~2591 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e8097a74b763bfc439c273ddfef8e1d542d83ea7;hp=6478baf891524348451d75a37f4e4692b835a45b IntelSiliconPkg IntelVTdPmrPei: Refine comments about PHMR/PLMR.Limit According to VTd spec, the real hardware decoded limit should be PHMR/PLMR.Limit value + alignment value. "Bits N:0 of the limit register are decoded by hardware as all 1s." Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao --- diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.c b/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.c index 7147a19f53..8f86d4cd15 100644 --- a/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.c +++ b/IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. @@ -60,7 +60,7 @@ typedef struct { PEI Memory Layout: - +------------------+ <=============== PHMR.Limit (Top of memory) + +------------------+ <=============== PHMR.Limit (+ alignment) (Top of memory) | Mem Resource | | | @@ -72,7 +72,7 @@ typedef struct { DMA Buffer | * DMA FREE * | | | -------------- | V | Read/Write Buf | - =========== +==================+ <=============== PLMR.Limit + =========== +==================+ <=============== PLMR.Limit (+ alignment) | PEI allocated | | -------------- | <------- EfiFreeMemoryTop | * PEI FREE * |