Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1921978rwl; Sat, 8 Apr 2023 04:47:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bjsGv+0Q9Aw3o414SJkGyYdmf+HnQLslGqpzKie0+vxjNJDmDb6lPpNgBPwBMMWON1fCR2 X-Received: by 2002:aa7:da12:0:b0:501:ea9b:ef53 with SMTP id r18-20020aa7da12000000b00501ea9bef53mr4353102eds.28.1680954432362; Sat, 08 Apr 2023 04:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680954432; cv=none; d=google.com; s=arc-20160816; b=AODM9A2nnkVi2WuLvvQpD6kfnFclUvVoVd0dL073p/3aoQREkbtNrpcSohIi/MIVLw IGpuG9P/MAIbIIZA+R4/Fma4dY7TtJZv7sJ/wUNNSwbMZgZk+v1ab4Fc3E3yLVCkF3gN bALtk+ZE2DnOlfv8RMzmWoIz9j/d1kBXtX0DJA2kdcA2dOUGBMh4YfNMwMFEaXDCvze0 6morKkq2kvbj8+uQW9s4m1s+B3yspnKXnGfb0kNeKCfTibBtcQmwdzZyLirOnjaeYjul REOLQjWup5Nd0y2BCT0eZ3W7ife9L3+zlhCrR9bbFgLXVBtlj4amFXOn1XdgnnHFFO2u XDqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7AStEtIeqWWtf5cdIY0biXRgvMPW0zVk22A12h8jBUg=; b=rCfd+NgY+lBwez9QEHQfyx2AQRw+rVsriflPDghD9Mzf9W2PlG7dtE+uWQRo+qu44Y hA+f6xVwlHNi0uPHuu6JUJ3n13Vq1MJCa+zmlrdB7zmGtFx1gPa2TfdjspLA7+zSHJv5 A+uty4QBtwoWF0dVM9fRdgOC7J70WmsTwR6b8cwi+kGKDi1Uu78+MDzPsgXutnYnGGpk mthANuidPlTqfKOwCih1tJF/IScj9O9Dz5+WsKgfpP6frjOXoYa/0iRQwil1WTabMAC7 bFf0Zj9MBGrgVgGvpA4czTNvTlY7QA9UaKqjkyBy9Nvu+chxb+zz/3ymfj1IWStnBROJ jrwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F+kj6y2o; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020aa7d88e000000b00504857ea4c9si1765704edq.222.2023.04.08.04.46.45; Sat, 08 Apr 2023 04:47:12 -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=@ti.com header.s=ti-com-17Q1 header.b=F+kj6y2o; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbjDHL2e (ORCPT + 99 others); Sat, 8 Apr 2023 07:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjDHL2c (ORCPT ); Sat, 8 Apr 2023 07:28:32 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3CDB198B for ; Sat, 8 Apr 2023 04:28:31 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 338BRt4Y060710; Sat, 8 Apr 2023 06:27:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680953275; bh=7AStEtIeqWWtf5cdIY0biXRgvMPW0zVk22A12h8jBUg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=F+kj6y2oVJAWPoqmJOa3Se0LJ1gcG7DhC1y/hzPaLoXU6T99R+kcFkkToDbJb83zD vmigjwJC6jE4F+U17Emnxd94ENoWrvs29459yrxfs+9AOKDM7ff15fTj86tS027QSG nNpKdoBVRlUwwLZiiqfd1Pp9lxx4mYzb0I51POTQ= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 338BRs3c048119 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 8 Apr 2023 06:27:55 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sat, 8 Apr 2023 06:27:54 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Sat, 8 Apr 2023 06:27:54 -0500 Received: from [10.249.133.214] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 338BRpo3028985; Sat, 8 Apr 2023 06:27:52 -0500 Message-ID: Date: Sat, 8 Apr 2023 16:57:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH RFC v2 2/2] irqchip: irq-ti-sci-inta: Add direct mapped interrupts Content-Language: en-US To: Marc Zyngier CC: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , , References: <20230327-irq-affinity-upstream-v2-0-1474e518f1cb@ti.com> <20230327-irq-affinity-upstream-v2-2-1474e518f1cb@ti.com> <87ile664i1.wl-maz@kernel.org> From: "Raghavendra, Vignesh" In-Reply-To: <87ile664i1.wl-maz@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 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? Regards Vignesh