Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5354007rwb; Wed, 17 Aug 2022 16:16:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6U/VInETKBfDWbyrmFKtNCfDWyXVFAFTG0LarneJAmX5/dpdoJfGQTft34P+TmOfREYWgj X-Received: by 2002:a17:902:d503:b0:170:8b19:2713 with SMTP id b3-20020a170902d50300b001708b192713mr173083plg.53.1660778168610; Wed, 17 Aug 2022 16:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660778168; cv=none; d=google.com; s=arc-20160816; b=U7+Ia9uRMVeSMTAhtnFQjsfSgnltF7g/VfTrvBV5Sp7eb0ebqgYmUHo2qqlLtkvyEd QWomnNQTkAwUfSLMhErWEBwtm2c+AlzZbII9nK9FZGjh7APHcrj/n5iW6oYDIR0iMzkD Tn31SXhWPSaW+kuzee30fddEXI24nD1GSQzkppwEQeQqp9g7eRkysiVHyRKOz1oZsTf7 PzJXSBv3CzymHePFbvPdkiS//f4p6le64b/zkOjbxVcwol8fzEaOqjYiXxqnFpb36XS6 rKlnoCRFIGfbE6bSX0MiVyp1Ot/K8ieg7OoqwQVqEM5Yu9b0LLSL7vm+SU14Vb6tEgt4 Upqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/JDOZmSrGVEDSudk92/23iWPWLXiWzlk3zhleGgq3ws=; b=E4oJFlCm7h7W3OJomqHA6z5gzjtMBzpAmF7gX87UEwXY9VreoHdxVk6K8G708YfkbL 39mUbvVDyXzczNknyeGSf/bYgIlr0P6d9n2kiEwMz7t44OD7vyHIVw7IsOm21bHtINwC llCS5imL9RAGqMiDoIuGf/na+Sumr/GNtmor7s20wkRfrNoUqrDfqmRCO+ujuVEQzNlH z9/NJUohiVqOwtEzsL1AL8sqTNepGdI3JY+yBmpBgrH56GF7DCaQEU/zNKf11mkg2Ey0 +FGNHqi5xD9U585WJDQ/4YfKhMa1FQ7RNefUEIXq78GJfMbJEjvjSzbA6FuCtcTzkE+h uOpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S5V4hGf9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b0041e2cc84349si46989pge.221.2022.08.17.16.15.57; Wed, 17 Aug 2022 16:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S5V4hGf9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242023AbiHQXDk (ORCPT + 99 others); Wed, 17 Aug 2022 19:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiHQXDi (ORCPT ); Wed, 17 Aug 2022 19:03:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1E48A50F6; Wed, 17 Aug 2022 16:03:36 -0700 (PDT) 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 93C10B81FBD; Wed, 17 Aug 2022 23:03:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F84CC433D6; Wed, 17 Aug 2022 23:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660777414; bh=1MR315QnADwsilPIFFMT06JsmqGYa2wV+d693CoceVc=; h=From:To:Cc:Subject:Date:From; b=S5V4hGf981y0IeA4JPZAHR2kr6hDH38wWliHwNqfI2dfWphyATDz5Qk/MZFirD7BX nSItPRpmr/FpVPFdAwaIi17YuCagg7a6tuqcuS4Zn1brmsBRUzw4LeiaoFw8n8yVRu iwF3PW7JvO+bXDpmburJ981bqJQ0U/RirF28o6jM7QvF0xIBEY3LmgLCmbOjIR0nBp xsHlU3UvOd7QTvazuqhCxvqDlJBoKUw8nKoiJE253QeHrpu+omMAXbvLbXrmziqvXx 6jT0p3R0QQDJomvO0jCcrvdWiKk4KEUbEzziplFe03WpX/mwQVawpYj3qHuuIboPXy Pd4ZOodfM1LJw== Received: by pali.im (Postfix) id 58E9277A; Thu, 18 Aug 2022 01:03:31 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , Rob Herring , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Thomas Petazzoni Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/4] PCI: mvebu: Add support for error interrupt Date: Thu, 18 Aug 2022 01:00:32 +0200 Message-Id: <20220817230036.817-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PCI mvebu error interrupt source is triggered for non-INTx event. So e.g. when AER or PME event occurs. This patch series adds support for reporting AER and PME interrupts on Marvell PCIe Root Ports which allows use to kernel AER and PME drivers. Without this change kernel AER and PME drivers do not work at all. DT bindings for this support is currently provided only for Kirkwood and Dove platforms as other new mvebu SoCs requires extension to armada IRQ driver, which is currently disallowed. Without new DTS files, pci-mvebu.c driver acts as before this change, there is no AER and PME kernel support. I have tested this change on Armada 385 board (with additional changes to A385 DTS files and IRQ driver, not included there) and AER interrupt is delivered to kernel AER driver correctly. Pali Rohár (4): dt-bindings: PCI: mvebu: Update information about error interrupt PCI: mvebu: Implement support for interrupts on emulated bridge ARM: dts: kirkwood: Add definitions for PCIe error interrupts ARM: dts: dove: Add definitions for PCIe error interrupts .../devicetree/bindings/pci/mvebu-pci.txt | 1 + arch/arm/boot/dts/dove.dtsi | 8 +- arch/arm/boot/dts/kirkwood-6192.dtsi | 4 +- arch/arm/boot/dts/kirkwood-6281.dtsi | 4 +- arch/arm/boot/dts/kirkwood-6282.dtsi | 8 +- arch/arm/boot/dts/kirkwood-98dx4122.dtsi | 4 +- drivers/pci/controller/pci-mvebu.c | 256 ++++++++++++++++-- 7 files changed, 252 insertions(+), 33 deletions(-) -- 2.20.1