Commit Graph

74539 Commits

Author SHA1 Message Date
jmcneill 3ab5a3900d Add powerhook for atabus. 2005-01-26 21:51:40 +00:00
jmcneill 5a6c12cd3b Add powerhooks for PIIX IDE driver. 2005-01-26 21:50:31 +00:00
mycroft 5283ca74ad Fix two problems in our TCP stack:
1) If an echoed RFC 1323 time stamp appears to be later than the current time,
   ignore it and fall back to old-style RTT calculation.  This prevents ending
   up with a negative RTT and panicking later.

2) Fix NewReno.  This involves a few changes:

   a) Implement the send_high variable in RFC 2582.  Our implementation is
      subtly different; it is one *past* the last sequence number transmitted
      rather than being equal to it.  This simplifies some logic and makes
      the code smaller.  Additional logic was required to prevent sequence
      number wraparound problems; this is not mentioned in RFC 2582.

   b) Make sure we reset t_dupacks on new acks, but *not* on a partial ack.
      All of the new ack code is pushed out into tcp_newreno().  (Later this
      will probably be a pluggable function.)  Thus t_dupacks keeps track of
      whether we're in fast recovery all the time, with Reno or NewReno, which
      keeps some logic simpler.

   c) We do not need to update snd_recover when we're not in fast recovery.
      See tech-net for an explanation of this.

   d) In the gratuitous fast retransmit prevention case, do not send a packet.
      RFC 2582 specifically says that we should "do nothing".

   e) Do not inflate the congestion window on a partial ack.  (This is done by
      testing t_dupacks to see whether we're still in fast recovery.)

This brings the performance of NewReno back up to the same as Reno in a few
random test cases (e.g. transferring peer-to-peer over my wireless network).
I have not concocted a good test case for the behavior specific to NewReno.
2005-01-26 21:49:27 +00:00
jmcneill 9c40186bce Add support functions for capturing and restoring PCI configuration
registers for power management code.
2005-01-26 21:49:00 +00:00
jmcneill 109219993b Fixup ACPI wakecode on i386. This (along with some PCI power management
hooks) allows my Latitude D600 to recover from S3 sleep.

acpi_wakeup.c changes from lha@:
  http://people.su.se/~lha/patches/netbsd/acpi-wakeup-1
2005-01-26 21:46:38 +00:00
kleink 9ce91047cd Clean up the array of audio_formats supported. 2005-01-26 21:28:55 +00:00
kleink 3d7886ed58 MPC601: Use RTC instead of TB. (While I'm here, update these to use
the inline versions from <powerpc/cpu.h>).
2005-01-26 20:51:47 +00:00
he 0429525c8e The ANSIfication apparently revealed a use of netif_attach() with a
missing argument.  (It doesn't appear to be used, though, so this should
be a functional NOOP, except for fixing the build problem.)
2005-01-26 20:34:50 +00:00
he 6012a9f72d Make forward declaration and actual function definitions consistent.
Some of the functions changed signature in the previous commit.
2005-01-26 20:32:27 +00:00
he bee4200faa Preserve the const qualifier even if we cast the "from" argument in the
memcpy() and memmove() inline functions.
2005-01-26 15:53:52 +00:00
fvdl 5ccd9c2654 Don't print a message when there's no interrupt to be handled, since this
can happen when one is shared. Also, don't claim it in that case.

Make some printfs more consistent.
2005-01-26 12:59:06 +00:00
yamt f6e331ee7c nfs_readdirrpc, nfs_readdirplusrpc:
avoid infinite loops when getting readdir response without
any entries or eof.  PR/28971.
2005-01-26 10:33:54 +00:00
yamt 72d6e88acf handle a really empty directory, which doesn't have even the dot entry. 2005-01-26 10:30:58 +00:00
wrstuden e384a44e9d Extend fsync_range(2) to support the FDISKSYNC flag, which requests
that the sync be propogated out through the disk drive caches.
2005-01-25 23:55:20 +00:00
briggs d9b6766216 Ensure i/o commands are allocated on 16-byte boundary by allocating 15
extra bytes and adjusting array starts.
Issue pointed out on port-macppc by Michael Lorenz.

Also remove extra print of the device name on attach().
2005-01-25 19:05:22 +00:00
matt 53fdea69cb Switch to using ifa for ifaddr's instead of ia (which are traditionally
used for in_ifaddr's) which could lead to confusion.
2005-01-25 17:22:08 +00:00
jmmv 51b5451e34 Capture incomplete packets coming from the card, as this driver doesn't
support this feature.  This avoids multiple crashes that I've had in the
past.  Also ensure that packets are not empty when DIAGNOSTIC is set.

However, this is just another sanity check of the received packets, but
does not address the real problem.  The issue seems to be the following:
if the card receives data while doing a reset (vr_init), it later finds
a bunch of empty packets in the receive ring.

This explains the crashes I've hit: running a program which needs
promiscuous mode (dhclient) while the card was already running in
that mode (tcpdump).  In this situation, it's easy that the second
reset receives stuff from the network.

Unfortunately, I don't know why the card is producing these packets...

While here, fix a typo in a comment.
2005-01-25 17:02:09 +00:00
drochner 613f1d9cdb Hmm - vax is different. sendsig_sigcontext() is for __mips only.
Should fix build error found by Havard Eidnes.
2005-01-25 14:56:09 +00:00
yamt a7b5d8f567 nfs_check_wccdata: comment. 2005-01-25 12:20:32 +00:00
tron ed9b5b2073 Fix cut and paste error in last commit. 2005-01-25 11:20:37 +00:00
ragge 9bb19bb2e0 Do not cast simple_lock() to (void). It may be a do { } while() macro,
and then compilation fails.  Found by Håvard Eidnes.
2005-01-25 09:57:15 +00:00
drochner 7d0567768c -in the read-ahead code, avoid to issue read requests at/past EOF
-because noone should request reads past EOF, or writes past EOF which
 are not explicitely marked as file-extending (PGO_PASTEOF), turn
 a boundary check into a KASSERT
approved by Chuck Silvers
2005-01-25 09:50:31 +00:00
matt 1dfcdea23d Regen. 2005-01-25 00:55:25 +00:00
matt 2d074b9231 Add additional PCI Device IDs for ATI Radeon 9200 2005-01-25 00:55:00 +00:00
joff 79f8908d72 It seems on some archs size_t is unsigned int and on others size_t is
unsigned long.  Cast sizeof() to unsigned long in printf()'s so it can
always work regardless.
2005-01-24 22:40:00 +00:00
matt 691566cdec Initialize zsconschannel to -1 so that it can't matched unless zscninit
is explicitly called to set it up.
2005-01-24 21:39:15 +00:00
dbj d681cb1ea9 check _KERNEL_OPT instead of !_LKM to conditionalize opt includes 2005-01-24 21:34:48 +00:00
dbj 208b0b3a89 clear p->p_cwdi of exiting processes and
avoid dereferencing invalid p_cwdi in checkdirs
this fixes a race condition between exiting processes and mount
see discussion on tech-kern:
 http://mail-index.netbsd.org/tech-kern/2004/10/04/0006.html
 http://mail-index.netbsd.org/tech-kern/2004/10/08/0005.html
2005-01-24 21:27:02 +00:00
matt 027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
shige 3ad343e546 Add OpenBlockS266 GPIO LED Driver. 2005-01-24 18:47:37 +00:00
is 909ba1f5de Fixes by Klaus Klein. 2005-01-24 16:57:21 +00:00
cube 9c61428178 Install tap(4) LKM. 2005-01-24 15:50:52 +00:00
is 0c23284a1c Don't be confused with trigraphs.
EXEC_ELF -> EXEC_ELF32
2005-01-24 15:49:29 +00:00
simonb 0bcf992248 Fix a couple of comments. 2005-01-24 11:54:51 +00:00
drochner 7c10815d09 use sendsig_sigcontext() directly instead of the generic sendsig() 2005-01-24 10:08:02 +00:00
drochner 50ed6c7cf3 -remove definition of "struct sigframe" -- haven't found a use of it
(should fix build problems w/o COMPAT_16 reported by Markus W Kilbinger
  per PR port-mips/29041 and by Havard Eidnes)
-further shuffle COMPAT_* conditionals to allow COMPAT_ULTRIX
 w/o COMPAT_16
2005-01-24 10:03:57 +00:00
enami f1b6d58e81 To fix bad pointer dereference on start up when gif is used,
- Allow rn_init() to be called multiple times, but do nothing except the
  first call.
- Include opt_inet.h so that #ifdef INET works.
- Call rn_init() from encap_init() explicitly rather than depending on the
  order of initialization.
2005-01-24 04:46:49 +00:00
joff 1cd0ad9aff Add atu(4) 802.11b USB driver 2005-01-24 03:02:45 +00:00
itojun fd232dd798 get zero-cleared field on malloc. kame-pr-856 2005-01-24 02:42:49 +00:00
joff 204717149e Enable atu, vnd, and kttcp by default 2005-01-24 02:40:00 +00:00
joff 8506af05a4 Fix mem/io extents usage. Previously had been mis-using the bs_cookie for a bs_tag. 2005-01-24 02:38:15 +00:00
joff f61320850a whoops, had intr mask inverted 2005-01-24 02:36:04 +00:00
joff 4a237e5849 add atu 2005-01-24 02:08:57 +00:00
joff 25f4405fee Add atu(4), Atmel 802.11b USB wifi dongle. From OpenBSD. 2005-01-24 01:36:07 +00:00
rumble 468646676a Remove dirhash.h. 2005-01-24 01:32:22 +00:00
joff 9a12dd0ebe Implementation requirements of usb_needs_reattach(), from OpenBSD and required
for atu(4) to do a USB reconnect after firmware upload.
2005-01-24 01:30:38 +00:00
joff 988043649e New Belkin USB-wifi ID, rename DWL120 to generic AT76C503A since this ID is used by more than one vendor (from OpenBSD) 2005-01-24 01:21:31 +00:00
joff c8bf53857e Atmel AT76C50XX usb 802.11b wifi dongle driver from OpenBSD. 2005-01-24 01:17:03 +00:00
joff f046ac8874 Atmel AT76C50XX firmware files (required by atu(4) USB-wifi adapter) 2005-01-24 01:00:19 +00:00
matt 4809be904e Commit missing files with domain list sets. 2005-01-23 22:24:39 +00:00