Skip to contentSkip to conversation

Renesas R-Car Gen3 SoCs earlyprintk support.

PATCH Superseded Andrii Anisov 3 participants 21 messages Jul 5, 2017 – Jul 26, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

These patches add SCIF earlyprintk support as well as a configuration suitable for R-Car Gen3 SoCs based development boards.

[PATCH 1/2] xen:arm64: Add SCIF UART support for earlyprintk [PATCH 2/2] xen:arm: earlyprintk configuration for R-Car Gen3 boards

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

#1 lore raw

PATCH 1/2 xen:arm64: Add SCIF UART support for earlyprintk

From: Iurii Konovalenko <[email protected]>

Add support for a SCIF compatible UART found in Renesas R-Car Gen3 SoCs.

---
 xen/arch/arm/arm64/debug-scif.inc | 51 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 xen/arch/arm/arm64/debug-scif.inc
xen/arch/arm/arm64/debug-scif.inc new file +51 -0
new file mode 100644
index 0000000..1f4d657
@@ -0,0 +1,51 @@
+/*
+ * xen/arch/arm/arm64/debug-scif.inc
+ *
+ * SCIF specific debug code
+ *
+ * Oleksandr Tyshchenko <[email protected]>
+ * Iurii Konovalenko <[email protected]>
+ * Iurii Mykhalskyi <[email protected]>
+ * Copyright (C) 2014-2016, Globallogic.
+ *
+ * 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/scif-uart.h>
+
+/* SCIF UART wait UART to be ready to transmit
+ * rb: register which contains the UART base address
+ * rc: scratch register
+ */
+.macro early_uart_ready xb c
+1:
+        ldrh   w\c, [\xb, #SCIF_SCFSR]   /* <- SCFSR (status register) */
+        tst    w\c, #SCFSR_TDFE          /* Check TDFE bit */
+        beq    1b                        /* Wait for the UART to be ready */
+.endm
+
+/* SCIF UART transmit character
+ * rb: register which contains the UART base address
+ * rt: register which contains the character to transmit
+ */
+.macro early_uart_transmit xb wt
+        strb   \wt, [\xb, #SCIF_SCFTDR]                  /* -> SCFTDR (data register) */
+        ldrh   \wt, [\xb, #SCIF_SCFSR]                   /* <- SCFSR (status register) */
+        and    \wt, \wt, #(~(SCFSR_TEND | SCFSR_TDFE))   /* Clear TEND and TDFE bits */
+        strh   \wt, [\xb, #SCIF_SCFSR]                   /* -> SCFSR (status register) */
+.endm
+
+/*
+ * Local variables:
+ * mode: ASM
+ * indent-tabs-mode: nil
+ * End:
+ */
Signature · 7 lines
2.7.4


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

Re: [PATCH 1/2] xen:arm64: Add SCIF UART support for earlyprintk

+ Stefano as a maintainer.

Dear all,

Any objections on this patch?

Quoted 69 lines · Andrii Anisov

From: Iurii Konovalenko <[email protected]>

Add support for a SCIF compatible UART found in Renesas R-Car Gen3 SoCs.

---
  xen/arch/arm/arm64/debug-scif.inc | 51 +++++++++++++++++++++++++++++++++++++++
  1 file changed, 51 insertions(+)

create mode 100644 xen/arch/arm/arm64/debug-scif.inc

xen/arch/arm/arm64/debug-scif.inc new file +51 -0
new file mode 100644
index 0000000..1f4d657
@@ -0,0 +1,51 @@
+/*
+ * xen/arch/arm/arm64/debug-scif.inc
+ *
+ * SCIF specific debug code
+ *
+ * Oleksandr Tyshchenko <[email protected]>
+ * Iurii Konovalenko <[email protected]>
+ * Iurii Mykhalskyi <[email protected]>
+ * Copyright (C) 2014-2016, Globallogic.
+ *
+ * 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/scif-uart.h>
+
+/* SCIF UART wait UART to be ready to transmit
+ * rb: register which contains the UART base address
+ * rc: scratch register
+ */
+.macro early_uart_ready xb c
+1:
+        ldrh   w\c, [\xb, #SCIF_SCFSR]   /* <- SCFSR (status register) */
+        tst    w\c, #SCFSR_TDFE          /* Check TDFE bit */
+        beq    1b                        /* Wait for the UART to be ready */
+.endm
+
+/* SCIF UART transmit character
+ * rb: register which contains the UART base address
+ * rt: register which contains the character to transmit
+ */
+.macro early_uart_transmit xb wt
+        strb   \wt, [\xb, #SCIF_SCFTDR]                  /* -> SCFTDR (data register) */
+        ldrh   \wt, [\xb, #SCIF_SCFSR]                   /* <- SCFSR (status register) */
+        and    \wt, \wt, #(~(SCFSR_TEND | SCFSR_TDFE))   /* Clear TEND and TDFE bits */
+        strh   \wt, [\xb, #SCIF_SCFSR]                   /* -> SCFSR (status register) */
+.endm
+
+/*
+ * Local variables:
+ * mode: ASM
+ * indent-tabs-mode: nil
+ * End:
+ */
Signature · 8 lines
*Andrii Anisov*



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

Re: [PATCH 1/2] xen:arm64: Add SCIF UART support for earlyprintk

Quoted 5 lines · Andrii Anisov

+ Stefano as a maintainer.

Dear all,

Any objections on this patch?

I would have appreciated to be CC as well...

Quoted 39 lines · Andrii Anisov
Quoted 36 lines

From: Iurii Konovalenko <[email protected]>

Add support for a SCIF compatible UART found in Renesas R-Car Gen3 SoCs.

---
  xen/arch/arm/arm64/debug-scif.inc | 51
+++++++++++++++++++++++++++++++++++++++
  1 file changed, 51 insertions(+)

create mode 100644 xen/arch/arm/arm64/debug-scif.inc

xen/arch/arm/arm64/debug-scif.inc new file +16 -0
new file mode 100644
index 0000000..1f4d657
@@ -0,0 +1,51 @@
+/*
+ * xen/arch/arm/arm64/debug-scif.inc
+ *
+ * SCIF specific debug code
+ *
+ * Oleksandr Tyshchenko <[email protected]>
+ * Iurii Konovalenko <[email protected]>
+ * Iurii Mykhalskyi <[email protected]>
+ * Copyright (C) 2014-2016, Globallogic.
+ *
+ * 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,
Quoted 8 lines

xen/arch/arm/arm64/debug-scif.inc line 24

Quoted 8 lines
xen/arch/arm/arm64/debug-scif.inc new file +8 -0
+ * 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/scif-uart.h>
+
+/* SCIF UART wait UART to be ready to transmit

Coding style.

Quoted 1 line

xen/arch/arm/arm64/debug-scif.inc line 25

Quoted 1 line
xen/arch/arm/arm64/debug-scif.inc new file +1 -0
+ * rb: register which contains the UART base address

Wrong name

Quoted 1 line

xen/arch/arm/arm64/debug-scif.inc line 26

Quoted 1 line
xen/arch/arm/arm64/debug-scif.inc new file +1 -0
+ * rc: scratch register

Ditto

Quoted 11 lines

xen/arch/arm/arm64/debug-scif.inc

Quoted 11 lines
xen/arch/arm/arm64/debug-scif.inc new file +4 -0
+ */
+.macro early_uart_ready xb c
+1:
+        ldrh   w\c, [\xb, #SCIF_SCFSR]   /* <- SCFSR (status

register) */

xen/arch/arm/arm64/debug-scif.inc new file +2 -0
+        tst    w\c, #SCFSR_TDFE          /* Check TDFE bit */
+        beq    1b                        /* Wait for the UART to be

ready */
+.endm

xen/arch/arm/arm64/debug-scif.inc new file +2 -0
+
+/* SCIF UART transmit character

Ditto

Quoted 1 line
Quoted 1 line

+ * rb: register which contains the UART base address

Ditto

Quoted 1 line
Quoted 1 line

+ * rt: register which contains the character to transmit

Ditto

Quoted 10 lines
Quoted 10 lines

+ */
+.macro early_uart_transmit xb wt
+ strb \wt, [\xb, #SCIF_SCFTDR] /* -> SCFTDR
(data register) */
+ ldrh \wt, [\xb, #SCIF_SCFSR] /* <- SCFSR
(status register) */
+ and \wt, \wt, #(~(SCFSR_TEND | SCFSR_TDFE)) /* Clear
TEND and TDFE bits */
+ strh \wt, [\xb, #SCIF_SCFSR] /* -> SCFSR
(status register) */

Quoted 9 lines

xen/arch/arm/arm64/debug-scif.inc line 51

Quoted 8 lines

+.endm

xen/arch/arm/arm64/debug-scif.inc new file +7 -0
+
+/*
+ * Local variables:
+ * mode: ASM
+ * indent-tabs-mode: nil
+ * End:
+ */

Cheers,

Signature · 6 lines
Julien Grall

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

Re: [PATCH 1/2] xen:arm64: Add SCIF UART support for earlyprintk

Hello Julien,

Quoted 10 lines · Julien Grall
Quoted 5 lines · Andrii Anisov

+ Stefano as a maintainer.

Dear all,

Any objections on this patch?

I would have appreciated to be CC as well...

Somewhy I though you are in the thread of this patch as well. Sorry for my miss.

Quoted 102 lines
Quoted 41 lines · Andrii Anisov
Quoted 38 lines

From: Iurii Konovalenko <[email protected]>

Add support for a SCIF compatible UART found in Renesas R-Car Gen3 SoCs.

---
  xen/arch/arm/arm64/debug-scif.inc | 51
+++++++++++++++++++++++++++++++++++++++
  1 file changed, 51 insertions(+)

create mode 100644 xen/arch/arm/arm64/debug-scif.inc

xen/arch/arm/arm64/debug-scif.inc new file +11 -0
new file mode 100644
index 0000000..1f4d657
@@ -0,0 +1,51 @@
+/*
+ * xen/arch/arm/arm64/debug-scif.inc
+ *
+ * SCIF specific debug code
+ *
+ * Oleksandr Tyshchenko <[email protected]>
+ * Iurii Konovalenko <[email protected]>
+ * Iurii Mykhalskyi <[email protected]>
+ * Copyright (C) 2014-2016, Globallogic.
+ *
+ * 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,

Quoted 8 lines

xen/arch/arm/arm64/debug-scif.inc line 24

Quoted 8 lines

+ * 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/arm64/debug-scif.inc new file +4 -0
+
+#include <asm/scif-uart.h>
+
+/* SCIF UART wait UART to be ready to transmit

Coding style.

Quoted 1 line
Quoted 1 line

+ * rb: register which contains the UART base address

Wrong name

Quoted 1 line
Quoted 1 line

+ * rc: scratch register

Ditto

Quoted 11 lines

xen/arch/arm/arm64/debug-scif.inc

Quoted 11 lines

+ */
+.macro early_uart_ready xb c
+1:
+ ldrh w\c, [\xb, #SCIF_SCFSR] /* <- SCFSR (status
register) */

xen/arch/arm/arm64/debug-scif.inc new file +2 -0
+        tst    w\c, #SCFSR_TDFE          /* Check TDFE bit */
+        beq    1b                        /* Wait for the UART to be

ready */
+.endm

xen/arch/arm/arm64/debug-scif.inc new file +2 -0
+
+/* SCIF UART transmit character

Ditto

Quoted 1 line
Quoted 1 line

+ * rb: register which contains the UART base address

Ditto

Quoted 1 line
Quoted 1 line

+ * rt: register which contains the character to transmit

Ditto

Quoted 10 lines
Quoted 10 lines

+ */
+.macro early_uart_transmit xb wt
+ strb \wt, [\xb, #SCIF_SCFTDR] /* -> SCFTDR
(data register) */
+ ldrh \wt, [\xb, #SCIF_SCFSR] /* <- SCFSR
(status register) */
+ and \wt, \wt, #(~(SCFSR_TEND | SCFSR_TDFE)) /* Clear
TEND and TDFE bits */
+ strh \wt, [\xb, #SCIF_SCFSR] /* -> SCFSR
(status register) */

Quoted 9 lines

xen/arch/arm/arm64/debug-scif.inc line 51

Quoted 8 lines

+.endm

xen/arch/arm/arm64/debug-scif.inc new file +7 -0
+
+/*
+ * Local variables:
+ * mode: ASM
+ * indent-tabs-mode: nil
+ * End:
+ */
Quoted 2 lines

Cheers,

Yep, will cleanup.

Signature · 8 lines
*Andrii Anisov*



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

PATCH 2/2 xen:arm: earlyprintk configuration for R-Car Gen3 boards

In reply to Andrii Anisov

From: Andrii Anisov <[email protected]>

Introduce an earlyprintk configuration for R-Car Gen3 SoC based development boards, like:
- Salvator-X [http://elinux.org/R-Car/Boards/Salvator-X]
- M3ULCB [http://elinux.org/R-Car/Boards/M3SK]
- H3ULCB [http://elinux.org/R-Car/Boards/H3SK]

---
 docs/misc/arm/early-printk.txt | 1 +
 xen/arch/arm/Rules.mk          | 1 +
 2 files changed, 2 insertions(+)
docs/misc/arm/early-printk.txt +1 -0
index 41b528b..a7a3d94 100644
@@ -39,6 +39,7 @@ the name of the machine:
   - fastmodel: printk on ARM Fastmodel software emulators
   - juno: printk with pl011 on Juno platform
   - lager: printk with SCIF0 on Renesas R-Car H2 processors
+  - rcar3: printk with SCIF2 on Renesas R-Car H3 processors
   - midway: printk with the pl011 on Calxeda Midway processors
   - omap5432: printk with UART3 on TI OMAP5432 processors
   - seattle: printk with pl011 for AMD Seattle processor
xen/arch/arm/Rules.mk +1 -0
index 569a0ba..9c1cb74 100644
@@ -34,6 +34,7 @@ EARLY_PRINTK_fastmodel      := pl011,0x1c090000,115200
 EARLY_PRINTK_exynos5250     := exynos4210,0x12c20000
 EARLY_PRINTK_juno           := pl011,0x7ff80000
 EARLY_PRINTK_lager          := scif,0xe6e60000
+EARLY_PRINTK_rcar3          := scif,0xe6e88000
 EARLY_PRINTK_midway         := pl011,0xfff36000
 EARLY_PRINTK_omap5432       := 8250,0x48020000,2
 EARLY_PRINTK_seattle        := pl011,0xe1010000
Signature · 7 lines
2.7.4


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

Re: [PATCH 2/2] xen:arm: earlyprintk configuration for R-Car Gen3 boards

+ Stefano as a maintainer.

Dear all,

Any objections on this patch?

Quoted 40 lines · Andrii Anisov

From: Andrii Anisov <[email protected]>

Introduce an earlyprintk configuration for R-Car Gen3 SoC based development boards, like:
- Salvator-X [http://elinux.org/R-Car/Boards/Salvator-X]
- M3ULCB [http://elinux.org/R-Car/Boards/M3SK]
- H3ULCB [http://elinux.org/R-Car/Boards/H3SK]

---
  docs/misc/arm/early-printk.txt | 1 +
  xen/arch/arm/Rules.mk          | 1 +
  2 files changed, 2 insertions(+)
docs/misc/arm/early-printk.txt +1 -0
index 41b528b..a7a3d94 100644
@@ -39,6 +39,7 @@ the name of the machine:
    - fastmodel: printk on ARM Fastmodel software emulators
    - juno: printk with pl011 on Juno platform
    - lager: printk with SCIF0 on Renesas R-Car H2 processors
+  - rcar3: printk with SCIF2 on Renesas R-Car H3 processors
    - midway: printk with the pl011 on Calxeda Midway processors
    - omap5432: printk with UART3 on TI OMAP5432 processors
    - seattle: printk with pl011 for AMD Seattle processor
xen/arch/arm/Rules.mk +1 -0
index 569a0ba..9c1cb74 100644
@@ -34,6 +34,7 @@ EARLY_PRINTK_fastmodel      := pl011,0x1c090000,115200
  EARLY_PRINTK_exynos5250     := exynos4210,0x12c20000
  EARLY_PRINTK_juno           := pl011,0x7ff80000
  EARLY_PRINTK_lager          := scif,0xe6e60000
+EARLY_PRINTK_rcar3          := scif,0xe6e88000
  EARLY_PRINTK_midway         := pl011,0xfff36000
  EARLY_PRINTK_omap5432       := 8250,0x48020000,2
  EARLY_PRINTK_seattle        := pl011,0xe1010000
Signature · 8 lines
*Andrii Anisov*



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

Re: [PATCH 2/2] xen:arm: earlyprintk configuration for R-Car Gen3 boards

Hi,

Quoted 5 lines · Andrii Anisov

+ Stefano as a maintainer.

Dear all,

Any objections on this patch?

Same as patch #1 here.

Quoted 19 lines · Andrii Anisov
Quoted 17 lines

From: Andrii Anisov <[email protected]>

Introduce an earlyprintk configuration for R-Car Gen3 SoC based development
boards, like:
- Salvator-X [http://elinux.org/R-Car/Boards/Salvator-X]
- M3ULCB [http://elinux.org/R-Car/Boards/M3SK]
- H3ULCB [http://elinux.org/R-Car/Boards/H3SK]

---
  docs/misc/arm/early-printk.txt | 1 +
  xen/arch/arm/Rules.mk          | 1 +
  2 files changed, 2 insertions(+)
Quoted 10 lines

docs/misc/arm/early-printk.txt the name of the machine: · line 42

Quoted 10 lines
docs/misc/arm/early-printk.txt +1 -0
index 41b528b..a7a3d94 100644
@@ -39,6 +39,7 @@ the name of the machine:
    - fastmodel: printk on ARM Fastmodel software emulators
    - juno: printk with pl011 on Juno platform
    - lager: printk with SCIF0 on Renesas R-Car H2 processors
+  - rcar3: printk with SCIF2 on Renesas R-Car H3 processors

Please follow alphabetical order

Quoted 4 lines
Quoted 4 lines
docs/misc/arm/early-printk.txt +0 -0
    - midway: printk with the pl011 on Calxeda Midway processors
    - omap5432: printk with UART3 on TI OMAP5432 processors
    - seattle: printk with pl011 for AMD Seattle processor
xen/arch/arm/Rules.mk +0 -0
Quoted 8 lines

xen/arch/arm/Rules.mk EARLY_PRINTK_fastmodel := pl011,0x1c090000,115200 · line 37

Quoted 8 lines

index 569a0ba..9c1cb74 100644

xen/arch/arm/Rules.mk +1 -0
@@ -34,6 +34,7 @@ EARLY_PRINTK_fastmodel      := pl011,0x1c090000,115200
  EARLY_PRINTK_exynos5250     := exynos4210,0x12c20000
  EARLY_PRINTK_juno           := pl011,0x7ff80000
  EARLY_PRINTK_lager          := scif,0xe6e60000
+EARLY_PRINTK_rcar3          := scif,0xe6e88000

Ditto

Quoted 4 lines

xen/arch/arm/Rules.mk EARLY_PRINTK_fastmodel := pl011,0x1c090000,115200 · line 40

Quoted 3 lines
xen/arch/arm/Rules.mk +0 -0
  EARLY_PRINTK_midway         := pl011,0xfff36000
  EARLY_PRINTK_omap5432       := 8250,0x48020000,2
  EARLY_PRINTK_seattle        := pl011,0xe1010000

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#8 lore raw
In reply to Andrii Anisov

Hi,

Please CC relevant maintainers on those patches.

Quoted 5 lines · Andrii Anisov

These patches add SCIF earlyprintk support as well as a configuration suitable for R-Car Gen3 SoCs based development boards.

[PATCH 1/2] xen:arm64: Add SCIF UART support for earlyprintk [PATCH 2/2] xen:arm: earlyprintk configuration for R-Car Gen3 boards

I'd like to have my comments (see the discussion on "Xen Community Call 21/07/16 meeting minutes") before considering acking those two patches.

Cheers,

Signature · 6 lines
Julien Grall

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

Julien,

Quoted 1 line · Julien Grall

I'd like to have my comments (see the discussion on "Xen Community Call 21/07/16 meeting minutes") before considering acking those two patches.

Its clear. It is just the first step.

Taking all discussed actions will take more time.

Signature · 8 lines
*Andrii Anisov*



_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#10 lore raw
Quoted 1 line · Andrii Anisov

Julien,

Hi Andrii,

Quoted 7 lines · Julien Grall
Quoted 3 lines

I'd like to have my comments (see the discussion on "Xen Community Call 21/07/16 meeting minutes") before considering acking those two patches.

Its clear. It is just the first step.

Taking all discussed actions will take more time.

Yocto aside, I think updating the wiki pages don't take too long. It is just adding:

* Adding a point of contact in
https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results
* Make sure Salvator-X webpage is accurate and doesn't contain
non-upstream pointer (i.e dropping this yocto link contain security flaw).

I am not really willing to ack it without at least that done.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#11 lore raw
Quoted 4 lines · Julien Grall

Yocto aside, I think updating the wiki pages don't take too long. It is just adding:

* Make sure Salvator-X webpage is accurate and doesn't contain
non-upstream pointer (i.e dropping this yocto link contain security flaw).

I suppose that will not work.
BSP with mentioned layer will do SMC due to OP-TEE integration and will not boot.

Signature · 8 lines
*Andrii Anisov*



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

Hi Andrii,

Quoted 10 lines · Andrii Anisov
Quoted 6 lines · Julien Grall

Yocto aside, I think updating the wiki pages don't take too long. It is just adding:

* Make sure Salvator-X webpage is accurate and doesn't contain
non-upstream pointer (i.e dropping this yocto link contain security flaw).

I suppose that will not work.
BSP with mentioned layer will do SMC due to OP-TEE integration and will not boot.

I prefer to say: "This is not supported today because of XXX. With the following patches, it is possible to boot.". Rather than "This is supported if you download from this github, I don't give Xen version and don't even mention the patches on top...".

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#13 lore raw
Quoted 1 line · Julien Grall

I prefer to say: "This is not supported today because of XXX. With the following patches, it is possible to boot.". Rather than "This is supported if you download from this github, I don't give Xen version and don't even mention the patches on top...".

Actually statements "Xen is fully supported" and "changes are required in the BSP" do not contradict each other, if we treat those changes (disabling OP-TEE) as a matter of BSP configuration (which they are). Do you agree?

Quoted 1 line

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

Signature · 8 lines
*Andrii Anisov*



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

Hi Andrii,

Quoted 10 lines · Andrii Anisov
Quoted 4 lines · Julien Grall

I prefer to say: "This is not supported today because of XXX. With the following patches, it is possible to boot.". Rather than "This is supported if you download from this github, I don't give Xen version and don't even mention the patches on top...".

Actually statements "Xen is fully supported" and "changes are required in the BSP" do not contradict each other, if we treat those changes (disabling OP-TEE) as a matter of BSP configuration (which they are). Do you agree?

Well, I would expect no changes in either in the BSP, kernel, device-tree when you run with Xen.

For all the platform currently supported, we can boot Xen with the device-tree provided by the firmware or from Linux upstream. The Linux kernel is not modified but recompiled with XEN options enabled.

Xen should take care of the missing mappings and/or disabling device not supported.

So I don't see how the Renesas board should be different here. If you need to modify the device-tree or Linux. Then there is missing pieces in Xen or the BSP is not doing the right thing (i.e auto-detect support).

Quoted 7 lines
Quoted 4 lines

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

You can't say in the same sentence, the board is fully supported and there are missing functionality that requires change in the BSP. They are incompatible.

I agree that we are able to boot Xen on Renesas (not sure to which extend without modification). But you can't claim it is fully supported until all those gaps are fixed.

Anyway, we should at least list the gaps on the wiki page for helping potential users.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#15 lore raw
Quoted 1 line · Julien Grall

Well, I would expect no changes in either in the BSP, kernel, device-tree when you run with Xen.

Even without adding XEN specific chosen node? Or you do not count it as a devtree change?

Quoted 10 lines
Quoted 6 lines
Quoted 3 lines

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

You can't say in the same sentence, the board is fully supported and there are missing functionality that requires change in the BSP. They are incompatible.

I agree that we are able to boot Xen on Renesas (not sure to which extend without modification). But you can't claim it is fully supported until all those gaps are fixed.

Well...
Do you say that calls to ARM TEE from XEN domains works for all supported boards? And smc trapping is somehow Renesas specific?
Or you state that TEE is never provided as a part of BSP for supported boards? So nobody mention the gap?
Maybe you claim BSP of all supported boards goes out of bootloader in Hypervisor mode/EL2? So no changes to FW/bootloader should be ever done for supported boards?

Signature · 8 lines
*Andrii Anisov*



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

Hi Andrii,

Quoted 5 lines · Andrii Anisov
Quoted 2 lines · Julien Grall

Well, I would expect no changes in either in the BSP, kernel, device-tree when you run with Xen.

Even without adding XEN specific chosen node? Or you do not count it as a devtree change?

I don't count the chosen node. This could be done via the u-boot command line, so no need to load a separate DT.

Quoted 12 lines
Quoted 12 lines
Quoted 7 lines
Quoted 4 lines

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

You can't say in the same sentence, the board is fully supported and there are missing functionality that requires change in the BSP. They are incompatible.

Quoted 6 lines
Quoted 3 lines

I agree that we are able to boot Xen on Renesas (not sure to which extend without modification). But you can't claim it is fully supported until all those gaps are fixed.

Well...
Do you say that calls to ARM TEE from XEN domains works for all supported boards? And smc trapping is somehow Renesas specific?

I am not aware of any board we currently support requiring to issue SMC calls.

We used to have one in the past, but this has been fixed in the BSP to avoid issuing SMC when it is not allowed.

Quoted 2 lines

Or you state that TEE is never provided as a part of BSP for supported boards? So nobody mention the gap?

You are the first person looking actively at TEE with Xen upstream. I personally don't have any board that is using TEE.

Are you saying TEE will not be detected via the Device Tree and the BSP will always assume it is present?

Quoted 3 lines

Maybe you claim BSP of all supported boards goes out of bootloader in Hypervisor mode/EL2? So no changes to FW/bootloader should be ever done for supported boards?

If the bootloader does not leave you in EL2, then it is a bug in the bootloader that should be fixed in the official BSP. Not in a separate repository just for Xen.

My point is we should work with Renesas to get the official BSP to support Xen rather than forking the BSP and carry all the changes.

This is more sustainable and less overhead for everyone in the future.

Cheers,

Signature · 6 lines
Julien Grall

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

Dear Julien,

Quoted 1 line · Julien Grall

I don't count the chosen node. This could be done via the u-boot command line, so no need to load a separate DT.

I looked through all available manuals.
Most of them imply significant amount of manual actions to start the system. From one hand it is good for understanding of the required changes, from other hand - to play with the system one will reinvent the wheel to automate those actions. Our approach is to hide all details under the hood to provide a system to play with.
Also, as I know, Renesas does not provide any prebuilts, the yocto build is the only way to get binaries, so IMHO providing meta-layer over their pack is pretty natural.

Quoted 20 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

You can't say in the same sentence, the board is fully supported and there are missing functionality that requires change in the BSP. They are incompatible.

Quoted 6 lines
Quoted 3 lines

I agree that we are able to boot Xen on Renesas (not sure to which extend without modification). But you can't claim it is fully supported until all those gaps are fixed.

Well...
Do you say that calls to ARM TEE from XEN domains works for all supported boards? And smc trapping is somehow Renesas specific?

I am not aware of any board we currently support requiring to issue SMC calls.

Quoted 7 lines

We used to have one in the past, but this has been fixed in the BSP to avoid issuing SMC when it is not allowed.

Quoted 2 lines

Or you state that TEE is never provided as a part of BSP for supported boards? So nobody mention the gap?

You are the first person looking actively at TEE with Xen upstream. I personally don't have any board that is using TEE.

Are you saying TEE will not be detected via the Device Tree and the BSP will always assume it is present?

Yep, it is. At the moment it seems to be weird.

Quoted 1 line

If the bootloader does not leave you in EL2, then it is a bug in the bootloader that should be fixed in the official BSP.

In Renesas'es case, that is a matter of configuration. ATFW by default is built without the option to run bootloader in EL2.

Quoted 1 line

Not in a separate repository just for Xen.

At least here [1] it is described in such a way.

Quoted 1 line

My point is we should work with Renesas to get the official BSP to support Xen rather than forking the BSP and carry all the changes.

It is fair enough. We are working with Renesas to put required changes to the official BSP. But this directly depends on what Volodymyr Babchuk does for SMC.

Quoted 1 line

This is more sustainable and less overhead for everyone in the future.

I do apologize for being too expressive.
I just want to understand how to claim R-Car Gen3 support in XEN with what we have now. With known limitations and patches to the BSP. Having required changes in the official BSP will take much more time.

[1] https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner#Bootloader

Signature · 8 lines
*Andrii Anisov*



_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#18 lore raw
Quoted 11 lines · Andrii Anisov

Dear Julien,

Quoted 2 lines · Julien Grall

I don't count the chosen node. This could be done via the u-boot command line, so no need to load a separate DT.

I looked through all available manuals.
Most of them imply significant amount of manual actions to start the system. From one hand it is good for understanding of the required changes, from other hand - to play with the system one will reinvent the wheel to automate those actions.

Not really, you can modify the U-boot environment and save it...

Quoted 38 lines

Our approach is to hide all details under the hood to provide a system to play with.
Also, as I know, Renesas does not provide any prebuilts, the yocto build is the only way to get binaries, so IMHO providing meta-layer over their pack is pretty natural.

Quoted 23 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines

The wiki page gives the false impression that Xen upstream is fully supported on Renesas, whilst from what you said this is not true and change are required in the BSP.

I would say in different words: XEN upstream is fully supported on Renesas, but due to XEN functionality gaps the BSP should be adjusted appropriately.

You can't say in the same sentence, the board is fully supported and there are missing functionality that requires change in the BSP. They are incompatible.

Quoted 6 lines
Quoted 3 lines

I agree that we are able to boot Xen on Renesas (not sure to which extend without modification). But you can't claim it is fully supported until all those gaps are fixed.

Well...
Do you say that calls to ARM TEE from XEN domains works for all supported boards? And smc trapping is somehow Renesas specific?

I am not aware of any board we currently support requiring to issue SMC calls.

We used to have one in the past, but this has been fixed in the BSP to avoid issuing SMC when it is not allowed.

Quoted 8 lines
Quoted 2 lines

Or you state that TEE is never provided as a part of BSP for supported boards? So nobody mention the gap?

You are the first person looking actively at TEE with Xen upstream. I personally don't have any board that is using TEE.

Are you saying TEE will not be detected via the Device Tree and the BSP will always assume it is present?

Yep, it is. At the moment it seems to be weird.

Quoted 7 lines
Quoted 2 lines

If the bootloader does not leave you in EL2, then it is a bug in the bootloader that should be fixed in the official BSP.

In Renesas'es case, that is a matter of configuration. ATFW by default is built without the option to run bootloader in EL2.

Quoted 1 line

Not in a separate repository just for Xen.

At least here [1] it is described in such a way.

The bootloader section is not Xen specific. It points to the official sunxi bootloader.

Quoted 11 lines
Quoted 3 lines

My point is we should work with Renesas to get the official BSP to support Xen rather than forking the BSP and carry all the changes.

It is fair enough. We are working with Renesas to put required changes to the official BSP. But this directly depends on what Volodymyr Babchuk does for SMC.

Quoted 1 line

This is more sustainable and less overhead for everyone in the future.

I do apologize for being too expressive.
I just want to understand how to claim R-Car Gen3 support in XEN with what we have now. With known limitations and patches to the BSP.

You can say it is supported and listing known limitations, not saying it is fully supported. As you said, there is a long way to end up fully support.

Cheers,

Quoted 6 lines

Having required changes in the official BSP will take much more time.

[1]
https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Allwinner#Bootloader

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#19 lore raw
Quoted 1 line · Julien Grall

You can say it is supported and listing known limitations, not saying it is fully supported. As you said, there is a long way to end up fully support.

Got it.

Signature · 8 lines
*Andrii Anisov*



_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#20 lore raw
In reply to Julien Grall

Hello Julien,

Quoted 6 lines · Julien Grall

Yocto aside, I think updating the wiki pages don't take too long. It is just adding:

* Adding a point of contact in
https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results
* Make sure Salvator-X webpage is accurate and doesn't contain
non-upstream pointer (i.e dropping this yocto link contain security flaw).

I've updated the wiki [1]. Point of contact in [2] was updated earlier.

[1] https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Salvator-X
[2] https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Signature · 7 lines
*Andrii Anisov*


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