Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2486002pxb; Fri, 8 Oct 2021 08:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwfAm6nKKx74cll5g2eiFrOw7izConzoxezW2MgB6Ttzh8GeWmgF/cBjdQyplol3jG330a X-Received: by 2002:a62:1e43:0:b0:447:cb0b:4c6e with SMTP id e64-20020a621e43000000b00447cb0b4c6emr10746498pfe.1.1633707927576; Fri, 08 Oct 2021 08:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633707927; cv=none; d=google.com; s=arc-20160816; b=lcodnFlQMZhNm2LJFAXdzFYJqTaUgyDvcsoPBlaqnS6bok1YI7Vj+VaD08AlIv3w58 Zgz6LoR27dUM3H9x17WbdMIaZkvS5bXqkYbk8s3BLj5guaTLKNTcYMrU5mjJdaAyZ7ey 5ejaTeEQXV+KX00ANtlDm6KRss/iILZOp9KHGpOMUbc3rCq2xPD/ZUlk/gR60vcbWkD7 CF15EzI2fBNh/LGPsn/MVWnOimA+Ka8WYUziglMIkdZ40vcjqWQJWdkRBvmbExGAMrxK OEbM4hOaXG0bl7xQpW0zbBtkZTPZTfje+ekdTluPj/ci5OE9R/SMjmAgLE3B/+VX0Das vSeg== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=43y1LDwtaonXRbAmw85EJF7MCd4tdxtuuO/M3GkxQEQ=; b=uVl3P2w6zOzAdFPhl7RaEBbJVmcwchsRzQZmGTuRUMy+3wyWyXtHeg7l65+d7pjne4 X1Ax1lOhYwh2gWK90cAXXxlzp1KewoLj5kNxGeetjaSc2/yh3NDntGjwHKxgsWIJQ75s iW1eiejvtwKVrv0WCbxNwyafoj5MYbtnhL/TCW+5gzNcu9zV46hkeQrfKAqYl3sy/ff4 MjuYiTfPjG1C1xuBO5a/UU32nkFOQRVc2MErDSYkU+TC6Af5dY7j66OragTagbEOZL2E LISP5aI5y0c2WZYLeHKJj7kknByBJr99Hmsr0Xu3p/yHZTiG/fsL/75QYJANJ6DxguXk /0Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dqc4/43k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si3927967plg.28.2021.10.08.08.45.14; Fri, 08 Oct 2021 08:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dqc4/43k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S243303AbhJHPqP (ORCPT + 99 others); Fri, 8 Oct 2021 11:46:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243124AbhJHPp6 (ORCPT ); Fri, 8 Oct 2021 11:45:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 480C360F6F; Fri, 8 Oct 2021 15:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633707842; bh=wWza1QQ9A9nM5fzLLXELMHyuv+B06Am2Aiioy23VP9o=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dqc4/43k9WhL/oZuH5OftnuaSiFI09ToEfJ4kyjfVxRS7yQSmEZif4PAeY4VaZOh0 a7qWeIB0mX7yRv1YiclalOat2N4AGO9y243//ouETQM30jB3A9/UVLwVph4Wg5MFYQ 2oGirOHedt7CgIkHmPxpVKhPpSWSJIqtC9TlIBsWp3byN66mqSIQ0I2a/R8Jn4tM6B /gayz51jAuK/3JLmY1HR4xZn5Py6xQ23go3jm9Cbc6vvnln0NX8IHgC649NBqRDHoM qsowzae4BDaDiPorfha+BrZOmEn2EYIF5BmFsT2d4mGZHH1Kjtt3GxzUYW7kFXmL0y 7z3eSzpJ39jrg== Date: Fri, 8 Oct 2021 10:44:00 -0500 From: Bjorn Helgaas To: Borislav Petkov Cc: Mika Westerberg , Werner Sembach , benoitg@coeus.ca, bhelgaas@google.com, hpa@zytor.com, juhapekka.heikkila@gmail.com, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH RESEND] x86/resource: Do not exclude regions that are marked as MMIO in EFI memmap Message-ID: <20211008154400.GA1342961@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211008105638.GA1313587@bhelgaas> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 05:56:40AM -0500, Bjorn Helgaas wrote: > On Fri, Oct 08, 2021 at 11:45:38AM +0200, Borislav Petkov wrote: > > On Fri, Oct 08, 2021 at 12:23:31PM +0300, Mika Westerberg wrote: > > > On Fri, Oct 08, 2021 at 10:55:49AM +0200, Werner Sembach wrote: > > > > Is there any update on this matter? Also happens on discrete Thunderbolt 4 chips: > > > > https://bugzilla.kernel.org/show_bug.cgi?id=214259 > > > > > > AFAICT no updates. > > > > > > @Bjorn, x86 maintainers, > > > > > > If there are no alternatives can we get this patch merged so that people > > > don't need to carry out-of-tree patches to get their systems working? > > > > Just my 2? from briefly skimming over this: > > > > So this reads yet again as BIOS is to blame but what else is new? > > > > "All in all, I think we can fix this by modifying > > arch_remove_reservations() to check the EFI type as well and if it is > > EFI_MEMORY_MAPPED_IO skip the clipping in that case." > > > > And this like we should trust EFI to mark those regions properly, which > > is more of the same but in different color. > > > > That original commit talks about windoze doing a different allocation > > scheme and thus not trusting the untrustworthy firmware anyway and that > > sounds like something we should do too. But WTH do I know?! > > There are a couple other threads reporting similar issues: Bug reports from these threads: > https://lore.kernel.org/r/20210624095324.34906-1-hui.wang@canonical.com http://bugs.launchpad.net/bugs/1931715 http://bugs.launchpad.net/bugs/1932069 http://bugs.launchpad.net/bugs/1921649 > https://lore.kernel.org/r/20211005150956.303707-1-hdegoede@redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1868899 https://bugzilla.redhat.com/show_bug.cgi?id=1871793 https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe/+bug/1878279 Most of these bug reports mention "pci=nocrs" as being a workaround. Obviously not a solution, but may be a way to limp along in the meantime.