From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932084AbbCYNYf (ORCPT ); Wed, 25 Mar 2015 09:24:35 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:22891 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbbCYNYc (ORCPT ); Wed, 25 Mar 2015 09:24:32 -0400 Message-ID: <5512B6EB.9060802@huawei.com> Date: Wed, 25 Mar 2015 21:23:55 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Lorenzo Pieralisi , , , CC: Marc Zyngier , Catalin Marinas , "Rafael J. Wysocki" , "Will Deacon" , Hanjun Guo , Jiang Liu Subject: Re: [PATCH 1/5] ACPI: move arm64 GSI IRQ model to generic GSI IRQ layer References: <1427219940-27201-1-git-send-email-lorenzo.pieralisi@arm.com> <1427219940-27201-2-git-send-email-lorenzo.pieralisi@arm.com> In-Reply-To: <1427219940-27201-2-git-send-email-lorenzo.pieralisi@arm.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.17.188] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/3/25 1:58, Lorenzo Pieralisi wrote: > The code deployed to implement GSI linux IRQ numbers mapping on arm64 turns > out to be generic enough so that it can be moved to ACPI core code along > with its respective config option ACPI_GENERIC_GSI selectable on > architectures that can reuse the same code. > > Current ACPI IRQ mapping code is not integrated in the kernel IRQ domain > infrastructure, in particular there is no way to look-up the > IRQ domain associated with a particular interrupt controller, so this > first version of GSI generic code carries out the GSI<->IRQ mapping relying > on the IRQ default domain which is supposed to be always set on a > specific architecture in case the domain structure passed to > irq_create/find_mapping() functions is missing. > > This patch moves the arm64 acpi functions that implement the gsi mappings: > > acpi_gsi_to_irq() > acpi_register_gsi() > acpi_unregister_gsi() > > to ACPI core code. Since the generic GSI<->domain mapping is based on IRQ > domains, it can be extended as soon as a way to map an interrupt > controller to an IRQ domain is implemented for ACPI in the IRQ domain > layer. > > x86 and ia64 code for GSI mappings cannot rely on the generic GSI > layer at present for legacy reasons, so they do not select the > ACPI_GENERIC_GSI config options and keep relying on their arch > specific GSI mapping layer. > > Signed-off-by: Lorenzo Pieralisi > Cc: Will Deacon > Cc: Hanjun Guo > Cc: Jiang Liu > Cc: Catalin Marinas > Cc: Rafael J. Wysocki > Cc: Marc Zyngier > --- Acked-by: Hanjun Guo Thanks Hanjun