Skip to contentSkip to conversation

hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property

PATCH Superseded Philippe Mathieu-Daudé 2 participants 3 messages Feb 19, 2021 Arm/Zynq architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property

We hint the 'has_rpu' property is no longer required since commit 6908ec448b4 ("xlnx-zynqmp: Properly support the smp command line option") which was released in QEMU v2.11.0.

3 years later we feel safe enough to remove it without using the usual deprecation policy.

---
 include/hw/arm/xlnx-zynqmp.h | 2 --
 hw/arm/xlnx-zynqmp.c         | 6 ------
 2 files changed, 8 deletions(-)
include/hw/arm/xlnx-zynqmp.h +0 -2
index 6f45387a173..0678b419a23 100644
@@ -115,8 +115,6 @@ struct XlnxZynqMPState {
     bool secure;
     /* Has the ARM Virtualization extensions?  */
     bool virt;
-    /* Has the RPU subsystem?  */
-    bool has_rpu;
 
     /* CAN bus. */
     CanBusState *canbus[XLNX_ZYNQMP_NUM_CAN];
hw/arm/xlnx-zynqmp.c +0 -6
index 881847255b4..46030c1ef81 100644
@@ -443,11 +443,6 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
         }
     }
 
-    if (s->has_rpu) {
-        info_report("The 'has_rpu' property is no longer required, to use the "
-                    "RPUs just use -smp 6.");
-    }
-
     xlnx_zynqmp_create_rpu(ms, s, boot_cpu, &err);
     if (err) {
         error_propagate(errp, err);
@@ -646,7 +641,6 @@ static Property xlnx_zynqmp_props[] = {
     DEFINE_PROP_STRING("boot-cpu", XlnxZynqMPState, boot_cpu),
     DEFINE_PROP_BOOL("secure", XlnxZynqMPState, secure, false),
     DEFINE_PROP_BOOL("virtualization", XlnxZynqMPState, virt, false),
-    DEFINE_PROP_BOOL("has_rpu", XlnxZynqMPState, has_rpu, false),
     DEFINE_PROP_LINK("ddr-ram", XlnxZynqMPState, ddr_ram, TYPE_MEMORY_REGION,
                      MemoryRegion *),
     DEFINE_PROP_LINK("canbus0", XlnxZynqMPState, canbus[0], TYPE_CAN_BUS,
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Philippe Mathieu-Daudé

We hint the 'has_rpu' property is no longer required since commit 6908ec448b4 ("xlnx-zynqmp: Properly support the smp command line option") which was released in QEMU v2.11.0.

3 years later we feel safe enough to remove it without using the usual deprecation policy.

This device is marked user_creatable = false, so the only thing that could be setting the property is the board code that creates the device. So the property is not user-facing and we can remove it without going through the deprecation process.

(maybe noting the above in the commit message).

thanks
-- PMM

#2 lore raw
Quoted 9 lines · Peter Maydell
Quoted 7 lines · Philippe Mathieu-Daudé

We hint the 'has_rpu' property is no longer required since commit 6908ec448b4 ("xlnx-zynqmp: Properly support the smp command line option") which was released in QEMU v2.11.0.

3 years later we feel safe enough to remove it without using the usual deprecation policy.

Quoted 7 lines

This device is marked user_creatable = false, so the only thing that could be setting the property is the board code that creates the device. So the property is not user-facing and we can remove it without going through the deprecation process.

(maybe noting the above in the commit message).

OK I'll update, thanks!