uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Add support for linked commands to target mode and s2pexec #98

Closed uweseimet closed 1 month ago

uweseimet commented 1 month ago

See SCSI-2 (or newer) specification for details.

uweseimet commented 1 month ago

The log shows a READ CAPACITY command linked to a TEST UNIT READY command. In the TEST UNIT READY command the link bit is set. The test was run with in target mode against an Atari.

[2024-10-14 10:59:32.298] [debug] (ID 0) - Controller is executing TEST UNIT READY, CDB $00:00:00:00:00:01
[2024-10-14 10:59:32.299] [debug] (ID:LUN 0:0) - Device is executing TEST UNIT READY ($00)
[2024-10-14 10:59:32.299] [debug] (ID 0) - Controller is executing READ CAPACITY(10), CDB $25:00:00:00:00:00:00:00:00:00
[2024-10-14 10:59:32.299] [debug] (ID:LUN 0:0) - Device is executing READ CAPACITY(10) ($25)

Test with in_process_test, linking INQUIRY to two TEST UNIT READY commands:

s2pexec>-c 00:00:00:00:00:01:00:00:00:00:00:01:12:00:00:00:ff:00
00000000  00:00:02:02:1f:00:00:08:53:43:53:49:32:50:69:20  '........SCSI2Pi '
00000010  53:43:53:49:20:48:44:20:31:36:20:4d:69:42:20:20  'SCSI HD 16 MiB  '
00000020  30:34:30:30