Skip to contentSkip to conversation

libqos virtio: Increase ISR timeout

PATCH Applied Marc Marí 4 participants 8 messages Sep 11, 2014 – Sep 17, 2014

lore
Share & tools
lore

Marc Marí

author
#0 lore raw

PATCH v2 1/1 libqos virtio: Increase ISR timeout

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

---
 tests/libqos/virtio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/libqos/virtio.c +2 -2
index 128dbd0..9b6de2c 100644
@@ -82,7 +82,7 @@ bool qvirtio_wait_queue_isr(const QVirtioBus *bus, QVirtioDevice *d,
                                             QVirtQueue *vq, uint64_t timeout)
 {
     do {
-        clock_step(10);
+        clock_step(100);
         if (bus->get_queue_isr_status(d, vq)) {
             break; /* It has ended */
         }
@@ -95,7 +95,7 @@ bool qvirtio_wait_config_isr(const QVirtioBus *bus, QVirtioDevice *d,
                                                             uint64_t timeout)
 {
     do {
-        clock_step(10);
+        clock_step(100);
         if (bus->get_config_isr_status(d)) {
             break; /* It has ended */
         }
Signature · 1 line
1.7.10.4
#2 lore raw
Quoted 10 lines · Stefan Hajnoczi
Quoted 7 lines · Marc Marí

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

---
 tests/libqos/virtio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Do you mind if I apply this directly to master to stop travis grumbling at us on irc?

thanks
-- PMM

#3 lore raw
Quoted 10 lines · Peter Maydell
Quoted 9 lines · Stefan Hajnoczi
Quoted 7 lines · Marc Marí

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

---
 tests/libqos/virtio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line

Do you mind if I apply this directly to master to stop travis grumbling at us on irc?

Applied to master, thanks.

-- PMM

#4 lore raw
In reply to Peter Maydell
Quoted 10 lines · Peter Maydell
Quoted 9 lines · Stefan Hajnoczi
Quoted 7 lines · Marc Marí

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

---
 tests/libqos/virtio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line

Do you mind if I apply this directly to master to stop travis grumbling at us on irc?

No problem, especially when Kevin or I have already given a Reviewed-by:
or Acked-by:.

#5 lore raw
In reply to Marc Marí
Quoted 4 lines · Marc Marí

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

Unfortunately Travis is still failing with this:

ERROR:tests/virtio-blk-test.c:209:pci_basic: assertion failed:
(qvirtio_wait_queue_isr(&qvirtio_pci, &dev->vdev, &vqpci->vq, QVIRTIO_BLK_TIMEOUT))

GTester: last random seed: R02S490664995052f018e72f25518e90cb81

**

ERROR:tests/virtio-blk-test.c:578:pci_idx: assertion failed:
(qvirtio_wait_queue_isr(&qvirtio_pci, &dev->vdev, &vqpci->vq, QVIRTIO_BLK_TIMEOUT))

GTester: last random seed: R02S5471c60ecfff4007d0adc9b0b7c265b6

thanks
-- PMM

author
#6 lore raw
Quoted 17 lines · El Mon, 15 Sep 2014 14:47:41 -0700 Peter Maydell <[email protected]>…
Quoted 4 lines · Marc Marí

Increase the clock step to avoid Travis failure in some builds due to overagressive timeout.

Unfortunately Travis is still failing with this:

ERROR:tests/virtio-blk-test.c:209:pci_basic: assertion failed:
(qvirtio_wait_queue_isr(&qvirtio_pci, &dev->vdev, &vqpci->vq, QVIRTIO_BLK_TIMEOUT))

GTester: last random seed: R02S490664995052f018e72f25518e90cb81

**

Quoted 8 lines

ERROR:tests/virtio-blk-test.c:578:pci_idx: assertion failed:
(qvirtio_wait_queue_isr(&qvirtio_pci, &dev->vdev, &vqpci->vq, QVIRTIO_BLK_TIMEOUT))

GTester: last random seed: R02S5471c60ecfff4007d0adc9b0b7c265b6

thanks
-- PMM

This means agressive timeout is not the problem. The problem is the ISR not being raised at all after sending a read or write request.

If this is the log of the failing case:
https://travis-ci.org/qemu/qemu/builds/35118444
(first time looking at Travis logs, not sure)

The difference between the one failing and the same arch not failing is:
brlapi support yes, linux AIO support yes, uuid support yes, licap-ng support yes, virtio-blk-data-plane yes, vhdx yes (this configuration fails).

The difference that is most likely to fail is virtio-blk-data-plane. So we should start looking there.

Marc

author
#7 lore raw
Quoted 4 lines · El Tue, 16 Sep 2014 00:17:57 +0200 Marc Marí <[email protected]>…

This means agressive timeout is not the problem. The problem is the ISR not being raised at all after sending a read or write request.

Quoted 8 lines

If this is the log of the failing case:
https://travis-ci.org/qemu/qemu/builds/35118444
(first time looking at Travis logs, not sure)

The difference between the one failing and the same arch not failing
is: brlapi support yes, linux AIO support yes, uuid support yes, licap-ng support yes, virtio-blk-data-plane yes, vhdx yes (this configuration fails).

I have not been able to reproduce the bug. I have set a Ubuntu 14.04 x86_64, and I have the same configure parameters enabled (and the libraries installed) as the log in Travis, but make check does not fail.

Any idea?

Marc