Skip to contentSkip to conversation

Deprecate the "collie" machine and Strongarm devices

PATCH In review Thomas Huth 6 participants 12 messages Oct 26, 2018 – Oct 31, 2018

lore
Share & tools
lore
#0 lore raw

cover Deprecate the "collie" machine and Strongarm devices

These files lack an entry in the MAINTAINERS file, and according to the initial commits, the board and devices are incomplete. Since there have hardly been any commits in the past to really improve them, we should consider to mark them as deprecated now.

Thomas Huth (2):
hw/arm: Deprecate the "collie" board
arm: Deprecate the Strongarm sa1100 and sa1110 processors

 hw/arm/collie.c      |  1 +
 qemu-deprecated.texi | 10 ++++++++++
 2 files changed, 11 insertions(+)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/2 hw/arm: Deprecate the "collie" board

"collie" has no entry in the MAINTAINERS file, and the initial commit with ID c64b21d519a6ecae12f65625fa60f3035ed88644 said:

"Add very basic implementation of collie PDA emulation. The system lacks
LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images)."

Thus the board is incomplete, since after that initial commit, there were only the usual QEMU API-related rework patches applied to this file. Unless someone speaks up and says that this board is still useful, we should consider to remove it, so mark it as deprecated now.

---
 hw/arm/collie.c      | 1 +
 qemu-deprecated.texi | 5 +++++
 2 files changed, 6 insertions(+)
hw/arm/collie.c +1 -0
index 48b732c..e41bbc5 100644
@@ -60,6 +60,7 @@ static void collie_machine_init(MachineClass *mc)
     mc->init = collie_init;
     mc->ignore_memory_transaction_failures = true;
     mc->default_cpu_type = ARM_CPU_TYPE_NAME("sa1110");
+    mc->deprecation_reason = "board is incomplete and unmaintained";
 }
 
 DEFINE_MACHINE("collie", collie_machine_init)
qemu-deprecated.texi +5 -0
index 11b870c..acf9809 100644
@@ -129,6 +129,11 @@ This machine type uses an unmaintained firmware, broken in lots of ways,
 and unable to start post-2004 operating systems. 40p machine type should be
 used instead.
 
+@subsection collie (ARM) (since 3.1)
+
+The board is incomplete and unmaintained. Use a different ARM board if
+possible instead.
+
 @section Device options
 
 @subsection Block device options
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 2/2 arm: Deprecate the Strongarm sa1100 and sa1110 processors

In reply to Thomas Huth

The deprecated "collie" board is the only user of the Strongarm devices, so if "collie" goes away, we should remove the Strongarm devices, too.

---
 qemu-deprecated.texi | 5 +++++
 1 file changed, 5 insertions(+)
qemu-deprecated.texi +5 -0
index acf9809..0de5c7f 100644
@@ -116,6 +116,11 @@ The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 The ``ivshmem'' device type is replaced by either the ``ivshmem-plain''
 or ``ivshmem-doorbell`` device types.
 
+@subsection Strongarm sa1100 and sa1110 and related devices (since 3.1)
+
+Without the deprecated "collie" board there is no other machine which is
+able to use these devices.
+
 @section System emulator machines
 
 @subsection pc-0.10 and pc-0.11 (since 3.0)
Signature · 1 line
1.8.3.1
#3 lore raw
In reply to Thomas Huth
Quoted 8 lines · Thomas Huth

These files lack an entry in the MAINTAINERS file, and according to the initial commits, the board and devices are incomplete. Since there have hardly been any commits in the past to really improve them, we should consider to mark them as deprecated now.

Thomas Huth (2):
hw/arm: Deprecate the "collie" board
arm: Deprecate the Strongarm sa1100 and sa1110 processors

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

thanks
-- PMM

#4 lore raw
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Thomas Huth

These files lack an entry in the MAINTAINERS file, and according to the initial commits, the board and devices are incomplete. Since there have hardly been any commits in the past to really improve them, we should consider to mark them as deprecated now.

