u-boot/arch
Bin Meng 3dfa411501 x86: fsp: Use mtrr_set_next_var() for graphics memory
At present this uses mtrr_add_request() & mtrr_commit() combination
to program the MTRR for graphics memory. This usage has two major
issues as below:

- mtrr_commit() will re-initialize all MTRR registers from index 0,
  using the settings previously added by mtrr_add_request() and saved
  in gd->arch.mtrr_req[], which won't cause any issue but is unnecessary
- The way such combination works is based on the assumption that U-Boot
  has full control with MTRR programming (e.g.: U-Boot without any blob
  that does all low-level initialization on its own, or using FSP2 which
  does not touch MTRR), but this is not the case with FSP. FSP programs
  some MTRRs during its execution but U-Boot does not have the settings
  saved in gd->arch.mtrr_req[] and when doing mtrr_commit() it will
  corrupt what was already programmed previously.

Correct this to use mtrr_set_next_var() instead.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-08-01 10:06:46 +08:00
..
arc global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
arm board: rockchip: Add Radxa E25 Carrier Board 2023-07-31 20:34:32 +08:00
m68k m68k: dts: add watchdog node 2023-07-25 23:21:42 +02:00
microblaze arm64: zynqmp: Switch to amd.com emails 2023-07-21 09:00:38 +02:00
mips mips: octeon: Correct types in cvmx-pko3-queue 2023-07-20 14:48:20 -04:00
nios2 dm: Emit the arch_cpu_init_dm() even only before relocation 2023-05-11 10:25:29 +08:00
powerpc Merge tag 'fsl-qoriq-2023-7-13' of https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2023-07-19 07:59:34 -04:00
riscv riscv: define a cache line size for the generic CPU 2023-07-24 13:22:24 +08:00
sandbox Revert "Merge branch '2023-07-24-introduce-FF-A-suppport'" 2023-07-24 19:51:05 -04:00
sh sh: use asm-generic/unaligned.h 2023-05-31 14:05:34 -04:00
x86 x86: fsp: Use mtrr_set_next_var() for graphics memory 2023-08-01 10:06:46 +08:00
xtensa global: Migrate CONFIG_MAX_MEM_MAPPED to CFG 2022-12-23 10:14:51 -05:00
.gitignore
Kconfig acpi: Create a new Kconfig for ACPI 2023-05-11 10:25:29 +08:00
Kconfig.nxp LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms 2023-07-06 13:04:56 +08:00
u-boot-elf.lds