ppc: Remove ref405ep
v2 cover ppc: Remove ref405ep
Hello,
The PPC 405 CPU and ref405ep machine was deprecated in QEMU 9.1 because there are no known users, firmware images are not available, OpenWRT dropped support in 2019, U-Boot in 2017, and Linux in 2024.
Continue the phase-out process and remove tests, plus boards. The 405 CPU implementation is kept for a while because it is possible to model the power management (OCC) co-processor found on the IBM POWER [8-11] processors.
Thanks,
C.
Changes in v2:
- keep CPU implementation (for OCC possible models)
Cédric Le Goater (3):
ppc/ppc405: Remove tests
ppc/ppc405: Remove boards
hw/ppc: Deprecate 405 CPUs
MAINTAINERS | 6 - docs/about/deprecated.rst | 17 +- docs/about/removed-features.rst | 7 + docs/system/ppc/embedded.rst | 1 - hw/ppc/ppc405.h | 186 ----- hw/ppc/ppc405_boards.c | 520 ------------- hw/ppc/ppc405_uc.c | 1216 ------------------------------ tests/qtest/m48t59-test.c | 5 - hw/ppc/Kconfig | 9 - hw/ppc/meson.build | 3 - tests/functional/meson.build | 1 - tests/functional/test_ppc_405.py | 37 - tests/qtest/meson.build | 1 - 13 files changed, 16 insertions(+), 1993 deletions(-) delete mode 100644 hw/ppc/ppc405.h delete mode 100644 hw/ppc/ppc405_boards.c delete mode 100644 hw/ppc/ppc405_uc.c delete mode 100755 tests/functional/test_ppc_405.py
Signature · 1 line
2.48.1
PATCH v2 1/3 ppc/ppc405: Remove tests
Since we are about to remove all support for PPC 405, start by removing the tests referring to the ref405ep machine.
--- tests/qtest/m48t59-test.c | 5 ----- tests/functional/meson.build | 1 - tests/functional/test_ppc_405.py | 37 -------------------------------- tests/qtest/meson.build | 1 - 4 files changed, 44 deletions(-) delete mode 100755 tests/functional/test_ppc_405.py
tests/qtest/m48t59-test.c +0 -5
@@ -247,11 +247,6 @@ static void base_setup(void) base_year =1968 ; base_machine ="SS-5" ; use_mmio = true; - }else if (g_str_equal (arch,"ppc" ) ||g_str_equal (arch,"ppc64" )) { - base =0xF0000000 ; - base_year =1968 ; - base_machine ="ref405ep" ; - use_mmio = true; }else {g_assert_not_reached (); }
tests/functional/meson.build +0 -1
@@ -190,7 +190,6 @@ tests_ppc_system_quick = [ ] tests_ppc_system_thorough = [ - 'ppc_405', 'ppc_40p', 'ppc_amiga', 'ppc_bamboo',
tests/functional/test_ppc_405.py deleted +0 -37
@@ -1,37 +0,0 @@ -#!/usr/bin/env python3 -# -# Test that the U-Boot firmware boots on ppc 405 machines and check the console -# -# Copyright (c) 2021 Red Hat, Inc. -# -# This work is licensed under the terms of the GNU GPL, version 2 or -# later. See the COPYING file in the top-level directory. - -from qemu_test import QemuSystemTest, Asset -from qemu_test import wait_for_console_pattern -from qemu_test import exec_command_and_wait_for_pattern - -class Ppc405Machine(QemuSystemTest): - - timeout = 90 - - ASSET_UBOOT = Asset( - ('https://gitlab.com/huth/u-boot/-/raw/taihu-2021-10-09/' - 'u-boot-taihu.bin'), - 'a076bb6cdeaafa406330e51e074b66d8878d9036d67d4caa0137be03ee4c112c') - - def do_test_ppc405(self): - file_path = self.ASSET_UBOOT.fetch() - self.vm.set_console(console_index=1) - self.vm.add_args('-bios', file_path) - self.vm.launch() - wait_for_console_pattern(self, 'AMCC PPC405EP Evaluation Board') - exec_command_and_wait_for_pattern(self, 'reset', 'AMCC PowerPC 405EP') - - def test_ppc_ref405ep(self): - self.require_accelerator("tcg") - self.set_machine('ref405ep') - self.do_test_ppc405() - -if __name__ == '__main__': - QemuSystemTest.main()
tests/qtest/meson.build +0 -1
@@ -170,7 +170,6 @@ qtests_mips64el = qtests_mips qtests_ppc = \ qtests_filter + \ (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \ - (config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) + \ (config_all_accel.has_key('CONFIG_TCG') ? ['prom-env-test'] : []) + \ (config_all_accel.has_key('CONFIG_TCG') ? ['boot-serial-test'] : []) + \ ['boot-order-test']
Signature · 1 line
2.48.1
PATCH v2 2/3 ppc/ppc405: Remove boards
In reply to Cédric Le GoaterThe ref405ep machine is the only PPC 405 machine. Drop all support by removing the SoC and associated devices as-well as the machine.
--- MAINTAINERS | 6 - docs/about/deprecated.rst | 8 - docs/about/removed-features.rst | 7 + docs/system/ppc/embedded.rst | 1 - hw/ppc/ppc405.h | 186 ----- hw/ppc/ppc405_boards.c | 520 ------------- hw/ppc/ppc405_uc.c | 1216 ------------------------------- hw/ppc/Kconfig | 9 - hw/ppc/meson.build | 3 - 9 files changed, 7 insertions(+), 1949 deletions(-) delete mode 100644 hw/ppc/ppc405.h delete mode 100644 hw/ppc/ppc405_boards.c delete mode 100644 hw/ppc/ppc405_uc.c
MAINTAINERS +0 -6
@@ -1393,12 +1393,6 @@ F: hw/openrisc/openrisc_sim.c PowerPC Machines ---------------- -405 (ref405ep) -L: [email protected] -S: Orphan -F: hw/ppc/ppc405* -F: tests/functional/test_ppc_405.py - Bamboo L: [email protected] S: Orphan
docs/about/deprecated.rst +0 -8
@@ -243,14 +243,6 @@ These old machine types are quite neglected nowadays and thus might have various pitfalls with regards to live migration. Use a newer machine type instead. -PPC 405 ``ref405ep`` machine (since 9.1) -'''''''''''''''''''''''''''''''''''''''' - -The ``ref405ep`` machine and PPC 405 CPU have no known users, firmware -images are not available, OpenWRT dropped support in 2019, U-Boot in -2017, Linux also is dropping support in 2024. It is time to let go of -this ancient hardware and focus on newer CPUs and platforms. - Big-Endian variants of MicroBlaze ``petalogix-ml605`` and ``xlnx-zynqmp-pmu`` machines (since 9.2) ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
docs/about/removed-features.rst +7 -0
@@ -1065,6 +1065,13 @@ for all machine types using the PXA2xx and OMAP2 SoCs. We are also dropping the ``cheetah`` OMAP1 board, because we don't have any test images for it and don't know of anybody who does. +ppc ``ref405ep`` machine (removed in 10.0) +'''''''''''''''''''''''''''''''''''''''''' + +This machine was removed because PPC 405 CPU have no known users, +firmware images are not available, OpenWRT dropped support in 2019, +U-Boot in 2017, and Linux in 2024. + linux-user mode CPUs --------------------
docs/system/ppc/embedded.rst +0 -1
@@ -4,6 +4,5 @@ Embedded family boards - ``bamboo`` bamboo - ``mpc8544ds`` mpc8544ds - ``ppce500`` generic paravirt e500 platform -- ``ref405ep`` ref405ep - ``sam460ex`` aCube Sam460ex - ``virtex-ml507`` Xilinx Virtex ML507 reference design
hw/ppc/ppc405.h deleted +0 -186
186 lines not on this page · raw message
hw/ppc/ppc405_boards.c deleted +0 -520
520 lines not on this page · raw message
hw/ppc/ppc405_uc.c deleted +0 -1216
1,216 lines not on this page · raw message
hw/ppc/Kconfig +0 -9
@@ -44,15 +44,6 @@ config POWERNV select SSI_M25P80 select PNV_SPI -config PPC405 - bool - default y - depends on PPC - select M48T59 - select PFLASH_CFI02 - select PPC4XX - select SERIAL_MM - config PPC440 bool default y
hw/ppc/meson.build +0 -3
@@ -57,9 +57,6 @@ ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files( 'pnv_n1_chiplet.c', )) # PowerPC 4xx boards -ppc_ss.add(when: 'CONFIG_PPC405', if_true: files( - 'ppc405_boards.c', - 'ppc405_uc.c')) ppc_ss.add(when: 'CONFIG_PPC440', if_true: files( 'ppc440_bamboo.c', 'ppc440_uc.c'))
Signature · 1 line
2.48.1
PATCH v2 3/3 hw/ppc: Deprecate 405 CPUs
In reply to Cédric Le GoaterThe ref405ep machine is scheduled for removal in QEMU 10.0. Keep the 405 CPU implementation for a while because it is theoretically possible to model the power management (OCC) co-processor found on the IBM POWER [8-11] processors.
--- docs/about/deprecated.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
docs/about/deprecated.rst +9 -0
@@ -225,6 +225,15 @@ in the QEMU object model anymore. ``Sun-UltraSparc-IIIi+`` and but for consistency these will get removed in a future release, too. Use ``Sun-UltraSparc-IIIi-plus`` and ``Sun-UltraSparc-IV-plus`` instead. +PPC 405 CPUs (since 10.0) +''''''''''''''''''''''''' + +The PPC 405 CPU has no known users and the ``ref405ep`` machine was +removed in QEMU 10.0. Since the IBM POWER [8-11] processors uses an +embedded 405 for power management (OCC) and other internal tasks, it +is theoretically possible to use QEMU to model them. Let's keep the +CPU implementation for a while before removing all support. + System emulator machines ------------------------
Signature · 1 line
2.48.1
Quoted 6 lines · Cédric Le Goater
Hello,
The PPC 405 CPU and ref405ep machine was deprecated in QEMU 9.1 because there are no known users, firmware images are not available, OpenWRT dropped support in 2019, U-Boot in 2017, and Linux in 2024.
Quoted 6 lines
Continue the phase-out process and remove tests, plus boards. The 405 CPU implementation is kept for a while because it is possible to model the power management (OCC) co-processor found on the IBM POWER [8-11] processors.
Thanks,
Thanks Cedric, this looks fine. Daniel mentioned updating the MAINTAINER file, but I think since you've removed the board then the entry can just be removed as you have since there is no separate MAINTAINER entry for the 405 CPU emulation. I think the note in the deprecated doc should be sufficient for that.
Quoted 30 lines
C.
Changes in v2:
- keep CPU implementation (for OCC possible models)
Cédric Le Goater (3):
ppc/ppc405: Remove tests
ppc/ppc405: Remove boards
hw/ppc: Deprecate 405 CPUsMAINTAINERS | 6 - docs/about/deprecated.rst | 17 +- docs/about/removed-features.rst | 7 + docs/system/ppc/embedded.rst | 1 - hw/ppc/ppc405.h | 186 ----- hw/ppc/ppc405_boards.c | 520 ------------- hw/ppc/ppc405_uc.c | 1216 ------------------------------ tests/qtest/m48t59-test.c | 5 - hw/ppc/Kconfig | 9 - hw/ppc/meson.build | 3 - tests/functional/meson.build | 1 - tests/functional/test_ppc_405.py | 37 - tests/qtest/meson.build | 1 - 13 files changed, 16 insertions(+), 1993 deletions(-) delete mode 100644 hw/ppc/ppc405.h delete mode 100644 hw/ppc/ppc405_boards.c delete mode 100644 hw/ppc/ppc405_uc.c delete mode 100755 tests/functional/test_ppc_405.py
Quoted 10 lines · Cédric Le Goater
Hello,
The PPC 405 CPU and ref405ep machine was deprecated in QEMU 9.1 because there are no known users, firmware images are not available, OpenWRT dropped support in 2019, U-Boot in 2017, and Linux in 2024.
Continue the phase-out process and remove tests, plus boards. The 405 CPU implementation is kept for a while because it is possible to model the power management (OCC) co-processor found on the IBM POWER [8-11] processors.
For the series,