diff options
author | Alexey Kardashevskiy <[email protected]> | 2021-05-20 13:29:19 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-05-20 16:43:26 +1000 |
commit | e2f5efd0f0e229bd110eab513e7c0331d61a4649 (patch) | |
tree | e76abd9031895dad3b1b086390570f12fdad4c8b /scripts/gdb/linux/timerlist.py | |
parent | d07f6ca923ea0927a1024dfccafc5b53b61cfecc (diff) |
powerpc: Fix early setup to make early_ioremap() work
The immediate problem is that after commit
0bd3f9e953bd ("powerpc/legacy_serial: Use early_ioremap()") the kernel
silently reboots on some systems.
The reason is that early_ioremap() returns broken addresses as it uses
slot_virt[] array which initialized with offsets from FIXADDR_TOP ==
IOREMAP_END+FIXADDR_SIZE == KERN_IO_END - FIXADDR_SIZ + FIXADDR_SIZE ==
__kernel_io_end which is 0 when early_ioremap_setup() is called.
__kernel_io_end is initialized little bit later in early_init_mmu().
This fixes the initialization by swapping early_ioremap_setup() and
early_init_mmu().
Fixes: 265c3491c4bc ("powerpc: Add support for GENERIC_EARLY_IOREMAP")
Signed-off-by: Alexey Kardashevskiy <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
[mpe: Drop unrelated cleanup & cleanup change log]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions