From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.223.95.204 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796209688; b=HPORe/RQHGd20DyWvcbtMk8h1yC6JGDE1pQUnvJ6GHjhbQP3iIw+d2BHOK9qvkz9bAU+ kLTxn6qIsDhTyi6LbuqxkXeDmp6GPxXuwAjmAxRHXW4xOFIEv5A/OXp1Ju3FcEQ76744t 1X3IgQ+QgKamSI+1bu2fRubR0Ty+2V1nxOyKjXBN3NT4toCVnrc/Bpevl27Sg9unul/uM h1lKbs8qxNgiy3jvh1fsba4Yu8GFe/TA1K0OBr9wMn9U7sA0R9ZrSqb2vl5ZP2cFsxW3r HhMG9iup/pTYeKDQRgWAXFME4gjO03gqOUixNnEPXbl3hzv1WXF7jpPMCLnwufmStbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796209688; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=HR5ALnRxqTlzzFkIinh+GtkDGy+DK5QH65p2xonWM1E=; b=4JGD5zWQG76z4C/jZRtLFNOnpVXviA4Wgamk9NlKxWg1BGJw3CeplHycHi3sWX7ebtsJ IIU2kZZxECfKHbg5KRAe9Gn1cRlBmlFZQzwsbcoM8v5T/f2x7Gv5rO8o+8QUtf4RT5p4a BWvv1dFhHmMifw7bd5rzup9Lj2sxJ+aLow0Nojt/MJdw0S+CxAlArwTUabY2VTGk4QAJz sEIObdVybctaKO2YXGtz9KE7kB1AwnmNvzNLx4+MBEH0UYuJMoMxdE0lU6x+IWd6iZbg6 qDprJAD6tlq2TnRNdg4VCjwHgzChZR3O0W8Ryba8rKiB9vSOV894aI+iQCIM4AZc/6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=wunner.de; spf=pass smtp.mailfrom=wunner.de; arc=none smtp.remote-ip=83.223.95.204 Received: from mailout1.hostsharing.net (mailout1.hostsharing.net [83.223.95.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27655606A31A; Wed, 2 Dec 2026 11:08:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 27655606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wunner.de Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "*.hostsharing.net", Issuer "GlobalSign GCC R6 AlphaSSL CA 2025" (verified OK)) by mailout1.hostsharing.net (Postfix) with ESMTPS id 6BD6B36E; Wed, 02 Dec 2026 12:08:00 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4AD5A6019046; Wed, 2 Dec 2026 12:08:00 +0100 (CET) Date: Wed, 2 Dec 2026 12:08:00 +0100 From: Lukas Wunner To: Josh Triplett Cc: Matthew Wilcox , Borislav Petkov , Bjorn Helgaas , Jonathan Corbet , Shuah Khan , Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , 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 Message-ID: References: <4b37c09a330f78db0ac3265a9b8e278d1d7d6f1c.1796103197.git.josh@joshtriplett.org> X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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