Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc
From: Marc Zyngier
Date: Mon Feb 17 2020 - 10:35:05 EST
On 2020-02-17 15:25, Lorenzo Pieralisi wrote:
On Mon, Feb 17, 2020 at 12:35:12PM +0000, Pankaj Bansal wrote:
> 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:
> 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
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
In short, messy. But I'd be happy to revive this and have a look again.
Jazz is not dead. It just smells funny...