On 27/01/2016 18:55, Kevin O'Connor wrote:
Most of the SeaBIOS drivers do implement timeouts. I think the only ones that don't are lsi-scsi, pvscsi, and virtio.
The timeout should come from the hardware spec - a lot of specs do list a maximum transaction time. (It's also possible the SCSI standards may specify a maximum time.)
If there is no maximum time known, then I think using 30 seconds (which comes from the old PATA specs) is sufficient. The transaction size in SeaBIOS is limited to 64K, and if a drive can't read/write that in 30 seconds then I think it's fair to assume something is seriously broken and that the drive wont ever respond.
Okay, I'll use 60 seconds like src/hw/megasas.c does.
Paolo