Skip to contentSkip to conversation

ThunderX platform support

PATCH Superseded [email protected] 2 participants 6 messages Feb 16, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover ThunderX platform support

From: Vijaya Kumar K <[email protected]>

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
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/3 xen/arm: Add ThunderX platform support

From: Vijaya Kumar K <[email protected]>

Add basic support for Cavium ThunderX platform

---
 xen/arch/arm/platforms/Makefile   |    1 +
 xen/arch/arm/platforms/thunderx.c |   66 +++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
xen/arch/arm/platforms/Makefile +1 -0
index e173fec..d9f98f9 100644
@@ -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
xen/arch/arm/platforms/thunderx.c new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/3 xen/arm: Add early printk support for ThunderX platform

In reply to [email protected]

From: Vijaya Kumar K <[email protected]>

ThunderX platform uses pl011 uart.

---
 xen/arch/arm/Rules.mk |    4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/Rules.mk +4 -0
index c7bd227..54efa91 100644
@@ -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
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 3/3 xen/arm: check for psci-0.2 dt node

In reply to [email protected]

From: Vijaya Kumar K <[email protected]>

Add psci-0.2 compatibility check while parsing psci dt node

---
 xen/arch/arm/domain_build.c |    1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index c2dcb49..0be639b 100644
@@ -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. */
Signature · 1 line
1.7.9.5
#4 lore raw

Re: [PATCH v1 3/3] xen/arm: check for psci-0.2 dt node

Hi Vijay,

Quoted 3 lines · On 16/02/15 09:06, [email protected] wrote:

From: Vijaya Kumar K <[email protected]>

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,

Quoted 18 lines
---
 xen/arch/arm/domain_build.c |    1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index c2dcb49..0be639b 100644
@@ -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. */
Signature · 1 line
Julien Grall
#5 lore raw
In reply to [email protected]

Please ignore this series. I have missed to update processor_implementers[] with cavium in xen/arch/arm/setup.c

Sending v2 version

Quoted 22 lines · On Mon, Feb 16, 2015 at 2:36 PM, <[email protected]> wrote:

From: Vijaya Kumar K <[email protected]>

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