Re: [hatari-devel] Linux-68k and REQUEST SENSE |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Linux-68k and REQUEST SENSE
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sun, 24 Nov 2024 10:53:04 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1732441998; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=pDRjU3sxLJXzC0g3J5VEwnWjX+DBMrh4zUjGqfbWfx8=; b=WeWcVsoCVk9dVgM8kcR+OXHlRX50qgQF3KFLUAAREDKKlMxtJbKfEllDb5OXszQkt1 m7lrofCRAB0qKnbMPJ2PBM4ulC+iJJ6FZqqp6FYuvgV+qZ7GmtcLdCgqEZWzbIyDXy0G BKTFIB5rrasj0ZLxdEXklVkDwzu4UPDJuv+P0RTNxJCz/n+XSEgcSnHPY0jUPZihlWj/ wqCrvCvSRF4CVAOZGI383/KMqpHQl+3PjyB52xCX7nr9nULAN0+asjxFOq/XXornRq0f WD9LN2xhzgqCNQEUM+isz+FFqaOaqW9W1T018qZ8MQwitl/dqpRexBBBc6odM0kXsfCO Z/1g==
- Arc-seal: i=1; a=rsa-sha256; t=1732441998; cv=none; d=strato.com; s=strato-dkim-0002; b=Vwq563EBmSaMQvOXdftarEZteRWXM8SP6iVHCBMONACNTSMBNw2GaXd27bv3DfsgNF Ky84BAGRxI25HuuFxk5Y5gLWeSSzclF45yK4vaOjtNEWUTf3v5036KN/qXr4I5h1w3SQ 3li6r3zHHYiaNsSOLyF74qjEaqIYdfAqFtVOymYgPqMZuMHQte6TWlrhFtcBzVWQQyl+ yb0D+XoyKae1I3vL47OOTDkWkWo3xTHt5ZkqcKortmOlH6zb9do/RKf3tMNxyxM2mSLz mxHst+gs2riobjyz7QC58mjyMyVCrPocrzMGnyMoMutFphxUMS3q149ausRi6rMyEuIc NyFg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1732441997; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=pDRjU3sxLJXzC0g3J5VEwnWjX+DBMrh4zUjGqfbWfx8=; b=MnE8ThhezyxMHNhaC4Zfs1LPFjdonCerjxXevckEdKUa4KKrcjdR7cWMNbrvYuYLyW 9FYoiVn3oqdCdQ6QyJVJjzvAfBqMRmxcy85DUhzEeRLbS5cEcZ8hF0eaS889WHSmC3M9 N/4Nf1CkezpCebFBHd8d07zu1cZl4VS3sKa3f4Bpc/T2owaD3yokCLyAsVgvK9+XA0Uk jty2ozkM0q60DcfeXTQleElosttx0yLS04x3PCXovw7xqFcewntQEQV73REGWyxcGSHG mpLsihMKmhCFY3CAsh1kV88dw3w+yyczyK+RAf759vEKW+dKvmRBjkRk1V3rhlUkZ80H rM7Q==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1732441997; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=pDRjU3sxLJXzC0g3J5VEwnWjX+DBMrh4zUjGqfbWfx8=; b=W8B+IZsv0sMlJiW8vClaP3uLkX1B53L06Y+OdyehGK4+XlFbESzs3ZfIso6QH2pbwk 14yL14+RP/JC18QoWDAw==
I think I misread the log output, didn't I? The "6" is not the number of
bytes requested, but the number of command block bytes, isn't it? Linux
requested 60 bytes.
But that's even less strange. It is not unusual that the maximum number of
bytes is requested, e.g. with REQUEST SENSE or MODE SENSE, to ensure that
the device returns all available data. If there are less data to return,
this is not an error condition. The device will just send as many bytes as
it has, and will set the length field in the response to the respective
size. Just like Hatari does it with
else if (nRetLen > 22)
{
nRetLen = 22;
}
> Hi,
>
> I just had a look at the current doc/m68k-linux.txt file.
>
> DEBUG: raw_scsi: got command byte 00 (6/6)
> WARN : HDC: *** Strange REQUEST SENSE ***!
> DEBUG: raw_scsi: data in 22 bytes waiting
>
> Am I right that Linux requests a 6 byte response? This is not strange, but
> perfectly legal, because Linux may just have reserved a 6 byte buffer for
> the response because it does not need more bytes. I suggest to remove this
> message.
>
> What I actually stumbled upon is this:
>
> DEBUG: raw_scsi: data in finished, 22 bytes: status phase
> DEBUG: DMA initiator recv PC=001c40ee
> DEBUG: SCSI BUS reset
>
> Where does the 22 come from? The message looks as if Hatari tries to send 22
> bytes, even though a maximum of 6 was requested. If this is the case it
> explains the subsequent bus reset and the SCSI boot failure.
>
> Have these messages been recorded with a binary based on the current
> Hatari sources? I don't think that with the latest sources Hatari sends
> 22 bytes when only 6 are requested, but maybe I am missing something.
>
> Best regards
>
> Uwe
>
>