[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/10] ide: Reset BMIDEA bit when the bus master is
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 03/10] ide: Reset BMIDEA bit when the bus master is stopped |
Date: |
Wed, 8 May 2013 16:28:57 +0200 |
The device is supposed to reset the Bus Master IDE Active bit in the
status register when 0 is written to the Start/Stop Bus Master bit in
the command register.
In the common cases this happens automatically because bdrv_drain_all()
flushes the requests, but with a large PRDT it could remain set.
Signed-off-by: Kevin Wolf <address@hidden>
---
hw/ide/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index a310975..635a364 100644
--- a/hw/ide/pci.c
+++ b/hw/ide/pci.c
@@ -312,6 +312,7 @@ void bmdma_cmd_writeb(BMDMAState *bm, uint32_t val)
bdrv_drain_all();
assert(bm->bus->dma->aiocb == NULL);
}
+ bm->status &= ~BM_STATUS_DMAING;
} else {
bm->cur_addr = bm->addr;
if (!(bm->status & BM_STATUS_DMAING)) {
--
1.8.1.4
- [Qemu-devel] [PULL 1.5 00/10] Block patches for 1.5.0-rc1, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 08/10] qemu-iotests: exclude vmdk for test 042, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 07/10] qtest/ide-test: Test short and long PRDTs, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 09/10] qemu-iotests: exclude vmdk and qcow from 043, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 05/10] qtest: Add IDE test case, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 10/10] qemu-iotests: fix 017 018 for vmdk, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 03/10] ide: Reset BMIDEA bit when the bus master is stopped,
Kevin Wolf <=
- [Qemu-devel] [PATCH 06/10] qtest/ide-test: Add simple DMA read/write test case, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 01/10] ahci: Don't allow creating slave drives, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 04/10] libqos/pci: Enable bus mastering, Kevin Wolf, 2013/05/08
- [Qemu-devel] [PATCH 02/10] de_DE.po: Add missing leading spaces, Kevin Wolf, 2013/05/08