[edk2-devel] [PATCH v2 2/2] ArmVirtPkg/ArmVirtQemu: Avoid early ID map on ThunderX

Ard Biesheuvel ardb at kernel.org
Thu Jan 19 12:21:39 UTC 2023


On Thu, 19 Jan 2023 at 12:56, Marc Zyngier <maz at kernel.org> wrote:
>
> On Thu, 19 Jan 2023 11:11:34 +0000,
> Ard Biesheuvel <ardb at kernel.org> wrote:
> >
> >  (cc Marc)
> >
> > Context:
> > - on my TX2 (with the S1PTW r/o memslot fix applied), the new version
> > of ArmVirtQemu that uses an initial ID map in emulated NOR flash works
> > fine.
> > - in Oliver's case (which is a slightly different flavor of TX2), it
> > crashes extremely early, presumably at the point where this ID map is
> > activated.
>
> Oliver seems to have a vintage ThunderX (aka the worst arm64
> implementation in history!), so it is indeed a very different beat
> from TX2.
>

No, it's a TX2 alright - we disabled this ID map for TX1 already
because it tickles the I-cache corruption erratum (EDK2 runs at EL1
and the initial ID map is ASID scoped with non-global mappings, so
that we can switch to the actual ID map seamlessly)

> Without the kernel patch[1], I can trigger the issue pretty reliably,
> specially in the absence of THP. It all depends on the layout of the
> EDK2 object and the order in which pages get mapped.
>
> The first course of action would be to make sure that the patch is
> applied to the host kernel. If this still fails to boot, I'm happy to
> help investigating it.
>

indeed.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98896): https://edk2.groups.io/g/devel/message/98896
Mute This Topic: https://groups.io/mt/96075174/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list