From patchwork Wed Jan 12 15:18:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12711514 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 81D4EC433EF for ; Wed, 12 Jan 2022 15:20:08 +0000 (UTC) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k2mDVhTKex+XhBY1VWjREtLuipiQl1rAiLt+IkOxm+A=; b=R9KAWIdvlP7kTo 21Vef5bfGDMCUj8nWdarSKCjUUy2cImmZYmiVJa2M5GIe5R0XOUtUivVh/SQjjpecH7RWb7Z/eRKx 7FeyGJCjPi9vSWrfW3oYFMaJglyBmmCyuoh8aWhScpYeTRj5D3hN4lZdCXE3Yef0fRNbLbzz4FfWI FYCtKoMrRiPJmNu/yfXakxantKxKWmNdfj0UJUpkdG/5HGNLhJJtQuTwyoxM5HyTBNIL6l1K/ZMks Aj1v745fHtKSLGUHZr1u3gibPoo/bJgsbni/bcZKIU5Ar3jN9MUTXh8loGK7nSPQ6fZxuF833g1iq GEeMnj9DHZCurhSIeSKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7fOa-002qWm-TG; Wed, 12 Jan 2022 15:18:41 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7fOU-002qUq-Rj for linux-arm-kernel@lists.infradead.org; Wed, 12 Jan 2022 15:18:36 +0000 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 59685618F2; Wed, 12 Jan 2022 15:18:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97134C36AE5; Wed, 12 Jan 2022 15:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642000713; bh=+VK97S4+9dHrE0d87LQ66cQJF7naygHp+eL8HzXayK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gPMjNRm4LK8IlEez+6lAMbvWR2RdRd8rJv5J1r8ErW7YV+7wUAwSFewRUS/oCH9o3 ZRm+zvfy8gS3uwzjsAngRL+5ek9gqt2xXju8vjP/GEZsHcu1u40k1YaX3+i98v0OBu wYRDDKnx3oi/EL5BjHqtBqUnFAzGdmdUqhcd/PcvJ/QhQrdKxVnP8mS4oiGk0MyBbp E4UvszXCZwQ/jAZ1xfTJTt+axi/BEAjieZqoHv5Tu2z707QySjRF2ecrwA0kPUkHt6 HgcDXhNAJgIo7xLgO+0vC+1cuP6IYgFw49bqpWYo7dtFiD30R2iPM7ZwQUuBBP3+9c 0r4HHLtMsbrYA== Received: by pali.im (Postfix) id DF2E3768; Wed, 12 Jan 2022 16:18:30 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Thomas Petazzoni , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , =?utf-8?q?Marek_Beh=C3=BAn?= , Russell King Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 00/11] PCI: mvebu: subsystem ids, AER and INTx Date: Wed, 12 Jan 2022 16:18:03 +0100 Message-Id: <20220112151814.24361-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220105150239.9628-1-pali@kernel.org> References: <20220105150239.9628-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220112_071834_975345_930DB41C X-CRM114-Status: GOOD ( 11.47 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch series extends pci-bridge-emul.c driver to emulate PCI Subsystem Vendor ID capability and PCIe extended capabilities. And then implement in pci-mvebu.c driver support for PCI Subsystem Vendor IDs, PCIe AER registers, support for legacy INTx interrupts, configuration for X1/X4 mode and usage of new PCI child_ops API. This patch series depends on other pci-mvebu and pci-bridge-emul patches from: https://lore.kernel.org/linux-pci/20220104153529.31647-1-pali@kernel.org/ Changes in v2: * use static structures for INTx interrupts * remove INTx domain after unregistering INTx handler Pali Rohár (9): PCI: pci-bridge-emul: Add support for PCI Bridge Subsystem Vendor ID capability dt-bindings: PCI: mvebu: Add num-lanes property PCI: mvebu: Correctly configure x1/x4 mode PCI: mvebu: Add support for PCI Bridge Subsystem Vendor ID on emulated bridge PCI: mvebu: Add support for Advanced Error Reporting registers on emulated bridge PCI: mvebu: Use child_ops API dt-bindings: PCI: mvebu: Update information about intx interrupts PCI: mvebu: Implement support for legacy INTx interrupts ARM: dts: armada-385.dtsi: Add definitions for PCIe legacy INTx interrupts Russell King (2): PCI: pci-bridge-emul: Re-arrange register tests PCI: pci-bridge-emul: Add support for PCIe extended capabilities .../devicetree/bindings/pci/mvebu-pci.txt | 16 + arch/arm/boot/dts/armada-385.dtsi | 52 ++- drivers/pci/controller/pci-mvebu.c | 355 +++++++++++++++--- drivers/pci/pci-bridge-emul.c | 167 +++++--- drivers/pci/pci-bridge-emul.h | 17 + 5 files changed, 497 insertions(+), 110 deletions(-)