Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1484007rwl; Thu, 5 Jan 2023 14:26:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlSDwtbCh4d2BKxFOzMD7WYreY3oNzFoLrFEQJ5Gtw8IjrzpqSGwkYQ+DjrCHU5ns0LOYY X-Received: by 2002:a17:907:d306:b0:84c:95c7:3036 with SMTP id vg6-20020a170907d30600b0084c95c73036mr22272454ejc.5.1672957562394; Thu, 05 Jan 2023 14:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672957562; cv=none; d=google.com; s=arc-20160816; b=CPsYUbZBI7MriLxOyU6NSeSfBOObNCCy/rbDXHPPi5a9HX04lLDsfaJzcF8b4VF5ue BUTnGHYi1noV2BpBQL0xyLoD1aLq0Qdtb/Dn4uPQy2vibRHOY5am/3aWe/jQ5lcQmp+G ujcrKRsnNA1/e54gu0geFYUjfdE1L5XgTAfEnNUhX1CUm7pFi7n3Gxb/X5B4DnxJO/G0 6TvRFaH9Zq3bQE6VrDXCO+TCBJpALbaiNaE1YGJg6Cmq2KZT3Ies/6Uw6pDiiU5og2I6 MnZq5369/LiyVuqB99rdW+hd5v0lozwLEPLD9/ZZ+btpISIELCb4T//TWh2SZf0KZAIN lDYA== 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=s1dEfnw4nix7Eul8DJoe4WxgDS4jHNfG4KSLiJ/8Dbk=; b=nZ012Hp+6QqDi23sm3fQTJ/MQ0aEGAWUIPGQosBJCjIHBAd2sDeTHX/e2+54SBJymL JBYj9m4yH7sJYrx3iHTojFoc+Z8a5wfeBuXLF8hGb6/9ifW/9ex4zcghF3GZRkAw8dPy FQfLXApvAzjo0YHm9e+yOaXKWvd7DlG9QoVh08etBuRBFqGu5azRyyOT/aGGgkkRYHYj msbR949XgUfEqgW5mOFGlEZJ0CsfFk6eeCcAv6WsaxjhFiSDPV99GeV/DI12Z1P6OLQq 73xLIGdyiNoZGWlt/CAhGT2Zj+25DI17EbYzHEpaLuNTegk9exGVpL8FZNocK10LkKxO H52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gf2MG4EJ; 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 be5-20020a1709070a4500b007c1727f7c6fsi32726727ejc.261.2023.01.05.14.25.48; Thu, 05 Jan 2023 14:26:02 -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=Gf2MG4EJ; 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 S235703AbjAEVuj (ORCPT + 55 others); Thu, 5 Jan 2023 16:50:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236273AbjAEVuE (ORCPT ); Thu, 5 Jan 2023 16:50:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CCD6B19E; Thu, 5 Jan 2023 13:48:50 -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 ams.source.kernel.org (Postfix) with ESMTPS id F3447B81C00; Thu, 5 Jan 2023 21:48:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C859C433F0; Thu, 5 Jan 2023 21:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672955327; bh=sSgZkpSSFeg7zF0fRltIEJtmUsyv/4eyDBWDrROqlI8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Gf2MG4EJlbiel0n4TeLgxm4XoOlPwFnEKKwbGG5++OwRVeZI25FYaYtRPUl2TaMNT oC2WnzugCT7gLjx7HfrKvCskoP4N/EAy7T7FoYVMzSedyKULA+hHuTGpMTnjd9TEcw h6vUdZ3kaooOqGIx7ldbY6JftMKWXSyz8lApHDw6JuEP2PH+2QL1tD54fa8CGCdVyv VJv4cLAxIniPG9SeyBQQZlRXLyiBqekef7bZzRCffzSye8dxtv4sKrjnw1AC4fbm38 WtKIeHux1OuQTEzmzcOJuDFMn3Z2MkdWU2q1IlDtvUhDWr2L2ozI99mloi/uWEsqV5 9xGT4b5IXHeOw== Date: Thu, 5 Jan 2023 15:48:45 -0600 From: Bjorn Helgaas To: Dan Williams Cc: "Luck, Tony" , "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: <20230105214845.GA1172859@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63b7447883c75_51741294e5@dwillia2-xfh.jf.intel.com.notmuch> 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 01:43:20PM -0800, Dan Williams wrote: > Bjorn Helgaas wrote: > > On Thu, Jan 05, 2023 at 01:20:36PM -0800, Dan Williams wrote: > > > Bjorn Helgaas wrote: > > > > On Thu, Jan 05, 2023 at 11:44:28AM -0800, Dan Williams wrote: > > > > > Would it be enough to add this clarification in "EFI 2.9 Table 7-6 > > > > > Memory Type Usage after ExitBootServices()"? > > > > > > > > > > s/This memory is not used by the OS./This memory is not used by the OS, > > > > > unless ACPI declares it for another purpose./ > > > > > > > > I guess the idea is that MCFG is a form of "ACPI declaring it"? I > > > > don't have an explicit citation for it, but I infer at [1] that ACPI > > > > static tables are second-class citizens and not intended as a way of > > > > reserving address space because that would lead to problems booting > > > > old OSes on firmware that provides new tables unknown to the OS. > > > > > > Ah, true, certainly for new stuff, but what about MCFG specifically? > > > What harm is there an assuming that MMCONFIG intersecting with > > > EfiMemoryMappedIO shall be treated as reserved for MMCONFIG usage. > > > > Probably none, and I think that's what we'll have to do. Ugh. > > Another random special-case rule. > > > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/PCI/acpi-info.rst?id=v6.1#n32 > > I am still holding out that a BIOS developer can either say "whoops, > populating MMCONFIG in _CRS was overlooked", or point out "if you take > the derivative of the PCI spec, multiply it be the inverse of the EFI > spec and then take the cross-product with the ACPI spec then the memory > type comes out as implicitly reserved". Hahaha :) Yep, but even if they change it, apparently there are lots of machines in the field that won't get updated, so we're stuck working around it. Or, I guess the best-case scenario would be that it's not actually a firmware bug, and there's some clean fix we can make to Linux. But I'm not holding my breath.