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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD9B4CAC592 for ; Tue, 16 Sep 2025 16:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mXuM51DXgiOEPziSeq5lbRzYsExcQfoClmvs3Lrm+J0=; b=sJ8vtM2y5IhoxMzrigmBia74IQ x6pD3QN9WlniDLD0Vcf7SN1NwcnyBBAmzsSVT9iZ7jgU/UjECZWuXhJcPauPQEEqweQxAAsCTrTCs drashMI2btW47Yk9JumcK6NwSYwlmvgYHyyvlDn/lyrxzKPd7fHqqncd/M2hmpYfps9w3/H5THL91 noZh+s3os/Arh5XzrRb5NbSgfYOKBOED67j3JUDOrysc19jFGLQJI+dICnme++MwKUm2Cu0KVSF2C 5qg2AGZ05iaWZ1Z/VmTCyl43yuUoQlu8qG/K5o6LwyyRvW2nv787skvAjYt1rXxtXvQRCL2jJJ1oH dg3RVBgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyY65-00000008Mgt-11Mw; Tue, 16 Sep 2025 16:00:01 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyY63-00000008Mfw-1r7Q for linux-arm-kernel@lists.infradead.org; Tue, 16 Sep 2025 15:59:59 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id C4BA6601F0; Tue, 16 Sep 2025 15:59:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BF72C4CEEB; Tue, 16 Sep 2025 15:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758038398; bh=wr2tJyYlkR5y7T+xXW7Ilz7m2i0rIvhhJ50qSX15f1Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Bl1tovBv/A1b3dWFDjYnUvsI3AMmg0L1t0r51/nrQVCCpwzstVSwREiaJ4NPAT6Ij aCBROW6QSv6LBn/reHoTPN07KUpdK1eTLIX1wbpAxJYlGxs2pdSJs9uPzlT27yR/F0 lBvNpc5z0rM1q2xJQXNF90n5FXiFyf+fD9WCG6pt/LIv83ILa87/6PAqEvUBKRvImp XYotFnLUUO/ranSYvN1o+U1QaMsgBiJqBVe+ATLpyWuOhemojZjcL8fZa+HGdg/FdH niss8SL/WuTI5EyOj3/xJqEozCvblDppJwo9/ktBg9K8cD0DaWAQ8KW3UpBs26pJar KmQU/zzJcmdVw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1uyY5z-00000006mKg-36KG; Tue, 16 Sep 2025 15:59:55 +0000 Date: Tue, 16 Sep 2025 16:59:55 +0100 Message-ID: <86tt121j7o.wl-maz@kernel.org> From: Marc Zyngier To: Jonathan Cameron Cc: , , , Thomas Gleixner , "Mark\ Rutland" , Will Deacon , "Rafael J.\ Wysocki" , Rob Herring , "Saravana\ Kannan" , Greg Kroah-Hartman , Sven Peter , Janne Grunau , Suzuki K Poulose , James Clark Subject: Re: [PATCH v2 05/25] irqchip/gic-v3: Add FW info retrieval support In-Reply-To: <20250916163413.000062f0@huawei.com> References: <20250915085702.519996-1-maz@kernel.org> <20250915085702.519996-6-maz@kernel.org> <20250916163413.000062f0@huawei.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/30.1 (aarch64-unknown-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: jonathan.cameron@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, tglx@linutronix.de, mark.rutland@arm.com, will@kernel.org, rafael@kernel.org, robh@kernel.org, saravanak@google.com, gregkh@linuxfoundation.org, sven@kernel.org, j@jannau.net, suzuki.poulose@arm.com, james.clark@linaro.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 16 Sep 2025 16:34:13 +0100, Jonathan Cameron wrote: > > On Mon, 15 Sep 2025 09:56:42 +0100 > Marc Zyngier wrote: > > > Plug the new .get_info() callback into the GICv3 core driver, > > using some of the existing PPI affinity handling infrastructure. > > > > Signed-off-by: Marc Zyngier > Hi Marc, > > Yet another trivial comment. It's one of those days it seems :) No worries, your trivial comments are far more interesting than some of the emails I'm otherwise getting.. ;-) > > > --- > > drivers/irqchip/irq-gic-v3.c | 53 ++++++++++++++++++++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > > > diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c > > index dbeb85677b08c..71c278ddd1e39 100644 > > --- a/drivers/irqchip/irq-gic-v3.c > > +++ b/drivers/irqchip/irq-gic-v3.c > > @@ -69,6 +69,8 @@ struct gic_chip_data { > > bool has_rss; > > unsigned int ppi_nr; > > struct partition_desc **ppi_descs; > > + struct partition_affinity *parts; > > + unsigned int nr_parts; > > }; > > > > #define T241_CHIPS_MAX 4 > > @@ -1796,11 +1798,58 @@ static int gic_irq_domain_select(struct irq_domain *d, > > return d == partition_get_domain(gic_data.ppi_descs[ppi_idx]); > > } > > > > +static int gic_irq_get_fwspec_info(struct irq_fwspec *fwspec, struct irq_fwspec_info *info) > > +{ > > + const struct cpumask *mask = NULL; > > + > > + info->flags = 0; > > + info->affinity = NULL; > > + > > + /* ACPI is not capable of describing PPI affinity -- yet */ > > + if (!is_of_node(fwspec->fwnode)) > > + return 0; > > + > > + /* If the specifier provides an affinity, use it */ > > + if (fwspec->param_count == 4 && fwspec->param[3]) { > > + struct fwnode_handle *fw; > > + > > + switch (fwspec->param[0]) { > > + case 1: /* PPI */ > > + case 3: /* EPPI */ > > + break; > > + default: > > + return 0; > > + } > > + > > + fw = of_node_to_fwnode(of_find_node_by_phandle(fwspec->param[3])); > > of_node_to_fwnode() has a note that says it'll be removed in the merge window. > It was enough of an oddity I wondered why it existed. Cargo culted, obviously. And yet another sign that I've been sitting on these patches for way too long... > Of course it did say it would be removed in the previous merge window and wasn't... > Probably want of_fwnode_handle() Thanks for the hint, I'll add that to v3. M. -- Without deviation from the norm, progress is not possible.