From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 086B6C433EF for ; Tue, 28 Jun 2022 12:50:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345311AbiF1MuQ (ORCPT ); Tue, 28 Jun 2022 08:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231901AbiF1MuP (ORCPT ); Tue, 28 Jun 2022 08:50:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCFA924F1A for ; Tue, 28 Jun 2022 05:50:13 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LXPXQ0mXMzkWkD; Tue, 28 Jun 2022 20:48:22 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 20:50:12 +0800 Received: from [10.174.178.247] (10.174.178.247) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 20:50:11 +0800 Subject: Re: [PATCH V13 01/13] APCI: irq: Add support for multiple GSI domains To: Jianmin Lv , Thomas Gleixner , Marc Zyngier CC: , Lorenzo Pieralisi , Jiaxun Yang , "Huacai Chen" References: <1656329997-20524-1-git-send-email-lvjianmin@loongson.cn> <1656329997-20524-2-git-send-email-lvjianmin@loongson.cn> From: Hanjun Guo Message-ID: Date: Tue, 28 Jun 2022 20:50:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1656329997-20524-2-git-send-email-lvjianmin@loongson.cn> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.247] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/6/27 19:39, Jianmin Lv wrote: > From: Marc Zyngier > > In an unfortunate departure from the ACPI spec, the LoongArch > architecture split its GSI space across multiple interrupt > controllers. > > In order to be able to reuse sthe core code and prevent s/sthe/the > architectures from reinventing an already square wheel, offer > the arch code the ability to register a dispatcher function > that will return the domain fwnode for a given GSI. > > The ARM GIC drivers are updated to support this (with a single > domain, as intended). > > Signed-off-by: Marc Zyngier > Cc: Hanjun Guo > Cc: Lorenzo Pieralisi > Signed-off-by: Jianmin Lv > --- > drivers/acpi/irq.c | 40 +++++++++++++++++++++++++--------------- > drivers/irqchip/irq-gic-v3.c | 18 ++++++++++++------ > drivers/irqchip/irq-gic.c | 18 ++++++++++++------ > include/linux/acpi.h | 2 +- Reviewed-by: Hanjun Guo I tested this patch on a GICv3 based ARM64 server, no regressions were found, Tested-by: Hanjun Guo Thanks Hanjun