From patchwork Wed Jan 5 15:02:28 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: 12704461 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 820D5C433F5 for ; Wed, 5 Jan 2022 15:04:33 +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: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:In-Reply-To:References: List-Owner; bh=K0nJsDVQ/BQlPkQbxIH+Po2QmUosOZ1gTWRv6KlFD6E=; b=OMyiVMM6LQl0vU Qcpm4BgcWDw02ZEzGmjnU5RJ3ge2bfBzmb81BsTPlLUzneAzYeHKWZcKNxXWy4wECfBcbxCLNHzLG Ds4luXNzt227eXFV5+KqirAQSj5anvLDn8f3Q/YF/h4SCNWWbfmrS72E0IlX0DTbnqVv0tM7zjco6 t3glZ2A92HAnx7D882vf6KHcMs90QHpxu3OFI979YRX6iDVPC5ZaTTYKENEoJhhB1FXjOOezNL1g2 dL1QgyMDhNFbArZoNWnd1NdG2ROmv3Hpq7I/+nTqFSkG5FhUZAvyqA+CbkBEfz1/GvtXEm3hMwLfK yeAqk3adXI3sEUfKxkRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n57or-00F4Ja-2P; Wed, 05 Jan 2022 15:03:17 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n57oU-00F4AW-Jg for linux-arm-kernel@lists.infradead.org; Wed, 05 Jan 2022 15:02:57 +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 ams.source.kernel.org (Postfix) with ESMTPS id 47F89B81BA1; Wed, 5 Jan 2022 15:02:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8A0BC36AE0; Wed, 5 Jan 2022 15:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641394972; bh=wjn320Q4DEOaeeCjYoDrjX9G/mND1Q5tCyT5sWz6ZRk=; h=From:To:Cc:Subject:Date:From; b=t0qz88ik2Pzibi2tVKTFQjxOFnHlX475pqu0tIpbLtqyZQd8XkFMpecb68tjMozt/ GOuOM2dyNH27tzm8YNIvFL00OMGl23X0o+IQEuy70581NkvHviRghI0Rkc48qrgaNt ukSBuUN2vtDEBNFc7wVOeb8XavNINzpuerLf+Ac6ZkkXIAKFLKXAxnMgLwg1Bsnvda IobkkbsegtwSONSrBy3K+R7DBejpbUxw3oxFrh2GzW8Fq8iAfmFxOzdj6Z8i+9mg4x nJsbPVQafv/XlCCHXVP5KwpixIotm7cBz5fVKizfzp3Lg6UhNmQb6+UV503DXi7ECA uH+iuxIGJ1omQ== Received: by pali.im (Postfix) id 0C10582A; Wed, 5 Jan 2022 16:02:49 +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 00/11] PCI: mvebu: subsystem ids, AER and INTx Date: Wed, 5 Jan 2022 16:02:28 +0100 Message-Id: <20220105150239.9628-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220105_070254_831216_C53EBD7A X-CRM114-Status: GOOD ( 11.02 ) 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/ 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 | 352 +++++++++++++++--- drivers/pci/pci-bridge-emul.c | 167 ++++++--- drivers/pci/pci-bridge-emul.h | 17 + 5 files changed, 494 insertions(+), 110 deletions(-)