Commit Graph

133866 Commits

Author SHA1 Message Date
wiz
bc22bce866 Bump date for previous. 2005-01-27 18:38:20 +00:00
mycroft
d2ca156552 Add a small note about the use of shift keys. 2005-01-27 18:35:41 +00:00
mycroft
7ecc7a3071 Make awaitkey() poll once even if the timeout is 0. This also fixes a problem
where a keypress within the last polling interval would not be noticed.
Add a new function, conisshift(), which is used to detect whether a shift key
is pressed.  Use this via awaitkey() to allow interrupting the boot by holding
down shift (similar to LILO).

This allows setting the timeout to 0 and still being able to use the boot
program.
2005-01-27 18:20:45 +00:00
drochner
9f230230dc There is no point in passing "/netbsd" as namelist to kvm_open.
libkvm knows better.
2005-01-27 18:12:47 +00:00
mycroft
746d109a3c There is no reason to adjust ts_recent_age for ts_timebase; it's strictly an
internal variable.
2005-01-27 17:14:04 +00:00
mycroft
470f2d0705 Do the other TCP_PAWS_IDLE check unsigned as well. It doesn't do us any harm,
and it could detect even older time stamps.  (Really, to be 100% correct, there
should be a timer that clears these out -- but it probably doesn't matter in
the real world.)
2005-01-27 17:10:07 +00:00
mycroft
42655f2a87 Also check whether an echoed RTT is very large -- this *could* cause the
smoothing function to overflow.  I use TCP_PAWS_IDLE (24 days) for this.
2005-01-27 16:56:06 +00:00
kent
1c66af82f6 note support of nForce4 in viaide(4) and auich(4) 2005-01-27 13:41:41 +00:00
kent
51e95477c7 support for nForce4.
bump date.
2005-01-27 13:39:47 +00:00
kent
0e68407cf6 support nForce 4 2005-01-27 13:35:05 +00:00
kent
75432eafa2 support for nForce 4 PATA and SATA 2005-01-27 13:34:32 +00:00
kent
44200be30d regenerate for nForce 4 devices 2005-01-27 13:33:36 +00:00
kent
ab57a51809 add some nForce 4 devices 2005-01-27 13:31:45 +00:00
is
d781105e1d We don't need aout2bb any longer. 2005-01-27 12:54:05 +00:00
yamt
f1661c75d1 - simplify nfs_bio.c rev.1.126
- add an assertion.

no functional changes.
2005-01-27 12:46:42 +00:00
simonb
90d5b03202 Fix a typo in a printf string. 2005-01-27 12:35:53 +00:00
scw
1464f79e43 In vr_start(), don't forget to free the new mbuf if the second
bus_dmamap_load_mbuf() fails.
2005-01-27 11:58:01 +00:00
yamt
cf56f2b873 keep directory eof cache when inactivating vnode
because there's no reason to throw it away.
(fix an unintended side effect of nfs_subs.c rev.1.144.)
2005-01-27 11:33:26 +00:00
yamt
407a63dc34 nfs_bioread:
- if a buffer is still empty after successful nfs_doio, it implies EOF.
- don't cache blocks beyond EOF.
2005-01-27 11:29:25 +00:00
is
97eadfd5d7 NTOHL() is not the same as ntohl()... 2005-01-27 11:00:46 +00:00
martin
c7b31c04d6 Remove orphaned extern declaration. 2005-01-27 08:50:27 +00:00
itojun
3d34ee60f0 fix CERT VU#938617 (vulnerable to denial of service in validator code)
ftp://ftp.isc.org/isc/bind/9.3.0/9.3.0-patch1
2005-01-27 03:56:23 +00:00
mycroft
7215a0b3f1 Introduce a new state variable, t_partialacks. It has 3 states:
* t_partialacks<0 means we are not in fast recovery.
* t_partialacks==0 means we are in fast recovery, but we have not received
  any partial acks yet.
* t_partialacks>0 means we are in fast recovery, and we have received
  partial acks.

This is used to implement 2 changes in RFC 3782:
* We keep the notion that we are in fast recovery separate from t_dupacks, so
  it is not reset due to out-of-order acks.  (This affects both the Reno and
  NewReno cases.)
* We only reset the retransmit timer on the first partial ack -- preventing us
  from possibly taking one RTO per segment once fast recovery is initiated.

As before, it is hard to measure any difference between Reno and NewReno in the
real-world cases that I've tested.
2005-01-27 03:39:36 +00:00
jmcneill
0a95a06218 Fix synaptics touchpad resume, from Kentaro A. Kurahone. 2005-01-27 03:04:31 +00:00
jmcneill
fac3e15af3 Fix typo. 2005-01-27 03:03:33 +00:00
jmcneill
7f3681fe2b Don't restore PCI configuration state if the chip isn't in D0, from
Kentaro A. Kurahone.
2005-01-27 02:58:52 +00:00
jmcneill
27d1abf7f8 Capture PCI configuration state on suspend and restore it on resume, from
Kentaro A. Kurahone.
2005-01-27 02:44:59 +00:00
jmcneill
73f985e393 Add agp_i810 powerhook, from Kentaro A. Kurahone 2005-01-27 02:43:42 +00:00
jmcneill
41a62b176d Add rtk_pci powerhook, from Kentaro A. Kurahone 2005-01-27 02:42:35 +00:00
wrstuden
442d792d00 Fix pasto in previous. We only perform the DIOCCACHESYNC call if
FSYNC_CACHE is set, not if FSYNC_WAIT is set.
2005-01-27 02:16:42 +00:00
jmcneill
439b200f99 Document pci_conf_capture(9), pci_conf_restore(9) as well as
struct pci_conf_state.
2005-01-27 01:49:53 +00:00
jmcneill
6a3e1ea6a4 Missed a break in the powerhook (shouldn't matter functionally, but
fix anyway for correctness).
2005-01-26 22:15:26 +00:00
jmcneill
f9fc6336b1 Add pci_conf_{capture,restore} to auich(4) powerhook 2005-01-26 21:53:42 +00:00
jmcneill
0c537484ca Add powerhook to bge(4) 2005-01-26 21:52:47 +00:00
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
wiz
15f1332a67 Sync with manpage (add -W, sort). 2005-01-26 13:42:07 +00:00
wiz
2ad86c0bf3 Sort options. Remove some unnecessary Bk/Ek. Add some commas. 2005-01-26 13:41:47 +00:00
simonb
048c86fdf0 Add a "wide" mode output (selected with -W) to show more information
about memory pools, including pool page size, flags and utilisation.
2005-01-26 13:07:32 +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