Re: [PATCH v2 03/17] hw/block/nvme: handle dma errors

2020-09-21 Thread Klaus Jensen
On Sep 21 09:50, Keith Busch wrote: > On Fri, Sep 18, 2020 at 10:36:07PM +0200, Klaus Jensen wrote: > > @@ -466,15 +476,21 @@ static void nvme_post_cqes(void *opaque) > > break; > > } > > > > -QTAILQ_REMOVE(&cq->req_list, req, entry); > > sq = req->sq; > >

Re: [PATCH v2 03/17] hw/block/nvme: handle dma errors

2020-09-21 Thread Keith Busch
On Fri, Sep 18, 2020 at 10:36:07PM +0200, Klaus Jensen wrote: > @@ -466,15 +476,21 @@ static void nvme_post_cqes(void *opaque) > break; > } > > -QTAILQ_REMOVE(&cq->req_list, req, entry); > sq = req->sq; > req->cqe.status = cpu_to_le16((req->status <

[PATCH v2 03/17] hw/block/nvme: handle dma errors

2020-09-18 Thread Klaus Jensen
From: Klaus Jensen Handling DMA errors gracefully is required for the device to pass the block/011 test ("disable PCI device while doing I/O") in the blktests suite. With this patch the device passes the test by retrying "critical" transfers (posting of completion entries and processing of submi