Commit Graph

23805 Commits

Author SHA1 Message Date
thorpej 53e3ba1192 Make DDB work again. 1998-07-18 23:02:33 +00:00
is 6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
mjacob a455ce7531 Locking is now in the outer framework for isp_init/isp_reset- this allows
us to call isp_reset/isp_init internally with impunity.

Rename isp_phoenix to isp_restart and make it global. Clean it up a tad.

If we get an ASYNC_SYSTEM_ERROR code in isp_intr, call isp_restart and
return- the f/w is toasted at this point (usually), so we have to bring
things back to a known state.

In isp_mboxcmd, when we don't see the HOST_INT bit go clear, try and
find out if the isp is trying to tell us something and try again. This
may avoid a potential deadlock where the previous mailbox command hasn't
been cleared by the ISP.

In isp_init don't try and get device parameters if we already have them-
this typically doesn't work if we're in the middle of an isp_restart.
1998-07-18 21:10:16 +00:00
mjacob 9afa921bc1 roll core version number and add a global visible isp_restart function 1998-07-18 21:06:20 +00:00
mjacob 35c8fecf3a fix headers 1998-07-18 21:05:39 +00:00
mjacob b85bf24ed5 fix bogus comments 1998-07-18 21:05:04 +00:00
mjacob 576988940f roll revision 1998-07-18 21:04:46 +00:00
mjacob 1aa702b8f8 fix bogus initialization 1998-07-18 21:04:22 +00:00
mjacob 99ff11f6b7 locking now out of main framework for isp_reset/isp_init 1998-07-18 21:02:06 +00:00
ragge 50d1442817 Fix PMAP_NEW and make it the default. 1998-07-18 20:35:14 +00:00
is 52ac5e203e Precompute lots of bitmasks etc. in serparam(). Results in slightly better
(but I suspect, insignificant) performance, and also prepares for 8bit +
parity support.
1998-07-18 20:19:33 +00:00
tsubai 2948f65db4 Use unsigned comparison of tbreg in delay(). 1998-07-18 16:23:44 +00:00
lukem 786b86d71b use AF_LOCAL instead of AF_UNIX 1998-07-18 05:04:35 +00:00
thorpej 3a9ed00799 Document that we are more conservative after doing MTU discovery than the
suggestion in draft-floyd-incr-init-win-03.  Rather than scaling cwnd back
by the ratio of new segment size to old segment size, we perform a slow start
using the Initial Window, computed with the new segment size.
1998-07-17 23:09:58 +00:00
pk 116c3be1e5 In dvma_mapout(), make sure to not overrun the buffer when flushing the cache. 1998-07-17 23:05:35 +00:00
thorpej 0f909866c0 Clarify that we're using the Loss Window when we receive a source quench. 1998-07-17 23:02:38 +00:00
thorpej fa20f24cd9 Add a comment wrt. a current issue w/ CWM. 1998-07-17 23:00:02 +00:00
thorpej a3f4316cba Clarify that we are using the Loss Window if a retransmission occurred
during the three-way handshake.
1998-07-17 22:58:56 +00:00
thorpej 830879a809 Comment where the Restart Window is computed, and in the non-CWM case,
make sure it never _increases_ cwnd.
1998-07-17 22:52:01 +00:00
thorpej 1c4ff0a086 Comment where we use the Loss Window. 1998-07-17 22:18:49 +00:00
thorpej 2fc1260cc0 Implement bus_dmamap_load_uio(). 1998-07-17 21:09:59 +00:00
mark f6e8a93bac Replace hardcoded constant with VM_MIN_KERNEL_ADDRESS. 1998-07-17 19:12:48 +00:00
thorpej 142429fb34 bus_dma carries TNF copyright. 1998-07-17 19:02:46 +00:00
tsubai c11b71818d Fix typo. 1998-07-17 18:53:19 +00:00
tsubai 08574665d0 Write (fake) Apple Partition Map when install boot block. 1998-07-17 18:48:37 +00:00
tsubai 0a6758d760 "chaos" PCI controller support.
Clean up.
1998-07-17 18:40:31 +00:00
tsubai 5f7fef3c79 Add bus_dma support. 1998-07-17 18:38:10 +00:00
tsubai fb93315ffc Change pcitag_t format for bandit. 1998-07-17 18:31:56 +00:00
eeh 97081b51be Make this work for a change. 1998-07-17 02:33:13 +00:00
sommerfe 69b1b4758d Fix PR5559: if fast-forwarding, DF set, and packet too large, send ICMP error.. 1998-07-17 00:35:23 +00:00
sommerfe 534520d815 Fix PR5508: ipfil cut-through forwarding causes panic 1998-07-17 00:28:00 +00:00
is 985b3e8d4d Make this compile without USBVERBOSE. 1998-07-16 12:55:19 +00:00
tls deac3540de Put original hash function back. It wastes a little bit of space, but is much more even -- think of the case of a web service provider, some of whose customers end up getting 'inferior service' because they're on addresses that happen to be out at the end of a hash chain. With webservers with thousands of addresses, this is a real issue. If the wasted space is a big deal, we could pick a prime number that's slightly _less_ than a power of two... 1998-07-16 06:45:09 +00:00
thorpej 4c50a37133 Back out previous, I botched something. 1998-07-16 00:46:50 +00:00
jonathan d2ddbe58a2 Add empty opt_cputype.h to satisfy changes committed during
defopt'ing of network options.
1998-07-15 23:57:04 +00:00
mjacob 4e51ba7874 New file for building isp host adapter. 1998-07-15 20:22:19 +00:00
mjacob 66ea6cc018 Fix for kern/3835: add an sd sense handler. If we get a check condition/sense
data ASC/ASCQ of 0x04/0x01 (logical unit not ready, initialization in progress),
hang out for 5 seconds and return a RETRY THE OPERATION command. If we
get a check condition/sense data ASC/ASCQ of 0x04/0x02 (logical unit not
ready, initialization command required), send a polled/nosleep START UNIT
command and return a RETRY THE OPERATION command if that succeeds.

