[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 09/24] ide: wrap start_dma callback
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 09/24] ide: wrap start_dma callback |
Date: |
Wed, 30 Oct 2013 13:44:11 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 30/10/2013 13:29, Kevin Wolf ha scritto:
>> > bdrv_acct_start(s->bs, &s->acct, size, BDRV_ACCT_READ);
>> > s->status = READY_STAT | SEEK_STAT | DRQ_STAT;
>> > - s->bus->dma->ops->start_dma(s->bus->dma, s,
>> > - ide_atapi_cmd_read_dma_cb);
>> > + ide_start_dma(s, ide_atapi_cmd_read_dma_cb);
> I was wondering whether the s->status update should be moved into
> ide_start_dma(). Then I noticed that the value is different here,
> because it's lacking BSY. Probably an inconsistency that wouldn't hurt
> to get rid of? (The spec says that during a DMA operation BSY or DRQ or
> both must be set.)
You are probably right. BTW, the last patch in the series does that for
another assignment that is common to all ide_start_dma call sites.
Paolo
- [Qemu-devel] [PATCH 03/24] libqtest: add QTEST_LOG for debugging qtest testcases, (continued)
- [Qemu-devel] [PATCH 03/24] libqtest: add QTEST_LOG for debugging qtest testcases, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 04/24] ide-test: add test for werror=stop, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 05/24] ide: simplify reset callbacks, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 06/24] ide: simplify set_inactive callbacks, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 07/24] ide: simplify async_cmd_done callbacks, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 08/24] ide: simplify start_transfer callbacks, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 09/24] ide: wrap start_dma callback, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 10/24] ide: add trigger_irq callback, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 11/24] ide: fold add_status callback into set_inactive, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 12/24] ide: move BM_STATUS bits to pci.[ch], Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 13/24] ide: move retry constants out of BM_STATUS_* namespace, Paolo Bonzini, 2013/10/28
- [Qemu-devel] [PATCH 14/24] ide: start extracting ide_restart_dma out of bmdma_restart_dma, Paolo Bonzini, 2013/10/28