Skip to contentSkip to conversation

hw/arm: versal: Setup the ADMA with 128bit bus-width

PATCH Applied Edgar E. Iglesias 4 participants 5 messages Apr 17, 2020 – Apr 20, 2020

lore
Share & tools
lore
#0 lore raw

cover hw/arm: versal: Setup the ADMA with 128bit bus-width

From: "Edgar E. Iglesias" <[email protected]>

Running more testcases on the upstream models I noticed that the ADMA was not setup for 128bit bus-width causing some tests to fail. This fixes that.

Cheers,
Edgar

Edgar E. Iglesias (1):
hw/arm: versal: Setup the ADMA with 128bit bus-width

 hw/arm/xlnx-versal.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 hw/arm: versal: Setup the ADMA with 128bit bus-width

From: "Edgar E. Iglesias" <[email protected]>

Setup the ADMA with 128bit bus-width. This matters when FIXED BURST mode is used.

---
 hw/arm/xlnx-versal.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/xlnx-versal.c +2 -0
index cb0122a3a6..94460f2343 100644
@@ -205,6 +205,8 @@ static void versal_create_admas(Versal *s, qemu_irq *pic)
 
         dev = qdev_create(NULL, "xlnx.zdma");
         s->lpd.iou.adma[i] = SYS_BUS_DEVICE(dev);
+        object_property_set_int(OBJECT(s->lpd.iou.adma[i]), 128, "bus-width",
+                                &error_abort);
         object_property_add_child(OBJECT(s), name, OBJECT(dev), &error_fatal);
         qdev_init_nofail(dev);
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#2 lore raw
Quoted 7 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Setup the ADMA with 128bit bus-width. This matters when FIXED BURST mode is used.

Alistair

Quoted 21 lines
---
 hw/arm/xlnx-versal.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/xlnx-versal.c +2 -1
index cb0122a3a6..94460f2343 100644
@@ -205,6 +205,8 @@ static void versal_create_admas(Versal *s, qemu_irq *pic)
 
         dev = qdev_create(NULL, "xlnx.zdma");
         s->lpd.iou.adma[i] = SYS_BUS_DEVICE(dev);
+        object_property_set_int(OBJECT(s->lpd.iou.adma[i]), 128, "bus-width",
+                                &error_abort);
         object_property_add_child(OBJECT(s), name, OBJECT(dev), &error_fatal);
         qdev_init_nofail(dev);
 
--

2.20.1

Reviewed-by on v1 1/1
#3 lore raw
In reply to Edgar E. Iglesias
Quoted 6 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Setup the ADMA with 128bit bus-width. This matters when FIXED BURST mode is used.

Quoted 18 lines
---
 hw/arm/xlnx-versal.c | 2 ++
 1 file changed, 2 insertions(+)
hw/arm/xlnx-versal.c +2 -0
index cb0122a3a6..94460f2343 100644
@@ -205,6 +205,8 @@ static void versal_create_admas(Versal *s, qemu_irq *pic)
 
         dev = qdev_create(NULL, "xlnx.zdma");
         s->lpd.iou.adma[i] = SYS_BUS_DEVICE(dev);
+        object_property_set_int(OBJECT(s->lpd.iou.adma[i]), 128, "bus-width",
+                                &error_abort);
         object_property_add_child(OBJECT(s), name, OBJECT(dev), &error_fatal);
         qdev_init_nofail(dev);
 
#4 lore raw
In reply to Edgar E. Iglesias
Quoted 7 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Running more testcases on the upstream models I noticed that the ADMA was not setup for 128bit bus-width causing some tests to fail. This fixes that.

Quoted 5 lines

Cheers,
Edgar

Edgar E. Iglesias (1):
hw/arm: versal: Setup the ADMA with 128bit bus-width

Applied to target-arm.next for 5.1, thanks.

-- PMM