Re: [PATCH] ARM: mmu: fix access to illegal address when using earlycon & memblock=debug

From: Rob Herring
Date: Thu Sep 01 2022 - 09:49:42 EST


On Thu, Sep 1, 2022 at 8:21 AM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> On Thu, Sep 1, 2022 at 7:54 AM Victor Hassan <victor@xxxxxxxxxxxxxxxxx> wrote:
> >
> >
> >
> > On 2022/8/31 20:37, Victor Hassan wrote:
> > > On 8/31/2022 7:52 PM, Marek Szyprowski wrote:
> > >> Hi Victor,
> > >>
> > >> On 16.03.2022 03:33, Victor Hassan wrote:
> > >>> earlycon uses fixmap to create a memory map,
> > >>> So we need to close earlycon before closing fixmap,
> > >>> otherwise printk will access illegal addresses.
>
> How? Due to recent changes in how printk and the consoles work or just
> because create_mapping() can print? In the latter case, the only
> variable input is the phys address. I think most if not all prints
> cannot occur.

Ah, I missed the memblock debug part on the subject...

Rob