Skip to contentSkip to conversation

xen: arm64: Add support for Renesas RCar Gen3 H3 Salvator-X platform

PATCH Superseded Dirk Behme 6 participants 9 messages Jul 4, 2016 – Jul 7, 2016 Arm/RISC-V/Renesas architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 xen: arm64: Add support for Renesas RCar Gen3 H3 Salvator-X platform

---
 docs/misc/arm/early-printk.txt    |  1 +
 xen/arch/arm/Rules.mk             |  1 +
 xen/arch/arm/arm64/debug-scif.inc | 54 +++++++++++++++++++++++++++++++++++++++
 xen/arch/arm/platforms/Makefile   |  1 +
 xen/arch/arm/platforms/rcar3.c    | 41 +++++++++++++++++++++++++++++
 xen/drivers/char/Kconfig          |  2 +-
 6 files changed, 99 insertions(+), 1 deletion(-)
 create mode 100644 xen/arch/arm/arm64/debug-scif.inc
 create mode 100644 xen/arch/arm/platforms/rcar3.c
docs/misc/arm/early-printk.txt +1 -0
index 41b528b..20acbc7 100644
@@ -41,6 +41,7 @@ the name of the machine:
   - lager: printk with SCIF0 on Renesas R-Car H2 processors
   - midway: printk with the pl011 on Calxeda Midway processors
   - omap5432: printk with UART3 on TI OMAP5432 processors
+  - salvator-x: printk with SCIF2 on Renesas R-Car H3 processors
   - seattle: printk with pl011 for AMD Seattle processor
   - sun6i: printk with 8250 on Allwinner A31 processors
   - sun7i: printk with 8250 on Allwinner A20 processors
xen/arch/arm/Rules.mk +1 -0
index 93304be..3003e7b 100644
@@ -36,6 +36,7 @@ EARLY_PRINTK_juno           := pl011,0x7ff80000
 EARLY_PRINTK_lager          := scif,0xe6e60000
 EARLY_PRINTK_midway         := pl011,0xfff36000
 EARLY_PRINTK_omap5432       := 8250,0x48020000,2
+EARLY_PRINTK_salvator-x     := scif,0xe6e88000
 EARLY_PRINTK_seattle        := pl011,0xe1010000
 EARLY_PRINTK_sun6i          := 8250,0x01c28000,2
 EARLY_PRINTK_sun7i          := 8250,0x01c28000,2
xen/arch/arm/arm64/debug-scif.inc new file +54 -0

54 lines not on this page · raw message

xen/arch/arm/platforms/Makefile +1 -0
index 3689eec..01c8ebc 100644
@@ -5,6 +5,7 @@ obj-$(CONFIG_ARM_32) += midway.o
 obj-$(CONFIG_ARM_32) += omap5.o
 obj-$(CONFIG_ARM_32) += sunxi.o
 obj-$(CONFIG_ARM_32) += rcar2.o
+obj-$(CONFIG_ARM_64) += rcar3.o
 obj-$(CONFIG_ARM_64) += seattle.o
 obj-$(CONFIG_ARM_64) += xgene-storm.o
 obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
xen/arch/arm/platforms/rcar3.c new file +41 -0

41 lines not on this page · raw message

xen/drivers/char/Kconfig +1 -1
index 08973cf..703a311 100644
@@ -45,7 +45,7 @@ config HAS_OMAP
 config HAS_SCIF
 	bool
 	default y
-	depends on ARM_32
+	depends on ARM
 	help
 	  This selects the SuperH SCI(F) UART. If you have a SuperH based board,
 	  say Y.
