diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2024-01-01 12:19:42 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2024-01-25 10:08:37 +0100 |
commit | 3ae8888611e59ad82a59df7bead143662036d946 (patch) | |
tree | 76ce476dedc6aa89b578222f8ccfb26eab0b53d0 | |
parent | a6ed6b701f0a57db0569ab98b0661c12a6ec3ff8 (diff) | |
download | seabios-3ae8888611e59ad82a59df7bead143662036d946.tar.gz |
esp-scsi: terminate DMA transfer when ESP data transfer completes
When the ESP data transfer completes indicated by the STAT_TC flag being set,
terminate the DMA transfer by issuing a DMA IDLE command. Otherwise in the case
where the guest sends a reset followed by an ESP command, the DMA signal remains
enabled and so the next SeaBIOS DMA transfer begins immediately when the next
ESP command is received rather than waiting until the data is ready and the DMA
command is issued.
With this fix it is possible to boot a Windows XP ISO to the installer and
complete a full installation within QEMU directly using SeaBIOS.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-ID: <20240101121942.383191-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | src/hw/esp-scsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hw/esp-scsi.c b/src/hw/esp-scsi.c index f19804f4..8612069f 100644 --- a/src/hw/esp-scsi.c +++ b/src/hw/esp-scsi.c @@ -147,6 +147,8 @@ esp_scsi_process_op(struct disk_op_s *op) /* At end of DMA TC is set again -> complete command. */ if (state == 1 && (stat & ESP_STAT_TC)) { state++; + /* Terminate esp_scsi_dma() command */ + outb(0, iobase + ESP_DMA_CMD); continue; } |