* [PATCH] ZynqMP: Align gic ranges for 64k in device tree
@ 2016-05-12 11:44 Alexander Graf
2016-05-16 7:17 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Graf @ 2016-05-12 11:44 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Michal Simek
The GIC ranges in the zynqmp device tree are only 4kb aligned. Since
commit 12e14066f we automatically deal with aliases GIC regions though,
so we can map them transparently into guests even on 64kb page size
systems.
This patch makes use of that features and sets GICC and GICV to 64kb
aligned and sized regions.
Signed-off-by: Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>
---
arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
index e595f22..38c4310 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
+++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
@@ -81,9 +81,9 @@
compatible = "arm,gic-400", "arm,cortex-a15-gic";
#interrupt-cells = <3>;
reg = <0x0 0xf9010000 0x10000>,
- <0x0 0xf902f000 0x2000>,
+ <0x0 0xf9020000 0x20000>,
<0x0 0xf9040000 0x20000>,
- <0x0 0xf906f000 0x2000>;
+ <0x0 0xf9060000 0x20000>;
interrupt-controller;
interrupt-parent = <&gic>;
interrupts = <1 9 0xf04>;
--
1.8.5.6
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ZynqMP: Align gic ranges for 64k in device tree
2016-05-12 11:44 [PATCH] ZynqMP: Align gic ranges for 64k in device tree Alexander Graf
@ 2016-05-16 7:17 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2016-05-16 7:17 UTC (permalink / raw)
To: Alexander Graf, linux-arm-kernel; +Cc: devicetree, Michal Simek
On 12.5.2016 13:44, Alexander Graf wrote:
> The GIC ranges in the zynqmp device tree are only 4kb aligned. Since
> commit 12e14066f we automatically deal with aliases GIC regions though,
> so we can map them transparently into guests even on 64kb page size
> systems.
>
> This patch makes use of that features and sets GICC and GICV to 64kb
> aligned and sized regions.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> index e595f22..38c4310 100644
> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> @@ -81,9 +81,9 @@
> compatible = "arm,gic-400", "arm,cortex-a15-gic";
> #interrupt-cells = <3>;
> reg = <0x0 0xf9010000 0x10000>,
> - <0x0 0xf902f000 0x2000>,
> + <0x0 0xf9020000 0x20000>,
> <0x0 0xf9040000 0x20000>,
> - <0x0 0xf906f000 0x2000>;
> + <0x0 0xf9060000 0x20000>;
> interrupt-controller;
> interrupt-parent = <&gic>;
> interrupts = <1 9 0xf04>;
>
Applied to zynqmp/dt with changed subject prefix ARM64: zynqmp:
Thanks,
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-16 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 11:44 [PATCH] ZynqMP: Align gic ranges for 64k in device tree Alexander Graf
2016-05-16 7:17 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).