Re: [Qemu-devel] [PATCH] macio: set res_count value to 0 after non-block ATAPI DMA transfers

2016-08-05 Thread David Gibson
On Fri, Aug 05, 2016 at 08:30:02AM +0100, Mark Cave-Ayland wrote: > res_count should be set to the number of outstanding bytes after a DBDMA > request. Unfortunately this wasn't being set to zero by the non-block > transfer codepath meaning drivers that checked the descriptor result for > such

[Qemu-devel] [PATCH] macio: set res_count value to 0 after non-block ATAPI DMA transfers

2016-08-05 Thread Mark Cave-Ayland
res_count should be set to the number of outstanding bytes after a DBDMA request. Unfortunately this wasn't being set to zero by the non-block transfer codepath meaning drivers that checked the descriptor result for such requests (e.g reading the CDROM TOC) would assume from a non-zero result that