DMA fix for macio IDE device
-----BEGIN PGP SIGNATURE----- iQFSBAABCgA8FiEEzGIauY6CIA2RXMnEW8LFb64PMh8FAmbqoMoeHG1hcmsuY2F2 ZS1heWxhbmRAaWxhbmRlLmNvLnVrAAoJEFvCxW+uDzIffLQH/jV4x2VOZq2EX2e1 CZEww/xmMmWPpSsTlJLDxd2YBekPnoRv8UdXRd2MP19DhNPecu2vJXsIWbMuGbEy FDKoZ5pKLL7EQkFiaeKNpUKtiyCsXxybVYPMS9FZf8MhYECYu0V+5bpc/sicYv70 B5qa2AzGc2TtY8mgKp0srR2mMV86P0P1UgMVG9E37OUE8c08GwLPDzi0TcNOQXkU RZFkwRW2h1482ydRrzq8FHwQXQzEvkxMWtwfPreYWXEYx0sEENBsGLf0bOoVaW3f +eqyFj3Y5SDJ6XTkdWcWdv1YsYZeBbTSjVQLCidac8dYIvcbig9G9HznTh8EajhA q40VVhc= =Qa5h -----END PGP SIGNATURE----- Merge tag 'qemu-macppc-20240918' of https://github.com/mcayland/qemu into staging DMA fix for macio IDE device # -----BEGIN PGP SIGNATURE----- # # iQFSBAABCgA8FiEEzGIauY6CIA2RXMnEW8LFb64PMh8FAmbqoMoeHG1hcmsuY2F2 # ZS1heWxhbmRAaWxhbmRlLmNvLnVrAAoJEFvCxW+uDzIffLQH/jV4x2VOZq2EX2e1 # CZEww/xmMmWPpSsTlJLDxd2YBekPnoRv8UdXRd2MP19DhNPecu2vJXsIWbMuGbEy # FDKoZ5pKLL7EQkFiaeKNpUKtiyCsXxybVYPMS9FZf8MhYECYu0V+5bpc/sicYv70 # B5qa2AzGc2TtY8mgKp0srR2mMV86P0P1UgMVG9E37OUE8c08GwLPDzi0TcNOQXkU # RZFkwRW2h1482ydRrzq8FHwQXQzEvkxMWtwfPreYWXEYx0sEENBsGLf0bOoVaW3f # +eqyFj3Y5SDJ6XTkdWcWdv1YsYZeBbTSjVQLCidac8dYIvcbig9G9HznTh8EajhA # q40VVhc= # =Qa5h # -----END PGP SIGNATURE----- # gpg: Signature made Wed 18 Sep 2024 10:43:38 BST # gpg: using RSA key CC621AB98E82200D915CC9C45BC2C56FAE0F321F # gpg: issuer "mark.cave-ayland@ilande.co.uk" # gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>" [full] # Primary key fingerprint: CC62 1AB9 8E82 200D 915C C9C4 5BC2 C56F AE0F 321F * tag 'qemu-macppc-20240918' of https://github.com/mcayland/qemu: mac_dbdma: Remove leftover `dma_memory_unmap` calls Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
14556211bc
@ -119,9 +119,6 @@ static void pmac_ide_atapi_transfer_cb(void *opaque, int ret)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
dma_memory_unmap(&address_space_memory, io->dma_mem, io->dma_len,
|
|
||||||
io->dir, io->dma_len);
|
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
block_acct_failed(blk_get_stats(s->blk), &s->acct);
|
block_acct_failed(blk_get_stats(s->blk), &s->acct);
|
||||||
} else {
|
} else {
|
||||||
@ -202,9 +199,6 @@ static void pmac_ide_transfer_cb(void *opaque, int ret)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
dma_memory_unmap(&address_space_memory, io->dma_mem, io->dma_len,
|
|
||||||
io->dir, io->dma_len);
|
|
||||||
|
|
||||||
if (s->dma_cmd == IDE_DMA_READ || s->dma_cmd == IDE_DMA_WRITE) {
|
if (s->dma_cmd == IDE_DMA_READ || s->dma_cmd == IDE_DMA_WRITE) {
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
block_acct_failed(blk_get_stats(s->blk), &s->acct);
|
block_acct_failed(blk_get_stats(s->blk), &s->acct);
|
||||||
|
@ -44,10 +44,6 @@ struct DBDMA_io {
|
|||||||
DBDMA_end dma_end;
|
DBDMA_end dma_end;
|
||||||
/* DMA is in progress, don't start another one */
|
/* DMA is in progress, don't start another one */
|
||||||
bool processing;
|
bool processing;
|
||||||
/* DMA request */
|
|
||||||
void *dma_mem;
|
|
||||||
dma_addr_t dma_len;
|
|
||||||
DMADirection dir;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user