Message ID | 1436778864-17645-6-git-send-email-Suravee.Suthikulpanit@amd.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show
Return-Path: <linux-acpi-owner@kernel.org> X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 37470C05AD for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 13 Jul 2015 09:17:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D15E2067A for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 13 Jul 2015 09:16:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3901220696 for <patchwork-linux-acpi@patchwork.kernel.org>; Mon, 13 Jul 2015 09:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752229AbbGMJQy (ORCPT <rfc822;patchwork-linux-acpi@patchwork.kernel.org>); Mon, 13 Jul 2015 05:16:54 -0400 Received: from mail-bl2on0144.outbound.protection.outlook.com ([65.55.169.144]:19433 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751770AbbGMJPW (ORCPT <rfc822;linux-acpi@vger.kernel.org>); Mon, 13 Jul 2015 05:15:22 -0400 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> CC: <rjw@rjwysocki.net>, <al.stone@linaro.org>, <catalin.marinas@arm.com>, <will.deacon@arm.com>, <msalter@redhat.com>, <grant.likely@linaro.org>, <leo.duran@amd.com>, <sherry.hurwitz@amd.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-acpi@vger.kernel.org>, Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> 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 Content-Type: text/plain 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:lNbXziBHg4GVpi4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E3NmCrOR9vVUcLxq+Ds5MB+GtrOYcGaAg3jaLF6E8ibBf89KnQ; 4:gBWn6x/Vgg0KJyNVXmDn2fFmxvs970kZBUPSeUuTjeETt9yHEktrIw1VVSEVbrbS5FSvKkhAKkRo1MukDflFJ/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 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-acpi.vger.kernel.org> X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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(+)