From patchwork Mon Mar 6 12:57:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Richter X-Patchwork-Id: 9605975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DAE9260414 for ; Mon, 6 Mar 2017 13:09:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB53428285 for ; Mon, 6 Mar 2017 13:09:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFFC628415; Mon, 6 Mar 2017 13:09:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 58A8C28285 for ; Mon, 6 Mar 2017 13:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=NIZ7K0NoLDIxfo01FdXU9ijEvyyUX+xWr3RAM16jWsw=; b=T7j69mjaTFslDX WMQnPalYwQT5DztVpMUZgB/Djmnfl7IDSF6dyTpRZUw0U1Ot/8oZ4DXS6SGwSzehWx14vYrq4PPA4 Va4lhnZiFlWZDkLgtglVXPfvT4UHrZaYmmP6vvd7rE/NhZqEV28Veh+5gnj+SR2WqPgRSWqt7sXKZ hnrAiBWBbrAMf2otR9xf5EVC7V8hON4JduFYd8bCEjKAIrm4Z3pKYDUCEeqxQ1cwGQEGpEHleAr9F VxV09Ys5SL+xXE8D8B5NOGR5TLiMd1HIeDSank2QYmaYgQCqBtzqhhOa6LOXgQkSUo7otPib7B5Xj jHWNq7jyn63eRaIXrecw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cksOV-0004WL-AN; Mon, 06 Mar 2017 13:09:43 +0000 Received: from mail-sn1nam01on0061.outbound.protection.outlook.com ([104.47.32.61] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cksE0-0006Z2-Lo for linux-arm-kernel@lists.infradead.org; Mon, 06 Mar 2017 12:58:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OnIyX14JS59SZBajULfd3hp4dPWdZDK3U3Oy2Gq+xTs=; b=eI5rdmrLPIAnagP1c/6kdPR1tyVCC55whyfb/oPEMpzI9IYjH/Iw1JocNVFyWEuY4nueMhDuh/vZkmyh9NTsHv+wrVSuYv9oVUfz2MCST3sqAXHwe67hGMi7tptAuosyAZxzUtA9+06uYXmjkRfk9VGvTxJ7/WYgxSI7n75YIdo= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=cavium.com; Received: from rric.localdomain (92.224.60.20) by SN1PR07MB2351.namprd07.prod.outlook.com (10.169.127.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Mon, 6 Mar 2017 12:58:30 +0000 From: Robert Richter To: Marc Zyngier Subject: [PATCH v2 2/8] irqchip/gic-v3-its: Initialize MSIs with subsys_initcalls Date: Mon, 6 Mar 2017 13:57:33 +0100 Message-Id: <20170306125739.19445-3-rrichter@cavium.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170306125739.19445-1-rrichter@cavium.com> References: <20170306125739.19445-1-rrichter@cavium.com> MIME-Version: 1.0 X-Originating-IP: [92.224.60.20] X-ClientProxiedBy: VI1PR0501CA0018.eurprd05.prod.outlook.com (10.172.9.156) To SN1PR07MB2351.namprd07.prod.outlook.com (10.169.127.17) X-MS-Office365-Filtering-Correlation-Id: 028d7507-e204-45b4-1675-08d464907e2a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:SN1PR07MB2351; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2351; 3:FqOhJgdMIJPbUQa9+DNZr+TdWJcN228ON7814gcG+qMaXefj2hUyKJKNtc+COeUOHQQ74FB55MjZ652j1h7MRWlk8uidHE2NMF2C2diqrffvvBGoKrnryZGk3IXjCxv394MMo2Ird3CAsAgIGR7D61LqNE9GHtJuRWGL/OVO9vbKPw15G3bjilhCOAAfh+F5yOCM07XkkyWtD33Ba/KGzyeta5Td9cs18kyBGRJEOnqBybk8HtjaRP4UnyUG+/zl9OOx+7wpy12g5xBfKqregg==; 25:djEqorvAmEmuR/nauWs33HporAh8kFFC0ytx7+SekkowdmsdpErZA6g3M9EDviWyNQpK1PHyI6Zh0YAMz0FsQMQ55fHP4uVxdKK/1/nhNOzdTZXI8W4d/+CZgo8e8VvDxggRI5jgqlu29YHHC8ripRW+h44HcG3+iDtbT61jFxbl2MR3zHb0zMK2ZFw33q2PLUaUCaD9zsWx/XSg4EIovPXIgakqQu6WqwztOpXYRH+h08uobgde+gaYFFyCG5lUzFj7188CRFth9VuUBuNstoTJbSn0fW3+WLNMzM/xWg3NVXnJMdrNvgNw6UMjXsddjGRHtrRwwkbsdZkT3YOPUpMV7B8Qo4F0EJPyZ9zYA+wbd6zFHPpYAWVK2MOW2ctx5/+wfADpffqpbasqEG0G4hJQfIPVST65Ls73+oLRQt2++N3vZbzLQi+9UI+jYU8XeMgguSkN2ilNXDr3w54Gdw== X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2351; 31:QnwtxAJmnurk0Nd1Vvf7pgB0YGWb5pNUKbKk5mJbIeqVqZh/v6Z3FfW6qKZikO9Q2nbOrBe0nW2am8n1ki/rxxVcIkq8m49jKB8ryja8Gp/H1TeBye8KG9mire2QIPT5NFLGzzh7EOsS+OYudetAlocge6CEJLwjXyU+uh8cnyL3bTN05IMoHTdoq8UCQPgLYhv0gBIBrvRutN4Q9KDZMv8PaS1fN0R0M2UXmELbPJw=; 20:ddLGRsMNGc1goKNwZt9Sxl1nH1hC+pFY9aADJTEKhhIC0eE5J7zf6i5RolxweUZXr1v6Srorpk7FsxHJuGuse2bjYvxbHL8ZF7U8YCFwrdN48iEfkpIKd8a7DyGEefZEg8niYElMi6RxmiWZ7yuKWkUEhD93jG2tRvw454stFrP3r4Bry6M9uS1yVySwy4pc6XU4DmP23Jv6AO9uUvM3JvG8tT8hTswQLq6zmkSv0pO8bk7fZwUSdpXx3JJ7IN89BPhJE1JDradJD9p2jpKiVR1/X/cyZCKFNzTPN5Q4nBloowETl81fpbh9xiU2HTuHxAOx+4VgTSlwtqS966irPvj8dXoWR90ydIuQyzJ/ny018dYlTvtIT7YaBBaDFnn5btSRbyrQrJH2qrDPbFehq1HQKdOxznTbmTbtFnVKOUgsXt5qqiV8CaQpkoPboAxWEQckgzO+rrM5XdDGf1TF6m3A5NL9moWxuFOVoHYW4kbee997HmP//R7kAswLodbS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558025)(20161123560025)(6072148); SRVR:SN1PR07MB2351; BCL:0; PCL:0; RULEID:; SRVR:SN1PR07MB2351; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2351; 4:AuJQAHfLi6cxSJHW/mMi+cWfps7Qb3ni163bxQsYx7EmJY79XliWFv2rsxhP2ZI0tTxeSzvhCbP+NlZ7GIggHKixE1Cc6/vUEQSh01x585DG8IDSHhft9dGtcNp6O208cEfjfCWcoUp5eUMrPPkqbmZeHzzYWLpUW4UVDswVgfQWpfsbWTJ5n1HoNkNr2//JzuIJTJ3dZfDR6jgjROa+hbX3Rf+Cwup/xKEgTkzubmEqqpYtypAcNP5ZjJmyndOVRuIWV3Bk6x/2Fp34akCo5R6SwfGOXzbUywRBx7Xc9mFP2sonws3sbe5zzWoWEjpBIA6+UVQIXdvDn7pPYBTUmjK438YnkS9com7NoYAaCjo1GX0xFwepu23HZszrPbB8z4T14V8YdE2mGgjRLH+eZHS+BN/vFplolGTIywdjT1DtzT3OL/J6rcXy+1zahya7Msdy/YOqziOm9G20brwHwoqTumOuh15W4d7JVdzNuvNqIawROGraGCqBux5c8lmcMeDW+78kiOaBHB5w7zYvlyc/IO+qH7WXP+akWaT7IxEESSe1BpHqiHOv1wZQlvtuWMPiThAVfb22x67aLT0GkhtN/NeeVk1yoOE+6EQyf54= X-Forefront-PRVS: 0238AEEDB0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(6116002)(3846002)(2906002)(76176999)(7736002)(1076002)(47776003)(5003940100001)(6506006)(25786008)(6486002)(66066001)(92566002)(5660300001)(305945005)(4326008)(33646002)(50986999)(81166006)(50226002)(230783001)(6916009)(48376002)(42186005)(53936002)(54906002)(6512007)(50466002)(189998001)(36756003)(38730400002)(110136004)(8676002)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2351; H:rric.localdomain; FPR:; SPF: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atorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2017 12:58:30.1462 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2351 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170306_045852_780504_28CE2D26 X-CRM114-Status: UNSURE ( 7.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , Thomas Gleixner , Jason Cooper , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This allows us to use kernel core functionality (e.g. cma) for ITS initialization. MSIs must be up before the device_initcalls (pci and platform device probe) and after arch_initcalls (dma init), so subsys_initcall is fine. Signed-off-by: Robert Richter --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 2 +- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c index aee1c60d7ab5..dace9bc4ef8d 100644 --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c @@ -194,4 +194,4 @@ static int __init its_pci_msi_init(void) return 0; } -early_initcall(its_pci_msi_init); +subsys_initcall(its_pci_msi_init); diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/irq-gic-v3-its-platform-msi.c index 470b4aa7d62c..7d8c19973766 100644 --- a/drivers/irqchip/irq-gic-v3-its-platform-msi.c +++ b/drivers/irqchip/irq-gic-v3-its-platform-msi.c @@ -103,4 +103,4 @@ static int __init its_pmsi_init(void) return 0; } -early_initcall(its_pmsi_init); +subsys_initcall(its_pmsi_init);