From: Lukas Wunner <lukas@wunner.de>
To: Josh Triplett <josh@joshtriplett.org>
Cc: Matthew Wilcox <willy@infradead.org>,
Borislav Petkov <bp@alien8.de>,
Bjorn Helgaas <bhelgaas@google.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
linux-pci@vger.kernel.org, x86@kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] pci: Prefer MMCONFIG for all config space accesses if available
Date: Wed, 2 Dec 2026 12:08:00 +0100 [thread overview]
Message-ID: <aw_8EHLn5Et_C2ml@wunner.de> (raw)
In-Reply-To: <aw-_Znnqcrv53WKd@localhost>
On Tue, Dec 01, 2026 at 10:49:10PM -0800, Josh Triplett wrote:
> On Wed, Dec 02, 2026 at 01:07:58AM +0000, Matthew Wilcox wrote:
> > On Mon, Nov 30, 2026 at 09:35:51PM -0800, Josh Triplett wrote:
> > > Even when MMCONFIG is available, PCIe currently defaults to IO-based
> > > accesses for the first 256 bytes of config space.
> >
> > Yes; did we fail to document why? It's been 20 years since I looked at
> > it, but there was always funkiness on Intel systems when the MMCONFIG
> > regin aliased the builtin GFX BAR, which happens during BAR sizing.
> > I recall we tried a lot of different things, and just gave up on
> > MMCONFIG for the low 256 bytes.
>
> On which systems, specifically? We have systems with a lot more devices
> than we did 20 years ago, and accessing them via IO and a lock is a
> bottleneck. I'd be happy to either extend the denylist (if you can
> characterize the systems where it was a problem) or if we *have* to, we
> can make it a broad allowlist.
pci_bridge_d3_possible() (in drivers/pci/pci.c) checks for
"dmi_get_bios_year() >= 2015" when deciding whether to allow
D3hot on PCIe ports. I suggest using a similar cut-off for
an enabled-by-default MMCONFIG.
Thanks,
Lukas
prev parent reply other threads:[~2026-12-02 11:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 5:35 [PATCH v2] pci: Prefer MMCONFIG for all config space accesses if available Josh Triplett
2026-12-01 5:49 ` sashiko-bot
2026-12-02 1:07 ` Matthew Wilcox
2026-12-02 6:49 ` Josh Triplett
2026-12-02 11:08 ` Lukas Wunner [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=aw_8EHLn5Et_C2ml@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=josh@joshtriplett.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=skhan@linuxfoundation.org \
--cc=tglx@kernel.org \
--cc=willy@infradead.org \
--cc=x86@kernel.org \
/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