Re: [hatari-devel] Wrong MODE SENSE data length for page code 0x3f |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Wrong MODE SENSE data length for page code 0x3f
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sat, 26 Oct 2024 18:15:54 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1729959368; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=suhGxRuT6J3r9QlxDNLKqIqQZIJ52zHc7O0hBgCjLM0=; b=sZ5O/oiH75EV6c3bp+l05ygIlVf8GCdk5WpzeBgOjcRSl2s7l9pj2+Gp8msdKj6RGa IQp6c4fJSTzW80o/JqjRZThGMhAzxK2g78Z4D5n1ZKe3POr/c7EIE1MnuvdOzzIITufK 9tSUkk+PqIrJaeP+N0X7nMgEDIvzrjkAfNk4B2s0Z6CL+17hufaFhguWbx7fJcQ7ALEo 3obw2LXxRBJXlyy6euaGVYWtBtc2IDJOZqPaWdqE9rBKPqr9aVhSzg+vOGE7pN8VcoSY nhspJxqRjiVUi0yQAh2UP//DL/Qvs/DMTAjP6hDQ/vVWVKEP25e2ISCVo1IXzEyN86p0 sbUg==
- Arc-seal: i=1; a=rsa-sha256; t=1729959368; cv=none; d=strato.com; s=strato-dkim-0002; b=eN8YG/r7wMf+9kDiJ6SbZ2WrAEKsl/rJLq3BDR/O5S7ebz0vjme0zmyFh0/2OoK/3f wPfDpGrybWFN4eemq5otCODXd1Rh5pMda2n2MzKKE0mJN/AD9jtRbTAA9R9IKI5zbKHT F9ZJnaAXEe0owMkDI34encVGaRTYZaKWBlGJtnBIHirIgwWOYbXO2B3Dt9uCOukLiyUM nwU3MtVUXlmh7phbh22RarnRzGFSuolQqc0c9CN5f4UuDyYi9Iug4/Z98be6s3ls8KdI xkVN6/jNmHsYjPWbZSyCHO6hV/LNClVuS6uGMt/+C6gde7FTX+E6ia11qW7gJtGrN0N/ TkXQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1729959368; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=suhGxRuT6J3r9QlxDNLKqIqQZIJ52zHc7O0hBgCjLM0=; b=kKEnuWb1yxP3VIRNCAyIIJGJHxaZ1TfF32ILFTcvby3S/fgZeJY7z567o2dw/S5cjz n36YMKMj5MR2JAJV6+zFO8cByzRu5vQDlIvfFI8Zf2TibLI0g2ajuFsFy0zXCJgX8x6O OPpps6Wqs0dJ6ALnp9Xdxgw7NVglhvB56fbEzF61DGMdVuOsHjTAqGOjiidh1K38FJFz RYXnht0StwBzYQk71oJtmqL7k91NvPr7uwNzFX1702EwEV3VawscUeDWsf10kaaQcrl+ h1ILZ/gHcMksGttY1Mag8vXgxW6rbK8FbkaddaRhsLFWZ72xbBtRGo6vuQNGJq1txkzH iWrQ==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1729959368; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=suhGxRuT6J3r9QlxDNLKqIqQZIJ52zHc7O0hBgCjLM0=; b=u9XxL86P54slluLTtIwOBReVFzt0jLNeqTL+7z4gDObWlHS/xZtwwp0wz3dQ9gez5U ILgK12WNbrnKr5c5maAw==
> While debugging SCSI it might help to have a look at my implementation (still SCSI-I, but differences should not be too large):
>
> https://sourceforge.net/p/previous/code/HEAD/tree/trunk/src/scsi.c
>
> This has been thoroughly tested and works with all versions of NeXTstep and also with modern NetBSD. There is no Linux for NeXT, so I can’t test that one. From my experiences: Bus phases are especially tricky!
:) In this case let me add that it also might help to have a look at the
emulation code of https://github.com/uweseimet/scsi2pi. It has been tested
with NeXTstep, with the platforms listed on
https://github.com/PiSCSI/piscsi/wiki/Compatibility, and some others not
listed, also with BSD flavors.
But I guess that these sources of information are too complicated for
somebody who is not that much involved with SCSI, e.g. Eero. (At least this
is what I assume.)
Ensuring that Hatari does not return more than the number of bytes
requested, except for the special SCSI-1 case you pointed out, should be
ensured before trying to analyze any other issues.
Regarding bus phases, the fact that Linux requests a bus reset indicates
that something may be wrong here. On the other hand, if something was
fundamentally wrong, Hatari would not work with HDDRIVER, and probably also
not with CBHD.
By the way, I just tried my old Debian Linux (kernel 2.0.36) with Hatari:
A SCSI drive is detected correctly, but on the first READ(6) command there is
a timeout. Very strange. With real SCSI drives and SCSI2Pi exactly the same
Linux environment works fine when booting from a SCSI drive.
Best regards
Uwe