Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5002071imu; Tue, 15 Jan 2019 09:27:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Cpol0k01eYaJf/w2ZVqsYZ6ooMZWjxOu5DygoeyY72ZxcnHg1XRAEn0jmfhQ2YgqCcpCv X-Received: by 2002:a62:3006:: with SMTP id w6mr5131370pfw.258.1547573222356; Tue, 15 Jan 2019 09:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547573222; cv=none; d=google.com; s=arc-20160816; b=ooH9ZrPHqtIh5HHIYkc29wCZuuS1oRv8fRYjmxuivG2CvRP7lZBoDWxtr/42LLtl06 r2FpM032xPQVPY57rj4MXXrYbu/qRS118hrPIK9i5CXd3LDves5yh5t+7IWU56RK/RSX IBXO6XXzhzgzaviupHtYN2rlfAvoXM/9NnMhyO1QHCFAV2IMdyJ3v+P1X0m8Jp7wt6ED kh5ef6iE1HFmvtcIMnxNsipQHZ45v/3r8t8qkYQQTykibbpL6frUQ/k8Iai76IBbxI6g RHb/mZV9vt0DwtIDi0lzOo7WwdtUSkLwCJrmTN6odO+ACo6GJizhJKFXSF1rP3mcr2G1 sE5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=z6ivnjzqL7Qk7XE0eIEH7tBIccSSvV8fcvcgefP5OUE=; b=Cfp/2pNALwbQCj+P1SJT9SD9Sl9yZrxNvcLhAGlpzz6XqRZDMlkR75bTXcrU7tI/Sj dXt31V6yr6SmYBDnTCicabQZvS0sHyCS4yIFdvUWW48XosGfnnUlXmaAgOuBKRJ2dxcD HrEfpSnz5p+Fg7Y0KAW3XSi7VeiDexEb+ZZeM5IlinJjgMbeQujk2N84lrRJibseLqlW ag5HmlZWAb0L8UIdwP70tlfnLgB6uVNop7EQ2yY1+93cAHk8txG/u3ulJHLgklNLYLHV gt7LM/6ZcSD8OHxPoAepJOh28ImLBGDICRfwIZgeJEnoH+0nQ65wgAbZaziCD3FIsTkl 67BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gVoo8cR1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si4015549pfg.233.2019.01.15.09.26.45; Tue, 15 Jan 2019 09:27:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gVoo8cR1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730483AbfAOOmQ (ORCPT + 99 others); Tue, 15 Jan 2019 09:42:16 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:42150 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728964AbfAOOmQ (ORCPT ); Tue, 15 Jan 2019 09:42:16 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0FEfuiT088359; Tue, 15 Jan 2019 08:41:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547563316; bh=z6ivnjzqL7Qk7XE0eIEH7tBIccSSvV8fcvcgefP5OUE=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=gVoo8cR1r/WSrtGoBYdoZzi9JF+LF+2Ro72Nhkbstzti+A5nVzEFG0XLacqqzzwS6 I8RJ/xuj6f7begg/wZrc5eSQQHJVdbs/BwEO1xPIA4SDG18ONcqcl6sydGd7bpZL7S n+gpuYPRoxMOgmTqb2hS7IQFYlqgnDWvSlzkxMa4= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0FEfuhe075478 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Jan 2019 08:41:56 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 15 Jan 2019 08:41:56 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 15 Jan 2019 08:41:56 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0FEfuP5013832; Tue, 15 Jan 2019 08:41:56 -0600 Date: Tue, 15 Jan 2019 08:41:23 -0600 From: Nishanth Menon To: Lokesh Vutla CC: , Santosh Shilimkar , Rob Herring , , , Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Device Tree Mailing List , Peter Ujfalusi Subject: Re: [RFC PATCH v4 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator Message-ID: <20190115144123.3lmt4qqi5y5ssiym@kahuna> References: <20181227060829.5080-1-lokeshvutla@ti.com> <20181227061313.5451-1-lokeshvutla@ti.com> <20181227061313.5451-10-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181227061313.5451-10-lokeshvutla@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11:43-20181227, Lokesh Vutla wrote: > With the system coprocessor managing the range allocation of the > inputs to Interrupt Aggregator, it is difficult to represent > the device IRQs from DT. > > The suggestion is to use MSI in such cases where devices wants > to allocate and group interrupts dynamically. > > Create a MSI domain bus layer that allocates and frees MSIs for > a device. > > APIs that are implemented are: > - inta_msi_create_irq_domain() that creates a MSI domain > - inta_msi_domain_alloc_group_irqs() that creates MSIs for the > specified device and source indexes. All these are expected to > be grouped by the parent interrupt controller to MSI domain. > - inta_msi_domain_free_group_irqs() frees the grouped irqs. > > Signed-off-by: Lokesh Vutla > --- > > - May be the same functionaly can be included in platform msi. But I would > like to get a feedback on the approach. > > drivers/soc/ti/Kconfig | 6 + > drivers/soc/ti/Makefile | 1 + > drivers/soc/ti/k3_inta_msi.c | 193 +++++++++++++++++++++++++++++ > include/linux/irqdomain.h | 1 + > include/linux/msi.h | 6 + > include/linux/soc/ti/k3_inta_msi.h | 22 ++++ > 6 files changed, 229 insertions(+) > create mode 100644 drivers/soc/ti/k3_inta_msi.c > create mode 100644 include/linux/soc/ti/k3_inta_msi.h Did we miss maintainer file? -- Regards, Nishanth Menon