Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-11 Thread Hanjun Guo
On 01/10/2017 10:57 PM, Lorenzo Pieralisi wrote: On Tue, Jan 10, 2017 at 09:39:39PM +0800, Hanjun Guo wrote: [...] What you can do is create a wrapper, say iort_node_map_platform_id() (whose signature is equivalent to iort_node_map_rid() minus rid_in) that carries out the two steps outlined ab

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-10 Thread Hanjun Guo
Hi Lorenzo, On 2017/1/5 23:15, Lorenzo Pieralisi wrote: On Thu, Jan 05, 2017 at 08:45:37PM +0800, Hanjun Guo wrote: Hi Lorenzo, On 2017/1/5 3:18, Lorenzo Pieralisi wrote: On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify it

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-10 Thread Lorenzo Pieralisi
On Tue, Jan 10, 2017 at 09:39:39PM +0800, Hanjun Guo wrote: [...] > >What you can do is create a wrapper, say iort_node_map_platform_id() > >(whose signature is equivalent to iort_node_map_rid() minus rid_in) > >that carries out the two steps outlined above. > > > >To do that I suggest the follow

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-05 Thread Lorenzo Pieralisi
On Thu, Jan 05, 2017 at 08:45:37PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/1/5 3:18, Lorenzo Pieralisi wrote: > >On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: > >>For devices connecting to ITS, it needs dev id to identify > >>itself, and this dev id is represented in the I

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-05 Thread Hanjun Guo
Hi Lorenzo, On 2017/1/5 3:18, Lorenzo Pieralisi wrote: On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named componant node [1] for platform devices, so in this pat

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-04 Thread Lorenzo Pieralisi
On Mon, Jan 02, 2017 at 09:31:36PM +0800, Hanjun Guo wrote: > For devices connecting to ITS, it needs dev id to identify > itself, and this dev id is represented in the IORT table in > named componant node [1] for platform devices, so in this > patch we will scan the IORT to retrieve device's dev i

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-03 Thread Tomasz Nowicki
On 03.01.2017 10:37, Tomasz Nowicki wrote: On 03.01.2017 09:43, Tomasz Nowicki wrote: On 02.01.2017 14:31, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named componant node [1] for platform devices, so i

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-03 Thread Tomasz Nowicki
On 03.01.2017 09:43, Tomasz Nowicki wrote: On 02.01.2017 14:31, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named componant node [1] for platform devices, so in this patch we will scan the IORT to retrie

Re: [PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-03 Thread Tomasz Nowicki
On 02.01.2017 14:31, Hanjun Guo wrote: For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named componant node [1] for platform devices, so in this patch we will scan the IORT to retrieve device's dev id. Introduce iort_pmsi_get

[PATCH v6 05/14] ACPI: platform-msi: retrieve dev id from IORT

2017-01-02 Thread Hanjun Guo
For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named componant node [1] for platform devices, so in this patch we will scan the IORT to retrieve device's dev id. Introduce iort_pmsi_get_dev_id() with pointer dev passed in for