From patchwork Thu Apr 14 18:22:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 1617389 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=hq5+poRb; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4KfSWC3Yvkz9sVb for ; Fri, 15 Apr 2022 04:23:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbiDNSZY (ORCPT ); Thu, 14 Apr 2022 14:25:24 -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_W?= =?utf-8?q?ilczy=C5=84ski?= , Myron Stowe , Juha-Pekka Heikkila , =?utf-8?q?Benoit_Gr?= =?utf-8?q?=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 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,T_SCC_BODY_TEXT_LINE 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-pci@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(-) Reviewed-by: Hans de Goede