Re: [RFC PATCH kernel] powerpc: Fix early setup to make early_ioremap work

From
Michael Ellerman <hidden>
Date
2021-05-21 12:45:36
Reply to
Alexey Kardashevskiy, 2021-05-20
On Thu, 20 May 2021 13:29:19 +1000, Alexey Kardashevskiy wrote:
The immediate problem is that after
0bd3f9e953bd ("powerpc/legacy_serial: Use early_ioremap()")
the kernel silently reboots. 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().

[...]
Applied to powerpc/fixes.

[1/1] powerpc: Fix early setup to make early_ioremap work
      https://git.kernel.org/powerpc/c/e2f5efd0f0e229bd110eab513e7c0331d61a4649

cheers
Thread (7 messages) 7 messages, 3 authors, last reply 2021-05-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help