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

2021-05-21 Thread Michael Ellerman
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

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

2021-05-20 Thread Christophe Leroy
Le 20/05/2021 à 07:52, Alexey Kardashevskiy a écrit : On 20/05/2021 15:46, Christophe Leroy wrote: Le 20/05/2021 à 05:29, Alexey Kardashevskiy a écrit : The immediate problem is that after 0bd3f9e953bd ("powerpc/legacy_serial: Use early_ioremap()") the kernel silently reboots. The

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

2021-05-19 Thread Alexey Kardashevskiy
On 20/05/2021 15:46, Christophe Leroy wrote: Le 20/05/2021 à 05:29, Alexey Kardashevskiy a écrit : 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

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

2021-05-19 Thread Christophe Leroy
Le 20/05/2021 à 05:29, Alexey Kardashevskiy a écrit : 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

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

2021-05-19 Thread Christophe Leroy
,     Michael Ellerman ,     Christophe Leroy Subject: [RFC PATCH kernel] powerpc: Fix early setup to make early_ioremap work Not sure what to believe. I got the patch. If you are looking at the mail you received from the ppc list, I think the list removes the members of the list from the Cc

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

2021-05-19 Thread Alexey Kardashevskiy
PATCH kernel] powerpc: Fix early setup to make early_ioremap work Not sure what to believe. On 20/05/2021 13:29, Alexey Kardashevskiy wrote: The immediate problem is that after 0bd3f9e953bd ("powerpc/legacy_serial: Use early_ioremap()") the kernel silently reboots.

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

2021-05-19 Thread Alexey Kardashevskiy
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 ==