diff mbox series

arm64: dts: juno: fix size of GICv2m MSI frames

Message ID 1519832935-7338-1-git-send-email-sudeep.holla@arm.com
State Accepted
Commit 3f5098135b2cd23941e5573a3f0abaf75b0e1d0a
Headers show
Series arm64: dts: juno: fix size of GICv2m MSI frames | expand

Commit Message

Sudeep Holla Feb. 28, 2018, 3:48 p.m. UTC
Currently the size of GICv2m MSI frames are listed as 4kB while the
Juno TRM specifies 64kB for each of these MSI frames.

Though the devices connected themself might just use the first 4kB,
to be consistent with the genaral practice of 64kB boundary alignment
to all the devices, lets keep the size as 64kB. This might also help
in avoiding any surprise when passing the device to a VM.

This patch increase the size of each GICv2m MSI frames from 4kB to 64kB
as per the specification.

Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

---
 arch/arm64/boot/dts/arm/juno-base.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.7.4

Comments

Robin Murphy Feb. 28, 2018, 3:51 p.m. UTC | #1
Hi Sudeep,

Cheers for sorting it out...

On 28/02/18 15:48, Sudeep Holla wrote:
> Currently the size of GICv2m MSI frames are listed as 4kB while the

> Juno TRM specifies 64kB for each of these MSI frames.

> 

> Though the devices connected themself might just use the first 4kB,


s/themself/themselves/

> to be consistent with the genaral practice of 64kB boundary alignment


s/genaral/general/

> to all the devices, lets keep the size as 64kB. This might also help

> in avoiding any surprise when passing the device to a VM.

> 

> This patch increase the size of each GICv2m MSI frames from 4kB to 64kB

> as per the specification.


Reviewed-by: Robin Murphy <robin.murphy@arm.com>


> Cc: Liviu Dudau <liviu.dudau@arm.com>

> Cc: Robin Murphy <robin.murphy@arm.com>

> Cc: Marc Zyngier <marc.zyngier@arm.com>

> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

> ---

>   arch/arm64/boot/dts/arm/juno-base.dtsi | 8 ++++----

>   1 file changed, 4 insertions(+), 4 deletions(-)

> 

> diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi

> index f8088c45b060..eb749c50a736 100644

> --- a/arch/arm64/boot/dts/arm/juno-base.dtsi

> +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi

> @@ -72,25 +72,25 @@

>   		v2m_0: v2m@0 {

>   			compatible = "arm,gic-v2m-frame";

>   			msi-controller;

> -			reg = <0 0 0 0x1000>;

> +			reg = <0 0 0 0x10000>;

>   		};

>   

>   		v2m@10000 {

>   			compatible = "arm,gic-v2m-frame";

>   			msi-controller;

> -			reg = <0 0x10000 0 0x1000>;

> +			reg = <0 0x10000 0 0x10000>;

>   		};

>   

>   		v2m@20000 {

>   			compatible = "arm,gic-v2m-frame";

>   			msi-controller;

> -			reg = <0 0x20000 0 0x1000>;

> +			reg = <0 0x20000 0 0x10000>;

>   		};

>   

>   		v2m@30000 {

>   			compatible = "arm,gic-v2m-frame";

>   			msi-controller;

> -			reg = <0 0x30000 0 0x1000>;

> +			reg = <0 0x30000 0 0x10000>;

>   		};

>   	};

>   

>
Sudeep Holla Feb. 28, 2018, 3:58 p.m. UTC | #2
On 28/02/18 15:51, Robin Murphy wrote:
> Hi Sudeep,

> 

> Cheers for sorting it out...

> 

> On 28/02/18 15:48, Sudeep Holla wrote:

>> Currently the size of GICv2m MSI frames are listed as 4kB while the

>> Juno TRM specifies 64kB for each of these MSI frames.

>>

>> Though the devices connected themself might just use the first 4kB,

> 

> s/themself/themselves/

> 

>> to be consistent with the genaral practice of 64kB boundary alignment

> 

> s/genaral/general/

> 


Fixed those now.

>> to all the devices, lets keep the size as 64kB. This might also help

>> in avoiding any surprise when passing the device to a VM.

>>

>> This patch increase the size of each GICv2m MSI frames from 4kB to 64kB

>> as per the specification.

> 

> Reviewed-by: Robin Murphy <robin.murphy@arm.com>

> 


Thanks.

-- 
Regards,
Sudeep
Marc Zyngier Feb. 28, 2018, 4:54 p.m. UTC | #3
On Wed, 28 Feb 2018 15:48:55 +0000,
sudeep holla wrote:
> 

> Currently the size of GICv2m MSI frames are listed as 4kB while the

> Juno TRM specifies 64kB for each of these MSI frames.

> 

> Though the devices connected themself might just use the first 4kB,

> to be consistent with the genaral practice of 64kB boundary alignment

> to all the devices, lets keep the size as 64kB. This might also help

> in avoiding any surprise when passing the device to a VM.

> 

> This patch increase the size of each GICv2m MSI frames from 4kB to 64kB

> as per the specification.

> 

> Cc: Liviu Dudau <liviu.dudau@arm.com>

> Cc: Robin Murphy <robin.murphy@arm.com>

> Cc: Marc Zyngier <marc.zyngier@arm.com>

> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>


Acked-by: Marc Zyngier <marc.zyngier@arm.com>


	M.

-- 
Jazz is not dead, it just smell funny.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index f8088c45b060..eb749c50a736 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -72,25 +72,25 @@ 
 		v2m_0: v2m@0 {
 			compatible = "arm,gic-v2m-frame";
 			msi-controller;
-			reg = <0 0 0 0x1000>;
+			reg = <0 0 0 0x10000>;
 		};
 
 		v2m@10000 {
 			compatible = "arm,gic-v2m-frame";
 			msi-controller;
-			reg = <0 0x10000 0 0x1000>;
+			reg = <0 0x10000 0 0x10000>;
 		};
 
 		v2m@20000 {
 			compatible = "arm,gic-v2m-frame";
 			msi-controller;
-			reg = <0 0x20000 0 0x1000>;
+			reg = <0 0x20000 0 0x10000>;
 		};
 
 		v2m@30000 {
 			compatible = "arm,gic-v2m-frame";
 			msi-controller;
-			reg = <0 0x30000 0 0x1000>;
+			reg = <0 0x30000 0 0x10000>;
 		};
 	};