[{"id":1761473,"web_url":"http://patchwork.ozlabs.org/comment/1761473/","msgid":"<1504244040.4974.72.camel@kernel.crashing.org>","date":"2017-09-01T05:34:00","subject":"Re: [PATCH v3 5/8] powerpc/xive: add the HW IRQ number under\n\txive_irq_data","submitter":{"id":38,"url":"http://patchwork.ozlabs.org/api/people/38/","name":"Benjamin Herrenschmidt","email":"benh@kernel.crashing.org"},"content":"On Wed, 2017-08-30 at 21:46 +0200, Cédric Le Goater wrote:\n> It will be required later by the H_INT_ESB hcall.\n> \n> Signed-off-by: Cédric Le Goater <clg@kaod.org>\nAcked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>\n\nA little but unfortunate as the number is available in the\nirq_data but that would mean changing more of our internal\ninterfaces to get to it ... so ack for now.\n\n> ---\n>  arch/powerpc/include/asm/xive.h   | 1 +\n>  arch/powerpc/sysdev/xive/native.c | 2 ++\n>  arch/powerpc/sysdev/xive/spapr.c  | 2 ++\n>  3 files changed, 5 insertions(+)\n> \n> diff --git a/arch/powerpc/include/asm/xive.h b/arch/powerpc/include/asm/xive.h\n> index 473f133a8555..64ec9bbcf03e 100644\n> --- a/arch/powerpc/include/asm/xive.h\n> +++ b/arch/powerpc/include/asm/xive.h\n> @@ -45,6 +45,7 @@ struct xive_irq_data {\n>  \tvoid __iomem *trig_mmio;\n>  \tu32 esb_shift;\n>  \tint src_chip;\n> +\tu32 hw_irq;\n>  \n>  \t/* Setup/used by frontend */\n>  \tint target;\n> diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c\n> index ef92a83090e1..f8bcff15b0f9 100644\n> --- a/arch/powerpc/sysdev/xive/native.c\n> +++ b/arch/powerpc/sysdev/xive/native.c\n> @@ -82,6 +82,8 @@ int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)\n>  \t\treturn -ENOMEM;\n>  \t}\n>  \n> +\tdata->hw_irq = hw_irq;\n> +\n>  \tif (!data->trig_page)\n>  \t\treturn 0;\n>  \tif (data->trig_page == data->eoi_page) {\n> diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c\n> index 797bb0636ab7..0fcae7504353 100644\n> --- a/arch/powerpc/sysdev/xive/spapr.c\n> +++ b/arch/powerpc/sysdev/xive/spapr.c\n> @@ -264,6 +264,8 @@ static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data)\n>  \t\treturn -ENOMEM;\n>  \t}\n>  \n> +\tdata->hw_irq = hw_irq;\n> +\n>  \t/* Full function page supports trigger */\n>  \tif (flags & XIVE_SRC_TRIGGER) {\n>  \t\tdata->trig_mmio = data->eoi_mmio;","headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xk7JK2XyQz9s0Z\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 15:36:01 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xk7JK1kNBzDrVZ\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 15:36:01 +1000 (AEST)","from gate.crashing.org (gate.crashing.org [63.228.1.57])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xk7GP3lz8zDrMt\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri,  1 Sep 2017 15:34:21 +1000 (AEST)","from localhost (localhost.localdomain [127.0.0.1])\n\tby gate.crashing.org (8.14.1/8.13.8) with ESMTP id v815Y0GC013516;\n\tFri, 1 Sep 2017 00:34:02 -0500"],"Message-ID":"<1504244040.4974.72.camel@kernel.crashing.org>","Subject":"Re: [PATCH v3 5/8] powerpc/xive: add the HW IRQ number under\n\txive_irq_data","From":"Benjamin Herrenschmidt <benh@kernel.crashing.org>","To":"=?iso-8859-1?q?C=E9dric?= Le Goater <clg@kaod.org>,\n\tlinuxppc-dev@lists.ozlabs.org","Date":"Fri, 01 Sep 2017 15:34:00 +1000","In-Reply-To":"<20170830194617.26621-6-clg@kaod.org>","References":"<20170830194617.26621-1-clg@kaod.org>\n\t<20170830194617.26621-6-clg@kaod.org>","Content-Type":"text/plain; charset=\"UTF-8\"","X-Mailer":"Evolution 3.24.5 (3.24.5-1.fc26) ","Mime-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Paul Mackerras <paulus@samba.org>,\n\tDavid Gibson <david@gibson.dropbear.id.au>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"}}]