Subject: Re: [PATCH] powerpc/dts: Added aliased MSIIR register address to MSI node in dts

From: Scott Wood <[email-masked]>
Date: Fri, 16 Mar 2012 14:42:51 -0500

On 03/16/2012 02:32 PM, Kumar Gala wrote:
> 
> On Feb 1, 2012, at 9:50 AM, Diana Craciun wrote:
> 
>> From: Diana CRACIUN <[email-masked]>
>>
>> The MSIIR register for each MSI bank is aliased to a different
>> address. The MSI node reg property was updated to contain this
>> address:
>>
>> e.g. reg = <0x41600 0x200 0x44140 4>;
>>
>> The first region contains the address and length of the MSI
>> register set and the second region contains the address of
>> the aliased MSIIR register at 0x44140.
>>
>> Signed-off-by: Diana CRACIUN <[email-masked]>
>> ---
>> .../devicetree/bindings/powerpc/fsl/msi-pic.txt    |    6 ++++--
>> arch/powerpc/boot/dts/fsl/qoriq-mpic.dtsi          |    6 +++---
>> 2 files changed, 7 insertions(+), 5 deletions(-)
> 
> Why, we should only use one of the register regions.  The second region was added to allow for 4k separation and thus PAMU protection.  Not sure what listed both regions gets us.

We list both because the hardware has both.  Device tree describes the
hardware; it doesn't tell you how to use it.

Plus, the separte 4K page has only the MSIIRn register, not the other
MSI registers.  So we still need the first resource.

The second resource will probably not be used by Linux at the moment,
but it used by Topaz, and it may be used by KVM/VFIO in the future.

-Scott