[PATCH] mtrr: fix incorrect type detection
Stan.Hung at Dell.com
Stan.Hung at Dell.com
Wed Jun 13 05:51:20 UTC 2018
Hi folks,
Here is the patch for bug: https://bugs.launchpad.net/fwts/+bug/1776427
cache_types() in mtrr.c trying to parse the memory range covered by MTRR or not.
If match, the "end" of the range will move to the the start of MTRR.
mtrr.c #234
end = entry->start;
Ex:
Memory 0x0000 ~ 0xFFFF
MTRR 0x1000 ~ 0xFFFF WB
MTRR 0x0000 ~ 0x0FFF WB
In original flow, if we put this memory range into cache_types function.
The first round check will update the range to 0x0000 ~ 0x1000
Then it won't hit the 0x0000 ~ 0x0FFF MTRR and set the DEFAULT flag to identify the usage of default MTRR.
Regards,
Stan Hung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180613/43da1838/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-mtrr-fix-incorrect-type-detection.patch
Type: application/octet-stream
Size: 1236 bytes
Desc: 0001-PATCH-mtrr-fix-incorrect-type-detection.patch
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180613/43da1838/attachment-0001.obj>
More information about the fwts-devel
mailing list