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: Wed, 30 Oct 2024 08:48:57 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1730274555; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=FCzEls0CC+zRlWWJ1VP0m6+kr24S3N5d8SZpvHpAYzQ=; b=jbqwfKsjxZ2JccZnIWb5LWHfBWhIslYDy3HfHIi3I8XT4rwMQcggl0gf4Hj0J57CYn 8DKhICkN75qPnbyYH1eGk9olh70jgFF6ZBqnYbXrRRcdoPX2BoIrj/GpD19TZWSHpROr NqAxnA0b+Rt8Blzuo3G0WysZqimtLrFTafkKtRw51UttZEUwbluITUUaVcrRphc00emj qGeVtLw3WCX6RbrkuIplBvBGZUrBykvjWwSm14roxArXdjkUJG1LfzlsnDRQmyc1u3nu uCmKnZrlgS8HnMftxeWuX5+eiGXhLdMLOlg8g3cDlZXmd1Jem8l9FwTMZ6DYq969LIPx FkQA==
- Arc-seal: i=1; a=rsa-sha256; t=1730274555; cv=none; d=strato.com; s=strato-dkim-0002; b=sT5z37QyvmXmjG/rV0f2NaBeXgptM1wskKlW7AGZM7towHCaTxv2Ykz/BoyVKGj98I 1ZwoxK3w6e+AJMa18Py93FpzaKVzfWOpymYAbBT/hr3FP3PKuMBLZAC/Skk5DUhQdXBB MJmD/z1vdihxjhtX4UCx8sjY5/vi3C7Ef+En4Aav2RPWsiozssU7Wnvlpx2n0xrDJN3I hVAkFqT/iFGUHFLbjj+aZYIIpEhJy7HyTlgl0OECL8us7O80GH0fVEBLaLaHD2557ir0 Gi85mbjo6HpwrHyMq/P1plk5WAEZdIZGH8+OSL+Pm9HBSRJk+pyv8Rjtm02woevyK8Ci 7alA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1730274555; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=FCzEls0CC+zRlWWJ1VP0m6+kr24S3N5d8SZpvHpAYzQ=; b=bR94PvYfgNqHpuRl+ZgzXskbyIdw9N+jKkpSeNWUdOmcZIZ9voWlkYDqOy0JZXi4KR bkJNwcxzg3ogOYhAG/y5Wr1B+WqZJj0mw8yABXhklvL2bVFrZv60G7EtNWj5oDQCz4Bh AtTxkKKfqcT4ixzyEI/xd9oZH1Vcd5LhYP0W7LUW7UoLYp8/XNPXyJsonHmIB0SyGuHl Uv+xhAgEvqBnhXePjoc7jLpMz7Sw+/VQcGPPf5s6TK7jvT0aslkCA3ooLBVCkSv2aEbq rW8n8i09rRpF+PvWaZS0nBsh1ilTjwt949mfzn3eWkFsg09sjWNbSyEDvXwSfyeQ92dk CgFw==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1730274555; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=FCzEls0CC+zRlWWJ1VP0m6+kr24S3N5d8SZpvHpAYzQ=; b=L0GUbv7Pr3sVlJbDtM10iTUiMJR2cv3m3O5Uer3LseZXHnl09LFST36yCSgUnqWHon 5O4xT8a08z75PjO8SBDg==
Maybe I should add that SCSI2Pi and PiSCSI have a SCSI-1 mode because there
is old non-Atari software that needed it, e.g. for MacOS. Just changing the
SCSI level returned by INQUIRY to SCSI-1 made this software happy. It was not
even required to take care of the special rule for 0 bytes for REQUEST SENSE,
which has been discussed in this thread.
This shows that SCSI-2 is a good choice for all kinds of platforms, and
the newer specifications are more precise than the old ones. The few
platforms or software products that require SCSI-1 are usually fine with
SCSI-2, as long as you lie to them and tell them it's SCSI-1 in the SCSI
revision field of the INQUIRY command (line 67 in hdc.c).
Newer SCSI levels (the latest standards are still being worked on in 2024)
also work fine, by the way, because they are backwards compatible. Usually
new commands or command options are added, which can be used by any OS or
driver aware of them. Just like the REPORT LUNS command, which I added to
Hatari some years ago. It speeds up checking for connected devices, i.e. for
available LUNs.
> Hi,
>
> > Thanks! Could you also propose a patch?
>
> I suggest that you just change the conditions in the code accordingly.
> Frankly speaking, I don't want to be involved in yet another SCSI emulation,
> and implement the same logic over and over again. This is boring.
> I just stumbled upon the existing code and pointed out potential issues.
>
> > Btw. Are there other differences between SCSI-1 & SCSI-2 that could be
> > relevant for Hatari?
> >
> > (I'm asking as started to wonder whether it would make sense to have
> > some option to select which standard Hatari emulates...)
>
> I doubt it. For almost 35 years there has not been any SCSI-1 hardware
> anymore, and Ataris have been happy with SCSI-2 since about 1991, also STs.
> This is why I wonder whether it makes any sense to support SCSI-1 at all.
> Provided that AHDI and HDX are fine with SCSI-2, I do know know any software
> that would require SCSI-1. Regular software is not affected anyway, only hard
> disk software is. Any potentially an OS like Linux. Atari's ASV is also fine
> with SCSI-2, by the way. I have been using SCSI-2 drives with it already in
> 1990, even though Atari distributed it on SCSI-1 drives (and on tapes).
>
> Best regards
>
> Uwe
>
>