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 ACBC1C7619A for ; Sat, 8 Apr 2023 11:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JBq4Yn0blii7N9orIqH9rF/hJA1pBT6PVUqIfxePPs0=; b=2HIH9EuZiZJ1lqXoodQXPmAwDK EJp7uClQaPdiDMAmvfJsEEy3o/ZOhnIqoqu9joztYjaZ73ZXXEhPHDQod9Nn/xiVRlepucFPcPSli 2CY/qSjbjhHu26TadZ/aTfjBMG5w8GuJG3/l0YLrNPbQ/Df8GAjdKLBNaqNgHr8eJpWCoqFW+uTcQ QFHHrY9WQi43EOmi90oNI2Ub8M30GfRjRIAZLU/M7dqi2Nvdy5ONmc+KhxUHuCyg3wDng5tx7c4Eg JRdUXZ8pRWxSFuzbmRGNvbLowp0A6jotx0EH7t3hMy2Nkbh/E6bfbh2N0Pk3arPp42rv0dKLdBwc2 5yepdUyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pl6sC-00CEyK-1G; Sat, 08 Apr 2023 11:36:48 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pl6s9-00CExm-35 for linux-arm-kernel@lists.infradead.org; Sat, 08 Apr 2023 11:36:47 +0000 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 853CC60F38; Sat, 8 Apr 2023 11:36:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE407C433D2; Sat, 8 Apr 2023 11:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680953801; bh=4sWQWQ7rAvQiBV0KZjcJLfMpSVh8t/1nW509H8PVZ8U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q5eCVM4YdR4u9Zd9ZN/81iyIWgsj7OFYpAZcpUKATtBUEHcDLJMYsnWFNySFnybOk nirTCXwyHtEioB5I4NfT6KlzlDtuqihqkDNIiqhqGnY91jItMCo1cbQ8R9DEutwu9x /SEBE/JmAwOLZqDiSXIktNwygWiXzpiQ7gYd3NZIuQBYTTZTzn/4ZO5OepOrwff1+x HOjx3m/9p/JgmBiYsRdw0Jx8hAT9ZcjycMUkWnXsuqXCkpvv7eN/S5f1oPa2QX/18q EbA4e/IMFcpiFS2RQaj6gBQLXVrkT7EWe4aXJsdjqVcSZ9O5g30+ZufJ1bM9Cc2den 8haKM88E6MgNw== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pl6s2-006uXl-JP; Sat, 08 Apr 2023 12:36:38 +0100 MIME-Version: 1.0 Date: Sat, 08 Apr 2023 12:36:38 +0100 From: Marc Zyngier To: "Raghavendra, Vignesh" Cc: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v2 2/2] irqchip: irq-ti-sci-inta: Add direct mapped interrupts In-Reply-To: References: <20230327-irq-affinity-upstream-v2-0-1474e518f1cb@ti.com> <20230327-irq-affinity-upstream-v2-2-1474e518f1cb@ti.com> <87ile664i1.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: vigneshr@ti.com, nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230408_043646_036783_60D0BA8A X-CRM114-Status: GOOD ( 14.16 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2023-04-08 12:27, Raghavendra, Vignesh wrote: > Hi, > > On 4/8/2023 4:10 PM, Marc Zyngier wrote: >>> +static unsigned int ti_sci_inta_direct_events_am62x[] = { >>> + /* CPSW etherenti DMA events */ >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4627), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4635), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4643), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4651), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4659), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4667), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4675), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4683), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 5651), >>> +}; >>> + >>> +static struct ti_sci_inta_soc_data soc_data_am62x = { >>> + .events_list = ti_sci_inta_direct_events_am62x, >>> + .events_list_size = ARRAY_SIZE(ti_sci_inta_direct_events_am62x), >>> +}; >> I don't think these tables belong in a driver, and they are bound to >> grow without any obvious limits. > > Fair point. > >> You have firmware tables that can express these things. Surely they >> can be put to a good use. > > By firmware tables you mean device tree? That, or any other machine-specific mean. From what I get of these systems, they already make heavy use of some runtime firmware to get things configured. That side could also provide setup information. I don't mind either way, as long as we don't end-up with forever growing in-kernel tables that are just board files in disguise. M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 F3299C77B61 for ; Sat, 8 Apr 2023 11:36:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230130AbjDHLgs (ORCPT ); Sat, 8 Apr 2023 07:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjDHLgq (ORCPT ); Sat, 8 Apr 2023 07:36:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08472C650 for ; Sat, 8 Apr 2023 04:36:42 -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 90A8761015 for ; Sat, 8 Apr 2023 11:36:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE407C433D2; Sat, 8 Apr 2023 11:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680953801; bh=4sWQWQ7rAvQiBV0KZjcJLfMpSVh8t/1nW509H8PVZ8U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q5eCVM4YdR4u9Zd9ZN/81iyIWgsj7OFYpAZcpUKATtBUEHcDLJMYsnWFNySFnybOk nirTCXwyHtEioB5I4NfT6KlzlDtuqihqkDNIiqhqGnY91jItMCo1cbQ8R9DEutwu9x /SEBE/JmAwOLZqDiSXIktNwygWiXzpiQ7gYd3NZIuQBYTTZTzn/4ZO5OepOrwff1+x HOjx3m/9p/JgmBiYsRdw0Jx8hAT9ZcjycMUkWnXsuqXCkpvv7eN/S5f1oPa2QX/18q EbA4e/IMFcpiFS2RQaj6gBQLXVrkT7EWe4aXJsdjqVcSZ9O5g30+ZufJ1bM9Cc2den 8haKM88E6MgNw== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pl6s2-006uXl-JP; Sat, 08 Apr 2023 12:36:38 +0100 MIME-Version: 1.0 Date: Sat, 08 Apr 2023 12:36:38 +0100 From: Marc Zyngier To: "Raghavendra, Vignesh" Cc: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v2 2/2] irqchip: irq-ti-sci-inta: Add direct mapped interrupts In-Reply-To: References: <20230327-irq-affinity-upstream-v2-0-1474e518f1cb@ti.com> <20230327-irq-affinity-upstream-v2-2-1474e518f1cb@ti.com> <87ile664i1.wl-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: vigneshr@ti.com, nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 2023-04-08 12:27, Raghavendra, Vignesh wrote: > Hi, > > On 4/8/2023 4:10 PM, Marc Zyngier wrote: >>> +static unsigned int ti_sci_inta_direct_events_am62x[] = { >>> + /* CPSW etherenti DMA events */ >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4627), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4635), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4643), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4651), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4659), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4667), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4675), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 4683), >>> + TO_HWIRQ(DEV_DMASS0_PKTDMA_0, 5651), >>> +}; >>> + >>> +static struct ti_sci_inta_soc_data soc_data_am62x = { >>> + .events_list = ti_sci_inta_direct_events_am62x, >>> + .events_list_size = ARRAY_SIZE(ti_sci_inta_direct_events_am62x), >>> +}; >> I don't think these tables belong in a driver, and they are bound to >> grow without any obvious limits. > > Fair point. > >> You have firmware tables that can express these things. Surely they >> can be put to a good use. > > By firmware tables you mean device tree? That, or any other machine-specific mean. From what I get of these systems, they already make heavy use of some runtime firmware to get things configured. That side could also provide setup information. I don't mind either way, as long as we don't end-up with forever growing in-kernel tables that are just board files in disguise. M. -- Jazz is not dead. It just smells funny...