From patchwork Wed Oct 6 02:45: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: 12538409 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 B7EC7C433EF for ; Wed, 6 Oct 2021 02:47:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8083D611CA for ; Wed, 6 Oct 2021 02:47:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8083D611CA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=VtxGOn+khHYOSDKenhrStrNEYius/hvq6Yc99nm8nNk=; b=hXg xjExer2ABQwklAvFWwhg+mJ76ESfNErb9mml5e72O6FHhSq39+OCg1cGhuyIggATDLrqJdE3Mlkat 3yHgdYCHvHtDMIMjHpAf4QbXUnWFIlTzwhmohthoAUcjufC3lOfi9unl9xSJhfZnU7GPaHLZYdfjW 3Jl4QlpcSnVuDTmuiDTFPauDgiPpz9guAHX76ZdZNvmFJAV7YMmCYZxKqpiwIYjmFcQ21jnzEghgQ +fZ7Tmygsn+igO0cJsUlcfA72KYNubwB7NTIdcDrQc1pbmvHGWJbvv6cQ/NLCPZylMYDvmnskWCiQ cMGknrmP0VUzYpu4MpaZ4SshR0y2Ytw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXwwS-00Cbam-T4; Wed, 06 Oct 2021 02:46:01 +0000 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXwwP-00Cba9-4D for linux-arm-kernel@lists.infradead.org; Wed, 06 Oct 2021 02:45:59 +0000 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R111e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04407; MF=xuesong.chen@linux.alibaba.com; NM=1; PH=DS; RN=16; SR=0; TI=SMTPD_---0UqhYNOD_1633488351; Received: from localhost(mailfrom:xuesong.chen@linux.alibaba.com fp:SMTPD_---0UqhYNOD_1633488351) by smtp.aliyun-inc.com(127.0.0.1); Wed, 06 Oct 2021 10:45:51 +0800 Date: Wed, 6 Oct 2021 10:45: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@redhat.com, bhelgaas@google.com Cc: steve.capper@arm.com, 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 0/2] PCI MCFG consolidation and APEI resource filtering Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211005_194557_381224_01214CB1 X-CRM114-Status: UNSURE ( 6.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Xuesong Chen Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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 | 42 ++++++++++++++++++++++++++---------------- drivers/acpi/pci_mcfg.c | 34 +++++++++++++--------------------- drivers/pci/pci.c | 2 ++ include/linux/pci.h | 17 +++++++++++++++++ 6 files changed, 59 insertions(+), 83 deletions(-)