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 17:48:31 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1729957724; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=3EqXxUglAA4hHP+JrK3hT/+HbXO7jCwPAB4G04lbbEg=; b=PsCiCSw9pdofkp9F9vsRM0pJLu+9yboMzJtKOwzNAx37MVs7LYq0D/VPOgsfquymcy J8dTkB2Bk8gjWNNzY4HybFFjejuAV3brI+kPKdSP+m2aXrCcApKVxZ61YThOWZfO4IFk JS51+4vrwrZ8G2YOv8oZVJE6x7tN8aTqP1leIjFA4N+CWofO8UoiriRLaTka1TJ52whK MaC7MHvtFONLdYrrXIHrdNHLCsBYtrYmotnG2+oa++zGPEYg2Y77RXAhOqgo9do3M8Km NvvO/XH9g1RTX8a9F6WqnOlFsdqPUXtUapbU3hprUxwY+M0t9HQOvaHxl7XutxF2TpvP KtmA==
- Arc-seal: i=1; a=rsa-sha256; t=1729957724; cv=none; d=strato.com; s=strato-dkim-0002; b=QKiEaG4hEwVODExt1hiSS7XdvGN3H9yiYmMUz6sAHytMxft5TSM5Dzw9xy4U6TGbX7 ntUnXsSARsaKAI9Qszmb49635b7maVAkYVOhP5vTXVrO94hYzXN79cO9XnjbJXnsT/ew L0xd0f76LL1yvkEAD9YfLwNfbco4xD9FFzymgmw+197L/0D3NKoxwa6KlyyQwX4Weqmw /uzGC8ZkgPHpXu8iGT0h6maISM01158GFEAm8Xer9tfeGxovmF3gRC9TW2Se+IkyATJV 0aIHBdRIhWpPfB+IK9cAWBry7wEf9s1AfsvQG2TivQt6H7f98jDoMq508K7rNnXMVf98 v6/w==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1729957724; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=3EqXxUglAA4hHP+JrK3hT/+HbXO7jCwPAB4G04lbbEg=; b=FqK+UpSSvm9TlGngg90Jqxn57lO5/ZcbYLWSlXfzkwd6/4zzbCjsV3SWykblyLmlMS ofkDaGLZTBmpLJhFb5oYezwDFP++mBmlbngsLDzrP9Ox1BnEyhWuICesc2g1biBRmvDo /PT0qAtt/dL3ZnGcc+RewQU0p4gNE5LIE847mInkBE1AYAkytVD+Ph5rA0QURPOYTr2H aOO2fIOaQw/m2IAkvRZkFmOn2eJsfp0FCmifu9TqnhKsroOzVrS1EcrGeyPU2rBsGauO 0xK0dKAdwUxk1s5imHDcg4SSLLSQzgwxTg7ksVW2ps0bYTw98I/KHBfErKKbOQKYxCug ApFg==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1729957724; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=3EqXxUglAA4hHP+JrK3hT/+HbXO7jCwPAB4G04lbbEg=; b=0cug5s9gxJpKCXhv2ArrPEs16/V7aFzx/zfb8uSQe+Nppc6tXFtiZQ9musFv/WHvOk aT9cdBMsufMQ3dSPNCCw==
> > Does Linux only support SCSI-2 and later drives?
>
> I think SCSI-1-CCS works the same regarding the allocation length as SCSI-2
> (or newer).
I just check the specs, SCSI-1-CCS still says that an allocation length of 0
(for REQUEST SENSE, not for other commands) returns 4 bytes. So this seems
to have changed with SCSI-2. The standard says:
Targets shall be capable of returning eighteen bytes of data in response
to a REQUEST SENSE command. If the allocation length is eighteen or
greater, and a target returns less than eighteen bytes of data, the
initiator should assume that the bytes not transferred would have been
zeros had the target returned those bytes. Initiators can determine how
much sense data has been returned by examining the allocation length
parameter in the command descriptor block and the additional sense length
in the sense data. Targets shall not adjust the additional sense length
to reflect truncation if the allocation length is less than the sense data
available.
Best regards
Uwe