diff options
| author | Mike Rapoport <[email protected]> | 2021-04-13 18:08:39 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-04-14 06:16:48 +0000 |
| commit | c361e5d4d07d63768880e1994c7ed999b3a94cd9 (patch) | |
| tree | d5cada68dad8a404e442722cd815c9fb6268dbdb /lib/dynamic_debug.c | |
| parent | x86/setup: Merge several reservations of start of memory (diff) | |
| download | kernel-c361e5d4d07d63768880e1994c7ed999b3a94cd9.tar.gz kernel-c361e5d4d07d63768880e1994c7ed999b3a94cd9.zip | |
x86/setup: Move trim_snb_memory() later in setup_arch() to fix boot hangs
Commit
a799c2bd29d1 ("x86/setup: Consolidate early memory reservations")
moved reservation of the memory inaccessible by Sandy Bride integrated
graphics very early, and, as a result, on systems with such devices
the first 1M was reserved by trim_snb_memory() which prevented the
allocation of the real mode trampoline and made the boot hang very
early.
Since the purpose of trim_snb_memory() is to prevent problematic pages
ever reaching the graphics device, it is safe to reserve these pages
after memblock allocations are possible.
Move trim_snb_memory() later in boot so that it will be called after
reserve_real_mode() and make comments describing trim_snb_memory()
operation more elaborate.
[ bp: Massage a bit. ]
Fixes: a799c2bd29d1 ("x86/setup: Consolidate early memory reservations")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Mike Rapoport <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Tested-by: Hugh Dickins <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
