[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4] esp-pci.c: set DMA_STAT_BCMBLT when BLAST command issued
|
From: |
Mark Cave-Ayland |
|
Subject: |
[PATCH 4/4] esp-pci.c: set DMA_STAT_BCMBLT when BLAST command issued |
|
Date: |
Fri, 12 Jan 2024 13:15:29 +0000 |
Even though the BLAST command isn't fully implemented in QEMU, the
DMA_STAT_BCMBLT
bit should be set after the command has been issued to indicate that the command
has completed.
This fixes an issue with the DC390 DOS driver which issues the BLAST command as
part of its normal error recovery routine at startup, and otherwise sits in a
tight loop waiting for DMA_STAT_BCMBLT to be set before continuing.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
hw/scsi/esp-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
index 875a49199d..42d9d2e483 100644
--- a/hw/scsi/esp-pci.c
+++ b/hw/scsi/esp-pci.c
@@ -124,6 +124,7 @@ static void esp_pci_handle_blast(PCIESPState *pci, uint32_t
val)
{
trace_esp_pci_dma_blast(val);
qemu_log_mask(LOG_UNIMP, "am53c974: cmd BLAST not implemented\n");
+ pci->dma_regs[DMA_STAT] |= DMA_STAT_BCMBLT;
}
static void esp_pci_handle_abort(PCIESPState *pci, uint32_t val)
--
2.39.2
- [PATCH 0/4] esp-pci: fixes for Linux and MS-DOS, Mark Cave-Ayland, 2024/01/12
- [PATCH 2/4] esp-pci.c: generate PCI interrupt from separate ESP and PCI sources, Mark Cave-Ayland, 2024/01/12
- [PATCH 4/4] esp-pci.c: set DMA_STAT_BCMBLT when BLAST command issued,
Mark Cave-Ayland <=
- [PATCH 1/4] esp-pci.c: use correct address register for PCI DMA transfers, Mark Cave-Ayland, 2024/01/12
- [PATCH 3/4] esp-pci.c: synchronise setting of DMA_STAT_DONE with ESP completion interrupt, Mark Cave-Ayland, 2024/01/12
- Re: [PATCH 0/4] esp-pci: fixes for Linux and MS-DOS, Philippe Mathieu-Daudé, 2024/01/16
- Re: [PATCH 0/4] esp-pci: fixes for Linux and MS-DOS, Michael Tokarev, 2024/01/20