u-boot/arch/x86/include/asm
Bin Meng 9a7c6fde07 x86: mtrr: Abort if requested size is not power of 2
The size parameter of mtrr_add_request() and mtrr_set_next_var()
shall be power of 2, otherwise the logic creates a mask that does
not meet the requirement of IA32_MTRR_PHYSMASK register.

Programming such a mask value to IA32_MTRR_PHYSMASK generates #GP.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested on chromebook_coral, chromebook_samus, chromebook_link, minnowmax
Tested-by: Simon Glass <sjg@chromium.org>
2021-08-02 15:11:41 +08:00
..
acpi x86: Add a layout for Chrome OS verified boot 2020-11-05 14:58:45 +08:00
arch-apollolake x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13:00
arch-baytrail x86: baytrail: acpi: Replace _ADR() by _UID() in description of PCI host bridge 2020-06-02 09:16:13 +08:00
arch-braswell command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
arch-broadwell dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
arch-coreboot x86: Move coreboot timestamp info into coreboot_tables.h 2021-03-27 13:59:37 +13:00
arch-ivybridge x86: Make MSR_PKG_POWER_SKU common 2019-12-15 11:44:20 +08:00
arch-qemu x86: qemu: Support getting high memory size 2019-09-10 14:19:39 +08:00
arch-quark x86: quark: acpi: Replace _ADR() by _UID() in description of PCI host bridge 2020-06-02 09:16:13 +08:00
arch-queensbay SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
arch-slimbootloader x86: slimbootloader: Set TSC information for tsc_timer 2019-08-09 22:24:02 +08:00
arch-tangier x86: tangier: acpi: Drop _HID() where enumerated by _ADR() 2020-06-02 09:16:13 +08:00
fsp fsp: Move and rename fsp_types.h file 2020-12-31 14:41:31 +01:00
fsp1 x86: fsp: Make the notify API call common 2019-12-15 11:44:17 +08:00
fsp2 x86: fsp: Support a warning message when DRAM init is slow 2020-07-17 14:32:24 +08:00
video x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
acpi.h x86: acpi: Move APIs unrelated to ACPI tables generation to a separate library 2018-07-20 09:33:22 +08:00
acpi_nhlt.h x86: Drop nhlt_serialise() 2020-09-01 17:00:28 +08:00
acpi_table.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
acpigen.h x86: acpi: Add PCT and PTC tables 2020-09-25 11:27:18 +08:00
atomic.h x86: Convert from ACCESS_ONCE to READ/WRITE_ONCE 2020-07-01 10:11:03 -04:00
bitops.h x86: Define PLATFORM__SET_BIT for generic_set_bit() 2018-05-15 21:44:05 -04:00
bootm.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootparam.h x86: Update the bootparam header 2020-09-25 11:27:06 +08:00
byteorder.h x86: Fix up byteorder.h for x86_64 2017-02-06 11:38:46 +08:00
cache.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cb_sysinfo.h x86: Add function comments to cb_sysinfo.h 2021-07-15 19:50:17 +08:00
cmos_layout.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.h lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
control_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot_tables.h x86: coreboot: Update parsing of the latest sysinfo 2021-03-27 13:59:59 +13:00
cpu.h x86: cpu: Report address width from cpu_get_info() 2020-09-25 11:27:21 +08:00
cpu_common.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
cpu_x86.h cpu: Convert the methods to use a const udevice * 2020-07-25 14:46:57 -06:00
dma-mapping.h dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
e820.h x86: Allow installing an e820 when booting from coreboot 2021-03-27 15:04:29 +13:00
early_cmos.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fast_spi.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fsp_arch.h x86: Move fsp_ffs.h include to fsp_arch.h 2019-10-08 13:50:55 +08:00
global_data.h x86: Store the coreboot table address in global_data 2020-07-17 14:32:24 +08:00
gpio.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
handoff.h x86: fsp: Save usable RAM and hob_list in the handoff area 2019-10-08 13:57:36 +08:00
hob.h x86: fsp: Tidy up comment style a little 2019-10-08 13:53:54 +08:00
i8254.h sound: x86: Add beeping support in i8254 2019-02-20 15:27:09 +08:00
i8259.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ibmpc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_acpi.h x86: acpi: Add common Intel ACPI tables 2020-09-25 11:27:18 +08:00
intel_gnvs.h x86: Fix member check in intel_gnvs 2021-03-09 09:42:12 +08:00
intel_opregion.h x86: apl: Support writing the IntelGraphicsMem table 2020-09-25 11:27:15 +08:00
intel_pinctrl.h dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
intel_pinctrl_defs.h gpio: x86: Drop the deprecated methods in intel_gpio 2021-03-03 15:40:11 -05:00
intel_regs.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
interrupt.h x86: Show the interrupt pointer with 'irqinfo' 2020-11-06 09:51:29 +08:00
io.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ioapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioctl.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
irq.h x86: irq: Fix some typos 2020-08-03 10:46:56 +08:00
ist.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
itss.h x86: Move priv/plat structs for intel_common to headers 2021-01-05 12:24:41 -07:00
lapic.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
linkage.h x86: move arch-specific asmlinkage to <asm/linkage.h> 2014-12-15 07:22:53 -07:00
lpc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpss.h x86: Add low-power subsystem (lpss) support 2019-12-15 11:44:25 +08:00
me_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
microcode.h x86: Use microcode update from device tree for all processors 2018-07-02 09:23:28 +08:00
mp.h x86: Update the MP constants to avoid conflicts 2021-07-15 19:50:04 +08:00
mpspec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrc_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mrccache.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
msr-index.h x86: apl: Add core init for the SoC 2020-11-05 14:58:45 +08:00
msr.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtrr.h x86: mtrr: Abort if requested size is not power of 2 2021-08-02 15:11:41 +08:00
p2sb.h x86: Move priv/plat structs for intel_common to headers 2021-01-05 12:24:41 -07:00
pch_common.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci.h x86: pci: Drop the first parameter in pci_x86_r/w_config() 2019-10-08 13:57:46 +08:00
pirq_routing.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu.h x86: Fix header guard in asm/pmu.h 2021-01-05 12:24:41 -07:00
pnp_def.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h x86: Change __kernel_size_t conditionals to use compiler provided defines 2018-06-24 08:56:04 +08:00
post.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor-flags.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
processor.h x86: Add support for newer CAR schemes 2019-12-15 11:44:18 +08:00
ptrace.h x86: Display correct CS/EIP/EFLAGS when there is an error code 2015-07-28 10:36:21 -06:00
report_platform.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
scu.h x86: cpu: introduce scu_ipc_raw_command() 2018-09-17 14:34:15 +08:00
sections.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
setjmp.h x86: Add 64-bit setjmp/longjmp implementation 2018-06-24 08:56:04 +08:00
sfi.h SPDX: Convert all of our multiple license tags to Linux Kernel style 2018-05-07 10:24:31 -04:00
sipi.h Use __ASSEMBLY__ as the assembly macros 2020-05-18 21:19:23 -04:00
smm.h x86: Add some definitions for SMM 2020-09-25 11:27:16 +08:00
speedstep.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.h x86: spi: Add helper functions for Intel Fast SPI 2019-12-15 11:44:08 +08:00
string.h x86: do not use i386 code for x86_64 memory functions 2019-02-13 09:40:06 +01:00
sysreset.h x86: sysreset: Move priv/plat structs to headers 2021-01-05 12:24:41 -07:00
tables.h x86: Allow writing tables to fail 2020-11-05 14:58:45 +08:00
turbo.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
types.h arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
u-boot-x86.h x86: Drop setup_pcat_compatibility() 2020-07-17 14:32:24 +08:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h x86: Rename i386 to x86 2011-04-13 19:43:28 +10:00
zimage.h x86: zimage: Allow dumping the image from outside the module 2021-02-01 15:33:25 +08:00