Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1185054rdb; Sat, 18 Nov 2023 06:22:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaxXCksFCbWSPWC95yL0/K4rA90+BjYVXuK0fR4kaXsMYkQ9oGDcx6RGk5q5HYdaMK5DXh X-Received: by 2002:a05:6e02:c73:b0:359:4066:a2e7 with SMTP id f19-20020a056e020c7300b003594066a2e7mr2777305ilj.0.1700317326106; Sat, 18 Nov 2023 06:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700317326; cv=none; d=google.com; s=arc-20160816; b=veT3/eI4kmO248yLIg7vDytIPoEQuTzUHllB+mSm5oemSXbbMkJjxX9PGt7m5jxOTj kgTIFRdUj2LzAdDAEEbrfZ4WQk/td11yrb+/0WtMlX7OfoEWdXAasWbGUSIHWSgQk6Js EuAvsPpB1q7GR5ZWOgzzU0PvJ8E2Z1/+WhIjw+uJGcMVHsoFhtY0HzDPVwijW00LCP/F H1oMfvlVxkwmvQEXO9nqkSmt8UtIFHGWwB0t6+53mDxpowbtUvQF3ZgPw6aMOpEqMmzD VN/XQuZQqchDo2K0ZLrLFnRmQXoQ3piyo3R5erArQZ8S+zbmOOh3T8bHJKNnlTEq9PMl 9eJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hosneQ6Qp8PxTVBUj/eGJfZtuECeyehTURFQnJfycic=; fh=8pjKL9eQGJOeJ6HVM0XpzaXynY4sfdLOoLImu7z0aGI=; b=t26vu0CDpLUxhSX+kw+W1prkXsGiCvNAFYR9+H9EttV/GHKotk440C/DZSS2k1Hb3a Tdcze+50tliZGPsPl3qOJP1Z4Q57yUpcXuvznpVqdDzVs37eRO8+A3QSztuj3Dfgqcjw Kg3fgpeHtBquSOtx69+G66i2YvxdDFQJDenHtQLehS0gvpvmWQcy2C/n4jjEWzkUsHNM JVTVgr9JvwDBoY0G4aIVC0BUn+xjBO3FShoLgSSaJA8MydgnjAz+1PPIERksES+39IDr 38dWWF6BOUln2BN6P1hSmNfDzKcHN7n4riPa2zCBn8ri37deAzz+yE5lQ+2yUz2tw9Db k9oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y16-20020a634b10000000b005be14925624si4277364pga.714.2023.11.18.06.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 06:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8B68D8079309; Sat, 18 Nov 2023 06:22:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbjKROVy (ORCPT + 99 others); Sat, 18 Nov 2023 09:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjKROVw (ORCPT ); Sat, 18 Nov 2023 09:21:52 -0500 Received: from pepin.polanet.pl (pepin.polanet.pl [193.34.52.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB488F; Sat, 18 Nov 2023 06:21:47 -0800 (PST) Date: Sat, 18 Nov 2023 15:21:43 +0100 From: Tomasz Pala To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Dan J Williams , Kan Liang , Tony Luck , David E Box , Yunying Sun , Dave Jiang , Mika Westerberg , Giovanni Cabiddu , Herbert Xu , Hans de Goede , Florent DELAHAYE , Konrad J Hambrick , Matt Hansen <2lprbe78@duck.com>, Nicholas Johnson , Benoit =?iso-8859-2?Q?Gr=E9goire?= , Werner Sembach , mumblingdrunkard@protonmail.com, linux-kernel@vger.kernel.org, Bjorn Helgaas , Sebastian Manciulea Subject: Re: [PATCH 2/2] x86/pci: Treat EfiMemoryMappedIO as reservation of ECAM space Message-ID: <20231118142143.GA14101@polanet.pl> References: <20231103191858.GA163196@bhelgaas> <20231109184405.GA488882@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <20231109184405.GA488882@bhelgaas> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 18 Nov 2023 06:22:03 -0800 (PST) On Thu, Nov 09, 2023 at 12:44:05 -0600, Bjorn Helgaas wrote: >> https://bugzilla.kernel.org/show_bug.cgi?id=218050 >> >> I think the problem is that the MMCONFIG region is at >> [mem 0x80000000-0x8fffffff], and that is *also* included in one of the >> host bridge windows reported via _CRS: >> >> PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0x80000000-0x8fffffff] (base 0x80000000) >> pci_bus 0000:00: root bus resource [mem 0x80000000-0xfbffffff window] >> >> I'll try to figure out how to deal with that. In the meantime, would >> you mind attaching the contents of /proc/iomem to the bugzilla? I > > I attached a debug patch to both bugzilla entries. If you could > attach the "acpidump" output and (if practical) boot a kernel with the > debug patch and attach the dmesg logs, that would be great. I've posted the files. There are signs of buggy BIOS, but I don't expect any firmware update to be released for this hw anymore. DMI: Supermicro X9DRi-LN4+/X9DR3-LN4+/X9DRi-LN4+/X9DR3-LN4+, BIOS 3.4 11/20/2019 .text .data .bss are not marked as E820_TYPE_RAM! tboot: non-0 tboot_addr but it is not of type E820_TYPE_RESERVED DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x00000000df243000-0x00000000df251fff], contact BIOS vendor for fixes DMAR: [Firmware Bug]: Your BIOS is broken; bad RMRR [0x00000000df243000-0x00000000df251fff] BTW is there a reason for this logging discrepancy? efi: Remove mem173: MMIO range=[0xe0000000-0xefffffff] (256MB) from e820 map efi: Not removing mem71: MMIO range=[0xe0000000-0xefffffff] (262144KB) from e820 map efi: Not removing mem74: MMIO range=[0xff000000-0xffffffff] (16384KB) from e820 map efi: Remove mem176: MMIO range=[0xff000000-0xffffffff] (16MB) from e820 map This is arch/x86/platform/efi/efi.c: static void __init efi_remove_e820_mmio(void) Remove mem%02u: MMIO range=[0x%08llx-0x%08llx] (%lluMB) ... size >> 20 Not removing mem%02u: MMIO range=[0x%08llx-0x%08llx] (%lluKB) ... size >> 10 -- Tomasz Pala