u-boot/arch/x86/cpu
Bin Meng ef329a6a73 sysreset: Remove DM_FLAG_PRE_RELOC flag in various drivers
When a driver declares DM_FLAG_PRE_RELOC flag, it wishes to be
bound before relocation. However due to a bug in the DM core,
the flag only takes effect when devices are statically declared
via U_BOOT_DEVICE(). This bug has been fixed recently by commit
"dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in
lists_bind_fdt()", but with the fix, it has a side effect that
all existing drivers that declared DM_FLAG_PRE_RELOC flag will
be bound before relocation now. This may expose potential boot
failure on some boards due to insufficient memory during the
pre-relocation stage.

To mitigate this potential impact, the following changes are
implemented:

- Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver
  only supports configuration from device tree (OF_CONTROL)
- Keep DM_FLAG_PRE_RELOC flag in the driver only if the device
  is statically declared via U_BOOT_DEVICE()
- Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for
  drivers that support both statically declared devices and
  configuration from device tree

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-11-14 09:16:28 -08:00
..
baytrail x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
braswell x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
broadwell SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot x86: Update mtrr functions to allow leaving cache alone 2018-10-09 04:40:27 -06:00
efi x86: zimage: Support booting Linux kernel from an EFI payload 2018-08-30 11:23:14 +08:00
i386 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_common x86: Use microcode update from device tree for all processors 2018-07-02 09:23:28 +08:00
ivybridge x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
qemu x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
quark x86: quark: Specify X86_TSC_TIMER_EARLY_FREQ 2018-10-22 17:51:45 +08:00
queensbay x86: irq: Remove chipset specific irq router drivers 2018-06-13 09:50:57 +08:00
tangier sysreset: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
x86_64 x86: Fix the mystery of printch() during 64-bit boot 2018-10-22 17:51:45 +08:00
call32.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c x86: acpi: Don't touch ACPI hardware in write_acpi_tables() 2018-07-20 09:33:22 +08:00
cpu_x86.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
irq.c x86: irq: Support discrete PIRQ routing registers via device tree 2018-06-13 09:50:57 +08:00
lapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile x86: efi: Refactor the directory of EFI app and payload support 2018-06-17 21:16:04 +08:00
mp_init.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtrr.c x86: Update mtrr functions to allow leaving cache alone 2018-10-09 04:40:27 -06:00
pci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
resetvec.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sipi_vector.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start.S x86: Fix car_uninit weak symbol definition 2018-10-28 21:02:15 +08:00
start16.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start64.S x86: Fix the mystery of printch() during 64-bit boot 2018-10-22 17:51:45 +08:00
turbo.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -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 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00