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 7D70EC433EF for ; Thu, 16 Dec 2021 15:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238284AbhLPPGY (ORCPT ); Thu, 16 Dec 2021 10:06:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238270AbhLPPGX (ORCPT ); Thu, 16 Dec 2021 10:06:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50CD3C061574 for ; Thu, 16 Dec 2021 07:06:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D5038B8247E for ; Thu, 16 Dec 2021 15:06:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BA96C36AE5; Thu, 16 Dec 2021 15:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639667180; bh=9CdLiDWAT8l1b1MlPLrYeVY3sCOR4k/Ic8uzrd/z6Qc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=khBdFiXTK7MQl/F30GosFeqQO3rX5Ii2vVvN/FjKM8ggGNvRws+9/Fy13vSUaVPng d7w/nYFa/FDDd2SMzJltGKGQzCTkiKJBJu3/aCoEMSBnonK5nvEqJSGKeKEr/Ls4HA +aAetLpMM/J9sDd4iycspqPiqrZ17uxGMfCuvro44fTcC4OVhPq1HpYTxtR/erPx3t R0jPlSCQ/Vi4NGzG6rYgEXbzcFzmsaE/45r11ZgmwDvHZyMTHrwdXhA/3yco2rekZN HzwL/YX4D+mkr+Eb05fJrgQ/DV+EU+hUgAL8AOf2q659K34TAds0ZN8Y95Lp6+Nwkc 6LOYER5hvSzJg== Received: from cfbb000407.r.cam.camfibre.uk ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mxsKo-00CYHK-IJ; Thu, 16 Dec 2021 15:06:18 +0000 Date: Thu, 16 Dec 2021 15:06:18 +0000 Message-ID: <87pmpwwpw5.wl-maz@kernel.org> From: Marc Zyngier To: Huacai Chen Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, Xuefeng Li , Huacai Chen , Jiaxun Yang Subject: Re: [PATCH V8 02/10] irqchip/loongson-pch-pic: Add ACPI init support In-Reply-To: <20211216125356.632067-2-chenhuacai@loongson.cn> References: <20211216125157.631992-1-chenhuacai@loongson.cn> <20211216125356.632067-1-chenhuacai@loongson.cn> <20211216125356.632067-2-chenhuacai@loongson.cn> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: chenhuacai@loongson.cn, tglx@linutronix.de, linux-kernel@vger.kernel.org, lixuefeng@loongson.cn, chenhuacai@gmail.com, jiaxun.yang@flygoat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Dec 2021 12:53:48 +0000, Huacai Chen wrote: > > We are preparing to add new Loongson (based on LoongArch, not compatible > with old MIPS-based Loongson) support. LoongArch use ACPI other than DT > as its boot protocol, so add ACPI init support. > > PCH-PIC/PCH-MSI stands for "Interrupt Controller" that described in > Section 5 of "Loongson 7A1000 Bridge User Manual". For more information > please refer Documentation/loongarch/irq-chip-model.rst. > > Signed-off-by: Huacai Chen > --- > drivers/irqchip/irq-loongson-pch-pic.c | 108 ++++++++++++++++++------- > 1 file changed, 81 insertions(+), 27 deletions(-) [...] > > +#ifdef CONFIG_ACPI > + > +struct irq_domain *pch_pic_acpi_init(struct irq_domain *parent, > + struct acpi_madt_bio_pic *acpi_pchpic) Who is calling this? This works the opposite way from what the arm64 irqchips are doing. Why? I have the ugly feeling that this is called from the arch code, bypassing the existing infrastructure... M. -- Without deviation from the norm, progress is not possible.