qemu-patch-raspberry4/include/hw/scsi
Mark Cave-Ayland 4e78f3bf35 esp: defer command completion interrupt on incoming data transfers
The MacOS toolbox ROM issues a command to the ESP controller as part of its
"FAST" SCSI routines and then proceeds to read the incoming data soon after
receiving the command completion interrupt.

Unfortunately due to SCSI block transfers being asynchronous the incoming data
may not yet be present causing an underflow error. Resolve this by waiting for
the SCSI subsystem transfer_data callback before raising the command completion
interrupt.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210304221103.6369-34-mark.cave-ayland@ilande.co.uk>
2021-03-07 10:39:05 +00:00
..
emulation.h Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
esp.h esp: defer command completion interrupt on incoming data transfers 2021-03-07 10:39:05 +00:00
scsi.h scsi: drop 'result' argument from command_complete callback 2021-02-25 14:14:32 +01:00