Skip to contentSkip to conversation

atapi: fix halted DMA reset

PATCH Applied John Snow 1 participant 2 messages Aug 2, 2016 – Aug 4, 2016

lore
Share & tools
lore

John Snow

author
#0 lore raw

PATCH 1/1 atapi: fix halted DMA reset

Followup to 87ac25fd, this time for ATAPI DMA.

---
 hw/ide/atapi.c | 1 +
 1 file changed, 1 insertion(+)
hw/ide/atapi.c +1 -0
index 95056d9..6189675 100644
@@ -386,6 +386,7 @@ static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret)
     if (ret < 0) {
         if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) {
             if (s->bus->error_status) {
+                s->bus->dma->aiocb = NULL;
                 return;
             }
             goto eot;
Signature · 1 line
2.7.4
author Applied
#1 lore raw
Quoted 14 lines · John Snow

Followup to 87ac25fd, this time for ATAPI DMA.

---
 hw/ide/atapi.c | 1 +
 1 file changed, 1 insertion(+)
hw/ide/atapi.c +0 -0
index 95056d9..6189675 100644

hw/ide/atapi.c static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret) · line 392

Quoted 7 lines
hw/ide/atapi.c +1 -0
@@ -386,6 +386,7 @@ static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret)
     if (ret < 0) {
         if (ide_handle_rw_error(s, -ret, ide_dma_cmd_to_retry(s->dma_cmd))) {
             if (s->bus->error_status) {
+                s->bus->dma->aiocb = NULL;
                 return;
             }
             goto eot;

I extracted an ACK out of Paolo offline, so I have staged this patch.

Thanks, applied to my IDE tree:

https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git

--js