diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-12 14:06:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-12 14:06:06 +0000 |
commit | a05e27ce903d0096d08735c27f18df94e6254279 (patch) | |
tree | 0e8422f1dfb4195e20d338fd65c49b7952dff205 /sys/dev/ic/mpivar.h | |
parent | 6bd48e46af8eb5cb552c4a1a5e1b55f92d293313 (diff) |
fix sgl loading. there were a few issues, the main ones being:
- when the sgl grew too large it became bigger than the maximum frame size
that the ioc would deal with, and then it would just stop doing io. i was
using the wrong field from iocfacts to figure out how large an sgl should
be.
- chained sgls were broken cos i was including the current chain element in
the calculation of the offset to the next chain element.
big ok from marco@
Diffstat (limited to 'sys/dev/ic/mpivar.h')
-rw-r--r-- | sys/dev/ic/mpivar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/mpivar.h b/sys/dev/ic/mpivar.h index 092ad3916ee..df848e1d94a 100644 --- a/sys/dev/ic/mpivar.h +++ b/sys/dev/ic/mpivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpivar.h,v 1.9 2006/06/12 03:46:12 marco Exp $ */ +/* $OpenBSD: mpivar.h,v 1.10 2006/06/12 14:06:05 dlg Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -102,6 +102,7 @@ struct mpi_softc { int sc_maxcmds; int sc_maxchdepth; int sc_first_sgl_len; + int sc_chain_len; int sc_max_sgl_len; int sc_buswidth; |