All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes
@ 2020-06-08  9:01 Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan Philippe Mathieu-Daudé
                   ` (7 more replies)
  0 siblings, 8 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Hi,

This series clarifies the situation of the SH4 TCG target
and hardware (there are no active maintainers). From here
it should be easier for volunteers to step it.

Maybe patches 7 & 8 can go via acceptance-next queue, and
the rest via qemu-trivial@?

Regards,

Phil.

CI report:
https://travis-ci.org/github/philmd/qemu/builds/692828388

Supersedes: <20200530092306.26628-1-f4bug@amsat.org>
Supersedes: <20200601092057.10555-1-f4bug@amsat.org>

Philippe Mathieu-Daudé (6):
  MAINTAINERS: Mark SH4 hardware orphan
  MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  MAINTAINERS: Mark SH4 TCG target orphan
  hw/sh4: Use MemoryRegion typedef
  hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'
  hw/timer/sh_timer: Remove unused 'qemu/timer.h' include

Thomas Huth (2):
  tests/acceptance: Add boot tests for sh4 QEMU advent calendar image
  .travis.yml: Test SH4 QEMU advent calendar image

 include/hw/sh4/sh.h                    | 12 +-----------
 include/hw/timer/tmu012.h              | 23 +++++++++++++++++++++++
 hw/sh4/sh7750.c                        |  1 +
 hw/timer/sh_timer.c                    |  3 ++-
 .travis.yml                            |  2 +-
 MAINTAINERS                            | 18 ++++++++++++------
 tests/acceptance/boot_linux_console.py | 13 +++++++++++--
 7 files changed, 51 insertions(+), 21 deletions(-)
 create mode 100644 include/hw/timer/tmu012.h

-- 
2.21.3



^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-10 11:08   ` Aleksandar Markovic
  2020-06-08  9:01 ` [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan Philippe Mathieu-Daudé
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:

  I don't mind being [...] removed from there.
  I do not really have time to work on that.

Mark the SH4 emulated hardware orphan.

Many thanks to Aurelien for his substantial contributions to QEMU,
and for maintaining the SH4 hardware for various years!

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html

Message-Id: <20200601214125.GA1924990@aurel32.net>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 6e7890ce82..49d90c70de 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -299,9 +299,7 @@ SH4 TCG CPUs
 M: Aurelien Jarno <aurelien@aurel32.net>
 S: Odd Fixes
 F: target/sh4/
-F: hw/sh4/
 F: disas/sh4.c
-F: include/hw/sh4/
 
 SPARC TCG CPUs
 M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
@@ -1948,6 +1946,14 @@ F: hw/*/*xive*
 F: include/hw/*/*xive*
 F: docs/*/*xive*
 
+SH4 Hardware
+S: Orphan
+F: hw/sh4/
+F: hw/char/sh_serial.c
+F: hw/intc/sh_intc.c
+F: hw/timer/sh_timer.c
+F: include/hw/sh4/
+
 Subsystems
 ----------
 Audio
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-08  9:48   ` Thomas Huth
  2020-06-10 11:54   ` Aleksandar Markovic
  2020-06-08  9:01 ` [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan Philippe Mathieu-Daudé
                   ` (5 subsequent siblings)
  7 siblings, 2 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Last commit from Magnus Damm is fc8e320ef583, which date is
Fri Nov 13 2009.  As nobody else seems to care about the patches
posted [*] related to the R2D and Shix machines, mark them orphan.

Many thanks to Magnus for his substantial contributions to QEMU,
and for introducing these SH4 based machine!

[*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html

Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 49d90c70de..a012d9b74e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1250,14 +1250,15 @@ SH4 Machines
 ------------
 R2D
 M: Magnus Damm <magnus.damm@gmail.com>
-S: Maintained
+S: Orphan
 F: hw/sh4/r2d.c
 F: hw/intc/sh_intc.c
 F: hw/timer/sh_timer.c
+F: include/hw/sh4/sh_intc.h
 
 Shix
 M: Magnus Damm <magnus.damm@gmail.com>
-S: Odd Fixes
+S: Orphan
 F: hw/sh4/shix.c
 
 SPARC Machines
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-09  6:35   ` Aurelien Jarno
  2020-06-08  9:01 ` [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Aurelien Jarno expressed his desire to orphan the SH4 target [*]:

  I don't mind being [...] removed from there.
  I do not really have time to work on that.

Mark the SH4 TCG target orphan.

Many thanks to Aurelien for his substantial contributions to QEMU,
and for maintaining the SH4 TCG target for various years!

[*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html

Message-Id: <20200601214125.GA1924990@aurel32.net>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 MAINTAINERS | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index a012d9b74e..cd65bce72b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -296,8 +296,7 @@ F: tests/tcg/s390x/
 L: qemu-s390x@nongnu.org
 
 SH4 TCG CPUs
-M: Aurelien Jarno <aurelien@aurel32.net>
-S: Odd Fixes
+S: Orphan
 F: target/sh4/
 F: disas/sh4.c
 
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-06-08  9:01 ` [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-08 10:24   ` Thomas Huth
  2020-06-08  9:01 ` [PATCH v2 5/8] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Use the MemoryRegion type defined in "qemu/typedefs.h",
to keep the repository style consistent.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200504081653.14841-2-f4bug@amsat.org>
---
 include/hw/sh4/sh.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h
index 767a2df7e2..fe773cb01d 100644
--- a/include/hw/sh4/sh.h
+++ b/include/hw/sh4/sh.h
@@ -10,9 +10,8 @@
 
 /* sh7750.c */
 struct SH7750State;
-struct MemoryRegion;
 
-struct SH7750State *sh7750_init(SuperHCPU *cpu, struct MemoryRegion *sysmem);
+struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem);
 
 typedef struct {
     /* The callback will be triggered if any of the designated lines change */
@@ -32,7 +31,7 @@ int sh7750_register_io_device(struct SH7750State *s,
 #define TMU012_FEAT_TOCR   (1 << 0)
 #define TMU012_FEAT_3CHAN  (1 << 1)
 #define TMU012_FEAT_EXTCLK (1 << 2)
-void tmu012_init(struct MemoryRegion *sysmem, hwaddr base,
+void tmu012_init(MemoryRegion *sysmem, hwaddr base,
                  int feat, uint32_t freq,
 		 qemu_irq ch0_irq, qemu_irq ch1_irq,
 		 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 5/8] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2020-06-08  9:01 ` [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 6/8] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Extract timer definitions to 'hw/timer/tmu012.h'.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200504081653.14841-3-f4bug@amsat.org>
---
 include/hw/sh4/sh.h       |  9 ---------
 include/hw/timer/tmu012.h | 23 +++++++++++++++++++++++
 hw/sh4/sh7750.c           |  1 +
 hw/timer/sh_timer.c       |  2 ++
 4 files changed, 26 insertions(+), 9 deletions(-)
 create mode 100644 include/hw/timer/tmu012.h

diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h
index fe773cb01d..93f464bf4c 100644
--- a/include/hw/sh4/sh.h
+++ b/include/hw/sh4/sh.h
@@ -27,15 +27,6 @@ typedef struct {
 
 int sh7750_register_io_device(struct SH7750State *s,
 			      sh7750_io_device * device);
-/* sh_timer.c */
-#define TMU012_FEAT_TOCR   (1 << 0)
-#define TMU012_FEAT_3CHAN  (1 << 1)
-#define TMU012_FEAT_EXTCLK (1 << 2)
-void tmu012_init(MemoryRegion *sysmem, hwaddr base,
-                 int feat, uint32_t freq,
-		 qemu_irq ch0_irq, qemu_irq ch1_irq,
-		 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
-
 
 /* sh_serial.c */
 #define SH_SERIAL_FEAT_SCIF (1 << 0)
diff --git a/include/hw/timer/tmu012.h b/include/hw/timer/tmu012.h
new file mode 100644
index 0000000000..808ed8de1d
--- /dev/null
+++ b/include/hw/timer/tmu012.h
@@ -0,0 +1,23 @@
+/*
+ * SuperH Timer
+ *
+ * Copyright (c) 2007 Magnus Damm
+ *
+ * This code is licensed under the GPL.
+ */
+
+#ifndef HW_TIMER_TMU012_H
+#define HW_TIMER_TMU012_H
+
+#include "exec/hwaddr.h"
+
+#define TMU012_FEAT_TOCR   (1 << 0)
+#define TMU012_FEAT_3CHAN  (1 << 1)
+#define TMU012_FEAT_EXTCLK (1 << 2)
+
+void tmu012_init(MemoryRegion *sysmem, hwaddr base,
+                 int feat, uint32_t freq,
+                 qemu_irq ch0_irq, qemu_irq ch1_irq,
+                 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
+
+#endif
diff --git a/hw/sh4/sh7750.c b/hw/sh4/sh7750.c
index d660714443..f8ac3ec6e3 100644
--- a/hw/sh4/sh7750.c
+++ b/hw/sh4/sh7750.c
@@ -30,6 +30,7 @@
 #include "sh7750_regs.h"
 #include "sh7750_regnames.h"
 #include "hw/sh4/sh_intc.h"
+#include "hw/timer/tmu012.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
 
diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c
index 13c4051808..b9cbacf5d0 100644
--- a/hw/timer/sh_timer.c
+++ b/hw/timer/sh_timer.c
@@ -9,10 +9,12 @@
  */
 
 #include "qemu/osdep.h"
+#include "exec/memory.h"
 #include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/sh4/sh.h"
 #include "qemu/timer.h"
+#include "hw/timer/tmu012.h"
 #include "hw/ptimer.h"
 
 //#define DEBUG_TIMER
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 6/8] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (4 preceding siblings ...)
  2020-06-08  9:01 ` [PATCH v2 5/8] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 7/8] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 8/8] .travis.yml: Test SH4 " Philippe Mathieu-Daudé
  7 siblings, 0 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

Remove unused "qemu/timer.h" include.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200504081653.14841-4-f4bug@amsat.org>
---
 hw/timer/sh_timer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c
index b9cbacf5d0..bb0e1c8ee5 100644
--- a/hw/timer/sh_timer.c
+++ b/hw/timer/sh_timer.c
@@ -13,7 +13,6 @@
 #include "hw/hw.h"
 #include "hw/irq.h"
 #include "hw/sh4/sh.h"
-#include "qemu/timer.h"
 #include "hw/timer/tmu012.h"
 #include "hw/ptimer.h"
 
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 7/8] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (5 preceding siblings ...)
  2020-06-08  9:01 ` [PATCH v2 6/8] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  2020-06-08  9:01 ` [PATCH v2 8/8] .travis.yml: Test SH4 " Philippe Mathieu-Daudé
  7 siblings, 0 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

From: Thomas Huth <thuth@redhat.com>

Now that we can select the second serial console in the acceptance tests
(see commit 746f244d9720 "Allow to use other serial consoles than default"),
we can also test the sh4 image from the QEMU advent calendar 2018.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200515164337.4899-1-thuth@redhat.com>
[PMD: Split .travis.yml change in separate patch]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/acceptance/boot_linux_console.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 12725d4529..d4fb2bce82 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -827,12 +827,12 @@ def test_m68k_q800(self):
         console_pattern = 'No filesystem could mount root'
         self.wait_for_console_pattern(console_pattern)
 
-    def do_test_advcal_2018(self, day, tar_hash, kernel_name):
+    def do_test_advcal_2018(self, day, tar_hash, kernel_name, console=0):
         tar_url = ('https://www.qemu-advent-calendar.org'
                    '/2018/download/day' + day + '.tar.xz')
         file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
         archive.extract(file_path, self.workdir)
-        self.vm.set_console()
+        self.vm.set_console(console_index=console)
         self.vm.add_args('-kernel',
                          self.workdir + '/day' + day + '/' + kernel_name)
         self.vm.launch()
@@ -906,6 +906,15 @@ def test_ppc_mac99(self):
         self.vm.add_args('-M', 'graphics=off')
         self.do_test_advcal_2018('15', tar_hash, 'invaders.elf')
 
+    def test_sh4_r2d(self):
+        """
+        :avocado: tags=arch:sh4
+        :avocado: tags=machine:r2d
+        """
+        tar_hash = 'fe06a4fd8ccbf2e27928d64472939d47829d4c7e'
+        self.vm.add_args('-append', 'console=ttySC1')
+        self.do_test_advcal_2018('09', tar_hash, 'zImage', console=1)
+
     def test_sparc_ss20(self):
         """
         :avocado: tags=arch:sparc
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH v2 8/8] .travis.yml: Test SH4 QEMU advent calendar image
  2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
                   ` (6 preceding siblings ...)
  2020-06-08  9:01 ` [PATCH v2 7/8] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
@ 2020-06-08  9:01 ` Philippe Mathieu-Daudé
  7 siblings, 0 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-08  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Philippe Mathieu-Daudé

From: Thomas Huth <thuth@redhat.com>

Now that we can select the second serial console in the acceptance tests
(see commit 746f244d9720 "Allow to use other serial consoles than default"),
we can also test the sh4 image from the QEMU advent calendar 2018.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200515164337.4899-1-thuth@redhat.com>
[PMD: Split tests/acceptance/boot_linux_console.py in previous commit]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 564be50a3c..e2003565d8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -293,7 +293,7 @@ jobs:
     - name: "GCC check-acceptance"
       dist: bionic
       env:
-        - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
+        - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sh4-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
         - TEST_CMD="make check-acceptance"
         - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance"
       after_script:
-- 
2.21.3



^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-08  9:01 ` [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan Philippe Mathieu-Daudé
@ 2020-06-08  9:48   ` Thomas Huth
  2020-06-09  8:41     ` Markus Armbruster
  2020-06-10 11:54   ` Aleksandar Markovic
  1 sibling, 1 reply; 23+ messages in thread
From: Thomas Huth @ 2020-06-08  9:48 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel, Magnus Damm
  Cc: Fam Zheng, Yoshinori Sato, qemu-trivial, Michael Tokarev,
	Richard Henderson, Laurent Vivier, Markus Armbruster,
	Alex Bennée, Aurelien Jarno, Philippe Mathieu-Daudé,
	Aleksandar Markovic

On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
> Last commit from Magnus Damm is fc8e320ef583, which date is
> Fri Nov 13 2009.  As nobody else seems to care about the patches
> posted [*] related to the R2D and Shix machines, mark them orphan.
> 
> Many thanks to Magnus for his substantial contributions to QEMU,
> and for introducing these SH4 based machine!
> 
> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
> 
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  MAINTAINERS | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 49d90c70de..a012d9b74e 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1250,14 +1250,15 @@ SH4 Machines
>  ------------
>  R2D
>  M: Magnus Damm <magnus.damm@gmail.com>
> -S: Maintained
> +S: Orphan
>  F: hw/sh4/r2d.c
>  F: hw/intc/sh_intc.c
>  F: hw/timer/sh_timer.c
> +F: include/hw/sh4/sh_intc.h
>  
>  Shix
>  M: Magnus Damm <magnus.damm@gmail.com>
> -S: Odd Fixes
> +S: Orphan
>  F: hw/sh4/shix.c

Having both, an "M:" entry and "S: Orphan" in a section sounds weird.
Magnus, are you still interested in these sections? If not, I think the
"M:" line should be removed...?

 Thomas



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef
  2020-06-08  9:01 ` [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
@ 2020-06-08 10:24   ` Thomas Huth
  0 siblings, 0 replies; 23+ messages in thread
From: Thomas Huth @ 2020-06-08 10:24 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Fam Zheng, Magnus Damm, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Richard Henderson, Laurent Vivier,
	Markus Armbruster, Alex Bennée, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic

On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
> Use the MemoryRegion type defined in "qemu/typedefs.h",
> to keep the repository style consistent.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Message-Id: <20200504081653.14841-2-f4bug@amsat.org>
> ---
>  include/hw/sh4/sh.h | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h
> index 767a2df7e2..fe773cb01d 100644
> --- a/include/hw/sh4/sh.h
> +++ b/include/hw/sh4/sh.h
> @@ -10,9 +10,8 @@
>  
>  /* sh7750.c */
>  struct SH7750State;
> -struct MemoryRegion;
>  
> -struct SH7750State *sh7750_init(SuperHCPU *cpu, struct MemoryRegion *sysmem);
> +struct SH7750State *sh7750_init(SuperHCPU *cpu, MemoryRegion *sysmem);
>  
>  typedef struct {
>      /* The callback will be triggered if any of the designated lines change */
> @@ -32,7 +31,7 @@ int sh7750_register_io_device(struct SH7750State *s,
>  #define TMU012_FEAT_TOCR   (1 << 0)
>  #define TMU012_FEAT_3CHAN  (1 << 1)
>  #define TMU012_FEAT_EXTCLK (1 << 2)
> -void tmu012_init(struct MemoryRegion *sysmem, hwaddr base,
> +void tmu012_init(MemoryRegion *sysmem, hwaddr base,
>                   int feat, uint32_t freq,
>  		 qemu_irq ch0_irq, qemu_irq ch1_irq,
>  		 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan
  2020-06-08  9:01 ` [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan Philippe Mathieu-Daudé
@ 2020-06-09  6:35   ` Aurelien Jarno
  0 siblings, 0 replies; 23+ messages in thread
From: Aurelien Jarno @ 2020-06-09  6:35 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, Magnus Damm, Yoshinori Sato,
	qemu-trivial, Markus Armbruster, Richard Henderson, qemu-devel,
	Laurent Vivier, Alex Bennée, Michael Tokarev,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic

On 2020-06-08 11:01, Philippe Mathieu-Daudé wrote:
> Aurelien Jarno expressed his desire to orphan the SH4 target [*]:
> 
>   I don't mind being [...] removed from there.
>   I do not really have time to work on that.
> 
> Mark the SH4 TCG target orphan.
> 
> Many thanks to Aurelien for his substantial contributions to QEMU,
> and for maintaining the SH4 TCG target for various years!
> 
> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
> 
> Message-Id: <20200601214125.GA1924990@aurel32.net>
> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  MAINTAINERS | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index a012d9b74e..cd65bce72b 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -296,8 +296,7 @@ F: tests/tcg/s390x/
>  L: qemu-s390x@nongnu.org
>  
>  SH4 TCG CPUs
> -M: Aurelien Jarno <aurelien@aurel32.net>
> -S: Odd Fixes
> +S: Orphan
>  F: target/sh4/
>  F: disas/sh4.c

Acked-by: Aurelien Jarno <aurelien@aurel32.net>

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-08  9:48   ` Thomas Huth
@ 2020-06-09  8:41     ` Markus Armbruster
  2020-06-09  8:59       ` Magnus Damm
  0 siblings, 1 reply; 23+ messages in thread
From: Markus Armbruster @ 2020-06-09  8:41 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Fam Zheng, Yoshinori Sato, qemu-trivial, Michael Tokarev,
	Philippe Mathieu-Daudé,
	Magnus Damm, Philippe Mathieu-Daudé,
	qemu-devel, Aleksandar Markovic, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Laurent Vivier

Thomas Huth <thuth@redhat.com> writes:

> On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
>> Last commit from Magnus Damm is fc8e320ef583, which date is
>> Fri Nov 13 2009.  As nobody else seems to care about the patches
>> posted [*] related to the R2D and Shix machines, mark them orphan.
>> 
>> Many thanks to Magnus for his substantial contributions to QEMU,
>> and for introducing these SH4 based machine!

s/machine/machines/

>> 
>> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
>> 
>> Cc: Magnus Damm <magnus.damm@gmail.com>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>  MAINTAINERS | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>> 
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 49d90c70de..a012d9b74e 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -1250,14 +1250,15 @@ SH4 Machines
>>  ------------
>>  R2D
>>  M: Magnus Damm <magnus.damm@gmail.com>
>> -S: Maintained
>> +S: Orphan
>>  F: hw/sh4/r2d.c
>>  F: hw/intc/sh_intc.c
>>  F: hw/timer/sh_timer.c
>> +F: include/hw/sh4/sh_intc.h
>>  
>>  Shix
>>  M: Magnus Damm <magnus.damm@gmail.com>
>> -S: Odd Fixes
>> +S: Orphan
>>  F: hw/sh4/shix.c
>
> Having both, an "M:" entry and "S: Orphan" in a section sounds weird.
> Magnus, are you still interested in these sections? If not, I think the
> "M:" line should be removed...?

Concur.  Of course, let's give Magnus a chance to chime in.



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-09  8:41     ` Markus Armbruster
@ 2020-06-09  8:59       ` Magnus Damm
  2020-06-09  9:12         ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 23+ messages in thread
From: Magnus Damm @ 2020-06-09  8:59 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Richard Henderson, Philippe Mathieu-Daudé,
	Michael Tokarev, Philippe Mathieu-Daudé,
	QEMU Developers, Aleksandar Markovic, Alex Bennée,
	Aurelien Jarno, Laurent Vivier

Hi Markus and Thomas,

On Tue, Jun 9, 2020 at 5:41 PM Markus Armbruster <armbru@redhat.com> wrote:
>
> Thomas Huth <thuth@redhat.com> writes:
>
> > On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
> >> Last commit from Magnus Damm is fc8e320ef583, which date is
> >> Fri Nov 13 2009.  As nobody else seems to care about the patches
> >> posted [*] related to the R2D and Shix machines, mark them orphan.
> >>
> >> Many thanks to Magnus for his substantial contributions to QEMU,
> >> and for introducing these SH4 based machine!
>
> s/machine/machines/
>
> >>
> >> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
> >>
> >> Cc: Magnus Damm <magnus.damm@gmail.com>
> >> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> >> ---
> >>  MAINTAINERS | 5 +++--
> >>  1 file changed, 3 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/MAINTAINERS b/MAINTAINERS
> >> index 49d90c70de..a012d9b74e 100644
> >> --- a/MAINTAINERS
> >> +++ b/MAINTAINERS
> >> @@ -1250,14 +1250,15 @@ SH4 Machines
> >>  ------------
> >>  R2D
> >>  M: Magnus Damm <magnus.damm@gmail.com>
> >> -S: Maintained
> >> +S: Orphan
> >>  F: hw/sh4/r2d.c
> >>  F: hw/intc/sh_intc.c
> >>  F: hw/timer/sh_timer.c
> >> +F: include/hw/sh4/sh_intc.h
> >>
> >>  Shix
> >>  M: Magnus Damm <magnus.damm@gmail.com>
> >> -S: Odd Fixes
> >> +S: Orphan
> >>  F: hw/sh4/shix.c
> >
> > Having both, an "M:" entry and "S: Orphan" in a section sounds weird.
> > Magnus, are you still interested in these sections? If not, I think the
> > "M:" line should be removed...?
>
> Concur.  Of course, let's give Magnus a chance to chime in.

Thanks guys! I'm interested but don't have so much time available to
commit to this I'm afraid. In particular I'm keen on trying to keep
R2D around since I happen to have a physical machine setup in my
remote access rack. SH4 with FPU used to have alright gcc + binutils
toolchain and glibc support once while other SuperH SoCs lacked some
portions. So keeping SH4 (sh775x) around would be nice IMO.

Cheers,

/ magnus


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-09  8:59       ` Magnus Damm
@ 2020-06-09  9:12         ` Philippe Mathieu-Daudé
  2020-06-10  9:56           ` Yoshinori Sato
  0 siblings, 1 reply; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-09  9:12 UTC (permalink / raw)
  To: Magnus Damm, Markus Armbruster
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Richard Henderson, Philippe Mathieu-Daudé,
	Michael Tokarev, QEMU Developers, Laurent Vivier,
	Aleksandar Markovic, Alex Bennée, Aurelien Jarno

Hi Magnus,

On 6/9/20 10:59 AM, Magnus Damm wrote:
> Hi Markus and Thomas,
> 
> On Tue, Jun 9, 2020 at 5:41 PM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Thomas Huth <thuth@redhat.com> writes:
>>
>>> On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
>>>> Last commit from Magnus Damm is fc8e320ef583, which date is
>>>> Fri Nov 13 2009.  As nobody else seems to care about the patches
>>>> posted [*] related to the R2D and Shix machines, mark them orphan.
>>>>
>>>> Many thanks to Magnus for his substantial contributions to QEMU,
>>>> and for introducing these SH4 based machine!
>>
>> s/machine/machines/
>>
>>>>
>>>> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
>>>>
>>>> Cc: Magnus Damm <magnus.damm@gmail.com>
>>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>>> ---
>>>>  MAINTAINERS | 5 +++--
>>>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/MAINTAINERS b/MAINTAINERS
>>>> index 49d90c70de..a012d9b74e 100644
>>>> --- a/MAINTAINERS
>>>> +++ b/MAINTAINERS
>>>> @@ -1250,14 +1250,15 @@ SH4 Machines
>>>>  ------------
>>>>  R2D
>>>>  M: Magnus Damm <magnus.damm@gmail.com>
>>>> -S: Maintained
>>>> +S: Orphan
>>>>  F: hw/sh4/r2d.c
>>>>  F: hw/intc/sh_intc.c
>>>>  F: hw/timer/sh_timer.c
>>>> +F: include/hw/sh4/sh_intc.h
>>>>
>>>>  Shix
>>>>  M: Magnus Damm <magnus.damm@gmail.com>
>>>> -S: Odd Fixes
>>>> +S: Orphan
>>>>  F: hw/sh4/shix.c
>>>
>>> Having both, an "M:" entry and "S: Orphan" in a section sounds weird.
>>> Magnus, are you still interested in these sections? If not, I think the
>>> "M:" line should be removed...?
>>
>> Concur.  Of course, let's give Magnus a chance to chime in.
> 
> Thanks guys! I'm interested but don't have so much time available to
> commit to this I'm afraid. In particular I'm keen on trying to keep
> R2D around since I happen to have a physical machine setup in my
> remote access rack. SH4 with FPU used to have alright gcc + binutils
> toolchain and glibc support once while other SuperH SoCs lacked some
> portions. So keeping SH4 (sh775x) around would be nice IMO.

Great news!

FYI Yoshinori Sato did a great job on updating the Renesas
hardware, see:
https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08584.html

He might be able to help with the UART/TIMER peripherals used by the
R2D, see a suggestion to add a 'Renesas hardware' entry:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg708478.html

If Yoshinori accept the suggestion to add a Renesas hardware entry, do
you agree to be listed as there too? Maybe with a 'R:' tag for
designated reviewer instead of maintainer.

So I'll respin this series with these changes:

R2D: S: 'Maintained' -> 'Odd Fixes'

So contributors don't wait for you to take the patches, and they can go
via qemu-trivial.

And Shix -> No maintainer, S: 'Obsolete'.

The TCG backend stay orphan.

Regards,

Phil.

> 
> Cheers,
> 
> / magnus
> 


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-09  9:12         ` Philippe Mathieu-Daudé
@ 2020-06-10  9:56           ` Yoshinori Sato
  0 siblings, 0 replies; 23+ messages in thread
From: Yoshinori Sato @ 2020-06-10  9:56 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, qemu-trivial, Magnus Damm,
	Richard Henderson, Markus Armbruster, QEMU Developers,
	Alex Bennée, Michael Tokarev, Aurelien Jarno,
	Philippe Mathieu-Daudé,
	Aleksandar Markovic, Laurent Vivier

On Tue, 09 Jun 2020 18:12:42 +0900,
Philippe Mathieu-Daudé wrote:
> 
> Hi Magnus,
> 
> On 6/9/20 10:59 AM, Magnus Damm wrote:
> > Hi Markus and Thomas,
> > 
> > On Tue, Jun 9, 2020 at 5:41 PM Markus Armbruster <armbru@redhat.com> wrote:
> >>
> >> Thomas Huth <thuth@redhat.com> writes:
> >>
> >>> On 08/06/2020 11.01, Philippe Mathieu-Daudé wrote:
> >>>> Last commit from Magnus Damm is fc8e320ef583, which date is
> >>>> Fri Nov 13 2009.  As nobody else seems to care about the patches
> >>>> posted [*] related to the R2D and Shix machines, mark them orphan.
> >>>>
> >>>> Many thanks to Magnus for his substantial contributions to QEMU,
> >>>> and for introducing these SH4 based machine!
> >>
> >> s/machine/machines/
> >>
> >>>>
> >>>> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
> >>>>
> >>>> Cc: Magnus Damm <magnus.damm@gmail.com>
> >>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> >>>> ---
> >>>>  MAINTAINERS | 5 +++--
> >>>>  1 file changed, 3 insertions(+), 2 deletions(-)
> >>>>
> >>>> diff --git a/MAINTAINERS b/MAINTAINERS
> >>>> index 49d90c70de..a012d9b74e 100644
> >>>> --- a/MAINTAINERS
> >>>> +++ b/MAINTAINERS
> >>>> @@ -1250,14 +1250,15 @@ SH4 Machines
> >>>>  ------------
> >>>>  R2D
> >>>>  M: Magnus Damm <magnus.damm@gmail.com>
> >>>> -S: Maintained
> >>>> +S: Orphan
> >>>>  F: hw/sh4/r2d.c
> >>>>  F: hw/intc/sh_intc.c
> >>>>  F: hw/timer/sh_timer.c
> >>>> +F: include/hw/sh4/sh_intc.h
> >>>>
> >>>>  Shix
> >>>>  M: Magnus Damm <magnus.damm@gmail.com>
> >>>> -S: Odd Fixes
> >>>> +S: Orphan
> >>>>  F: hw/sh4/shix.c
> >>>
> >>> Having both, an "M:" entry and "S: Orphan" in a section sounds weird.
> >>> Magnus, are you still interested in these sections? If not, I think the
> >>> "M:" line should be removed...?
> >>
> >> Concur.  Of course, let's give Magnus a chance to chime in.
> > 
> > Thanks guys! I'm interested but don't have so much time available to
> > commit to this I'm afraid. In particular I'm keen on trying to keep
> > R2D around since I happen to have a physical machine setup in my
> > remote access rack. SH4 with FPU used to have alright gcc + binutils
> > toolchain and glibc support once while other SuperH SoCs lacked some
> > portions. So keeping SH4 (sh775x) around would be nice IMO.
> 
> Great news!
> 
> FYI Yoshinori Sato did a great job on updating the Renesas
> hardware, see:
> https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08584.html
> 
> He might be able to help with the UART/TIMER peripherals used by the
> R2D, see a suggestion to add a 'Renesas hardware' entry:
> https://www.mail-archive.com/qemu-devel@nongnu.org/msg708478.html
> 
> If Yoshinori accept the suggestion to add a Renesas hardware entry, do
> you agree to be listed as there too? Maybe with a 'R:' tag for
> designated reviewer instead of maintainer.
> 
> So I'll respin this series with these changes:
> 
> R2D: S: 'Maintained' -> 'Odd Fixes'
> 
> So contributors don't wait for you to take the patches, and they can go
> via qemu-trivial.
> 
> And Shix -> No maintainer, S: 'Obsolete'.
> 
> The TCG backend stay orphan.
> 
> Regards,
> 
> Phil.
> 
> > 
> > Cheers,
> > 
> > / magnus
> > 
> 

OK.
I also need sh4, so I will perform maintenance.

-- 
Yosinori Sato


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-08  9:01 ` [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan Philippe Mathieu-Daudé
@ 2020-06-10 11:08   ` Aleksandar Markovic
  2020-06-10 11:16     ` Thomas Huth
                       ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Aleksandar Markovic @ 2020-06-10 11:08 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Philippe Mathieu-Daudé,
	Magnus Damm, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
написао/ла:
>
> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
>
>   I don't mind being [...] removed from there.
>   I do not really have time to work on that.
>
> Mark the SH4 emulated hardware orphan.
>
> Many thanks to Aurelien for his substantial contributions to QEMU,
> and for maintaining the SH4 hardware for various years!
>
> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
>
> Message-Id: <20200601214125.GA1924990@aurel32.net>
> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---

The basic idea of the patch (as read from the title and the commit
message) is good and positive.

The problem is that the patch does something different than the commit
message says - pretending that it just orphans something. Which is not
good. Actually, very clumsy and bad.

It creates a whole new subsection in MAINTAINERS file (not said in the
commit message), without any consistency with the current organization
in the file. That new subsection looks completely misplaced, living
with "TCG CPUs" neighbours. On top of that, it creates a new
precedent, leaving many unanswered questions, like: Should other
targets follow the same pattern?

I personally think that creating a new subsection is just a code
churn, waste of everybody's time on unimportant things.

Wouldn't it be simpler that you just changed statuses of all Aurelien
sh4 sections to "Orphaned", as he already said he approves, and leave
sh4 sections reorganization to a future maintainer?

If you really want to reorganize sh4 sections, these changes should be
in a separate patch. "Orphaning" patch should contain only changes of
statuses.

Regards,
Aleksandar

>  MAINTAINERS | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 6e7890ce82..49d90c70de 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -299,9 +299,7 @@ SH4 TCG CPUs
>  M: Aurelien Jarno <aurelien@aurel32.net>
>  S: Odd Fixes
>  F: target/sh4/
> -F: hw/sh4/
>  F: disas/sh4.c
> -F: include/hw/sh4/
>
>  SPARC TCG CPUs
>  M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> @@ -1948,6 +1946,14 @@ F: hw/*/*xive*
>  F: include/hw/*/*xive*
>  F: docs/*/*xive*
>
> +SH4 Hardware
> +S: Orphan
> +F: hw/sh4/
> +F: hw/char/sh_serial.c
> +F: hw/intc/sh_intc.c
> +F: hw/timer/sh_timer.c
> +F: include/hw/sh4/
> +
>  Subsystems
>  ----------
>  Audio
> --
> 2.21.3
>
>


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-10 11:08   ` Aleksandar Markovic
@ 2020-06-10 11:16     ` Thomas Huth
  2020-06-10 11:26       ` Aleksandar Markovic
  2020-06-10 12:06     ` Philippe Mathieu-Daudé
  2020-06-10 20:56     ` Philippe Mathieu-Daudé
  2 siblings, 1 reply; 23+ messages in thread
From: Thomas Huth @ 2020-06-10 11:16 UTC (permalink / raw)
  To: Aleksandar Markovic, Philippe Mathieu-Daudé
  Cc: Fam Zheng, Yoshinori Sato, qemu-trivial, Magnus Damm,
	Philippe Mathieu-Daudé,
	Michael Tokarev, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

On 10/06/2020 13.08, Aleksandar Markovic wrote:
> пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
> написао/ла:
>>
>> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
>>
>>   I don't mind being [...] removed from there.
>>   I do not really have time to work on that.
>>
>> Mark the SH4 emulated hardware orphan.
>>
>> Many thanks to Aurelien for his substantial contributions to QEMU,
>> and for maintaining the SH4 hardware for various years!
>>
>> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
>>
>> Message-Id: <20200601214125.GA1924990@aurel32.net>
>> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
> 
> The basic idea of the patch (as read from the title and the commit
> message) is good and positive.
> 
> The problem is that the patch does something different than the commit
> message says - pretending that it just orphans something. Which is not
> good. Actually, very clumsy and bad.

Aleksandar, could you please stop being so negative? If you've got
issues with a patch, that's fair, but you can then also simply express
your opinion in a professional and constructive way. Calling the work of
someone else "clumsy" is really not something that I want to read on the
qemu-devel mailing list.

 Thanks,
  Thomas



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-10 11:16     ` Thomas Huth
@ 2020-06-10 11:26       ` Aleksandar Markovic
  0 siblings, 0 replies; 23+ messages in thread
From: Aleksandar Markovic @ 2020-06-10 11:26 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Fam Zheng, Yoshinori Sato, qemu-trivial, Michael Tokarev,
	Philippe Mathieu-Daudé,
	Magnus Damm, Philippe Mathieu-Daudé,
	QEMU Developers, Aleksandar Markovic, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Laurent Vivier

сре, 10. јун 2020. у 13:17 Thomas Huth <thuth@redhat.com> је написао/ла:
>
> On 10/06/2020 13.08, Aleksandar Markovic wrote:
> > пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
> > написао/ла:
> >>
> >> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
> >>
> >>   I don't mind being [...] removed from there.
> >>   I do not really have time to work on that.
> >>
> >> Mark the SH4 emulated hardware orphan.
> >>
> >> Many thanks to Aurelien for his substantial contributions to QEMU,
> >> and for maintaining the SH4 hardware for various years!
> >>
> >> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
> >>
> >> Message-Id: <20200601214125.GA1924990@aurel32.net>
> >> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
> >> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> >> ---
> >
> > The basic idea of the patch (as read from the title and the commit
> > message) is good and positive.
> >
> > The problem is that the patch does something different than the commit
> > message says - pretending that it just orphans something. Which is not
> > good. Actually, very clumsy and bad.
>
> Aleksandar, could you please stop being so negative? If you've got
> issues with a patch, that's fair, but you can then also simply express
> your opinion in a professional and constructive way. Calling the work of
> someone else "clumsy" is really not something that I want to read on the
> qemu-devel mailing list.
>

Ok, than delete mentally that word, and focus on the substance.

>  Thanks,
>   Thomas
>


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan
  2020-06-08  9:01 ` [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan Philippe Mathieu-Daudé
  2020-06-08  9:48   ` Thomas Huth
@ 2020-06-10 11:54   ` Aleksandar Markovic
  1 sibling, 0 replies; 23+ messages in thread
From: Aleksandar Markovic @ 2020-06-10 11:54 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Philippe Mathieu-Daudé,
	Magnus Damm, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

пон, 8. јун 2020. у 11:03 Philippe Mathieu-Daudé <f4bug@amsat.org> је
написао/ла:
>
> Last commit from Magnus Damm is fc8e320ef583, which date is
> Fri Nov 13 2009.  As nobody else seems to care about the patches
> posted [*] related to the R2D and Shix machines, mark them orphan.
>
> Many thanks to Magnus for his substantial contributions to QEMU,
> and for introducing these SH4 based machine!
>
> [*] https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08519.html
>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---

I think, regarding both patches 1 and 2 of this series, we just got
overly complicated.

I suggest simple replacement of Aurelien's and Magnus' name with
Yoshimori's, with possible exception of addition of the line:

+F: include/hw/sh4/sh_intc.h

And that's it!

And let's finish this unpleasant episode!

Regards,
Aleksandar

P.S. I now expect that Thomas will complain about my usage of the
words "unpleasant" and "overly".

>  MAINTAINERS | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 49d90c70de..a012d9b74e 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1250,14 +1250,15 @@ SH4 Machines
>  ------------
>  R2D
>  M: Magnus Damm <magnus.damm@gmail.com>
> -S: Maintained
> +S: Orphan
>  F: hw/sh4/r2d.c
>  F: hw/intc/sh_intc.c
>  F: hw/timer/sh_timer.c
> +F: include/hw/sh4/sh_intc.h
>
>  Shix
>  M: Magnus Damm <magnus.damm@gmail.com>
> -S: Odd Fixes
> +S: Orphan
>  F: hw/sh4/shix.c
>
>  SPARC Machines
> --
> 2.21.3
>
>


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-10 11:08   ` Aleksandar Markovic
  2020-06-10 11:16     ` Thomas Huth
@ 2020-06-10 12:06     ` Philippe Mathieu-Daudé
  2020-06-10 12:22       ` Aleksandar Markovic
  2020-06-10 20:56     ` Philippe Mathieu-Daudé
  2 siblings, 1 reply; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 12:06 UTC (permalink / raw)
  To: Aleksandar Markovic
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Philippe Mathieu-Daudé,
	Magnus Damm, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

On 6/10/20 1:08 PM, Aleksandar Markovic wrote:
> пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
> написао/ла:
>>
>> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
>>
>>   I don't mind being [...] removed from there.
>>   I do not really have time to work on that.
>>
>> Mark the SH4 emulated hardware orphan.
>>
>> Many thanks to Aurelien for his substantial contributions to QEMU,
>> and for maintaining the SH4 hardware for various years!
>>
>> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
>>
>> Message-Id: <20200601214125.GA1924990@aurel32.net>
>> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
> 
> The basic idea of the patch (as read from the title and the commit
> message) is good and positive.
> 
> The problem is that the patch does something different than the commit
> message says - pretending that it just orphans something. Which is not
> good. Actually, very clumsy and bad.

I can improve my English (actually I am trying, I started to take
lessons 2 years ago). Remember it is not easy for non native English
speaker to elaborate non-technical topics.
As a side note, it is also hard sometimes to understand contributors who
uses a very advanced English level with fancy words, as we have to take
the time to translate to understand. Even if we learn new word, this is
not often the best use of our time.

> It creates a whole new subsection in MAINTAINERS file (not said in the
> commit message), without any consistency with the current organization
> in the file. That new subsection looks completely misplaced, living
> with "TCG CPUs" neighbours. On top of that, it creates a new
> precedent, leaving many unanswered questions, like: Should other
> targets follow the same pattern?

If you look at git-log history, you'll see at the beginning there
were not much separations in directories. Everything was altogether.
Adding a new machine meant add the TCG emulation code and the hardware.
The contributor adding TCG emulation was doing the harder work,
usually doing it for a particular machine (hardware). Then other
contributors could add other machines, and were maintaining only
their machines. See commit b6f97c14f59 importing the short
MAINTAINERS from SVN. It was already split in 3 broad categories:
- TCG cores
- Machines / Hardware
- Subsystems (the rest)

In October 2010 (fd5d5c566af0) Anthony Liguori rewrote MAINTAINERS
using Linux style tags.

In January 2011 (42f5a7e9367) Aurelien Jarno clarified the
difference between the TCG host part (backend, under the tcg/
directory) VS the target part (frontend, under target/).

Then the project grew, and eventually in May 2012 Paolo Bonzini
started to clean, by moving files into "subsystem" directories
(see 5e8861a0361..c353f261946). In March 2013 he followed by
splitting various hardware files from the hw/ directory
(see 0d09e41a51a..47b43a1f414).

In November 2013 (f05b328c9d8) Stefan Hajnoczi clarified the
importance of the 'block' subsystem (later completed in
commit e7c6e631b1 in April 2015).

2015 still, Paolo keeps cleaning (c17652ee409 cover the
TCG backend disassembler, 062710000db introduce Peter
Maydell for the ARM hardware).

In October 2018 Thomas Huth added the target/ folder
(commit fcf5ef2ab).

Recently last year (6347e1f1cc7) Markus Armbruster tried
to better describe the TCG frontend ("Overall TCG CPUs")
and backend ("TCG target") differences.


So while the difference between TCG emulation (or other
accelerators, KVM, ...) versus the hardware emulation is
not perfect, there is a separation (and the community
failed at clarifying it).

You can see when you were introduced as maintainer for the
MIPS target (commit c92023bfd) you were also added as
maintainer of the MIPSSIM and Fuloong 2E machines.

In commit 485cd9820 you volunteered to maintain the Malta
machine, so I believe you have a good understanding about
the difference between target code and hardware code.

> 
> I personally think that creating a new subsection is just a code
> churn, waste of everybody's time on unimportant things.

Eh... I read that after spending 1h writing the previous
paragraph. Yes, you are right.

> 
> Wouldn't it be simpler that you just changed statuses of all Aurelien
> sh4 sections to "Orphaned", as he already said he approves, and leave
> sh4 sections reorganization to a future maintainer?
> 
> If you really want to reorganize sh4 sections, these changes should be
> in a separate patch. "Orphaning" patch should contain only changes of
> statuses.

Good idea! Maybe if you send a patch to show me how to do it, it
will be easier to understand what you mean.

Thanks for also caring about the SH4 hardware, the code was
prone to bitrot and needed maintainer to look after it.

Regards,

Phil.

> 
> Regards,
> Aleksandar
> 
>>  MAINTAINERS | 10 ++++++++--
>>  1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 6e7890ce82..49d90c70de 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -299,9 +299,7 @@ SH4 TCG CPUs
>>  M: Aurelien Jarno <aurelien@aurel32.net>
>>  S: Odd Fixes
>>  F: target/sh4/
>> -F: hw/sh4/
>>  F: disas/sh4.c
>> -F: include/hw/sh4/
>>
>>  SPARC TCG CPUs
>>  M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>> @@ -1948,6 +1946,14 @@ F: hw/*/*xive*
>>  F: include/hw/*/*xive*
>>  F: docs/*/*xive*
>>
>> +SH4 Hardware
>> +S: Orphan
>> +F: hw/sh4/
>> +F: hw/char/sh_serial.c
>> +F: hw/intc/sh_intc.c
>> +F: hw/timer/sh_timer.c
>> +F: include/hw/sh4/
>> +
>>  Subsystems
>>  ----------
>>  Audio
>> --
>> 2.21.3
>>
>>
> 


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-10 12:06     ` Philippe Mathieu-Daudé
@ 2020-06-10 12:22       ` Aleksandar Markovic
  0 siblings, 0 replies; 23+ messages in thread
From: Aleksandar Markovic @ 2020-06-10 12:22 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Philippe Mathieu-Daudé,
	Magnus Damm, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

сре, 10. јун 2020. у 14:06 Philippe Mathieu-Daudé <f4bug@amsat.org> је
написао/ла:
>
> On 6/10/20 1:08 PM, Aleksandar Markovic wrote:
> > пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
> > написао/ла:
> >>
> >> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
> >>
> >>   I don't mind being [...] removed from there.
> >>   I do not really have time to work on that.
> >>
> >> Mark the SH4 emulated hardware orphan.
> >>
> >> Many thanks to Aurelien for his substantial contributions to QEMU,
> >> and for maintaining the SH4 hardware for various years!
> >>
> >> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
> >>
> >> Message-Id: <20200601214125.GA1924990@aurel32.net>
> >> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
> >> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> >> ---
> >
> > The basic idea of the patch (as read from the title and the commit
> > message) is good and positive.
> >
> > The problem is that the patch does something different than the commit
> > message says - pretending that it just orphans something. Which is not
> > good. Actually, very clumsy and bad.
>
> I can improve my English (actually I am trying, I started to take
> lessons 2 years ago). Remember it is not easy for non native English
> speaker to elaborate non-technical topics.
> As a side note, it is also hard sometimes to understand contributors who
> uses a very advanced English level with fancy words, as we have to take
> the time to translate to understand. Even if we learn new word, this is
> not often the best use of our time.
>
> > It creates a whole new subsection in MAINTAINERS file (not said in the
> > commit message), without any consistency with the current organization
> > in the file. That new subsection looks completely misplaced, living
> > with "TCG CPUs" neighbours. On top of that, it creates a new
> > precedent, leaving many unanswered questions, like: Should other
> > targets follow the same pattern?
>
> If you look at git-log history, you'll see at the beginning there
> were not much separations in directories. Everything was altogether.
> Adding a new machine meant add the TCG emulation code and the hardware.
> The contributor adding TCG emulation was doing the harder work,
> usually doing it for a particular machine (hardware). Then other
> contributors could add other machines, and were maintaining only
> their machines. See commit b6f97c14f59 importing the short
> MAINTAINERS from SVN. It was already split in 3 broad categories:
> - TCG cores
> - Machines / Hardware
> - Subsystems (the rest)
>
> In October 2010 (fd5d5c566af0) Anthony Liguori rewrote MAINTAINERS
> using Linux style tags.
>
> In January 2011 (42f5a7e9367) Aurelien Jarno clarified the
> difference between the TCG host part (backend, under the tcg/
> directory) VS the target part (frontend, under target/).
>
> Then the project grew, and eventually in May 2012 Paolo Bonzini
> started to clean, by moving files into "subsystem" directories
> (see 5e8861a0361..c353f261946). In March 2013 he followed by
> splitting various hardware files from the hw/ directory
> (see 0d09e41a51a..47b43a1f414).
>
> In November 2013 (f05b328c9d8) Stefan Hajnoczi clarified the
> importance of the 'block' subsystem (later completed in
> commit e7c6e631b1 in April 2015).
>
> 2015 still, Paolo keeps cleaning (c17652ee409 cover the
> TCG backend disassembler, 062710000db introduce Peter
> Maydell for the ARM hardware).
>
> In October 2018 Thomas Huth added the target/ folder
> (commit fcf5ef2ab).
>
> Recently last year (6347e1f1cc7) Markus Armbruster tried
> to better describe the TCG frontend ("Overall TCG CPUs")
> and backend ("TCG target") differences.
>
>
> So while the difference between TCG emulation (or other
> accelerators, KVM, ...) versus the hardware emulation is
> not perfect, there is a separation (and the community
> failed at clarifying it).
>
> You can see when you were introduced as maintainer for the
> MIPS target (commit c92023bfd) you were also added as
> maintainer of the MIPSSIM and Fuloong 2E machines.
>
> In commit 485cd9820 you volunteered to maintain the Malta
> machine, so I believe you have a good understanding about
> the difference between target code and hardware code.
>
> >
> > I personally think that creating a new subsection is just a code
> > churn, waste of everybody's time on unimportant things.
>
> Eh... I read that after spending 1h writing the previous
> paragraph. Yes, you are right.
>
> >
> > Wouldn't it be simpler that you just changed statuses of all Aurelien
> > sh4 sections to "Orphaned", as he already said he approves, and leave
> > sh4 sections reorganization to a future maintainer?
> >
> > If you really want to reorganize sh4 sections, these changes should be
> > in a separate patch. "Orphaning" patch should contain only changes of
> > statuses.
>
> Good idea! Maybe if you send a patch to show me how to do it, it
> will be easier to understand what you mean.
>
> Thanks for also caring about the SH4 hardware, the code was
> prone to bitrot and needed maintainer to look after it.
>

Thank you very much for the analysis above, Philippe.

I think the whole thing is blown out of proportions, possibly to a
great degree by my fault.

Again, I think it is this simple: Yoshimori has the best conditions
among us for maintaining rx and sh4, he needs it, he wants it - and we
just give it to him.

Nothing more and nothing less.

Regards,
Aleksandar

> Regards,
>
> Phil.
>
> >
> > Regards,
> > Aleksandar
> >
> >>  MAINTAINERS | 10 ++++++++--
> >>  1 file changed, 8 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/MAINTAINERS b/MAINTAINERS
> >> index 6e7890ce82..49d90c70de 100644
> >> --- a/MAINTAINERS
> >> +++ b/MAINTAINERS
> >> @@ -299,9 +299,7 @@ SH4 TCG CPUs
> >>  M: Aurelien Jarno <aurelien@aurel32.net>
> >>  S: Odd Fixes
> >>  F: target/sh4/
> >> -F: hw/sh4/
> >>  F: disas/sh4.c
> >> -F: include/hw/sh4/
> >>
> >>  SPARC TCG CPUs
> >>  M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> >> @@ -1948,6 +1946,14 @@ F: hw/*/*xive*
> >>  F: include/hw/*/*xive*
> >>  F: docs/*/*xive*
> >>
> >> +SH4 Hardware
> >> +S: Orphan
> >> +F: hw/sh4/
> >> +F: hw/char/sh_serial.c
> >> +F: hw/intc/sh_intc.c
> >> +F: hw/timer/sh_timer.c
> >> +F: include/hw/sh4/
> >> +
> >>  Subsystems
> >>  ----------
> >>  Audio
> >> --
> >> 2.21.3
> >>
> >>
> >


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan
  2020-06-10 11:08   ` Aleksandar Markovic
  2020-06-10 11:16     ` Thomas Huth
  2020-06-10 12:06     ` Philippe Mathieu-Daudé
@ 2020-06-10 20:56     ` Philippe Mathieu-Daudé
  2 siblings, 0 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-10 20:56 UTC (permalink / raw)
  To: Aleksandar Markovic
  Cc: Fam Zheng, Thomas Huth, Yoshinori Sato, qemu-trivial,
	Michael Tokarev, Philippe Mathieu-Daudé,
	Magnus Damm, QEMU Developers, Laurent Vivier, Aurelien Jarno,
	Richard Henderson, Alex Bennée, Markus Armbruster,
	Aleksandar Markovic

On 6/10/20 1:08 PM, Aleksandar Markovic wrote:
> пон, 8. јун 2020. у 11:05 Philippe Mathieu-Daudé <f4bug@amsat.org> је
> написао/ла:
>>
>> Aurelien Jarno expressed his desire to orphan the SH4 hardware [*]:
>>
>>   I don't mind being [...] removed from there.
>>   I do not really have time to work on that.
>>
>> Mark the SH4 emulated hardware orphan.
>>
>> Many thanks to Aurelien for his substantial contributions to QEMU,
>> and for maintaining the SH4 hardware for various years!
>>
>> [*] https://www.mail-archive.com/qemu-devel@nongnu.org/msg708400.html
>>
>> Message-Id: <20200601214125.GA1924990@aurel32.net>
>> Acked-by: Aurelien Jarno <aurelien@aurel32.net>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
> 
> The basic idea of the patch (as read from the title and the commit
> message) is good and positive.
> 
> The problem is that the patch does something different than the commit
> message says - pretending that it just orphans something. Which is not
> good. Actually, very clumsy and bad.
> 
> It creates a whole new subsection in MAINTAINERS file (not said in the
> commit message), without any consistency with the current organization
> in the file. That new subsection looks completely misplaced, living
> with "TCG CPUs" neighbours.

I guess you misread the patch context, pasting it again:

-->8--
diff --git a/MAINTAINERS b/MAINTAINERS
index 6e7890ce82..49d90c70de 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -299,9 +299,7 @@ SH4 TCG CPUs
 M: Aurelien Jarno <aurelien@aurel32.net>
 S: Odd Fixes
 F: target/sh4/
-F: hw/sh4/
 F: disas/sh4.c
-F: include/hw/sh4/

 SPARC TCG CPUs
 M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
@@ -1948,6 +1946,14 @@ F: hw/*/*xive*
 F: include/hw/*/*xive*
 F: docs/*/*xive*

+SH4 Hardware
+S: Orphan
+F: hw/sh4/
+F: hw/char/sh_serial.c
+F: hw/intc/sh_intc.c
+F: hw/timer/sh_timer.c
+F: include/hw/sh4/
+
 Subsystems
 ----------
 Audio
---

Pasting with more context and lines numbered:

 283 RENESAS RX CPUs
 284 M: Yoshinori Sato <ysato@users.sourceforge.jp>
 285 S: Maintained
 286 F: target/rx/
 287
 288 S390 TCG CPUs
 289 M: Richard Henderson <rth@twiddle.net>
 290 M: David Hildenbrand <david@redhat.com>
 291 S: Maintained
 292 F: target/s390x/
 293 F: hw/s390x/
 294 F: disas/s390.c
 295 F: tests/tcg/s390x/
 296 L: qemu-s390x@nongnu.org
 297
 298 SH4 TCG CPUs
 299 M: Aurelien Jarno <aurelien@aurel32.net>
 300 S: Odd Fixes
 301 F: target/sh4/
 302 F: disas/sh4.c

^ This part is the TCG frontend.

 303
 304 SPARC TCG CPUs
 305 M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
 306 M: Artyom Tarasenko <atar4qemu@gmail.com>
 307 S: Maintained
 308 F: target/sparc/
 309 F: hw/sparc/
 310 F: hw/sparc64/
 311 F: include/hw/sparc/sparc64.h
 312 F: disas/sparc.c
 313
 314 UniCore32 TCG CPUs
 315 M: Guan Xuetao <gxt@mprc.pku.edu.cn>
 316 S: Maintained
 317 F: target/unicore32/
 318 F: hw/unicore32/
 319 F: include/hw/unicore32/
 ...

1240 RISC-V Machines
1241 ---------------
1242 OpenTitan
1243 M: Alistair Francis <Alistair.Francis@wdc.com>
1244 L: qemu-riscv@nongnu.org
1245 S: Supported
1246 F: hw/riscv/opentitan.c
1247 F: include/hw/riscv/opentitan.h
1248
1249 SH4 Machines
1250 ------------
1251 R2D
1252 M: Magnus Damm <magnus.damm@gmail.com>
1253 S: Maintained
1254 F: hw/sh4/r2d.c
1255 F: hw/intc/sh_intc.c
1256 F: hw/timer/sh_timer.c

^ a SH4-based machine

1257
1258 Shix
1259 M: Magnus Damm <magnus.damm@gmail.com>
1260 S: Odd Fixes
1261 F: hw/sh4/shix.c
1262
1263 SPARC Machines
1264 --------------
1265 Sun4m
1266 M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
1267 S: Maintained
1268 F: hw/sparc/sun4m.c
1269 F: hw/sparc/sun4m_iommu.c
....

1455 Devices
1456 -------
1457 EDU
1458 M: Jiri Slaby <jslaby@suse.cz>
1459 S: Maintained
1460 F: hw/misc/edu.c
1461
1462 IDE
1463 M: John Snow <jsnow@redhat.com>
1464 L: qemu-block@nongnu.org
1465 S: Supported
1466 F: include/hw/ide.h
1467 F: include/hw/ide/
1468 F: hw/ide/
....

1919 PIIX4 South Bridge (i82371AB)
1920 M: Hervé Poussineau <hpoussin@reactos.org>
1921 M: Philippe Mathieu-Daudé <f4bug@amsat.org>
1922 S: Maintained
1923 F: hw/isa/piix4.c
1924 F: include/hw/southbridge/piix.h
1925
1926 Firmware configuration (fw_cfg)
1927 M: Philippe Mathieu-Daudé <philmd@redhat.com>
1928 R: Laszlo Ersek <lersek@redhat.com>
1929 R: Gerd Hoffmann <kraxel@redhat.com>
1930 S: Supported
1931 F: docs/specs/fw_cfg.txt
1932 F: hw/nvram/fw_cfg.c
1933 F: stubs/fw_cfg.c
1934 F: include/hw/nvram/fw_cfg.h
1935 F: include/standard-headers/linux/qemu_fw_cfg.h
1936 F: tests/qtest/libqos/fw_cfg.c
1937 F: tests/qtest/fw_cfg-test.c
1938 T: git https://github.com/philmd/qemu.git fw_cfg-next
1939
1940 XIVE
1941 M: David Gibson <david@gibson.dropbear.id.au>
1942 M: Cédric Le Goater <clg@kaod.org>
1943 L: qemu-ppc@nongnu.org
1944 S: Supported
1945 F: hw/*/*xive*
1946 F: include/hw/*/*xive*
1947 F: docs/*/*xive*
1948
1949 SH4 Hardware
1950 S: Orphan
1951 F: hw/sh4/
1952 F: hw/char/sh_serial.c
1953 F: hw/intc/sh_intc.c
1954 F: hw/timer/sh_timer.c
1955 F: include/hw/sh4/

^ The section is placed under the "Devices" category.

1956
1957 Subsystems
1958 ----------
1959 Audio
1960 M: Gerd Hoffmann <kraxel@redhat.com>
1961 S: Maintained
1962 F: audio/
....

Where do you think this entry should be placed?

> On top of that, it creates a new
> precedent, leaving many unanswered questions, like: Should other
> targets follow the same pattern?
> 
> I personally think that creating a new subsection is just a code
> churn, waste of everybody's time on unimportant things.
> 
> Wouldn't it be simpler that you just changed statuses of all Aurelien
> sh4 sections to "Orphaned", as he already said he approves, and leave
> sh4 sections reorganization to a future maintainer?
> 
> If you really want to reorganize sh4 sections, these changes should be
> in a separate patch. "Orphaning" patch should contain only changes of
> statuses.
> 
> Regards,
> Aleksandar
> 
>>  MAINTAINERS | 10 ++++++++--
>>  1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 6e7890ce82..49d90c70de 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -299,9 +299,7 @@ SH4 TCG CPUs
>>  M: Aurelien Jarno <aurelien@aurel32.net>
>>  S: Odd Fixes
>>  F: target/sh4/
>> -F: hw/sh4/
>>  F: disas/sh4.c
>> -F: include/hw/sh4/
>>
>>  SPARC TCG CPUs
>>  M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>> @@ -1948,6 +1946,14 @@ F: hw/*/*xive*
>>  F: include/hw/*/*xive*
>>  F: docs/*/*xive*
>>
>> +SH4 Hardware
>> +S: Orphan
>> +F: hw/sh4/
>> +F: hw/char/sh_serial.c
>> +F: hw/intc/sh_intc.c
>> +F: hw/timer/sh_timer.c
>> +F: include/hw/sh4/
>> +
>>  Subsystems
>>  ----------
>>  Audio
>> --
>> 2.21.3
>>
>>
> 


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2020-06-10 20:57 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08  9:01 [PATCH v2 0/8] sh4: Mark it orphan in MAINTAINERS & trivial fixes Philippe Mathieu-Daudé
2020-06-08  9:01 ` [PATCH v2 1/8] MAINTAINERS: Mark SH4 hardware orphan Philippe Mathieu-Daudé
2020-06-10 11:08   ` Aleksandar Markovic
2020-06-10 11:16     ` Thomas Huth
2020-06-10 11:26       ` Aleksandar Markovic
2020-06-10 12:06     ` Philippe Mathieu-Daudé
2020-06-10 12:22       ` Aleksandar Markovic
2020-06-10 20:56     ` Philippe Mathieu-Daudé
2020-06-08  9:01 ` [PATCH v2 2/8] MAINTAINERS: Mark SH4 based R2D & Shix machines orphan Philippe Mathieu-Daudé
2020-06-08  9:48   ` Thomas Huth
2020-06-09  8:41     ` Markus Armbruster
2020-06-09  8:59       ` Magnus Damm
2020-06-09  9:12         ` Philippe Mathieu-Daudé
2020-06-10  9:56           ` Yoshinori Sato
2020-06-10 11:54   ` Aleksandar Markovic
2020-06-08  9:01 ` [PATCH v2 3/8] MAINTAINERS: Mark SH4 TCG target orphan Philippe Mathieu-Daudé
2020-06-09  6:35   ` Aurelien Jarno
2020-06-08  9:01 ` [PATCH v2 4/8] hw/sh4: Use MemoryRegion typedef Philippe Mathieu-Daudé
2020-06-08 10:24   ` Thomas Huth
2020-06-08  9:01 ` [PATCH v2 5/8] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' Philippe Mathieu-Daudé
2020-06-08  9:01 ` [PATCH v2 6/8] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include Philippe Mathieu-Daudé
2020-06-08  9:01 ` [PATCH v2 7/8] tests/acceptance: Add boot tests for sh4 QEMU advent calendar image Philippe Mathieu-Daudé
2020-06-08  9:01 ` [PATCH v2 8/8] .travis.yml: Test SH4 " Philippe Mathieu-Daudé

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.