From: Ard Biesheuvel <ardb@kernel.org>
To: "Víctor Gonzalo" <victor.gonzalo@anddroptable.net>
Cc: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>,
linux-efi@vger.kernel.org, stable@kernel.org,
Allen Pais <apais@linux.microsoft.com>,
Tyler Hicks <code@tyhicks.com>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@linux.intel.com>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
Jonathan Marek <jonathan@marek.ca>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] efi: bump up EFI_MMAP_NR_SLACK_SLOTS to 32
Date: Tue, 7 Jan 2025 08:36:40 +0100 [thread overview]
Message-ID: <CAMj1kXHrNXdXHCF9vVOA3jsLTkcxRB3dX6SL8BbPbECugPsbLQ@mail.gmail.com> (raw)
In-Reply-To: <CAGRPHEJuJfJ+k72bDKVt=MgbKi3O1e-Zf+9kFTm2aN2naEzbDw@mail.gmail.com>
On Tue, 31 Dec 2024 at 12:12, Víctor Gonzalo
<victor.gonzalo@anddroptable.net> wrote:
>
> El jue, 19 dic 2024 a las 12:27, Ard Biesheuvel (<ardb@kernel.org>) escribió:
> >
> > On Tue, 10 Dec 2024 at 10:59, Ard Biesheuvel <ardb@kernel.org> wrote:
> > >
> > > On Mon, 9 Dec 2024 at 19:20, Hamza Mahfooz
> > > <hamzamahfooz@linux.microsoft.com> wrote:
> > > >
> > > > Recent platforms require more slack slots than the current value of
> > > > EFI_MMAP_NR_SLACK_SLOTS, otherwise they fail to boot. The current
> > > > workaround is to append `efi=disable_early_pci_dma` to the kernel's
> > > > cmdline. So, bump up EFI_MMAP_NR_SLACK_SLOTS to 32 to allow those
> > > > platforms to boot with the aforementioned workaround.
> > > >
> > > > Cc: stable@kernel.org
> > > > Cc: Ard Biesheuvel <ardb@kernel.org>
> > > > Cc: Allen Pais <apais@linux.microsoft.com>
> > > > Cc: Tyler Hicks <code@tyhicks.com>
> > > > Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
> > > > ---
> > > > drivers/firmware/efi/libstub/efistub.h | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h
> > > > index 76e44c185f29..e95ce6ae5c26 100644
> > > > --- a/drivers/firmware/efi/libstub/efistub.h
> > > > +++ b/drivers/firmware/efi/libstub/efistub.h
> > > > @@ -171,7 +171,7 @@ void efi_set_u64_split(u64 data, u32 *lo, u32 *hi)
> > > > * the EFI memory map. Other related structures, e.g. x86 e820ext, need
> > > > * to factor in this headroom requirement as well.
> > > > */
> > > > -#define EFI_MMAP_NR_SLACK_SLOTS 8
> > > > +#define EFI_MMAP_NR_SLACK_SLOTS 32
> > > >
> > > > typedef struct efi_generic_dev_path efi_device_path_protocol_t;
> > > >
> > >
> > > Acked-by: Ard Biesheuvel <ardb@kernel.org>
> >
> > I've queued this up for v6.14 now - once we are confident it does not
> > cause any regressions, we can backport it to stable branches too.
> >
>
> Hi. I had this issue three years ago, suggested the bump and then
> missed the reply.
> We bumped it to 16 and have not had any issue or side effects in three years.
Thanks for the data point.
prev parent reply other threads:[~2025-01-07 7:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 18:20 Hamza Mahfooz
2024-12-10 9:59 ` Ard Biesheuvel
2024-12-19 10:26 ` Ard Biesheuvel
2024-12-31 11:11 ` Víctor Gonzalo
2025-01-07 7:36 ` Ard Biesheuvel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMj1kXHrNXdXHCF9vVOA3jsLTkcxRB3dX6SL8BbPbECugPsbLQ@mail.gmail.com \
--to=ardb@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=apais@linux.microsoft.com \
--cc=code@tyhicks.com \
--cc=hamzamahfooz@linux.microsoft.com \
--cc=jonathan@marek.ca \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=stable@kernel.org \
--cc=victor.gonzalo@anddroptable.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®