Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1243326rwl; Thu, 5 Jan 2023 10:36:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6LAI5mwG+k+JhnjGZlOz43Ad3G+w2XJtIXqBoAzfk1Wma3hnxfnh2qizqn6TfhgLHPBX/ X-Received: by 2002:a05:6402:1c8b:b0:485:832:1e46 with SMTP id cy11-20020a0564021c8b00b0048508321e46mr31231788edb.23.1672943768434; Thu, 05 Jan 2023 10:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672943768; cv=none; d=google.com; s=arc-20160816; b=JiaYeZIfZNPiFJQmnzUiQ2JdkuyKr0pYo51Jnwx7cxfHuXKfpX+VoBxKw4tQnPTTuY qgTp7MyaGC0oxeR4iXORhp+lRzY/4zTvkxOuW5XGCfMzI+MU+Ndt926fqVKjZbKul1GZ Vtfkuh8cIBybRkvS8lrqy94vqSp7f/b2eKQ5+hb0y7HkX7TkbUoC0foDTyQrt5M5Cwd6 6Vyat4XQi7fGTYgxyPTzAy6vAvEwAGiVT58ckzikqUh7CL8+KFfAdRTCCO7PoJMRqcPg gU30vsomLbOAnQ8RJB3fSgm4E+LHnFON0Ugd5wuGAAzgWRosEU03flmYTfvOxTtjohWc mzlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=FhEOM7r/kwhyPHIvsb8opg18laM/z9ZQVxpiEBhBt1s=; b=kJQK3hB09cvTxu2mxQV4FcuLh8B5eBFZoz5Yaf26F6E/96DmKPa5q3KjODYmJn804Y VJ5LxMCB4EdkvsJXDMC25FAkbPYaQCMowcw0WTglMWPgNZKhbyJyF7mK6nMrv7qFv6W6 wWIOZ2KMioRXOoWuvArjW7A0lUy8oQPm7JlRds+ijdO49Pwd7ancobUARDIkHaRUTBrR C1fXOyRfT0GRl6Q7VQMt2+Bv9iLwEHYXnHKg51z+YBJJUp7RUpzI3Y3hfzi3AjlmqBMl vp1OtuWVjcTHTjYkllH8EOtvV5zoJFeU7cxCnRVogO5GceRC2Zqh+AkoNRcgobriuO+r AQsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bnoWIP/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a170906795300b007c0bc66e526si35826953ejo.622.2023.01.05.10.35.55; Thu, 05 Jan 2023 10:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bnoWIP/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234806AbjAES34 (ORCPT + 57 others); Thu, 5 Jan 2023 13:29:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234680AbjAES3y (ORCPT ); Thu, 5 Jan 2023 13:29:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4429E564DC; Thu, 5 Jan 2023 10:29:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C9D4361BD1; Thu, 5 Jan 2023 18:29:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FBBCC433EF; Thu, 5 Jan 2023 18:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672943392; bh=iHaiS0GM2MGSXZ+IjKPLHBtGHmeOC5SlrukdUXCOrQE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=bnoWIP/vPhtNJvTZctVf/Jup3ayusP8RlZZ3dRmqzKU/OBPf9pChxfMr9wF6qrwX5 ddZ7YQjRS+/9y3oHZ6wuJY51WeTjArJ49sP+hwIL5UtvlOpeZQkPE/vzTuYL/mDcRB niERtYU7lSU1o7g6TsxNA13B6V5Q73SFNJs3gNf+qSkECyf8qO/7sVlVPpiuau7haQ Ukc8Kk40QZyQgRw/bAZbjdZ6Tvd828talbNp847Ce2SRAQrgLNMC1MqT+Qm+CYNnaJ haZarSCy5BT7j7Ycnt/KBr3PjJhWJtlL57pFUeaj7qe2kzwh6Duyp0fOZiMFbK/IoP CrBsJr501lHCw== Date: Thu, 5 Jan 2023 12:29:50 -0600 From: Bjorn Helgaas To: "Luck, Tony" Cc: "Liang, Kan" , "bhelgaas@google.com" , "hdegoede@redhat.com" , "kernelorg@undead.fr" , "kjhambrick@gmail.com" , "2lprbe78@duck.com" <2lprbe78@duck.com>, "nicholas.johnson-opensource@outlook.com.au" , "benoitg@coeus.ca" , "mika.westerberg@linux.intel.com" , "wse@tuxedocomputers.com" , "mumblingdrunkard@protonmail.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Box, David E" , "Sun, Yunying" Subject: Re: Bug report: the extended PCI config space is missed with 6.2-rc2 Message-ID: <20230105182950.GA1158496@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 05, 2023 at 06:04:52PM +0000, Luck, Tony wrote: > > Hi Tony, can you share a dmesg log? Does it look like the same thing > > Kan reported, where the ECAM space is reported only via an > > EfiMemoryMappedIO region and is not otherwise reserved by firmware? > > Attached are serial logs. "broken" is the one from v6.2-rc2, "revert" is the > one with your commit reverted. > > I don't see the string "ECAM" in either of them. Yeah, "ECAM" is what the PCIe spec calls it, but Linux logging uses "MMCONFIG". Probably should change that. Anyway, your dmesg log shows the same problem: DMI: Intel Corporation BRICKLAND/BRICKLAND, BIOS BRBDXSD1.86B.0338.V01.1603162127 03/16/2016 efi: Remove mem48: MMIO range=[0x80000000-0x8fffffff] (256MB) from e820 map PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0x80000000-0x8fffffff] (base 0x80000000) [Firmware Info]: PCI: MMCONFIG at [mem 0x80000000-0x8fffffff] not reserved in ACPI motherboard resources PCI: not using MMCONFIG acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended configuration space under this bridge Apparently the only mention of [mem 0x80000000-0x8fffffff] in the firmware/kernel interface is as an EfiMemoryMappedIO region. I think this is a firmware bug, but obviously we're going to have to figure out a way around it. Bjorn