u-boot/arch/x86/cpu
Bin Meng f72d3d6b04 x86: Avoid using hardcoded number of variable range MTRRs in mtrr_commit()
Since commit 29d2d64ed5 ("x86: Add support for more than 8 MTRRs"),
the maximum number of variable range MTRRs was increased from 8 to 10.
On the BayTrail platform there are only 8 variable range MTRRs. In
mtrr_commit() it still uses MTRR_MAX_COUNT which caused a #GP during
VESA video driver probe. It should have been updated to use dynamically
probed number.

This fixes the boot failure seen on Intel Minnow Max board.

Fixes: 29d2d64ed5 ("x86: Add support for more than 8 MTRRs")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-11-10 09:25:25 +08:00
..
apollolake x86: Silence some logging statements 2020-11-06 09:51:32 +08:00
baytrail cpu: Convert the methods to use a const udevice * 2020-07-25 14:46:57 -06:00
braswell common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
broadwell CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined 2020-08-26 09:19:16 +02:00
coreboot x86: Rename board_final_cleanup() to board_final_init() 2020-07-17 14:32:24 +08:00
efi x86: Rename board_final_cleanup() to board_final_init() 2020-07-17 14:32:24 +08:00
i386 x86: Show the interrupt pointer with 'irqinfo' 2020-11-06 09:51:29 +08:00
intel_common x86: Silence some logging statements 2020-11-06 09:51:32 +08:00
ivybridge sf: Drop dm.h header file from spi_flash.h 2020-08-03 22:19:54 -04:00
qemu cpu: Convert the methods to use a const udevice * 2020-07-25 14:46:57 -06:00
quark x86: Change how selection of ROMs works 2020-07-28 19:30:39 -06:00
queensbay common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
slimbootloader common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tangier x86: edison: Generate an image suitable for xFSTK 2020-09-25 11:27:28 +08:00
x86_64 x86: cpu: Report address width from cpu_get_info() 2020-09-25 11:27:21 +08:00
acpi_gpe.c x86: irq: Support flags for acpi_gpe 2020-07-17 14:32:24 +08:00
call32.S x86: call32: Append appropriate suffixes 2020-08-03 10:46:56 +08:00
config.mk Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
cpu.c x86: Allow writing tables to fail 2020-11-05 14:58:45 +08:00
cpu_x86.c cpu: Convert the methods to use a const udevice * 2020-07-25 14:46:57 -06:00
ioapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
irq.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
lapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile x86: Don't enable SMP in SPL 2020-07-20 09:46:46 +08:00
mp_init.c x86: mp: Add more comments to the module 2020-07-20 09:46:48 +08:00
mtrr.c x86: Avoid using hardcoded number of variable range MTRRs in mtrr_commit() 2020-11-10 09:25:25 +08:00
pci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
qfw_cpu.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S x86: sipi_vector: Append appropriate suffixes 2020-08-03 10:46:56 +08:00
start.S x86: Introduce USE_EARLY_BOARD_INIT option 2020-09-01 13:38:31 +08:00
start16.S Revert "x86: use invd instead of wbinvd in real mode start code" 2020-03-05 18:19:40 +08:00
start64.S x86: start64: Fix copyright message 2019-05-08 13:02:10 +08:00
start_from_spl.S x86: Use the existing stack when chain-loading 2020-04-30 17:48:17 +08:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
turbo.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
u-boot-64.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
u-boot-spl.lds x86: Define the SPL image start 2019-12-15 11:44:12 +08:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00