Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1208116rwl; Thu, 5 Jan 2023 10:06:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXvYs5F6+PWDJCECFgYDA9X5ngk9t06BiTFNdGvbnv37i7l6fjQH5wv4y4KkTe1elpSi2Rij X-Received: by 2002:a05:6a20:548e:b0:ac:19cf:1553 with SMTP id i14-20020a056a20548e00b000ac19cf1553mr73407756pzk.61.1672941971565; Thu, 05 Jan 2023 10:06:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672941971; cv=none; d=google.com; s=arc-20160816; b=U6xgzVdpBWKwRnl59WxDr+riNJ08JehIOn21u5hvihJnKzvDkjmHAG95/4NT4oxkQv dS/2tMU94ESn0nGgNx4Kn8xfn0tzOodEIbcLYhuPM8mO3fJcBDFy7wvKeH0KhjlYFMZ4 O6+aBTW5HeAmq5ADX+2XkDTWTOIw9v/WuV22T3Dh0eenEOdxu6KVg7PZ+9cpUyWFNq5E CUly4z0nU2ypMIURpXPUwd9xPZ85wrImrSBG+nOrazwW7Ugvu7er+cVAs4f3sg9py5Bd 0ZBRqPT02XpzZ+KreofFEom7C1AwpWPMlb1aFZ//+5uWUs1JxRebDQVNg+/wxv1nTA1k eH8g== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JU+cZ2f/uKFpwCwpdRq17ouGzDCHKkNGIWbkD/G5+Go=; b=FXHGfKaAIWvf4ul2KKKAm24Sl7gBkPTZ7jP2zRkFe2SyXCvMDP8VXkjXcEfim+lsVA dZOMVfps2bSGwQbO2Dh9V/POQ7ytWyaWHSHGLuoR64H5cnCPfMm5LgaGIwTUqeegP5Zh SUE1qwTMsVwt/2VBJpNhIOczCXL38mZWQJJ3dOEqp2jXdaWkggi2mjQkThfdZf9AzkR2 1X1t2EoReLsvMPEMpc2cA9744DwYeZ0gu95s7pK74QRL+3BQqBgJZ66x0lKryuuUXX9r x0L5Z7xcroA+m77GZz1wih3ivc1hAhbfHxZYrQP6c1x7HpQIqZlEIZ+7So2fSF3pLT2l o3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JIggYTEr; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a65498c000000b00477b7f8d5a4si39369255pgs.620.2023.01.05.10.06.04; Thu, 05 Jan 2023 10:06:11 -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=@intel.com header.s=Intel header.b=JIggYTEr; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234824AbjAERmd (ORCPT + 55 others); Thu, 5 Jan 2023 12:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235045AbjAERmV (ORCPT ); Thu, 5 Jan 2023 12:42:21 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF64B41032; Thu, 5 Jan 2023 09:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672940536; x=1704476536; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/nm8XN5UrQy4aa6gZCYXxJPwD8gab0pZ5U+FjFjFY3A=; b=JIggYTErMBW4+slXT4ELGqNB1yrPXJ2yMH2aTgiaXdmzdtbtH9EZ5Hxk aWDvBOaEcfEBBRzX0OH2wR/Vqq3aps+4MuDpWEUimSgpryqDNAOJ55ZjP npp3OemKUe6iKnWACDopFRlWu9yo6PFlCZWgQFpknG0bymtOW6fwM7bwU CaxOU2vJeZokLDfp5THOWdi2ZyJa6rpsaCnnFWNM4XOsqg4/traZh7+8m RAeRM6b0q85IiYHgjNYc88baENHQST4qZTl7LrwdO4uYHBIFL7wUGMilg 3TfSsh7RQeVjHM4QxEt7BIGI1+XCRBKjF3BClryzywjFKeTxHYIv9juP2 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="408524632" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="408524632" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 09:42:12 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="718900072" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="718900072" Received: from agluck-desk3.sc.intel.com ([172.25.222.78]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 09:42:11 -0800 Date: Thu, 5 Jan 2023 09:42:10 -0800 From: Tony Luck To: Bjorn Helgaas Cc: "Liang, Kan" , bhelgaas@google.com, hdegoede@redhat.com, kernelorg@undead.fr, kjhambrick@gmail.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, david.e.box@intel.com, yunying.sun@intel.com Subject: Re: Bug report: the extended PCI config space is missed with 6.2-rc2 Message-ID: References: <20230104145032.GA1069244@bhelgaas> <20230104154511.GA1071195@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104154511.GA1071195@bhelgaas> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Wed, Jan 04, 2023 at 09:45:11AM -0600, Bjorn Helgaas wrote: > My understanding is that EfiMemoryMappedIO tells the OS to map the > area for use by runtime services, but is not intended to prevent the > OS from using the area. Some platforms use EfiMemoryMappedIO for PCI > host bridge apertures, and of course the OS needs to use those. > > If your firmware folks disagree and think Linux should be able to > figure this out differently, I would love to have a conversation about > how to do this. It seems that 07eab0901ede ("efi/x86: Remove EfiMemoryMappedIO from E820 map") is also the cause of breakage for drivers/edac/sb_edac.c. It is broken in v6.2-rc2 and reverting this commit makes it work again. This ancient driver probably plays fast and loose with how it ought to access extended PCIe config space ... but it needs to do this to read various memory controller configuration registers to do address translation from a system physical address to a DIMM address. -Tony