Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4875460ybv; Mon, 17 Feb 2020 07:35:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyLb7YKuieQoReeSYkHoB711lttusx5tW0gC+eNAemrcZf3iBc0ieDN7SQ3HYbNoOOB4lyy X-Received: by 2002:a9d:7b51:: with SMTP id f17mr12331664oto.302.1581953727383; Mon, 17 Feb 2020 07:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581953727; cv=none; d=google.com; s=arc-20160816; b=zaCcLdsSPtH8n7ksSvrurIhjNFJD6bjelsqsKMp0DAdmwhwZhroib9/rNcOxoAAp1i iwttfRiV6eN5KRr5I86lejDHiH2DTaLm+v+7R8Kw9ZmIMy/Jg+CxiiATcaAyOfmZYTTD Mvgxgg4medT0F2cgMd6Dl6P/8ZPuxDw/SqNgpm3UAS5q+K+ZZ7bv5B/245Yph60B/aWM c6czkbiUu1HzqizyDL3FR8a0DRCgeCvyZ1rq98EYRPROtMTgOreGrQRsRcMojB/eXbrE nHJ7l6rDGfEeGQoVd4C8i9QwxhnlC4+7lya5GdayyLbsy0FOieaO8gbz8w0l28Eoy4gV HfEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=Xoh/EvDKhQlLPpk/250ayBjSUlST/uVuwuy4RIdL9tI=; b=t38FTJUYO3hxRDRSrVLjpq9HhiBatGxFxMWr12EKYLYWDRUrGOJ7tAGVpDwxix8S7O NWszP8rzDZ9Dxgqk01HNdTVaoKPIzcxauFBGrlgHmwvVam8pg+r3HOG6apHBwvv8eTNn s/jnQF6cVJam0fHl9yEna1WX3Mq7b02zhS4bQTcP877EH7R4mbo2H1qfly/iW6vhJvPs fkWhdcyjtp8fKSiXZOWUPc2nn1IFkD6pbtePOSd98ns4GBpYYTxjyp+AkwyvCTF2TE8H +G0tDCNwsnV5yUshAT8+N59hS+26qHu+mZX6o4ZtlbE24fq/VPbbRSnLZM23+d/l9fOl DVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GUBKrAqf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si6908607oib.152.2020.02.17.07.35.15; Mon, 17 Feb 2020 07:35:27 -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=@kernel.org header.s=default header.b=GUBKrAqf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728766AbgBQPfE (ORCPT + 99 others); Mon, 17 Feb 2020 10:35:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:42880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727976AbgBQPfE (ORCPT ); Mon, 17 Feb 2020 10:35:04 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 380E020718; Mon, 17 Feb 2020 15:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581953703; bh=8efhOOieeB7D17j3jQ31Byut/zxDybXrDad5pZgzM6g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GUBKrAqfG8eSWxLQWWL2Hm7nfXDbOjgbkjFFHnQy6utvXaBluk+63gdAGLNnTeb30 H6BGDGTl6RRv71CiGYfZQM6e2IQ6OJd6B6ojZFHMj8nAM7Y+I5YMylksMDqdvFABaM 7usA1EvhAx1vDJlpGyn37JrX8xFPvBnuoK+EtALk= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j3iQH-005xOP-JS; Mon, 17 Feb 2020 15:35:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 17 Feb 2020 15:35:01 +0000 From: Marc Zyngier To: Lorenzo Pieralisi 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 In-Reply-To: <20200217152518.GA18376@e121166-lin.cambridge.arm.com> References: <12531d6c569c7e14dffe8e288d9f4a0b@kernel.org> <7349fa0e6d62a3e0d0e540f2e17646e0@kernel.org> <20200214161957.GA27513@e121166-lin.cambridge.arm.com> <20200214174949.GA30484@e121166-lin.cambridge.arm.com> <20200217152518.GA18376@e121166-lin.cambridge.arm.com> Message-ID: <384eb5378ee2b240d6ab7d89aef2d5c7@kernel.org> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: lorenzo.pieralisi@arm.com, pankaj.bansal@nxp.com, ard.biesheuvel@linaro.org, makarand.pawagi@nxp.com, calvin.johnson@nxp.com, stuyoder@gmail.com, nleeder@codeaurora.org, ioana.ciornei@nxp.com, cristian.sovaiala@nxp.com, guohanjun@huawei.com, will@kernel.org, jon@solid-run.com, linux@armlinux.org.uk, linux-acpi@vger.kernel.org, lenb@kernel.org, jason@lakedaemon.net, Andy.Wang@arm.com, V.Sethi@nxp.com, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, laurentiu.tudor@nxp.com, Paul.Yang@arm.com, netdev@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, shameerali.kolothum.thodi@huawei.com, sudeep.holla@arm.com, robin.murphy@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. In short, messy. But I'd be happy to revive this and have a look again. M. -- Jazz is not dead. It just smells funny...