Re: [PATCH v4] x86/mm/ident_map: On UV systems, use gbpages only where full GB page should be mapped.

From: Ingo Molnar
Date: Fri Mar 29 2024 - 11:05:52 EST



* Pavin Joseph <me@xxxxxxxxxxxxxxx> wrote:

> On 3/29/24 13:45, Ingo Molnar wrote:
> > Just to clarify, we have the following 3 upstream (and soon to be upstream) versions:
> >
> > v1: pre-d794734c9bbf kernels
> > v2: d794734c9bbf x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
> > v3: c567f2948f57 Revert "x86/mm/ident_map: Use gbpages only where full GB page should be mapped."
> >
> > Where v1 and v3 ought to be the same in behavior.
> >
> > So how does the failure matrix look like on your systems? Is my
> > understanding accurate:

> Slight correction:
>
> regular boot | regular kexec | nogbpages boot | nogbpages kexec boot
> -----------------|---------------|----------------|------------------
> v1: OK | OK | OK | FAIL
> v2: OK | FAIL | OK | FAIL

Thanks!

So the question is now: does anyone have a theory about in what fashion
the kexec nogbpages bootup differs from the regular nogbpages bootup to
break on your system?

I'd have expected the described root cause of the firmware not properly
enumerating all memory areas that need to be mapped to cause trouble on
regular, non-kexec nogbpages bootups too. What makes the kexec bootup
special to trigger this crash?

Ingo