Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1195889rwl; Thu, 5 Jan 2023 09:58:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXvv3y1QcDX7URziFGqdzxdb6IrKYDjmKAqyxz9ym6qBDT3HEWA6Up+eus6wwqrwjopyYi82 X-Received: by 2002:a62:e510:0:b0:582:5b8d:52be with SMTP id n16-20020a62e510000000b005825b8d52bemr17811766pff.8.1672941494990; Thu, 05 Jan 2023 09:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672941494; cv=none; d=google.com; s=arc-20160816; b=yahvnyLtVLkN248PNSYnYQP8iFq3hnPZDwtf2XpboFXz0Rn+1SM0SkvNtQIXW46I02 RCL0mW26kwheKwLQuhIoK2fEm3RPNw4Q69zd5ZSPLXbBDY+qhcHU7NohNdw6W1ne7XVe IMGzKp6NYySBnw5wgv/hVCWe5W8a35HYd9i7zdYCJAW1gZQmgWZvp9/3IC1T1JkME89F FM8xk7LsyzgzRQuH9FeHOy+PP3QqDY1XkZoZNfYMT8WKydYA+eFGZXnUPCcK6ng9K6AW ltqJv6yRDSUeZLqS1y5+C1zzsXL0Rccmz5It7ohBl7VoDL7Q4JBYR85BwjpGXxZnvFDW fYAQ== 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=hVer8sSdnQEDdfM2n2YBVB4LO2ySpjFEYg2H0po67cM=; b=yu0zbKqz3j4YWGEHbASrhgHxAYritEjsOgZ8WusEj5X5cfQNiZe/DHCeM63i20AKrK AbkWFP2GA+qMEHCFRbsbppyOHBYCSC1+0aVG6dsKfIg1Cdpek23t9CAAsvqpaU36fuED YQFUU1d6ee3IIV4Z416GhRWui73o26/AJHlUb65J8uzwQ4IYkVjqaj1bz+E7AnYPqBIF 2j3PAnpBqWebXeziKqeuo8HEQ5w721AZSIcD2tgF3xr6WZp3z/7oG40Kb4kbKduBBdMR zSJWETAfLWC81VuJzsmqtJ6ijlxNtW9kX5YURKrTsNcP3uV6FEE1PZszxl726JNtmKoC RxVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uIvaeRKZ; 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 u127-20020a627985000000b005815a37207esi27938496pfc.168.2023.01.05.09.58.07; Thu, 05 Jan 2023 09:58:14 -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=uIvaeRKZ; 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 S235314AbjAERvN (ORCPT + 57 others); Thu, 5 Jan 2023 12:51:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234449AbjAERvJ (ORCPT ); Thu, 5 Jan 2023 12:51:09 -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 29AB11C43F; Thu, 5 Jan 2023 09:51:08 -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 BA2ED619EB; Thu, 5 Jan 2023 17:51:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9B88C433EF; Thu, 5 Jan 2023 17:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672941067; bh=59bZNOt1x6/Jbg96nKL7QY/U4jPQXFSnz9gEyfFtdiQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=uIvaeRKZ18cEoPn/Do/GgNdkEk+J+tyoHUA89kiEOmKm79fw+GGoJnstth5GSj5mP 9sYYqYfcFrgffRKLqYxqFf0qrL2a0LXhFgke9ssotMbATP1YnR1yGS9kglAdRefSWS 9ka61n5fdGY3rjP0+dH0R5MeSnTa4u019LmD1Dh7zOKXtTuuFGQYmxs4rb5+mmPr7H EjZLFL6qWjUezOeWmfs//tJPepQHOj60EP6lAfRX2fV0ZDGZW8J21U90YNninS+lQ2 mo1JwsOP+CkiE+7t77w/lLUgXYaZ+QTfYtIcmBOx6K6vhfsKqA56L7MtBDkBSVY8N9 LqHCR1kCbiUDg== Date: Thu, 5 Jan 2023 11:51:05 -0600 From: Bjorn Helgaas To: Tony Luck 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: <20230105175105.GA1155450@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 09:42:10AM -0800, Tony Luck wrote: > 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. 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? Bjorn