From patchwork Sun Feb 20 19:33:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12752827 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 98557C433F5 for ; Sun, 20 Feb 2022 19:35:47 +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=9jixEXJCE49iZoYmHFeNfhxdtFXyQD3CHbZ2VNt6zeE=; b=a7hCcv4y9/5bhN VxOCvGJvLyZc+RL8t9XgvZc4vfXg3OmtvfYMtCgd8XK6zkMfE8DZNxgc9IYlso4gTGUXnmIh/PFSG 6ZIaI7tsjZH6Aq2YQ1gqeKKip5GnHjLY+I9HUfM2qWjH2FaoArFOlWiFtAfpXuPICIRYr8zohSJmR fqsOfYhqLtM5DtTICTwD2c+y0rUjVESMaXvcxpUaYI90o6szCeFX33uW5BUNMTxEk+MyMAd3QgY7D fn5gd14/ge6biPWfZYYD9W5s5TkXgVUSkkjkFrNtDpYf9wj/Ls9/VZcZS1Hx328PoPg0QBv+QaEaH 5Non9noIkuXUiyTb4XNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLry1-002B6r-F9; Sun, 20 Feb 2022 19:33:57 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLrxy-002B6B-IM for linux-arm-kernel@lists.infradead.org; Sun, 20 Feb 2022 19:33:56 +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 7440AB80DBE; Sun, 20 Feb 2022 19:33:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 489D5C340E8; Sun, 20 Feb 2022 19:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645385631; bh=5Y8A0/tZzQBaf1BEHX5aYVJwrs7tRMeBrlezCbI3i4E=; h=From:To:Cc:Subject:Date:From; b=pesEdHRN/1A0ZngVaBXRJenfScKdEeRkt0DdUIuSmryeMbrYJHNEeuSS4R3lUIERQ IivjI+QTZR12piVVsmrMn1gUUd9eidyfaMjWyHrusz/P17/6l7PHhUUgWBO3USjBB9 Z7Fb1B2IN7IbBS5IhtYl4CuUNcRShEjyu8GBrncNbkWpl44/aMkDj4vt8LfV5ZYvtY 9NISBEenlXM54PYjKBM4dNaVGWiZbx5Onhkyd/9iBRwNPhdqd45EVVTChSBJqHnvBz W1bXtHfWzUVfx5XL4g3Ihpcz8IJC5hDXrDFk2GQR3w5p3CeV75if8JNHJZxEjO021V Q2OR3I3DcdP2A== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Lorenzo Pieralisi , Bjorn Helgaas Cc: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Marc Zyngier , pali@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Gregory CLEMENT , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH 00/18] PCI: aardvark controller changes BATCH 5 Date: Sun, 20 Feb 2022 20:33:28 +0100 Message-Id: <20220220193346.23789-1-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220220_113354_791437_1C410D16 X-CRM114-Status: GOOD ( 10.67 ) 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 Hello Lorenzo, Krzysztof, here comes batch 5 of changes for Aardvark PCIe controller. This batch - adds support for AER - adds support for DLLSC and hotplug interrupt - adds support for sending slot power limit message - adds enabling/disabling PCIe clock - adds suspend support - optimizes link training by adding it into separate worker - optimizes GPIO resetting by asserting it only if it wasn't asserted already Marek Marek Behún (1): arm64: dts: marvell: armada-37xx: Add clock to PCIe node Miquel Raynal (2): PCI: aardvark: Add clock support PCI: aardvark: Add suspend to RAM support Pali Rohár (13): PCI: aardvark: Add support for AER registers on emulated bridge PCI: Add PCI_EXP_SLTCAP_*_SHIFT macros PCI: aardvark: Fix reporting Slot capabilities on emulated bridge PCI: pciehp: Enable DLLSC interrupt only if supported PCI: pciehp: Enable Command Completed Interrupt only if supported PCI: aardvark: Add support for DLLSC and hotplug interrupt PCI: Add PCI_EXP_SLTCTL_ASPL_DISABLE macro PCI: Add function for parsing `slot-power-limit-milliwatt` DT property dt-bindings: PCI: aardvark: Describe slot-power-limit-milliwatt PCI: aardvark: Send Set_Slot_Power_Limit message arm64: dts: armada-3720-turris-mox: Define slot-power-limit-milliwatt for PCIe PCI: aardvark: Run link training in separate worker PCI: aardvark: Optimize PCIe card reset via GPIO Russell King (2): PCI: pci-bridge-emul: Re-arrange register tests PCI: pci-bridge-emul: Add support for PCIe extended capabilities .../devicetree/bindings/pci/aardvark-pci.txt | 2 + .../dts/marvell/armada-3720-turris-mox.dts | 1 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 + drivers/pci/controller/pci-aardvark.c | 380 ++++++++++++++++-- drivers/pci/hotplug/pciehp_hpc.c | 34 +- drivers/pci/hotplug/pnv_php.c | 13 +- drivers/pci/of.c | 64 +++ drivers/pci/pci-bridge-emul.c | 130 +++--- drivers/pci/pci-bridge-emul.h | 15 + drivers/pci/pci.h | 15 + include/uapi/linux/pci_regs.h | 4 + 11 files changed, 565 insertions(+), 94 deletions(-)