Signature · 7 lines
2.8.0


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the
board (e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

In the future, I would like to see Xen tested before each release on all the boards officially supported. If it was not tested, we will consider the board as not supported.

[...]

Quoted 27 lines
xen/arch/arm/platforms/rcar3.c new file +21 -0
new file mode 100644
index 0000000..5a53f15
@@ -0,0 +1,41 @@
+/*
+ * xen/arch/arm/platforms/rcar3.c
+ *
+ * Renesas R-Car Gen3 specific settings
+ *
+ * Dirk Behme <[email protected]>
+ *
+ * based on Renesas R-Car Gen2 specific settings
+ * Iurii Konovalenko <[email protected]>
+ *
+ * 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.
+ */
+

xen/arch/arm/platforms/rcar3.c line 31

Quoted 10 lines
xen/arch/arm/platforms/rcar3.c new file +10 -0
+#include <asm/platform.h>
+
+static const char const *rcar3_dt_compat[] __initdata =
+{
+    "renesas,salvator-x",
+    NULL
+};
+
+PLATFORM_START(rcar3, "Renesas R-Car Gen3")
+    .compatible = rcar3_dt_compat,

Your platform does not seem to require specific bring-up code, so this file can be dropped.

xen/arch/arm/platforms/rcar3.c line 41

Quoted 10 lines
xen/arch/arm/platforms/rcar3.c new file +10 -0
+PLATFORM_END
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */

Regards,

[1] http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg03683.html

[2] http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions#Hardware

[3] http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw

Also CC Lars.

Quoted 22 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
Quoted 35 lines · Wei Liu

Also CC Lars.

Quoted 22 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

Quoted 2 lines

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

Lars

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw
Quoted 42 lines · Lars Kurth
Quoted 35 lines · Wei Liu

Also CC Lars.

Quoted 22 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

Quoted 2 lines

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 5 lines
Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

I think a file in the repository would be more formal than a wiki page.

However, the MAINTAINERS file may not be the right place because some board will not have any specific code/file in Xen (e.g the RCAR-3 only add earlyprintk). But we would still want to keep track of them for testing purpose and advertising the board supported.

I was thinking to add a file board under docs/misc/arm/boards.txt with the list of board and a contact associated I would add some words about the "responsibility" of the contact such as:
- Testing
- Answering questions related to the board

I would also keep the wiki page [1] (+ a link in the file) to log the testing result per release.

Finally, we may want to track whether the board is "supported", "obsolete", "untested"...

I will try to write a concrete proposal.

Cheers,

[1] http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#5 lore raw
Quoted 62 lines · Julien Grall
Quoted 42 lines · Lars Kurth
Quoted 35 lines · Wei Liu

Also CC Lars.

Quoted 22 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

Quoted 2 lines

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 5 lines
Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

I think a file in the repository would be more formal than a wiki page.

However, the MAINTAINERS file may not be the right place because some board will not have any specific code/file in Xen (e.g the RCAR-3 only add earlyprintk). But we would still want to keep track of them for testing purpose and advertising the board supported.

I was thinking to add a file board under docs/misc/arm/boards.txt with the list of board and a contact associated I would add some words about the "responsibility" of the contact such as:
- Testing
- Answering questions related to the board

Quoted 5 lines

I would also keep the wiki page [1] (+ a link in the file) to log the testing result per release.

Finally, we may want to track whether the board is "supported", "obsolete", "untested"...

I will try to write a concrete proposal.

Sounds sensible. Please CC me. You may also want to CC Andy Cooper as he has been doing something similar for some features Lars

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#6 lore raw
Quoted 55 lines · Lars Kurth
Quoted 55 lines · Julien Grall
Quoted 34 lines · Lars Kurth
Quoted 26 lines · Wei Liu

Also CC Lars.

Quoted 21 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 8 lines
Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

Quoted 8 lines

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

I think a file in the repository would be more formal than a wiki page.

However, the MAINTAINERS file may not be the right place because some board will not have any specific code/file in Xen (e.g the RCAR-3 only add earlyprintk). But we would still want to keep track of them for testing purpose and advertising the board supported.

I was thinking to add a file board under docs/misc/arm/boards.txt with the list of board and a contact associated I would add some words about the "responsibility" of the contact such as:
- Testing
- Answering questions related to the board

Quoted 6 lines
Quoted 5 lines

I would also keep the wiki page [1] (+ a link in the file) to log the testing result per release.

Finally, we may want to track whether the board is "supported", "obsolete", "untested"...

I will try to write a concrete proposal.

Sounds sensible. Please CC me. You may also want to CC Andy Cooper as he has been doing something similar for some features

+10 for something in the docs/ tree.

It is far easier to keep up to date, and easy to mandate "patches for new boards are not accepted without an update to that document".

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#7 lore raw
Quoted 60 lines · Andrew Cooper
Quoted 59 lines · Lars Kurth
Quoted 59 lines · Julien Grall
Quoted 34 lines · Lars Kurth
Quoted 26 lines · Wei Liu

Also CC Lars.

Quoted 21 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 8 lines
Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

Quoted 8 lines

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

I think a file in the repository would be more formal than a wiki page.

However, the MAINTAINERS file may not be the right place because some board will not have any specific code/file in Xen (e.g the RCAR-3 only add earlyprintk). But we would still want to keep track of them for testing purpose and advertising the board supported.

I was thinking to add a file board under docs/misc/arm/boards.txt with the list of board and a contact associated I would add some words about the "responsibility" of the contact such as:
- Testing
- Answering questions related to the board

I would also keep the wiki page [1] (+ a link in the file) to log the testing result per release.

Finally, we may want to track whether the board is "supported", "obsolete", "untested"...

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

I will try to write a concrete proposal.

Sounds sensible. Please CC me. You may also want to CC Andy Cooper as he has been doing something similar for some features

+10 for something in the docs/ tree.

It is far easier to keep up to date, and easy to mandate "patches for new boards are not accepted without an update to that document".

I agree with Andrew. It is difficult to request a change in the wiki in order to commit a patch. Better to do everything with git.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#8 lore raw
In reply to Julien Grall
Quoted 67 lines · Julien Grall
Quoted 42 lines · Lars Kurth
Quoted 35 lines · Wei Liu

Also CC Lars.

Quoted 22 lines · Julien Grall

(CC Wei for the release part)

Hi Dirk,

Quoted 1 line · Dirk Behme

Thank you for adding support of a new board in Xen.

During the last hackathon, we discussed about improving pre-release testing on ARM hardware [1] and helping users to boot Xen on supported board.

This patch is the first board officially supported since then, so I would like to start applying what was discussed (I will put on a wiki page later). Below the list of things that I would like to see when a new board is added:

- Create a wiki page to explain the requirements to boot Xen on the board
(e.g new firmware if not supported out of box, linux version,...);
- Add a link to the new page in [2];
- Add the contact details in [3] of someone who would could test
pre-release and help out users to boot Xen on the board.

Quoted 6 lines

I do not expect the latter point to be time consuming. It is basically checking if Xen boots before each release and possibly update the requirements of the board. For the part helping users, it will mostly be question related to booting Xen on the hardware. Others may not be able to answer because they do not have the board on their desk.

Quoted 2 lines

FWIW having some wiki pages, and most importantly contact details, would be a good starting point.

I did actually create these pages during the Hackathon and sent it out to the list, but they were not populated by anyone. See
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test
http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Quoted 5 lines
Quoted 3 lines

Can we also have a section in MAINTAINERS for different boards (or a dedicated file?) so that we can easily gather all contact and send emails in a batch when the release is near?

I am not in principle against this, but a concrete proposal would need to be made. In fact that may be better than using the wiki (given the lack of traction around it)

I think a file in the repository would be more formal than a wiki page.

However, the MAINTAINERS file may not be the right place because some board will not have any specific code/file in Xen (e.g the RCAR-3 only add earlyprintk). But we would still want to keep track of them for testing purpose and advertising the board supported.

I was thinking to add a file board under docs/misc/arm/boards.txt with the list of board and a contact associated I would add some words about the "responsibility" of the contact such as:
- Testing
- Answering questions related to the board

I would also keep the wiki page [1] (+ a link in the file) to log the testing result per release.

Quoted 9 lines

Finally, we may want to track whether the board is "supported", "obsolete", "untested"...

I will try to write a concrete proposal.

Cheers,

[1] http://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Having a file under docs/misc/arm is a very good idea.

Wei.

Quoted 2 lines
Signature · 1 line
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel