KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

pmm: properly detect first available memory region #281

Closed wipawel closed 1 year ago

wipawel commented 1 year ago

For the first available usable region we need a space of at least EARLY_VIRT_MEM MB, which is not below first MB. Since some UEFI firmware allocates more than one usable region below the first MB with size of 4096 bytes, it is better to dynamically scan all usable regions and select the first one matching above criteria.

sirdarckcat commented 1 year ago

Thanks!!

Tested on a Thinkstation P360 Tower (1S)MT that had the affected issue and it works!