Skip to content

Conversation

@reinauer
Copy link
Member

@reinauer reinauer commented Jan 2, 2026

Remove the Command Complete (0x00) handler in the msgin phase that was
added in commit 85e755f. When Command Complete arrived via the msgin
dispatcher rather than through the normal status phase, the msg_complete
handler would signal A_ok without reading the status byte, leaving
acb->stat[0] uninitialized.

This caused data corruption with CF-to-SCSI adapters like RaizinMonster:
SysSpeed reported checksum errors during RawRead tests, and SysInfo
showed impossible transfer speeds (39 MB/sec).

Keep NOP message (0x08) handling which is harmless - just acknowledge
and continue.

Also replace cryptic err1-err11 identifiers with descriptive A_int_*
names in both SCRIPTS and host driver code, and disable disconnect
during device discovery for adapters that fail to reselect properly.

Remove the Command Complete (0x00) handler in the msgin phase that was
added in commit 85e755f. When Command Complete arrived via the msgin
dispatcher rather than through the normal status phase, the msg_complete
handler would signal A_ok without reading the status byte, leaving
acb->stat[0] uninitialized.

This caused data corruption with CF-to-SCSI adapters like RaizinMonster:
SysSpeed reported checksum errors during RawRead tests, and SysInfo
showed impossible transfer speeds (39 MB/sec).

Keep NOP message (0x08) handling which is harmless - just acknowledge
and continue.

Also replace cryptic err1-err11 identifiers with descriptive A_int_*
names in both SCRIPTS and host driver code, and disable disconnect
during device discovery for adapters that fail to reselect properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant