Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp350972iol; Thu, 9 Jun 2022 05:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmzaoBGAMRt1QlkCsroBkwpMi9YXil8rBRFrz6xc9jLV6x3FxA8QyKWfFZY8JJiov/amP8 X-Received: by 2002:a17:907:3d8a:b0:710:c2e8:79f2 with SMTP id he10-20020a1709073d8a00b00710c2e879f2mr24755928ejc.577.1654776990095; Thu, 09 Jun 2022 05:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654776990; cv=none; d=google.com; s=arc-20160816; b=uSwjdCVvFVVEJmGdMIJsqKek6+qfbuQVkpvkU80/gPqwC9S3LHgpZeeEXGZexr2n1r qX1DCoTW+f276q3pZnq4FWZ50qvyxYGD0ZQivHK9vtTlpqh8Nnmxs7cjMTHhDpAI0aND 6i+GJ9EGhOZVPdJuDYMkqixlnZsQGy90tpOF6bezEzGCSw8tqLcNRMBhQri1Avms5jgu gMw8hoT/sF3m52cPcZ7UExFL53z/OcjLOplKBBWIDYbWvik2xqKf80vGan0kVqTnpk4c o+lwjG7hBNN8R/+LCgJab4L8uGpwmazARWJfFYyrx/NHya2xmdfux/6R6W8z1oor7J8P +Mog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=thvNFVU4j27/PGR0lm8e7wKz6s0GiYcKTC3bnhsjMb8=; b=dvDoZnIlcDygcToX8Yet8Lc5zQzEr/0Nf5x1TcsibtVbodZmSkZFJe70uawb7QY5n2 g9jquyZZ2dbyKyIyYBpbC9h3/NVYyzkf0cQk4hCp+8SVhryPQuBtYdwZF7OC9QyOo9B3 0tiewu3pyGDvnUnFqYM1p+rIamS2v2dUvUWVkv3sVvInuuZeGjaMhyApXFZXU6hQpeSX Im+ywcDnbiOAfBZTtI2/bqaCcUK5YPqIcITwWk99I6T2mLOGDlD6a/8w1oCX2XHwhu4d zKjFxv94pDSOmnIwhZiDLXoLeuf8vdYH1H4HbBqfcgWbUh3sIq1D1Pp5YMosibQZHKL8 i+4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWcW4wAS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a056402516100b0042b3cf57cc9si23223696ede.71.2022.06.09.05.16.03; Thu, 09 Jun 2022 05:16:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hWcW4wAS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244864AbiFILzA (ORCPT + 99 others); Thu, 9 Jun 2022 07:55:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243826AbiFILy5 (ORCPT ); Thu, 9 Jun 2022 07:54:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00311174; Thu, 9 Jun 2022 04:54:56 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4B3A160BD4; Thu, 9 Jun 2022 11:54:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAE3BC34114; Thu, 9 Jun 2022 11:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654775695; bh=3F1odUtmDda3QwpKj+WvYA9M+JuDro8NAG9ovoNuOZ0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hWcW4wASDx7gRt5+7XdmF1kb5NfU9b9rMaabQYeU9RQwu/UymBkzI6+R7ZH2lAs63 Hr003xZnq3bKnZEixA/21XxBEYGwxQdVW91RWQ/RqhhYZdOTbT0yKInOsIXj9mgFSn idklVDdz9kFhAy7BzwzY6XG51fOMZH2moAyWX0FS3hwWJVHcLCQFSwIgTTINdHc3GX FTGe971tLUjWwe6iGiFi+5PXunVhYi2K4cKOm54urRsCHNprBEV0KSM5iyk8xwnLTn WyOx4RQ9nRHgYHxx9xR23c6Qqu9dLPM7DLVOWx+rpYYbjKKYoMmMeUgX6H/uQ663/t 0rS3mNQ4KHJUA== Received: from sofa.misterjones.org ([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 1nzGkX-00GrG4-2j; Thu, 09 Jun 2022 12:54:53 +0100 Date: Thu, 09 Jun 2022 12:54:52 +0100 Message-ID: <87bkv23vcj.wl-maz@kernel.org> From: Marc Zyngier To: "Jiaxun Yang" Cc: "Dragan Mladjenovic" , "Thomas Bogendoerfer" , "Chao-ying Fu" , "Daniel Lezcano" , "Geert Uytterhoeven" , "Greg Ungerer" , "Hauke Mehrtens" , "Ilya Lipnitskiy" , linux-kernel@vger.kernel.org, "linux-mips@vger.kernel.org" , "paulburton@kernel.org" , "Peter Zijlstra" , "Serge Semin" , "Thomas Gleixner" , "Tiezhu Yang" Subject: Re: [PATCH v2 06/12] irqchip: mips-gic: Multi-cluster support In-Reply-To: <692f7fc0-4953-408a-93fd-b1fe9b87663c@www.fastmail.com> References: <20220525121030.16054-1-Dragan.Mladjenovic@syrmia.com> <20220525121030.16054-7-Dragan.Mladjenovic@syrmia.com> <87wndu3tff.wl-maz@kernel.org> <0a5dd632-0607-dab6-4de7-1ea248490863@flygoat.com> <87pmjjzo3k.wl-maz@kernel.org> <692f7fc0-4953-408a-93fd-b1fe9b87663c@www.fastmail.com> 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: jiaxun.yang@flygoat.com, Dragan.Mladjenovic@syrmia.com, tsbogend@alpha.franken.de, cfu@wavecomp.com, daniel.lezcano@linaro.org, geert@linux-m68k.org, gerg@kernel.org, hauke@hauke-m.de, ilya.lipnitskiy@gmail.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, paulburton@kernel.org, peterz@infradead.org, fancer.lancer@gmail.com, tglx@linutronix.de, yangtiezhu@loongson.cn X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 09 Jun 2022 11:14:01 +0100, "Jiaxun Yang" wrote: >=20 >=20 >=20 > =E5=9C=A82022=E5=B9=B46=E6=9C=888=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8A=E5= =8D=887:05=EF=BC=8CMarc Zyngier=E5=86=99=E9=81=93=EF=BC=9A > > On Tue, 07 Jun 2022 19:23:02 +0100, > > Jiaxun Yang wrote: > >>=20 > >>=20 > >>=20 > >> =E5=9C=A8 2022/6/6 12:47, Marc Zyngier =E5=86=99=E9=81=93: > >> > On Wed, 25 May 2022 13:10:24 +0100, > >> > Dragan Mladjenovic wrote: > >> >> From: Paul Burton > >> >>=20 > >> >> The MIPS I6500 CPU & CM (Coherence Manager) 3.5 introduce the conce= pt of > >> >> multiple clusters to the system. In these systems each cluster cont= ains > >> >> its own GIC, so the GIC isn't truly global any longer. We do have t= he > >> >> ability to access registers in the GICs of remote clusters using a > >> >> redirect register block much like the redirect register blocks prov= ided > >> >> by the CM & CPC, and configured through the same GCR_REDIRECT regis= ter > >> >> that we our mips_cm_lock_other() abstraction builds upon. > >> >>=20 > >> >> It is expected that external interrupts are connected identically t= o all > >> >> clusters. That is, if we have a device providing an interrupt conne= cted > >> >> to GIC interrupt pin 0 then it should be connected to pin 0 of ever= y GIC > >> >> in the system. This simplifies things somewhat by allowing us for t= he > >> >> most part to treat the GIC as though it is still truly global, so l= ong > >> >> as we take care to configure interrupts in the cluster that we want= them > >> >> affine to. > >> > I can see how this can work for level interrupts, but how does this > >> > work for edge interrupts? Is there any guarantee that the interrupt > >> > will be discarded if routed to a cluster where it isn't configured? > >> It is supposed to mask the interrupt out on the GIC which belongs to t= he > >> cluster that the interrupt is not routed to. > >>=20 > >> When it's masked out GIC simply won't sense any level change. > >>=20 > >> I guess it's sort of guarantee? > > > > Pretty much the opposite. There is a *strong* requirement that a > > masked interrupt can still detect interrupts, so that on unmask the > > interrupt fires (you'd otherwise lose edge interrupts pretty often). > Oops, sorry there is a terminology issue. On MIPS Coherent Manager > manual it uses terminology of =E2=80=9CMasked=E2=80=9D when vector regist= er of > a interrupt is cleared. >=20 > It means implementation will guarantee interrupt will be dropped > when it=E2=80=99s routed to nowhere. Ah, right, that makes more sense. Thanks, M. --=20 Without deviation from the norm, progress is not possible.