|
From: Christian Z. <cz...@gm...> - 2025-10-14 16:03:48
|
Christian Zietz via Hatari-devel schrieb: > Imho the issue is that Hatari is too fast for IDRIS. As one can see in > my debug out below, IDRIS clears any pending interrupts and then unmasks > the disk interrupt, but only *after* sending the command to the disk. > This might work with actual hardware (particularly of the "spinning > rust" type), since that will need some time to complete a command. > > However, with Hatari the ACSI commands complete instantly. The interrupt > arrives while still masked and is therefore missed by IDRIS. My hunch was correct. The attached patch makes IDRIS work with ACSI hard disks under Hatari. See screenshot that is also attached. Note that this patch is just a dirty hack that arbitrarily delays the ACSI IRQ by 2000 CPU cycles. It should *NOT* be merged as is; just used as inspiration (by someone else) how to improve the situation. Also, as stated before, I would prefer the "slow ACSI mode" (with artificial delays) to be a configuration option. Regards Christian -- Christian Zietz - CHZ-Soft - cz...@gm... WWW: https://www.chzsoft.de/ New GnuPG-Key-ID: 0x8708B34C827B159E |