Skip to contentSkip to conversation

docs/about: Deprecate the "mainstone", "tosa" and "z2" machines

PATCH In review Thomas Huth 3 participants 4 messages Mar 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/about: Deprecate the "mainstone", "tosa" and "z2" machines

Support for these boards has been removed from the Linux kernel in version 6.3 in 2023, so there are likely no users left for these boards. Time to mark them as deprecated in QEMU, too!

---
 docs/about/deprecated.rst | 8 ++++++++
 hw/arm/mainstone.c        | 1 +
 hw/arm/tosa.c             | 1 +
 hw/arm/z2.c               | 1 +
 4 files changed, 11 insertions(+)
docs/about/deprecated.rst +8 -0
index 8565644da6..da5cc91eec 100644
@@ -247,6 +247,14 @@ to correct issues, mostly regarding migration compatibility. These are
 no longer maintained and removing them will make the code easier to
 read and maintain. Use versions 2.12 and above as a replacement.
 
+``mainstone``, ``tosa`` and ``z2`` PXA2xx arm machines (since 9.0)
+''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+Support for these boards has been removed from the Linux kernel
+in version 6.3 in 2023, so there are likely no users left for these
+boards, thus they will be removed without replacement.
+
+
 Backend options
 ---------------
 
hw/arm/mainstone.c +1 -0
index d2e2e68aa3..c6018c6e81 100644
@@ -169,6 +169,7 @@ static void mainstone2_machine_init(MachineClass *mc)
     mc->init = mainstone_init;
     mc->ignore_memory_transaction_failures = true;
     mc->default_cpu_type = ARM_CPU_TYPE_NAME("pxa270-c5");
+    mc->deprecation_reason = "machine is old and has no more Linux kernel support";
 }
 
 DEFINE_MACHINE("mainstone", mainstone2_machine_init)
hw/arm/tosa.c +1 -0
index 3ca2e4459c..9241867ba9 100644
@@ -270,6 +270,7 @@ static void tosapda_machine_init(MachineClass *mc)
     mc->init = tosa_init;
     mc->block_default_type = IF_IDE;
     mc->ignore_memory_transaction_failures = true;
+    mc->deprecation_reason = "machine is old and has no more Linux kernel support";
 }
 
 DEFINE_MACHINE("tosa", tosapda_machine_init)
hw/arm/z2.c +1 -0
index eb2ff8dbc8..c7c26bd726 100644
@@ -347,6 +347,7 @@ static void z2_machine_init(MachineClass *mc)
     mc->init = z2_init;
     mc->ignore_memory_transaction_failures = true;
     mc->default_cpu_type = ARM_CPU_TYPE_NAME("pxa270-c5");
+    mc->deprecation_reason = "machine is old and has no more Linux kernel support";
 
     machine_add_audiodev_property(mc);
 }
Signature · 1 line
2.44.0
#1 lore raw
Quoted 5 lines · Thomas Huth

Support for these boards has been removed from the Linux kernel in version 6.3 in 2023, so there are likely no users left for these boards. Time to mark them as deprecated in QEMU, too!

Quoted 7 lines
---
 docs/about/deprecated.rst | 8 ++++++++
 hw/arm/mainstone.c        | 1 +
 hw/arm/tosa.c             | 1 +
 hw/arm/z2.c               | 1 +
 4 files changed, 11 insertions(+)

I agree that we should drop these, but I would like to be more drastic -- see my other email in the "possible deprecation and removal of some old QEMU Arm machine types (pxa2xx, omap, sa1110)" thread.

thanks
-- PMM

#2 lore raw
Quoted 14 lines · Peter Maydell
Quoted 5 lines · Thomas Huth

Support for these boards has been removed from the Linux kernel in version 6.3 in 2023, so there are likely no users left for these boards. Time to mark them as deprecated in QEMU, too!

Quoted 7 lines
---
  docs/about/deprecated.rst | 8 ++++++++
  hw/arm/mainstone.c        | 1 +
  hw/arm/tosa.c             | 1 +
  hw/arm/z2.c               | 1 +
  4 files changed, 11 insertions(+)
Quoted 4 lines

I agree that we should drop these, but I would like to be more drastic -- see my other email in the "possible deprecation and removal of some old QEMU Arm machine types (pxa2xx, omap, sa1110)" thread.

Even better! Looking forward to your patch :-)

Thomas

#3 lore raw
In reply to Thomas Huth

Hi Thomas,

Quoted 17 lines · Thomas Huth

Support for these boards has been removed from the Linux kernel in version 6.3 in 2023, so there are likely no users left for these boards. Time to mark them as deprecated in QEMU, too!

---
  docs/about/deprecated.rst | 8 ++++++++
  hw/arm/mainstone.c        | 1 +
  hw/arm/tosa.c             | 1 +
  hw/arm/z2.c               | 1 +
  4 files changed, 11 insertions(+)
docs/about/deprecated.rst +0 -0
index 8565644da6..da5cc91eec 100644

docs/about/deprecated.rst to correct issues, mostly regarding migration compatibility. These are · line 255

Quoted 9 lines
docs/about/deprecated.rst +6 -0
@@ -247,6 +247,14 @@ to correct issues, mostly regarding migration compatibility. These are
  no longer maintained and removing them will make the code easier to
  read and maintain. Use versions 2.12 and above as a replacement.
 
+``mainstone``, ``tosa`` and ``z2`` PXA2xx arm machines (since 9.0)
+''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+
+Support for these boards has been removed from the Linux kernel
+in version 6.3 in 2023, so there are likely no users left for these
+boards, thus they will be removed without replacement.

While Linux host support makes sense for code removal, guest support isn't relevant IMHO. I.e. you can still run U-boot or any guest code you fancy, like my-first-rtos.

(I noticed Peter want a more generic removal)