Linux Documentation
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Lukas Wunner <lukas@wunner.de>
Cc: Josh Triplett <josh@joshtriplett.org>,
	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: Sat, 5 Dec 2026 10:44:50 -0600	[thread overview]
Message-ID: <20261205164450.GA972498@bhelgaas> (raw)
In-Reply-To: <aw_8EHLn5Et_C2ml@wunner.de>

On Wed, Dec 02, 2026 at 12:08:00PM +0100, Lukas Wunner wrote:
> 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.

Sounds good to me.

      reply	other threads:[~2026-12-05 16:44 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-02  1:07 ` Matthew Wilcox
2026-12-02  6:49   ` Josh Triplett
2026-12-02 11:08     ` Lukas Wunner
2026-12-05 16:44       ` Bjorn Helgaas [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=20261205164450.GA972498@bhelgaas \
    --to=helgaas@kernel.org \
    --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=lukas@wunner.de \
    --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