Message ID | 20201109173948.96663-5-sven.auhagen@voleatech.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=gdET=EP=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7B1AC388F7 for <linux-arm-kernel@archiver.kernel.org>; Mon, 9 Nov 2020 17:42:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 4126B20639 for <linux-arm-kernel@archiver.kernel.org>; Mon, 9 Nov 2020 17:42:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iXcNvdlz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="VUl0IwgL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4126B20639 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lz0/SZVHYLaSYEUxBNlUJlIEWgCHzvIa5zkreWrqcL0=; b=iXcNvdlzgIG1NCFg3rUnI/xIh srjkTrcig0vu9+TCNgsBEkkzGUAucpuNwQRXhwW+RJK6MKEtP1KH9zhNWNqsztCMXhnnqRdD24hip +oAQy1EYYA3c3pZXr1ZSRIFRJ/tKaQ3Shb8mZFWAURKSWD2RE899WJljZqpRzaXtHdCiLKlvn3/la cGUunlC8HAb2MQRV8a8g23SXpCqNW4dZj8Ua66oJq9O3xvbY+GXKWSRk0l1Jlyk0UBhcq3llFIh8i 4JqHtBZMFQ3d0pJ7LhIKnJ9tYQQyFfceN2aBnDeJr3IRrzznqUAa6+WmQkroJUWMmCOine5JOeV0U n5JH4B8EA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBA3-0007R1-Gf; Mon, 09 Nov 2020 17:40:59 +0000 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9D-00074R-Gf for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0rZABduTWR79OZE52Y/M4b5+yxPMhQ3vxWA5AYr1hBAtQNBo1puI57QGQHtoe1FkTQXhCi22Y/UvxoqlBb+tpmQPl1EtHO/S8i1IorhbqTl7IC2+sfln3uWCsFf6qGcOLXftqOP+/W8IMqWpZapyPaFWPPyirxH+BG+hsyjc9wvHtBBFbrJ56LGB4QmDpoPNiBHGsc40SWFDDYn+mIp1PMnni8Hv8D0qS3HRgK3iwYd3ZGgVXwJ2IQxxgjWtRlVksaRQTbS8BT/lQH6MPHu5KgECt/coNzgK4aPXQraitRQ7AFdPB/V+FClyOXop5OMneXdT05fhKJlr1rQvLOQZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dPF6H6JxLZMYIurbdmVAJG3Qwok8XNcirQWPP7SWT4c=; b=T/WRtcK0iW6Q4KRea+FAgVwz2Iyv6ziikN5aj1TxJxhOk/30b8f9ySIwPygrPf0HTjLaUjIapIXThd14up4jTsG8/vHoiMmvOcaF5HS25pBmW4A+ZCSEfnlct1T3nShn9ChfQ5yY2Yn60rAAtzXQTT0FqjN4QHewrKSR6yeConn4/XiA8c7fKvrSa9/gBqQhT8erCxROwUruIYkhPQuifm8hKghSqjs02FgQxc1S/ca9zq3XVpzQX0pV5TnLxbJaWaHEnx40vDtk25Qv8aOmV82K52OnxFf7GKqRv+5Uq1x3frh1HXLD9TRoem2vWe1JYNjljzSn68dyDX5X9nLvAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dPF6H6JxLZMYIurbdmVAJG3Qwok8XNcirQWPP7SWT4c=; b=VUl0IwgLuuZBHU5N8ZddbWn1MmCEGl61NFmhLkumJuejKxKSUdiD5qPieTB6hlvw+VO7uuorgyEbjWTaUHNIjaL/EV8HoG+R1Da9Pih4xFI6atxejFJNBAKU4FURGF7IJyVVL6NXzFLgTR9CjNp1woQnIenOOyEEdo3KuTXN8KI= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:54 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:54 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 4/9] ata: ahci: add ack callback to multi irq handler Date: Mon, 9 Nov 2020 18:39:43 +0100 Message-Id: <20201109173948.96663-5-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7a47d21-018c-4b07-16a2-08d884d677f8 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: X-Microsoft-Antispam-PRVS: <AM0PR05MB53621E4EC434DE88883A1C68EFEA0@AM0PR05MB5362.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KM8NMiGvszGJo8DTpGnvb129WXgw2qzcJCpMElPcLWQOXcuWOM9gsv/EPC4y0Z8qlhZpA4VW/u2X5ePUs52sPAEI83FguKrel+6OYZEzUGV9pQjUhLyk6I9vxwWUmAM74Wf7L4hYeEHi/qk1OAbMremBjX8v4MxSTj4Sy5nzIdKa5p80iPpL/mR7qjZmmReE//QionLxb5NfcR+KA03Lem+z6N7f1o7lBPG5MCQ+7SNhXwxBhQd8HSyQjQXQdMdofpnK36MlYhT9W2YRRsQ46Df6QJq9OkgxlzAmo7yYw4e8jVQp6rIx5S4XCkXPXmbHIO+Xrhhf2rd0uCQKc2sT7IM9udhH/tcfUAWsPB5o85MRqd/bKJzxlfop9NrPTNdD X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39830400003)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: b4+YQlbISVkjAsMd/kdQpcGCiWR5Di92cjOXUu1MSuGbTjGdpSc6HVCpW6RDdqlKm+nO7IftJe0/QrNSLjFizN/8XS1wZCMejsnCQK70OKVewtmDPbaKcWXsRJJ0Cc+lE2/AwWgif19423w3rV79HnjnUZ+AZzGM3G7R7Yub5IprQQxTH21EDjkp68ygQQYuqz3M6mHCsYu8MQNUveaDuaCB7XrVEMiFa7rWhRBvQgIEWi1oKb2f0c6W6rW56yR6QJVY/PMcceAQLrb6M/OhPe06X810qMIUitSexhNeWAOiTttOGPiDVmAMKUbm3uOBgOH46AyZ8EOPFcyK9C+eGae1BGGAJ2BVQAOjI4N+hEc2zQAdUgWgm9G7VfmnO2iZpevCIqV5SaP+Fg6k+xt7wFE4+y9pCJj176gVXX0e622vdfHtFaIMlrq4HhBRMbc8DHqXR1PKMb0vjfyynuO87IbBZP9uzTNT8ePzX+V8K1jp2AV0e/ij0cx+DCSNYeVeX7mEJ/Yg4UlFfi7efs9SibWuf7mZCyGQuw11UcDqbKPjZjSkNI5YnitR7IqEn7kUeX7A7I1tN536GfKcXqhYck7JBrtbSDqZQ3zxpRe05N1PcrvDVeYyLxX2aDF2zIbkW+lLaeyGgPEY277UXrS2DQ== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: c7a47d21-018c-4b07-16a2-08d884d677f8 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:54.4745 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tD3chbxVavYggTK/nKH8mDk4Kd8swLX3C6LcToEGh/tnCwX/bjql0mzW5Nl6B3S0pIWjVeKVYYrmvG2wUpkt0u/B9cF5XRhEwmqUNc9Z/z8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124007_707885_7A06C942 X-CRM114-Status: GOOD ( 13.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Armada8k enable per-port SATA interrupts and drop a hack in the IRQ subsystem
|
expand
|
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 98b8baa47dc5..d8109e06794c 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -371,6 +371,8 @@ struct ahci_host_priv { /* only required for per-port MSI(-X) support */ int (*get_irq_vector)(struct ata_host *host, int port); + + int (*multi_irq_host_ack)(int irq, struct ata_port *ap); }; extern int ahci_ignore_sss; diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index ea5bf5f4cbed..cf9839135a57 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1897,6 +1897,7 @@ static void ahci_port_intr(struct ata_port *ap) static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance) { struct ata_port *ap = dev_instance; + struct ahci_host_priv *hpriv = ap->host->private_data; void __iomem *port_mmio = ahci_port_base(ap); u32 status; @@ -1909,6 +1910,9 @@ static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance) ahci_handle_port_interrupt(ap, port_mmio, status); spin_unlock(ap->lock); + if (hpriv->multi_irq_host_ack) + hpriv->multi_irq_host_ack(irq, ap); + VPRINTK("EXIT\n"); return IRQ_HANDLED;