Quoted 9 lines
Quoted 3 lines

Thomas Huth (2):
hw/arm: Deprecate the "collie" board
arm: Deprecate the Strongarm sa1100 and sa1110 processors

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Guenter

#5 lore raw
Quoted 9 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove. Which other boards do you test with mainline QEMU?

thanks
-- PMM

#6 lore raw
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Quoted 7 lines
Quoted 2 lines

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove. Which other boards do you test with mainline QEMU?

For arm:

akita
ast2500-evb
beagle
beaglexm
borzoi
collie
cubieboard
imx25-pdk
integratorcp
kzm
mainstone
midway
mps2-an385
overo
palmetto-bmc
raspi2
realview-eb
realview-eb-mpcore
realview-pb-a8
realview-pbx-a9
romulus-bmc
sabrelite
smdkc210
spitz
terrier
tosa
versatileab
versatilepb
vexpress-a15
vexpress-a15-a7
vexpress-a9
witherspoon-bmc
xilinx-zynq-a9
z2

Though not all of them are supported by upstream qemu. For some of them I carry local patches, for others I use out-of-tree versions of qemu (beagle/beaglexm).

Guenter

#7 lore raw

Hi Guenter,

Quoted 54 lines · Guenter Roeck
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Quoted 7 lines
Quoted 2 lines

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove. Which other boards do you test with mainline QEMU?

For arm:

akita
ast2500-evb
beagle
beaglexm
borzoi
collie
cubieboard
imx25-pdk
integratorcp
kzm
mainstone
midway
mps2-an385
overo
palmetto-bmc
raspi2
realview-eb
realview-eb-mpcore
realview-pb-a8
realview-pbx-a9
romulus-bmc
sabrelite
smdkc210
spitz
terrier
tosa
versatileab
versatilepb
vexpress-a15
vexpress-a15-a7
vexpress-a9
witherspoon-bmc
xilinx-zynq-a9
z2

Quoted 2 lines

Though not all of them are supported by upstream qemu. For some of them I carry local patches, for others I use out-of-tree versions of qemu (beagle/beaglexm).

Are these patches upstream-able?

If not, what do we need to get them into upstream qemu?

Thanks,

Phil.

#8 lore raw
Quoted 57 lines · Philippe Mathieu-Daudé

Hi Guenter,

Quoted 54 lines · Guenter Roeck
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Quoted 7 lines
Quoted 2 lines

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove. Which other boards do you test with mainline QEMU?

For arm:

akita
ast2500-evb
beagle
beaglexm
borzoi
collie
cubieboard
imx25-pdk
integratorcp
kzm
mainstone
midway
mps2-an385
overo
palmetto-bmc
raspi2
realview-eb
realview-eb-mpcore
realview-pb-a8
realview-pbx-a9
romulus-bmc
sabrelite
smdkc210
spitz
terrier
tosa
versatileab
versatilepb
vexpress-a15
vexpress-a15-a7
vexpress-a9
witherspoon-bmc
xilinx-zynq-a9
z2

Quoted 6 lines
Quoted 3 lines

Though not all of them are supported by upstream qemu. For some of them I carry local patches,
for others I use out-of-tree versions of qemu (beagle/beaglexm).

Are these patches upstream-able?

Some of the patches (eg to be able to boot a Linux kernel image for mps2-an385 directly from qemu, or zynq CPU clock rate changes to be able to do the same) have been rejected. A few patches were submitted at some point but got lost. I don't keep track, so I don't know the exact number. For some patches, such as basic BCM283x CPRMAN support (needed to boot raspi2), a better implementation was suggested, but didn't go anywhere as far as I know.

Some machines, such as beagle support, are from Linaro's tree and were never upstreamed by Linaro. The Linaro branch is based off qemu 2.3, so applying the changes to upstream qemu would be a major effort. I also use the m68k branch from github.com:vivier/qemu-m68k.git for m68k tests.

