Page MenuHomeFreeBSD

ahc(4)/ahd(4): fix target mode on ARM
ClosedPublic

Authored by kevans on Fri, Apr 19, 2:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 6:36 PM
Unknown Object (File)
Sun, Apr 21, 6:00 PM
Unknown Object (File)
Sun, Apr 21, 4:10 AM
Unknown Object (File)
Sat, Apr 20, 6:31 PM
Subscribers

Details

Summary

One of the comments in ahc_execute_scb() notes that the CAM direction is
actually w.r.t. the initiator. As a consequence, all of our sync ops
end up being wrong because the direction is flipped from that of the
transfer. Fix it to do proper invalidation and avoid spewing random
garbage out on the SCSI bus.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans created this revision.
This revision is now accepted and ready to land.Fri, Apr 19, 2:11 AM

I have tested this on an Raspberry PI CM4 with the IO board and this works there.

Looks good to me, but if you wish, couple cosmetic thoughts.

sys/dev/aic7xxx/aic7xxx_osm.c
306

post asks to be bool, but considering age of the driver...

309

flags in struct ccb_hdr is uint32_t.

This revision was automatically updated to reflect the committed changes.