Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp584822rdf; Tue, 21 Nov 2023 10:19:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGlBOnstOmF6uyXswdWsRVMpn+QbWQk1CXFJ34p7l8UXZKUMldQwpXMazUEPjgfMS+YWRs X-Received: by 2002:a17:90b:4f8c:b0:285:25ab:258e with SMTP id qe12-20020a17090b4f8c00b0028525ab258emr6509516pjb.34.1700590799479; Tue, 21 Nov 2023 10:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700590799; cv=none; d=google.com; s=arc-20160816; b=MoGOKr8vms3MWkbkkKy4sTP86mtVIrK5BAGQ1SJFUTg759Ybm+y1jid3m4KNdvG7iS PNxIpvpa9RFdHxvMUzpgZHetcALQ1ecEQpiEqD2tfgeRiuQQrWlWp/B3krYy9L9U2CMF qCGgMjSrWj3I4RLs+X6XABxlkvFbi3m1NMa8FaSr9daNRlTaKt6yQ7Ta6bBCNyC+HAh6 AXtzqpJ0WPkFvYMezUCdJ1q4mN0gaqGLMThfprVkq+1+CJNYpN5hc2VKFDxkgxvuzGHF PMr5Zc0B4DOlS9Lr7FbI6PO3XQlR6u62Le2SV52/7dalPCwpcf1z1YtJUeSZGTuDqBj2 3hYA== 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=HEhgHEdcgf6f47VmQ4GeJ6RHZX5yThiBIt9frw0VeKU=; fh=jZ4Q6L7pQHx6vnUTXGTGZP40j8NP+3O6l+imBhJI3k4=; b=frwGXUbX4KoMRJ0mwXGp1PXrSJkK94ozoYrNTW8BaX5C58UIpMLwDZEd5tDfKnD4iP nUx1whlixL17MqnTyYKAfJwcIctQXZKk7grRTDrDyOCnyRsLGTuqGqCVaA8IJt+Z3Lm3 fQddj1fvY8B3Gn42upa9EFTA6H1IZ/fJQxH+jcjHnVhu6Wy9tG83QQAaHXwnqZ5/eW7v afBh9Ml8nIZMHQ/e346jdccO3bGnTFERzpWgn6AiZab8mCrjU7fFU7gbCFhglqx8+Chf 0FPcm6j6hnzMffib5lw/LIofBqd2gGfwYVb+W/jKwPuLwL4lRnAGFobzLzjKZrpmwST3 lUBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UR90IS6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n16-20020a170903111000b001ca30930607si11370753plh.167.2023.11.21.10.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UR90IS6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 03FF48084959; Tue, 21 Nov 2023 10:19:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjKUSTj (ORCPT + 99 others); Tue, 21 Nov 2023 13:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjKUSTi (ORCPT ); Tue, 21 Nov 2023 13:19:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F59997 for ; Tue, 21 Nov 2023 10:19:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4E3AC433C7; Tue, 21 Nov 2023 18:19:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700590774; bh=j7HBjbV0HBXxOEcT0OG9f5FjRXuKR0dQ3RimJ19uarQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=UR90IS6tEP7ZH2Mu//OVccMIjGE9Vfl31LFB4El1nPF2ME8r7MMhbJAEfIoHe/tY0 yflc2zxpNeR3lm0pOY5pTyPelPCqTaXnBpamkUhP3cPZe4uhe/N9ORKaOYvpU6yRbk wwRIEoS1TTof4N+ylTO2ur+LBoJM5h4jdbeQuXbjG8RMYJQkA1kltTm8oae4AORsJc kofl5OLse5z+UlsudmRzP52jMFc7wzD+CWsOk2JVqNYBZ1B13iknFXUXlNJNp9Cndq eJGM+6jfUQIdSPhFsfppv4UaWAe/MqQwNjD32OaNC5SDg74EZuilu0oIHaU0y7Obh6 3LCOJmrFHWiqQ== Date: Tue, 21 Nov 2023 12:19:33 -0600 From: Bjorn Helgaas To: Tomasz Pala 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 =?utf-8?B?R3LDqWdvaXJl?= , 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: <20231121181933.GA240494@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121152407.GA13288@polanet.pl> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:19:47 -0800 (PST) On Tue, Nov 21, 2023 at 04:24:07PM +0100, Tomasz Pala wrote: > On Mon, Nov 20, 2023 at 10:29:33 -0600, Bjorn Helgaas wrote: > > > Thank you! A BIOS update is almost never the answer because even if > > an update exists, we have to assume that most users in the field will > > never install the update. > > Not to mention enabling 64-bit BARs, which is even more cumbersome > ixgbe-specific magic that requires entirely dedicated tools... > > >> .text .data .bss are not marked as E820_TYPE_RAM! > and > >> 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] > [...] > > I think Linux basically converts the info from EFI GetMemoryMap > > to an e820 format; I think booting with "efi=debug" would show more > > details of this. > > The dmesg I've attached today is with efi=debug, but the weird thing is > - both of the above warnings manifested themself only once, with the > first (verbose debugging: "MCFG debug") patch applied... Anyway. OK. I don't know what (if anything) to do about the above. > The "memremap attempted on mixed range 0x0000000000000000 size: 0x8000 > WARNING: CPU: 0 PID: 1 at kernel/iomem.c:78 memremap+0x154/0x170" also > seems to be triggered by "efi=debug", so my guess is that it's unrelated. Yes, I think so. This is from efi_debugfs_init(), which we only run when "efi=debug", and I think it comes from memremapping this area: efi: mem00: [Boot Code | | | | | | | | | | |WB|WT|WC|UC] range=[0x0000000000000000-0x0000000000007fff] (0MB) Bjorn