Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4920360ybv; Mon, 17 Feb 2020 08:27:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwYtHIKz9ummSI6dGYnrzCcnrftTRTqOlCGVfZTWEM+HjBrXnK1BLUwomuUUfrcvRKpbBJj X-Received: by 2002:a9d:7607:: with SMTP id k7mr12557492otl.205.1581956830410; Mon, 17 Feb 2020 08:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581956830; cv=none; d=google.com; s=arc-20160816; b=PYNNySoJ/CwCiuYFbMToKw5O+w2n50rnpGKxpw5En+f65yJG5iXA6Kq/A/xHBbUw4H am2X0VJNIKFD57B135oE6GoR4Ftnel6eB6mqtKl+hSfwk2NWOkkhEd7m/Xma2grJ+0Ka RdAfehxQBarbNYlYCBzJ5cfn9DK3R3fMKZ90sxDLp5mjMnOrSHSsS0RhUouD8d2E7cg2 O++eXkynIzN6hCd3rXbXrp85qdqYmJ+wZjDr9/X8Wbjqy+HiCU5znnxbfS2Y3aF0MJ03 3OAX81ySqUd9JRCLDvKopPzWLrA5hL2o17wqjgTi5W27QxiQcDOdtgLkdrgvtzsYrZ9r +nOg== 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; bh=IhggaHQbbY1IE5QKMca8amIkPBBbvv+lQZPAW4KxAhw=; b=TFkPBvGzjbtL6fKOvx/Kpxv9KA1npbMl/9cFtCel9YAyuitm9FR4G1ttw29yhfsX+h 4ECydNA+BaNtTX93AvHg/b5U73o1pEV/P0hvSgJ9b4PrOX7pCa0v42gSJazBMC4SuzcZ oFC9fZE7hJFkUlRCK3B5Cbw8TbqhpJwY6vCkR0/kh9NWsYHkY7x3na8QB87EiHgcXuT7 9Zb7eAC001stqfXm0PzIvrXXp2kUpkQ07H15dsOVCrGErK8YHQesmgTw4L9h5pDdji1d v4hMRf5O7B2JL9u8PYdEyVTqmgr9qxAYIyDbzcOoxNMKYIugGGSgiDKSe/zbaMtIaRF7 dsRw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si374853otr.255.2020.02.17.08.26.57; Mon, 17 Feb 2020 08:27:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728395AbgBQQ0o (ORCPT + 99 others); Mon, 17 Feb 2020 11:26:44 -0500 Received: from foss.arm.com ([217.140.110.172]:38150 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727922AbgBQQ0o (ORCPT ); Mon, 17 Feb 2020 11:26:44 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C490F30E; Mon, 17 Feb 2020 08:26:43 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 680E33F68F; Mon, 17 Feb 2020 08:26:40 -0800 (PST) Date: Mon, 17 Feb 2020 16:26:26 +0000 From: Lorenzo Pieralisi To: Marc Zyngier Cc: Pankaj Bansal , Ard Biesheuvel , Makarand Pawagi , Calvin Johnson , stuyoder@gmail.com, nleeder@codeaurora.org, Ioana Ciornei , Cristi Sovaiala , Hanjun Guo , Will Deacon , jon@solid-run.com, Russell King , ACPI Devel Maling List , Len Brown , Jason Cooper , Andy Wang , Varun Sethi , Thomas Gleixner , linux-arm-kernel , Laurentiu Tudor , Paul Yang , netdev@vger.kernel.org, "Rafael J. Wysocki" , Linux Kernel Mailing List , Shameerali Kolothum Thodi , Sudeep Holla , Robin Murphy Subject: Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc Message-ID: <20200217162604.GA24829@e121166-lin.cambridge.arm.com> References: <7349fa0e6d62a3e0d0e540f2e17646e0@kernel.org> <20200214161957.GA27513@e121166-lin.cambridge.arm.com> <20200214174949.GA30484@e121166-lin.cambridge.arm.com> <20200217152518.GA18376@e121166-lin.cambridge.arm.com> <384eb5378ee2b240d6ab7d89aef2d5c7@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <384eb5378ee2b240d6ab7d89aef2d5c7@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 17, 2020 at 03:35:01PM +0000, Marc Zyngier wrote: > On 2020-02-17 15:25, Lorenzo Pieralisi wrote: > > On Mon, Feb 17, 2020 at 12:35:12PM +0000, Pankaj Bansal wrote: > > Hi Lorenzo, > > [...] > > > > > Side note: can you explain to me please how the MSI allocation flow > > > > and kernel data structures/drivers are modeled in DT ? I had a quick > > > > look at: > > > > > > > > drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c > > > > > > > > and to start with, does that code imply that we create a > > > > DOMAIN_BUS_FSL_MC_MSI on ALL DT systems with an ITS device node ? > > > > > > Yes. It's being done for all DT systems having ITS node. > > > > This does not seem correct to me, I will let Marc comment on > > the matter. > > Unfortunately, there isn't a very good way to avoid that ATM, > other than defering the registration of the irqdomain until > we know that a particular bus (for example a PCIe RC) is registered. > > I started working on that at some point, and ended up nowhere because > no bus (PCI, FSL, or anything else) really give us the right information > when it is actually required (when a device starts claiming interrupts). > > I *think* we could try a defer it until a bus root is found, and that > this bus has a topological link to an ITS. probably invasive though, > as you would need a set of "MSI providers" for each available irqchip > node. Yes I see, it is not trivial - I just raised the point while reading the code to understand how the IRQ domain structures are connected in the DT bootstrap case, I don't think that's an urgent issue to solve, just noticed and reported it to make sure you are aware. Thanks ! Lorenzo