Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp55908lfe; Fri, 15 Apr 2022 19:15:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi+6+5wz7CPVK0WNFkc3ofwyNVqARUJyjkPpQJIYWQ6Fz9x6HwipRfs6LgBGVT+BRQPMt0 X-Received: by 2002:a17:902:ea47:b0:158:b6f0:4aa9 with SMTP id r7-20020a170902ea4700b00158b6f04aa9mr1737489plg.168.1650075331342; Fri, 15 Apr 2022 19:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075331; cv=none; d=google.com; s=arc-20160816; b=XFYLnMoMmHx9E9/icBmKH8KCcyUOTJrynRaFtdOlIR/09dfd/eEdJu3QFi8Y/2SA/A jZej/usXBiLiZcvIfViyCyKjnYvqPKIoToGnzwg283vSqZnQa1u5SRXeR2Yu/rPCy8xM oQ/96l4/iaRDnunCkpwxjNo7xOrktVAzjrAse1uynggbgOG17Qzz/AxJH6cK/BK4yQkD hhM+Iu4mRpP30jkIlzj8yedjbPSg6pvV66kAoUwBFD8NRG/NAVNlw35X5CBSiAEQs4K3 Sehv7DP5nR7e9QZ0bPNpL9zHtKGEXfAGDcwhfLjdMZYBOhezAv4Axu84U9ySmG7Vy2Hc qlXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KMjOfOex/XELQrDCd20vt9gcR2n+rBerpmt4IH7O9fg=; b=CYGJa5fTPIpSIvZQczgT6fnlHlV+vGDf7zQDoNsqyf9jQXWyWY46VXXPBGx1FnuqrV 2G1Qe7Ja4wFtwwB/iC8fDaGwq7R2VhnNWXK+QvPqF4By/7OuEUhZY1+DCAPOmnBHCMbO YdsXJmB2BL9R00hy3nJHFjehDx79nbceB4V++drtHaajiUFj+TKT+nw5p/0GlpNOFTze DAxhEfErRJJZWsijnqnUsvKp51qLC/WjKRWRVG4ln2Af8289+VGx2ObL/d/FNMOGSTtG zQE3E9YnhjCQp5nViJTpsESexg/FE1P6/ijf249Lf4rz4qmXNj9MkoqofrFL+hCIesIE gG+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hq5+poRb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z11-20020a63b90b000000b0038224514dd9si3009608pge.699.2022.04.15.19.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:15:31 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hq5+poRb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 394AE216A69; Fri, 15 Apr 2022 18:31:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245684AbiDNSZZ (ORCPT + 99 others); Thu, 14 Apr 2022 14:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243914AbiDNSZX (ORCPT ); Thu, 14 Apr 2022 14:25:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D24E38BB; Thu, 14 Apr 2022 11:22:58 -0700 (PDT) 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 0FE2D61766; Thu, 14 Apr 2022 18:22:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 137B8C385A5; Thu, 14 Apr 2022 18:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649960577; bh=OExAKGni0n4Oy0ArWcJ2aR6/4OU/2MYPH8WzRih0Q1o=; h=From:To:Cc:Subject:Date:From; b=hq5+poRb8yTgjJjGY+Upu9uoVdwhYmxP+WHCp1rAt4Y5VWoTeMnwvcwJgSrR8twW7 uw14jPIg3Uhi3rsugbOQIv6g0+HTqBGaBiM4v8nyQQaEidRLBwPbafBOBJ2kKiMOQb kW8KIpKy1xsZMkzO+nkiSGC9WwlPlfmKzYLumz6vda8BYm4Cc+3aQ3/YRdnqrmrKvQ LNSo2hnn8ZoXucnltl3SWNQFomVHGyElz5NtPebL2jF6NgdQy4XRwjdHyRKym02b/C nfqGGXYS6j2RcncpT/SgH5Tiyt6YJH+sM91bidJT9O/Ha1VWNdHLZydfmwTj0CeFK8 3wsk6ZP28JXrw== From: Bjorn Helgaas To: Hans de Goede , "Rafael J . Wysocki" , Borislav Petkov , "H . Peter Anvin" , Ingo Molnar Cc: Mika Westerberg , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Myron Stowe , Juha-Pekka Heikkila , =?UTF-8?q?Benoit=20Gr=C3=A9goire?= , Hui Wang , Kai-Heng Feng , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 0/3] x86/PCI: Log E820 clipping Date: Thu, 14 Apr 2022 13:22:49 -0500 Message-Id: <20220414182252.758742-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Helgaas This is still work-in-progress on the issue of PNP0A03 _CRS methods that are buggy or not interpreted correctly by Linux. The previous try at: https://lore.kernel.org/r/20220304035110.988712-1-helgaas@kernel.org caused regressions on some Chromebooks: https://lore.kernel.org/r/Yjyv03JsetIsTJxN@sirena.org.uk This v2 drops the commit that caused the Chromebook regression, so it also doesn't fix the issue we were *trying* to fix on Lenovo Yoga and Clevo Barebones. The point of this v2 update is to split the logging patch into (1) a pure logging addition and (2) the change to only clip PCI windows, which was previously hidden inside the logging patch and not well documented. Bjorn Helgaas (3): x86/PCI: Eliminate remove_e820_regions() common subexpressions x86: Log resource clipping for E820 regions x86/PCI: Clip only host bridge windows for E820 regions arch/x86/include/asm/e820/api.h | 5 +++++ arch/x86/kernel/resource.c | 23 ++++++++++++++++------- arch/x86/pci/acpi.c | 5 +++++ 3 files changed, 26 insertions(+), 7 deletions(-) -- 2.25.1