diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-05-05 10:10:00 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-05-08 13:36:50 +0800 |
commit | 85426bd10624db59968013b121b65cc658cf2036 (patch) | |
tree | ba943d54804699a616e855263046ec7ee70e804b /NetworkPkg/TcpDxe | |
parent | 455af1049f414c785e25ee766ee7c9b49580b18e (diff) | |
download | edk2-85426bd10624db59968013b121b65cc658cf2036.tar.gz edk2-85426bd10624db59968013b121b65cc658cf2036.tar.bz2 edk2-85426bd10624db59968013b121b65cc658cf2036.zip |
UefiCpuPkg/MtrrLib: Don't report OutOfResource when MTRR is enough
The MTRR calculation algorithm contains a bug that when left
subtraction cannot produce better MTRR solution, it forgets
to restore the BaseAddress/Length so that MtrrLibGetMtrrNumber()
returns bigger value of actual required MTRR numbers.
As a result, the MtrrLib reports OutOfResource but actually the
MTRR is enough.
MEMORY_RANGE mC[] = {
0, 0x100000, CacheUncacheable,
0x100000, 0x89F00000, CacheWriteBack,
0x8A000000, 0x75000000, CacheUncacheable,
0xFF000000, 0x01000000, CacheWriteProtected,
0x100000000, 0x7F00000000, CacheUncacheable,
0xFC240000, 0x2000, CacheWriteCombining // <-- trigger the error
};
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
(cherry picked from commit 3654c4623c9b37ddc64426995fa399d8626b7ced)
Diffstat (limited to 'NetworkPkg/TcpDxe')
0 files changed, 0 insertions, 0 deletions