Date: Sat, 27 Feb 2010 05:41:23 +0000 (UTC) From: Matt Jacob <mjacob@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/isp isp.c isp_freebsd.c isp_library.c isp_library.h isp_pci.c isp_target.c ispmbox.h ispreg.h Message-ID: <201002270541.o1R5fnd2096208@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mjacob 2010-02-27 05:41:23 UTC
FreeBSD src repository
Modified files:
sys/dev/isp isp.c isp_freebsd.c isp_library.c
isp_library.h isp_pci.c isp_target.c
ispmbox.h ispreg.h
Log:
SVN rev 204397 on 2010-02-27 05:41:23Z by mjacob
Revamp the pieces of some of the stuff I forgot to do when shifting to
32 bit handles. The RIO (reduced interrupt operation) and fast posting
for the parallel SCSI cards were all 16 bit handles. Furthermore,
target mode parallel SCSI only can have 16 bit handles.
Use part of a supplied patch to switch over to using 32 bit handles.
Be a bit more conservative here and only do this for parallel SCSI
for the 12160 (Ultra3) cards. There were a lot of marginal Ultra2
cards, and, frankly, few are findable now for testing.
Fix the target handle routine to only do 16 bit handles for parallel
SCSI cards. This is okay because the upper sixteen bits of the new
32 bit handles is a sequence number to help protect against duplicate
completions. This would be very unlikely to happen with parallel
SCSI target mode, and wasn't present before, so we're no worse off
than we used to be.
While we're at it, finally split the async mailbox completion handlers
into FC and parallel SCSI functions. This makes it much cleaner and
easier to figure out what is or isn't a legal async mailbox completion
code for different card classes.
PR: kern/144250
Submitted partially by: Charles D
MFC after: 1 week
Revision Changes Path
1.161 +180 -216 src/sys/dev/isp/isp.c
1.157 +2 -1 src/sys/dev/isp/isp_freebsd.c
1.20 +30 -5 src/sys/dev/isp/isp_library.c
1.11 +1 -0 src/sys/dev/isp/isp_library.h
1.152 +6 -12 src/sys/dev/isp/isp_pci.c
1.47 +3 -1 src/sys/dev/isp/isp_target.c
1.64 +10 -8 src/sys/dev/isp/ispmbox.h
1.31 +2 -2 src/sys/dev/isp/ispreg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002270541.o1R5fnd2096208>
