summaryrefslogtreecommitdiff
path: root/src/acpi
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@fb.com>2020-10-14 15:07:51 -0700
committerMarc Jones <marc@marcjonesconsulting.com>2020-10-20 20:38:59 +0000
commit320ad9351bb78c09ffd15fccd1ecc3089f068ab6 (patch)
treeac80b6a9ab18887353fbad107d690f8b3f09e472 /src/acpi
parentb4b73d49958184c833844a3a6f6a3777dd469ceb (diff)
cpu/x86/mtrr: add support for address space higher than 16TiB
On DeltaLake server, there are following entry in MTRR address space: 0x0000201000000000 - 0x0000201000400000 size 0x00400000 type 0 In this case, the base address (with 4k granularity) cannot be held in uint32_t. This results incorrect MTRR register setup. As the consequence UEFI forum FWTS reports following critical error: Memory range 0x100000000 to 0x183fffffff (System RAM) has incorrect attribute Uncached. Change appropriate variables' data type from uint32_t to uint64_t. Add fls64() to find least significant bit set in a 64-bit word. Add fms64() to find most significant bit set in a 64-bit word. Signed-off-by: Jonathan Zhang <jonzhang@fb.com> Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Change-Id: I41bc5befcc1374c838c91b9f7c5279ea76dd67c7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46435 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/acpi')
0 files changed, 0 insertions, 0 deletions