Don't send a START UNIT to a disk quirked as SDEV_NO_START. Don't send
a START UNIT to removable media. The reason for the latter is to not
just blindly spin up new (maybe changed) media.

I should note that I've successfully made this work with the ISP host
adapter so far. Other host adapters will need some work to be able
to manage or reasonably fail NOSLEEP/POLL commands while in this
state. Alternatively, the internal SCSI midlayer structure has got
to allow for more controlled error recovery (e.g., restart queues
controlled by the target driver).
1998-07-15 20:21:12 +00:00
mjacob bf29f419e7 part of fix for kern/3835: use of enumerated returns from target sense handlers 1998-07-15 20:13:30 +00:00
mjacob dba811205f 1) Part of fix for kern/3835: add in enumerated return values for target
drivers' sense handlers to return. Coincidentally one of them ends up
being ERESTARTSYS.

2) Add a SCSI_URGENT flag to xs structure- this allows host adapters that
do command tagging to do the right thing wrt a tag.
1998-07-15 20:11:34 +00:00
mjacob bc355c6b3f new framework 1998-07-15 19:59:45 +00:00
mjacob afb0e1b693 no framework 1998-07-15 19:53:57 +00:00
mjacob e8f976016e Some major thrashing to handle building for other than NetBSD.
There is one change of note- build a list of completing commands in
ispintr and then say you're done- this avoids some re-entrancy issues
that had surfaced.
1998-07-15 19:50:16 +00:00
mjacob d96bd50c07 NetBSD OS specific routines and definitions. 1998-07-15 19:44:04 +00:00
thorpej d681d158c7 Remove the raw HYPERchannel kludge. 1998-07-15 17:45:52 +00:00
thorpej 389da54091 Garbage collect `imp' and `hy'. We don't have the rest of the code, and
it's not like anyone is ever going to be using either of them.
1998-07-15 17:39:20 +00:00
drochner 9d504aa676 rename "LK" -> "declk" for consistency 1998-07-15 14:06:34 +00:00
pk 3036bcf8e5 Close a descriptor leak. This proved especially detrimental under heavy
paging.
1998-07-15 12:38:29 +00:00
drochner 8babb8290c fix egcs warnings 1998-07-15 09:35:35 +00:00
thorpej 41986b6ad6 Print out the revision as a letter, i.e. 'A', ... 1998-07-15 03:29:47 +00:00
thorpej 25a86ef490 Be a little more thorough when printing the chip name, and also print
the chip revision.
1998-07-15 00:01:17 +00:00