xen: arm64: Add Basic Platform support for APM X-Gene Storm.
PATCH v2 2/15 xen: arm64: Add Basic Platform support for APM X-Gene Storm.
From: Pranavkumar Sawargaonkar <[email protected]>
This patch adds initial platform stubs for APM X-Gene.
Drop earlyprintk (split into earlier patch). Only build on ARM64.
Drop empty init and reset hooks and enable 1:1 workaround.
---
v2: Drop empty hooks, merge the 1:1 workaround patch, drop early_printk.h
--- xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/xgene-storm.c | 52 ++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 xen/arch/arm/platforms/xgene-storm.c
xen/arch/arm/platforms/Makefile +1 -0
@@ -3,3 +3,4 @@ obj-$(CONFIG_ARM_32) += exynos5.o obj-$(CONFIG_ARM_32) += midway.o obj-$(CONFIG_ARM_32) += omap5.o obj-$(CONFIG_ARM_32) += sunxi.o +obj-$(CONFIG_ARM_64) += xgene-storm.o
xen/arch/arm/platforms/xgene-storm.c new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Quoted 16 lines · Ian Campbell
From: Pranavkumar Sawargaonkar <[email protected]>
This patch adds initial platform stubs for APM X-Gene.
Signed-off-by Anup Patel <[email protected]>Signed-off-by Pranavkumar Sawargaonkar <[email protected]>Drop earlyprintk (split into earlier patch). Only build on ARM64.
Drop empty init and reset hooks and enable 1:1 workaround.
Signed-off-by Ian Campbell <[email protected]>---
v2: Drop empty hooks, merge the 1:1 workaround patch, dropearly_printk.h
---
[..]
Quoted 23 lines
xen/arch/arm/platforms/xgene-storm.c new file +17
-0@@ -0,0 +1,52 @@ +/* +* xen/arch/arm/platforms/xgene-storm.c +* +* Applied Micro's X-Gene specific settings +* +* Pranavkumar Sawargaonkar <[email protected]> +* Anup Patel <[email protected]> +* Copyright (c) 2013 Applied Micro. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
xen/arch/arm/platforms/xgene-storm.c line 25
Quoted 10 lines
xen/arch/arm/platforms/xgene-storm.c new file +8
-0+* GNU General Public License for more details. +*/ + +#include <xen/config.h> +#include <xen/device_tree.h> +#include <xen/domain_page.h> +#include <xen/mm.h> +#include <xen/vmap.h>
Do we really need these 4 includes?
xen/arch/arm/platforms/xgene-storm.c line 34
Quoted 9 lines
xen/arch/arm/platforms/xgene-storm.c new file +9
-0+#include <asm/platform.h> + +static uint32_t xgene_storm_quirks (void ) +{ +return PLATFORM_QUIRK_DOM0_MAPPING_11 ; +} + + +static const char const *xgene_storm_dt_compat[] __initdata =
const char * const ... __initconst
Except that:
Quoted 19 lines
xen/arch/arm/platforms/xgene-storm.c new file +18
-0+{ +"apm,xgene-storm" , +NULL +}; + +PLATFORM_START (xgene_storm,"APM X-GENE STORM" ) + .compatible = xgene_storm_dt_compat, + .quirks = xgene_storm_quirks, +PLATFORM_END + +/* +* Local variables: +* mode: C +* c-file-style: "BSD" +* c-basic-offset: 4 +* indent-tabs-mode: nil +* End: +*/
Signature · 1 line
Julien Grall
Quoted 50 lines · Julien Grall
Quoted 16 lines · Ian Campbell
From: Pranavkumar Sawargaonkar <[email protected]>
This patch adds initial platform stubs for APM X-Gene.
Signed-off-by Anup Patel <[email protected]>Signed-off-by Pranavkumar Sawargaonkar <[email protected]>Drop earlyprintk (split into earlier patch). Only build on ARM64.
Drop empty init and reset hooks and enable 1:1 workaround.
Signed-off-by Ian Campbell <[email protected]>---
v2: Drop empty hooks, merge the 1:1 workaround patch, dropearly_printk.h
---[..]
Quoted 27 lines
xen/arch/arm/platforms/xgene-storm.c new file +21
-0@@ -0,0 +1,52 @@ +/* +* xen/arch/arm/platforms/xgene-storm.c +* +* Applied Micro's X-Gene specific settings +* +* Pranavkumar Sawargaonkar <[email protected]> +* Anup Patel <[email protected]> +* Copyright (c) 2013 Applied Micro. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#include <xen/config.h>
Quoted 6 lines
xen/arch/arm/platforms/xgene-storm.c line 25
Quoted 4 lines
xen/arch/arm/platforms/xgene-storm.c new file +4
-0+#include <xen/device_tree.h> +#include <xen/domain_page.h> +#include <xen/mm.h> +#include <xen/vmap.h> Do we really need these 4 includes?
No, leftovers from an incomplete attempt to implement the reset hook etc. Nuked.
Quoted 11 lines
xen/arch/arm/platforms/xgene-storm.c line 34
Quoted 9 lines
xen/arch/arm/platforms/xgene-storm.c new file +9
-0+#include <asm/platform.h> + +static uint32_t xgene_storm_quirks (void ) +{ +return PLATFORM_QUIRK_DOM0_MAPPING_11 ; +} + + +static const char const *xgene_storm_dt_compat[] __initdata =const char * const ...
__initconst
Done.
Quoted 2 lines
Except that:
Acked-by Julien Grall <[email protected]>
Thanks.
Ian.