]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ahc(4)/ahd(4): fix target mode on ARM
authorKyle Evans <kevans@FreeBSD.org>
Sun, 21 Apr 2024 03:04:04 +0000 (22:04 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 21 Apr 2024 03:04:04 +0000 (22:04 -0500)
commit9dcf39575efb2ff32f955d9e04e04af28d45d798
tree842b9e9cd32ce62957448f6b407ddbc6476bd7dd
parentb5e0cc2fa44f52f16fc0b9c3f1709bc0f43fe2d0
ahc(4)/ahd(4): fix target mode on ARM

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.

Reported and tested by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Differential Revision: https://reviews.freebsd.org/D44860
sys/dev/aic7xxx/aic79xx_osm.c
sys/dev/aic7xxx/aic7xxx_osm.c