From patchwork Fri Oct 8 08:38:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xuesong Chen X-Patchwork-Id: 12544587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5157FC433F5 for ; Fri, 8 Oct 2021 08:38:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2639961040 for ; Fri, 8 Oct 2021 08:38:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbhJHIkt (ORCPT ); Fri, 8 Oct 2021 04:40:49 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:49982 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbhJHIkt (ORCPT ); Fri, 8 Oct 2021 04:40:49 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R421e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=xuesong.chen@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0UqzdtWI_1633682331; Received: from localhost(mailfrom:xuesong.chen@linux.alibaba.com fp:SMTPD_---0UqzdtWI_1633682331) by smtp.aliyun-inc.com(127.0.0.1); Fri, 08 Oct 2021 16:38:52 +0800 Date: Fri, 8 Oct 2021 16:38:51 +0800 From: Xuesong Chen To: catalin.marinas@arm.com, lorenzo.pieralisi@arm.com, james.morse@arm.com, will@kernel.org, rafael@kernel.org, tony.luck@intel.com, bp@alien8.de, mingo@kernel.org, bhelgaas@google.com Cc: mark.rutland@arm.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xuesong.chen@linux.alibaba.com Subject: [PATCH v2 0/2] PCI MCFG consolidation and APEI resource filtering Message-ID: Reply-To: Xuesong Chen MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The issue of commit d91525eb8ee6 ("ACPI, EINJ: Enhance error injection tolerance level") on x86 is also happened on our own arm64 platform. We sent a patch[1] trying to fix this issue in an arch-specific way as x86 does, but according to the suggestion from Lorenzo and Catalin, we can consolidate the PCI MCFG part then fix it in a more common way. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2021-September/682292.html v2 change: Fix the "undefined reference to `pci_mmcfg_list'" build error in case of PCI_CONFIG=n, reported by the kernel test robot. Xuesong Chen (2): PCI: MCFG: Consolidate the separate PCI MCFG table entry list ACPI: APEI: Filter the PCI MCFG address with an arch-agnostic method arch/x86/include/asm/pci_x86.h | 17 +--------------- arch/x86/pci/mmconfig-shared.c | 30 --------------------------- drivers/acpi/apei/apei-base.c | 46 +++++++++++++++++++++++++++--------------- drivers/acpi/pci_mcfg.c | 34 ++++++++++++------------------- drivers/pci/pci.c | 2 ++ include/linux/pci.h | 17 ++++++++++++++++ 6 files changed, 63 insertions(+), 83 deletions(-)