* [PATCH v1 0/3] ThunderX platform support
@ 2015-02-16 9:06 vijay.kilari
2015-02-16 9:06 ` [PATCH v1 1/3] xen/arm: Add " vijay.kilari
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: vijay.kilari @ 2015-02-16 9:06 UTC (permalink / raw)
To: Ian.Campbell, julien.grall, stefano.stabellini,
stefano.stabellini, tim, xen-devel
Cc: Prasun.Kapoor, Vijaya Kumar K, manish.jaggi, vijay.kilari
From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Changes in v1:
- Add support for ThunderX platform
- Add early printk support
- Add psci-0.2 check while parsing dt node
Vijaya Kumar K (3):
xen/arm: Add ThunderX platform support
xen/arm: Add early printk support for ThunderX platform
xen/arm: check for psci-0.2 dt node
xen/arch/arm/Rules.mk | 4 +++
xen/arch/arm/domain_build.c | 1 +
xen/arch/arm/platforms/Makefile | 1 +
xen/arch/arm/platforms/thunderx.c | 66 +++++++++++++++++++++++++++++++++++++
4 files changed, 72 insertions(+)
create mode 100644 xen/arch/arm/platforms/thunderx.c
--
1.7.9.5
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/3] xen/arm: Add ThunderX platform support
2015-02-16 9:06 [PATCH v1 0/3] ThunderX platform support vijay.kilari
@ 2015-02-16 9:06 ` vijay.kilari
2015-02-16 9:06 ` [PATCH v1 2/3] xen/arm: Add early printk support for ThunderX platform vijay.kilari
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: vijay.kilari @ 2015-02-16 9:06 UTC (permalink / raw)
To: Ian.Campbell, julien.grall, stefano.stabellini,
stefano.stabellini, tim, xen-devel
Cc: Prasun.Kapoor, Vijaya Kumar K, manish.jaggi, vijay.kilari
From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Add basic support for Cavium ThunderX platform
Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
---
xen/arch/arm/platforms/Makefile | 1 +
xen/arch/arm/platforms/thunderx.c | 66 +++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
index e173fec..d9f98f9 100644
--- a/xen/arch/arm/platforms/Makefile
+++ b/xen/arch/arm/platforms/Makefile
@@ -7,3 +7,4 @@ obj-$(CONFIG_ARM_32) += sunxi.o
obj-$(CONFIG_ARM_32) += rcar2.o
obj-$(CONFIG_ARM_64) += seattle.o
obj-$(CONFIG_ARM_64) += xgene-storm.o
+obj-$(CONFIG_ARM_64) += thunderx.o
diff --git a/xen/arch/arm/platforms/thunderx.c b/xen/arch/arm/platforms/thunderx.c
new file mode 100644
index 0000000..96560e1
--- /dev/null
+++ b/xen/arch/arm/platforms/thunderx.c
@@ -0,0 +1,66 @@
+/*
+ * xen/arch/arm/platforms/thunderx.c
+ *
+ * Cavium Thunder specific settings
+ *
+ * Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
+ * Copyright (c) 2015 Cavium Inc.
+ *
+ * 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 <asm/platform.h>
+
+static int thunderx_specific_mapping(struct domain *d)
+{
+ uint64_t addr, size;
+ int res;
+
+ /* Mappings GSER region required for dom0 */
+ addr = 0x87e090000000;
+ size = 0xd000000;
+
+ res = map_mmio_regions(d,
+ paddr_to_pfn(addr & PAGE_MASK),
+ DIV_ROUND_UP(size, PAGE_SIZE),
+ paddr_to_pfn(addr & PAGE_MASK));
+ if ( res )
+ {
+ printk(XENLOG_ERR "Unable to map to dom%d region"
+ " 0x%"PRIx64" - 0x%"PRIx64"\n",
+ d->domain_id,
+ addr & PAGE_MASK, PAGE_ALIGN(addr + size) - 1);
+ }
+
+ return 0;
+}
+
+static const char * const thunderx_dt_compat[] __initconst =
+{
+ "cavium,thunder-88xx",
+ NULL
+};
+
+PLATFORM_START(thunderx, "THUNDERX")
+ .compatible = thunderx_dt_compat,
+ .specific_mapping = thunderx_specific_mapping,
+ .dom0_gnttab_start = 0x40000000000,
+ .dom0_gnttab_size = 0x20000,
+PLATFORM_END
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 2/3] xen/arm: Add early printk support for ThunderX platform
2015-02-16 9:06 [PATCH v1 0/3] ThunderX platform support vijay.kilari
2015-02-16 9:06 ` [PATCH v1 1/3] xen/arm: Add " vijay.kilari
@ 2015-02-16 9:06 ` vijay.kilari
2015-02-16 9:06 ` [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node vijay.kilari
2015-02-16 9:32 ` [PATCH v1 0/3] ThunderX platform support Vijay Kilari
3 siblings, 0 replies; 6+ messages in thread
From: vijay.kilari @ 2015-02-16 9:06 UTC (permalink / raw)
To: Ian.Campbell, julien.grall, stefano.stabellini,
stefano.stabellini, tim, xen-devel
Cc: Prasun.Kapoor, Vijaya Kumar K, manish.jaggi, vijay.kilari
From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
ThunderX platform uses pl011 uart.
Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
---
xen/arch/arm/Rules.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
index c7bd227..54efa91 100644
--- a/xen/arch/arm/Rules.mk
+++ b/xen/arch/arm/Rules.mk
@@ -113,6 +113,10 @@ ifeq ($(CONFIG_EARLY_PRINTK), lager)
EARLY_PRINTK_INC := scif
EARLY_UART_BASE_ADDRESS := 0xe6e60000
endif
+ifeq ($(CONFIG_EARLY_PRINTK), thunderx)
+EARLY_PRINTK_INC := pl011
+EARLY_UART_BASE_ADDRESS := 0x87e024000000
+endif
ifneq ($(EARLY_PRINTK_INC),)
EARLY_PRINTK := y
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node
2015-02-16 9:06 [PATCH v1 0/3] ThunderX platform support vijay.kilari
2015-02-16 9:06 ` [PATCH v1 1/3] xen/arm: Add " vijay.kilari
2015-02-16 9:06 ` [PATCH v1 2/3] xen/arm: Add early printk support for ThunderX platform vijay.kilari
@ 2015-02-16 9:06 ` vijay.kilari
2015-02-16 13:40 ` Julien Grall
2015-02-16 9:32 ` [PATCH v1 0/3] ThunderX platform support Vijay Kilari
3 siblings, 1 reply; 6+ messages in thread
From: vijay.kilari @ 2015-02-16 9:06 UTC (permalink / raw)
To: Ian.Campbell, julien.grall, stefano.stabellini,
stefano.stabellini, tim, xen-devel
Cc: Prasun.Kapoor, Vijaya Kumar K, manish.jaggi, vijay.kilari
From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Add psci-0.2 compatibility check while parsing psci dt node
Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
---
xen/arch/arm/domain_build.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index c2dcb49..0be639b 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1029,6 +1029,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
DT_MATCH_COMPATIBLE("xen,multiboot-module"),
DT_MATCH_COMPATIBLE("multiboot,module"),
DT_MATCH_COMPATIBLE("arm,psci"),
+ DT_MATCH_COMPATIBLE("arm,psci-0.2"),
DT_MATCH_PATH("/cpus"),
DT_MATCH_TYPE("memory"),
/* The memory mapped timer is not supported by Xen. */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/3] ThunderX platform support
2015-02-16 9:06 [PATCH v1 0/3] ThunderX platform support vijay.kilari
` (2 preceding siblings ...)
2015-02-16 9:06 ` [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node vijay.kilari
@ 2015-02-16 9:32 ` Vijay Kilari
3 siblings, 0 replies; 6+ messages in thread
From: Vijay Kilari @ 2015-02-16 9:32 UTC (permalink / raw)
To: Ian Campbell, Julien Grall, Stefano Stabellini,
Stefano Stabellini, Tim Deegan, xen-devel@lists.xen.org
Cc: Prasun Kapoor, Vijaya Kumar K, manish.jaggi, Vijay Kilari
Please ignore this series. I have missed to update
processor_implementers[] with cavium in xen/arch/arm/setup.c
Sending v2 version
On Mon, Feb 16, 2015 at 2:36 PM, <vijay.kilari@gmail.com> wrote:
> From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
>
> Changes in v1:
> - Add support for ThunderX platform
> - Add early printk support
> - Add psci-0.2 check while parsing dt node
>
> Vijaya Kumar K (3):
> xen/arm: Add ThunderX platform support
> xen/arm: Add early printk support for ThunderX platform
> xen/arm: check for psci-0.2 dt node
>
> xen/arch/arm/Rules.mk | 4 +++
> xen/arch/arm/domain_build.c | 1 +
> xen/arch/arm/platforms/Makefile | 1 +
> xen/arch/arm/platforms/thunderx.c | 66 +++++++++++++++++++++++++++++++++++++
> 4 files changed, 72 insertions(+)
> create mode 100644 xen/arch/arm/platforms/thunderx.c
>
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node
2015-02-16 9:06 ` [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node vijay.kilari
@ 2015-02-16 13:40 ` Julien Grall
0 siblings, 0 replies; 6+ messages in thread
From: Julien Grall @ 2015-02-16 13:40 UTC (permalink / raw)
To: vijay.kilari, Ian.Campbell, stefano.stabellini,
stefano.stabellini, tim, xen-devel
Cc: Prasun.Kapoor, vijaya.kumar, manish.jaggi
Hi Vijay,
On 16/02/15 09:06, vijay.kilari@gmail.com wrote:
> From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
>
> Add psci-0.2 compatibility check while parsing psci dt node
Reading the commit title/description gives the impression that you are
adding support with PSCI 0.2.
While it has been added in Xen 4.5, this patch avoids to copy the PSCI
0.2 node from the host DT to DOM0 DT (because we generate it).
Please update the commit title/message according the behavior of the code.
Regards,
> Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
> ---
> xen/arch/arm/domain_build.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index c2dcb49..0be639b 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -1029,6 +1029,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
> DT_MATCH_COMPATIBLE("xen,multiboot-module"),
> DT_MATCH_COMPATIBLE("multiboot,module"),
> DT_MATCH_COMPATIBLE("arm,psci"),
> + DT_MATCH_COMPATIBLE("arm,psci-0.2"),
> DT_MATCH_PATH("/cpus"),
> DT_MATCH_TYPE("memory"),
> /* The memory mapped timer is not supported by Xen. */
>
--
Julien Grall
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-16 13:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-16 9:06 [PATCH v1 0/3] ThunderX platform support vijay.kilari
2015-02-16 9:06 ` [PATCH v1 1/3] xen/arm: Add " vijay.kilari
2015-02-16 9:06 ` [PATCH v1 2/3] xen/arm: Add early printk support for ThunderX platform vijay.kilari
2015-02-16 9:06 ` [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node vijay.kilari
2015-02-16 13:40 ` Julien Grall
2015-02-16 9:32 ` [PATCH v1 0/3] ThunderX platform support Vijay Kilari
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.