freebsd-dev/sys/dev/aic7xxx
Justin T. Gibbs 70351c9a14 Store a pointer to our softc in the kernel's SCB structure. In the
past we stored this data in the CCB and attained the CCB via a pointer
in the SCB.  In ahc_timeout(), however, the timedout SCB may have already
been completed (inherent race), meaning that the CCB could have been recycled,
and the ahc pointer reset.

Clean up the logic in ahc_search_qinfifo that deals with the busy device
table.  For some reason it assumed that the only valid time to search
to see if additional lun entries should be checked was if lun 0 matched.
Now we properly itterate through the necessary luns.  The busy device
table is used to detect invalid reselections, so a device would have had
to perform an unexpected reselection for this to cause problems.  Further,
all luns are collapsed to a single entry unless we have external ram
with large SCBs (3940AU models) so the chance of this happening was
rather remote.

Clean up the logic for dealing with the untagged queues.  We now set a
flag in the SCB that indicates that it is on the untagged queue instead
of inferring this from the type and setup of the CCB pased into us by
CAM.

In ahc_timeout(), don't print the path of the SCB until the controller
is paused and we are sure that it has not completed yet.  This, in
conjunction with referencing the ahc pointer in the SCB rather than
the CCB in the SCB avoids panics in the case of a timedout scb completing
just before the timeout handler runs.  This turns out to be guaranteed
if interrupt delivery is failing, as we run our interrupt handler to
flush any "just missed events" when a timeout occurs.  Mention the
likelyhood of broken interrupts if a timedout SCB is completed by
our call to ahc_intr().
2000-10-11 23:46:34 +00:00
..
aicasm Correct pedantic errors in arrays generated by the assembler (trailing 2000-10-05 04:25:42 +00:00
ahc_eisa.c Move aicasm to its own subdirectory. 2000-09-16 20:02:28 +00:00
ahc_pci.c Add Perforce RCSIDs for easy revision correlation to my local tree. 2000-09-22 22:18:05 +00:00
aic7xxx_93cx6.c Add Perforce RCSIDs for easy revision correlation to my local tree. 2000-09-22 22:18:05 +00:00
aic7xxx_93cx6.h Add Perforce RCSIDs for easy revision correlation to my local tree. 2000-09-22 22:18:05 +00:00
aic7xxx_freebsd.c Store a pointer to our softc in the kernel's SCB structure. In the 2000-10-11 23:46:34 +00:00
aic7xxx_freebsd.h Convert the driver to use a single DMA for fetching new commands instead 2000-10-05 04:24:14 +00:00
aic7xxx_inline.h Convert the driver to use a single DMA for fetching new commands instead 2000-10-05 04:24:14 +00:00
aic7xxx_osm.c Store a pointer to our softc in the kernel's SCB structure. In the 2000-10-11 23:46:34 +00:00
aic7xxx_osm.h Convert the driver to use a single DMA for fetching new commands instead 2000-10-05 04:24:14 +00:00
aic7xxx_pci.c Clean up error recovery code: 2000-10-09 01:46:01 +00:00
aic7xxx.c Store a pointer to our softc in the kernel's SCB structure. In the 2000-10-11 23:46:34 +00:00
aic7xxx.h Store a pointer to our softc in the kernel's SCB structure. In the 2000-10-11 23:46:34 +00:00
aic7xxx.reg Convert the driver to use a single DMA for fetching new commands instead 2000-10-05 04:24:14 +00:00
aic7xxx.seq Clean up error recovery code: 2000-10-09 01:46:01 +00:00
aic7770.c Move aicasm to its own subdirectory. 2000-09-16 20:02:28 +00:00