I carry some 20+ patches locally in my qemu tree. Some may be obsolete or not or no longer needed (my understanding of qemu is evolving). Sometimes, if and when I find the time, I pick some and try to upstream, but I often don't follow up if there is no response or if the requested changes are too substantial.

Please feel free to have a look at https://github.com/groeck/qemu
(check the <version>-local branches) and let me know what might be upstreamable. I'll be happy to (re-)submit the respective patches. Note that I won't be able to make any substantial changes, though. Time is a scarce commodity nowadays, unfortunately.

Guenter

#9 lore raw
Quoted 13 lines · Guenter Roeck
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Peter Maydell
Quoted 9 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

[...]

Quoted 25 lines
Quoted 6 lines
Quoted 3 lines

Though not all of them are supported by upstream qemu. For some of them I carry local patches,
for others I use out-of-tree versions of qemu (beagle/beaglexm).

Are these patches upstream-able?

Some of the patches (eg to be able to boot a Linux kernel image for mps2-an385 directly from qemu, or zynq CPU clock rate changes to be able to do the same) have been rejected. A few patches were submitted at some point but got lost. I don't keep track, so I don't know the exact number. For some patches, such as basic BCM283x CPRMAN support (needed to boot raspi2), a better implementation was suggested, but didn't go anywhere as far as I know.

Some machines, such as beagle support, are from Linaro's tree and were never upstreamed by Linaro. The Linaro branch is based off qemu 2.3, so applying the changes to upstream qemu would be a major effort. I also use the m68k branch from github.com:vivier/qemu-m68k.git for m68k tests.

I carry some 20+ patches locally in my qemu tree. Some may be obsolete or not or no longer needed (my understanding of qemu is evolving). Sometimes, if and when I find the time, I pick some and try to upstream, but I often don't follow up if there is no response or if the requested changes are too substantial.

Quoted 5 lines

Please feel free to have a look at https://github.com/groeck/qemu
(check the <version>-local branches) and let me know what might be upstreamable. I'll be happy to (re-)submit the respective patches. Note that I won't be able to make any substantial changes, though. Time is a scarce commodity nowadays, unfortunately.

Thank you for pointing your work, I'll try to salvage what I can.

Regards,

Phil.

#10 lore raw
In reply to Guenter Roeck
Quoted 54 lines · Guenter Roeck
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Quoted 7 lines
Quoted 2 lines

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove. Which other boards do you test with mainline QEMU?

For arm:

akita
ast2500-evb
beagle
beaglexm
borzoi
collie
cubieboard
imx25-pdk
integratorcp
kzm
mainstone
midway
mps2-an385
overo
palmetto-bmc
raspi2
realview-eb
realview-eb-mpcore
realview-pb-a8
realview-pbx-a9
romulus-bmc
sabrelite
smdkc210
spitz
terrier
tosa
versatileab
versatilepb
vexpress-a15
vexpress-a15-a7
vexpress-a9
witherspoon-bmc
xilinx-zynq-a9
z2

Quoted 2 lines

Though not all of them are supported by upstream qemu. For some of them I carry local patches, for others I use out-of-tree versions of qemu (beagle/beaglexm).

Would it be possible to get useful parts of your automated testing into upstream QEMU's CI?

I'm asking because I think we should require at least a smoke test in CI for all machine types, and drop the ones that lack it. Not today, but in the not-too-distant future.

#11 lore raw
In reply to Peter Maydell
Quoted 8 lines · Peter Maydell
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Peter Maydell

Hi Guenter; there's a proposal here to deprecate (and eventually remove) the 'collie' board (strongarm) from QEMU. Is that one of the ones you're currently using in your automated testing of Linux kernels on QEMU?

Quoted 5 lines
Quoted 2 lines

Yes. I can run the test with older versions of qemu, so it is ok for me if it is removed (as long as that removal is not backported).

Mmm, but if we have an active user who's testing them then they probably shouldn't be in the frontline of boards to remove.

Yes, I agree. I based my patch on the assumption that the board was incomplete and not really usable (as mentioned in the patch description), but if it is still usable to some degree, then please disregard my patch.

Thomas