[lkml]   [2020]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc

> -----Original Message-----
> From: Lorenzo Pieralisi <>
> Sent: Friday, February 14, 2020 9:50 PM
> To: Pankaj Bansal <>
> Cc: Marc Zyngier <>; Ard Biesheuvel
> <>; Makarand Pawagi <>;
> Calvin Johnson <>;;
>; Ioana Ciornei <>; Cristi
> Sovaiala <>; Hanjun Guo <>;
> Will Deacon <>;; Russell King
> <>; ACPI Devel Maling List <>;
> Len Brown <>; Jason Cooper <>; Andy
> Wang <>; Varun Sethi <>; Thomas
> Gleixner <>; linux-arm-kernel <linux-arm-
>>; Laurentiu Tudor <>; Paul
> Yang <>;; 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
> On Fri, Feb 14, 2020 at 03:58:14PM +0000, Pankaj Bansal wrote:
> [...]
> > > Why should the device know about its own ID? That's a bus/interconnect
> thing.
> > > And nothing should be passed *to* IORT. IORT is the source.
> >
> > IORT is translation between Input IDs <-> Output IDs. The Input ID is still
> expected to be passed to parse IORT table.
> Named components use an array of single mappings (as in entries with single
> mapping flag set) - Input ID is irrelevant.
> Not sure what your named component is though and what you want to do with
> it, the fact that IORT allows mapping for named components do not necessarily
> mean that it can describe what your system really is, on that you need to
> elaborate for us to be able to help.

Details about MC bus can be read from here:

As stated above, in Linux MC is a bus (just like PCI bus, AMBA bus etc)
There can be multiple devices attached to this bus. Moreover, we can dynamically create/destroy these devices.
Now, we want to represent this BUS (not individual devices connected to bus) in IORT table.
The only possible way right now we see is that we describe it as Named components having a pool of ID mappings.
As and when devices are created and attached to bus, we sift through this pool to correctly determine the output ID for the device.
Now the input ID that we provide, can come from device itself.
Then we can use the Platform MSI framework for MC bus devices.

> Lorenzo

 \ /
  Last update: 2020-02-14 17:36    [W:0.397 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site