Message ID | 1436778864-17645-6-git-send-email-Suravee.Suthikulpanit@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E52239F2F0 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 13 Jul 2015 09:17:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1071920678 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 13 Jul 2015 09:17:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1AD520614 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 13 Jul 2015 09:17:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEZpx-0003Cd-OO; Mon, 13 Jul 2015 09:15:45 +0000 Received: from mail-by2on0791.outbound.protection.outlook.com ([2a01:111:f400:fc0c::791] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZEZpu-0002zV-6h for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2015 09:15:42 +0000 Received: from BY1PR0201CA0004.namprd02.prod.outlook.com (10.160.191.142) by BY2PR0201MB1479.namprd02.prod.outlook.com (10.163.153.152) with Microsoft SMTP Server (TLS) id 15.1.213.14; Mon, 13 Jul 2015 09:15:19 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::124) by BY1PR0201CA0004.outlook.office365.com (2a01:111:e400:4814::14) with Microsoft SMTP Server (TLS) id 15.1.213.14 via Frontend Transport; Mon, 13 Jul 2015 09:15:19 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; arm.com; dkim=none (message not signed) header.d=none; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server id 15.1.213.8 via Frontend Transport; Mon, 13 Jul 2015 09:15:19 +0000 X-WSS-ID: 0NRF5PF-08-RV6-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 20F29D16020; Mon, 13 Jul 2015 05:15:14 -0400 (EDT) Received: from SATLEXDAG02.amd.com (10.181.40.5) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Jul 2015 04:15:31 -0500 Received: from ssuthiku-fedora-lt.amd.com (10.180.168.240) by SATLEXDAG02.amd.com (10.181.40.5) with Microsoft SMTP Server id 14.3.195.1; Mon, 13 Jul 2015 05:15:15 -0400 From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> To: <tglx@linutronix.de>, <marc.zyngier@arm.com>, <lorenzo.pieralisi@arm.com>, <hanjun.guo@linaro.org>, <tomasz.nowicki@linaro.org> Subject: [RFCv2 PATCH 5/8] arm64: Adding arch-specific acpi_init_irq_alloc_info Date: Mon, 13 Jul 2015 16:14:21 +0700 Message-ID: <1436778864-17645-6-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1436778864-17645-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1436778864-17645-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:EQ3qkDPe24yt2tZXF6GfaWLj4IuEArdpkl7qYiFlC5N4RgUxJriVitJ0XIFkY/sTBPTPWu8id8NXwJDgA/4iGdlS14OQwaPRg+/PfX6m5qWXGkAq/OQMw/FqjV8LANo3UzaXgFZkhw/cxSFFGsjRvDYx7lmavZQ4+PL43wxBv7uAJxsxI9q57Suas6cwb+rCyhZ7WR1oEjyrUwt4CcZ9iz7hw6YHAfVhZsf2g6w9EdCxsnTivFmoN2x9hfyla3iYGnhNkDHK8h2IMHg2e61eP8lBkbFr2+FrneXIGZy+2vujj34FT+E/DyivaYtpHq+0xqPXuLP6VgvUkuFDlIJOJqFKWHLmVbCv9hkywWVZpWT1RWIdT3x/XESl/94WDR0FiUTY+aS2zVGWGoo5DeWcikf6aVY/s0N1EsGK8XKmcfE= X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(428002)(189002)(199003)(101416001)(105586002)(76176999)(50986999)(86362001)(48376002)(47776003)(50466002)(53416004)(2201001)(87936001)(229853001)(92566002)(2950100001)(19580395003)(189998001)(5001770100001)(5003600100002)(62966003)(77096005)(19580405001)(5003940100001)(50226001)(46102003)(77156002)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0201MB1479; H:atltwp02.amd.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1479; 2:If1IveYKB/9vkg93/pg3ggLaM6A1i+dI75Holb0pblfkYBvF+q0qXuAXEWJG9bJW; 3:lNbXziBHg4GVpi4BdXhiLgviH9I/1z2o3MxhE06YuwkAshBA8t05EUI07ixjYtFUq6G/VgtrkWH6YgAccZ+40V9gq6Xa78xSmlX/BW3a6fZGKJJi8fFjrlcSxzBSucheCSFz2HzdzNKonUrD/2IXXiY9scky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DflFJ/4WHZarAwMvTxB2/EcEWEpFN9vynwhdKAk/wre0waBR29Va6saGv5Mh35TSg1RQkMZfVZ2rp3hj83bOsXMXvaSa/ZqyvFQB+/0kkcXBsPh6lzeRYWu5WlL8w4qZKXRJysJzj3dZuAwI5SBjdAS3xqh7Wm7fzo0DCXt785LvZ3LD67j2OzpT42Q0FOGk7+9lrKNSmY2oX6hqMlgDknMtucY= BY2PR0201MB1479: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <BY2PR0201MB1479421D4644295D71C8C0FAF39C0@BY2PR0201MB1479.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2PR0201MB1479; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1479; X-Forefront-PRVS: 0636271852 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1479; 23:aRfMMjaVXputDwDER+spSXwhi2YsHt5kXsnI3zdpkh3DySVI37rIRwbhuXESd59+cyegPjDoQQMSWegl0bLW2frLyi3HZNd33thct0oMiVKk5mLM2k3niOQfLUv9iPjgYXK1HnSvUDJjtYljgCL/nctHTT5hjl0PmOewRON+nZL5ktxqV9/SlFrrVq5b650CJzd+6l0mBhVHmH7oPa+EXuPmRQjfngqpzAwxZYtRQDs/ViKcTw6SogxNvhjlV4/jD72oiSfGnBR7B9P/liuWtz5JMPdFNLSVjhYFd/V8ZJzqEoPersSc/tvnRC7ADl8bpqQw/oQFOQvwoe8AL98q37GuIGLsljW1McT4OawU7AFKUYt0aUuDsN7XUUZS2s/FwfnU+k09pLvbxj0+2LPKTiDUQECtiXRY//XV5HTrg6J/c64TwpOZuE17EgBiNfmiPmlcHDb5B4QH4JFOJ/Kj2tDDlvfmT2jGIaZMxauE16FFim1Nng17tgQCKZ5AuWNXK19nkfAHPYO+phxHFPKCt4UAOMrVbFkfph3wn8JYZ8//EO5r9rPNv7aCIesvKMUFOqRe5oak2tPcNZVDPanxNVRQ0Y6QMPUZjbaXNDDfjT8f7fzD/sFi5BQWg6qzmngJeoCGtX159b0F0t27f/EfNQ1WRRtiq5MOJq4oR60fEBomdYAv4og2rJu9mLYyAFPqqTjDIktAHe0SRZdRykpbrXBja3LB8txi5RYQyau94HwG3hMmC3xK9gq46zt95d84WpKEKbn7FiI73nhyhl0h1IZkMiOG3K0eAgTzXs6k/dVcL2lWMXoG1qy1/NSoMUGb68HVSFE8JIVpVNZrCQtStHDlsaZXdxQGTnlW8ek4ZYk= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1479; 5:tLSXXBZC6V4/jhWv3Bt5QUPYGV+p1LeMePs32l7zgIpfSA6VRrtfCIhDBMHK7h2lSU7MKaO8p36rAb8H97lY72asLKNdMPonJ1d8PAW3JYb/6pP7TPMn0NmdyaAF3KU+4EZEXSfwnYOe3eqdMbd6Iw==; 24:xHaBQBCUWsUq4UJQRUG5rCSdi2SCojT698OZkb6khNgK0/sSaFKEny+2em2pT4Fsa6WUAiZbfrE7e5rq0W3R+WyAcJQ5hi+lwky86Zq2/DU=; 20:doSE1Y+OV2GtVpTWFfDVEfI/mnZn3215IZFxySOPO8fZWaQNsjtAyCg4zz/xvyEH9GZxT08QTq6X1sr/aO8meg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2015 09:15:19.2138 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1479 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150713_021542_268113_19BC8101 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 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: rjw@rjwysocki.net, al.stone@linaro.org, catalin.marinas@arm.com, sherry.hurwitz@amd.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, leo.duran@amd.com, Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>, msalter@redhat.com, grant.likely@linaro.org, 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index d6463bb..f3709dc 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -20,6 +20,7 @@ #include <linux/cpumask.h> #include <linux/init.h> #include <linux/irq.h> +#include <linux/irqchip/arm-gic.h> #include <linux/irqdomain.h> #include <linux/memblock.h> #include <linux/of_fdt.h> @@ -205,3 +206,15 @@ void __init acpi_boot_table_init(void) disable_acpi(); } } + +int acpi_init_irq_alloc_info(struct irq_domain *domain, u32 gsi, unsigned int irq_type, + void **info) +{ + int ret; + uint32_t data[3] = {GIC_INT_TYPE_GSI, gsi, irq_type}; + + if (domain && domain->ops->init_alloc_info) + ret = domain->ops->init_alloc_info(data, 3, NULL, info); + + return 0; +}
This patch addes ARM64-specific hook for calling arch-specific irq_domain_ops.ini_alloc_info() before allocating irqs. Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> --- arch/arm64/kernel/acpi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)