]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years ago - Fix the silly flag situation in UMA. Remove redundant ZFLAG/ZONE flags
Jeff Roberson [Fri, 19 Sep 2003 08:37:44 +0000 (08:37 +0000)]
 - Fix the silly flag situation in UMA.  Remove redundant ZFLAG/ZONE flags
   by accepting the user supplied flags directly.  Previously this was not
   done so that flags for the same field would not be defined in two
   different files.  Add comments in each header instructing future
   developers on how now to shoot their feet.
 - Fix a test for !OFFPAGE which should have been a test for HASH.  This would
   have caused a panic if we had ever destructed a malloc zone.  This also
   opens up the possibility that other zones could use the vsetobj() method
   rather than a hash.

20 years agoChange TRAPF_USERMODE and CLOCKF_USERMODE to not test for CPL == 3,
Marcel Moolenaar [Fri, 19 Sep 2003 07:48:22 +0000 (07:48 +0000)]
Change TRAPF_USERMODE and CLOCKF_USERMODE to not test for CPL == 3,
but for CPL != 0. For some reason yet unknown it is possible for the
CPL to be 2. This would previously be counted as kernel mode, which
resulted in nasty panics. By changing the test it is now treated as
user mode, which is more correct. We still need to figure out how it
is possible that the privilege level can be 2 (or 1 for that matter),
because it's not used by us. We only use 3 (user mode) and 0 (kernel
mode).

20 years ago - Don't abuse M_DEVBUF, define a tag for UMA hashes.
Jeff Roberson [Fri, 19 Sep 2003 07:23:50 +0000 (07:23 +0000)]
 - Don't abuse M_DEVBUF, define a tag for UMA hashes.

20 years ago - Eliminate a pair of unnecessary variables.
Jeff Roberson [Fri, 19 Sep 2003 06:41:06 +0000 (06:41 +0000)]
 - Eliminate a pair of unnecessary variables.

20 years ago - Initialize a pool of bucket zones so that we waste less space on zones that
Jeff Roberson [Fri, 19 Sep 2003 06:26:45 +0000 (06:26 +0000)]
 - Initialize a pool of bucket zones so that we waste less space on zones that
   don't cache as many items.
 - Introduce the bucket_alloc(), bucket_free() functions to wrap bucket
   allocation.  These functions select the appropriate bucket zone to
   allocate from or free to.
 - Rename ub_ptr to ub_cnt to reflect a change in its use.  ub_cnt now reflects
   the count of free items in the bucket.  This gets rid of many unnatural
   subtractions by 1 throughout the code.
 - Add ub_entries which reflects the number of entries possibly held in a
   bucket.

20 years agoMerge vm_pageout_free_page_calc() into vm_pageout(), eliminating some
Alan Cox [Fri, 19 Sep 2003 05:03:45 +0000 (05:03 +0000)]
Merge vm_pageout_free_page_calc() into vm_pageout(), eliminating some
unneeded code.

20 years ago - Only use UMA to cache malloc requests up to PAGE_SIZE. Values larger than
Jeff Roberson [Fri, 19 Sep 2003 04:39:08 +0000 (04:39 +0000)]
 - Only use UMA to cache malloc requests up to PAGE_SIZE.  Values larger than
   this are requested very infrequently and waste memory when we cache
   spares.

20 years agoRemove jumbo buffer #defines that I ended up not needing.
Bill Paul [Fri, 19 Sep 2003 02:35:03 +0000 (02:35 +0000)]
Remove jumbo buffer #defines that I ended up not needing.

20 years agoadd Atheros driver
Sam Leffler [Fri, 19 Sep 2003 01:42:24 +0000 (01:42 +0000)]
add Atheros driver

20 years agoo add some more retail card identifiers
Sam Leffler [Fri, 19 Sep 2003 01:41:18 +0000 (01:41 +0000)]
o add some more retail card identifiers
o remove caveat about 11g operation; seems to work ok

20 years agoInclude "opt_kstack_pages.h". We export KSTACK_PAGES to assembly and
Marcel Moolenaar [Fri, 19 Sep 2003 00:37:41 +0000 (00:37 +0000)]
Include "opt_kstack_pages.h". We export KSTACK_PAGES to assembly and
better have the right value.

20 years agoIn re_diag(), there's no need for us to call re_start() ourselves:
Bill Paul [Thu, 18 Sep 2003 18:32:15 +0000 (18:32 +0000)]
In re_diag(), there's no need for us to call re_start() ourselves:
IF_HANDOFF() does it for us behind the scenes. Remove the extra call
to re_start() otherwise we try to transmit twice.

In re_encap(), fix the code that guards against consuming too many
descriptors in the TX ring so that it actually works. With the
new 8169S chip, I was able to hit a corner case that drained the
free descriptor count all the way to 0. This is not supposed to
be possible.

20 years agoName moderate security settings "Moderate", not "Medium"
Eivind Eklund [Thu, 18 Sep 2003 17:36:20 +0000 (17:36 +0000)]
Name moderate security settings "Moderate", not "Medium"

20 years agoone more opossite conditiion.
Hajimu UMEMOTO [Thu, 18 Sep 2003 17:26:56 +0000 (17:26 +0000)]
one more opossite conditiion.

Reported by: "lg" <zevlg@yandex.ru>

20 years agoFix a busted constant related to PCI configuration acess method #1. The
John Baldwin [Thu, 18 Sep 2003 17:00:03 +0000 (17:00 +0000)]
Fix a busted constant related to PCI configuration acess method #1.  The
reserved bits in the port that must be zero are 24:30, not 20:30.  Bits
16:23 are used to set the bus number.  This meant that when we tested for
config mechanism #1, if the previous PCI configuration transaction sent
used a bus number greater than 15, one of the bits in 20:23 would be
non-zero and we would fail to use config mechanism #1 and thus fail to see
that PCI existed on the machine at all.

Obtained from: Shanley's PCI System Architecture book
Tested by: des
Proxied through: njl

20 years agoCosmetics
Søren Schmidt [Thu, 18 Sep 2003 16:44:54 +0000 (16:44 +0000)]
Cosmetics

20 years agoBe a bit more restrictive in the probe so we dont hang around
Søren Schmidt [Thu, 18 Sep 2003 16:43:08 +0000 (16:43 +0000)]
Be a bit more restrictive in the probe so we dont hang around
on empty channels in most cases.

20 years agoRemove excess paranoia. There is no need to chech for the crypto/ dir
Mark Murray [Thu, 18 Sep 2003 16:35:43 +0000 (16:35 +0000)]
Remove excess paranoia. There is no need to chech for the crypto/ dir
any more, and this check has been removed elsewhere.

20 years agoPropagate ioctl() failure to exit status
Eivind Eklund [Thu, 18 Sep 2003 16:20:32 +0000 (16:20 +0000)]
Propagate ioctl() failure to exit status

20 years ago- Reorder to group the non-obsolete options together
Eivind Eklund [Thu, 18 Sep 2003 16:18:45 +0000 (16:18 +0000)]
- Reorder to group the non-obsolete options together
- Change from "will be deprecated in 5.1" to "was deprecated in 5.1"

20 years ago Support the Hawking Technology's UF100 Pegasus II 10/100 USB Ethernet.
David E. O'Brien [Thu, 18 Sep 2003 15:41:07 +0000 (15:41 +0000)]
 Support the Hawking Technology's UF100 Pegasus II 10/100 USB Ethernet.

20 years agoReferring to FreeBSD versions later than 2.0R as "fairly recent" is pretty
Poul-Henning Kamp [Thu, 18 Sep 2003 15:13:57 +0000 (15:13 +0000)]
Referring to FreeBSD versions later than 2.0R as "fairly recent" is pretty
archaic at this point in time.  Pretend nobody runs FreeBSD 1.x anymore
in order to not confuse people needlessly.

Laplink support probably doesn't even work at this point in time anyway...

21 years agopthread api should return error code in return value, not in errno.
David Xu [Thu, 18 Sep 2003 12:19:28 +0000 (12:19 +0000)]
pthread api should return error code in return value, not in errno.

21 years agoPerl 5.8.0 has been in ports for a long time. Add the correct directory
Dag-Erling Smørgrav [Thu, 18 Sep 2003 10:44:42 +0000 (10:44 +0000)]
Perl 5.8.0 has been in ports for a long time.  Add the correct directory
to manpath.config so use.perl won't needs to add it.

21 years agoAdd a default setting of NO for the gbde auto attach script, and
Doug Barton [Thu, 18 Sep 2003 09:59:37 +0000 (09:59 +0000)]
Add a default setting of NO for the gbde auto attach script, and
document the options.

21 years agoMerged from sys/isa/fd.c revisions 1.259 and 1.260.
Yoshihiro Takahashi [Thu, 18 Sep 2003 09:49:08 +0000 (09:49 +0000)]
Merged from sys/isa/fd.c revisions 1.259 and 1.260.

21 years agoEnable DRM update note on pc98.
Yoshihiro Takahashi [Thu, 18 Sep 2003 09:27:31 +0000 (09:27 +0000)]
Enable DRM update note on pc98.

21 years agoProperly handle error code returns from the lower levels ATAPI code.
Søren Schmidt [Thu, 18 Sep 2003 09:22:14 +0000 (09:22 +0000)]
Properly handle error code returns from the lower levels ATAPI code.

21 years agoFix typo, tdp -> tcp
Doug Barton [Thu, 18 Sep 2003 09:21:09 +0000 (09:21 +0000)]
Fix typo, tdp -> tcp

PR: conf/56939
Submitted by: Alain Kalker <miki@dds.nl>

21 years agoUpdate comment about compression to refer to CPU limitations instead of T1s
Eivind Eklund [Thu, 18 Sep 2003 08:19:39 +0000 (08:19 +0000)]
Update comment about compression to refer to CPU limitations instead of T1s

21 years agoFixed most of the remaining style bugs in rev.1.194. Mainly better
Bruce Evans [Thu, 18 Sep 2003 07:46:40 +0000 (07:46 +0000)]
Fixed most of the remaining style bugs in rev.1.194.  Mainly better
wording in comments.

21 years agoDon't forget to reenable interrupts after a breakpoint and trace traps from
Bruce Evans [Thu, 18 Sep 2003 07:01:30 +0000 (07:01 +0000)]
Don't forget to reenable interrupts after a breakpoint and trace traps from
user mode.  This goes with rev.1.468 of machdep.c which changed the gates
for these traps to interrupt gates.  Having the interrupts disabled for
these traps from user mode is just an unwanted side effect.

This fixes at least 1 case of "panic: absolutely cannot call
smp_ipi_shootdown with interrupts already disabled".  Too much code was
run with interrupts disabled, and it sometimes hit a sanity check.

Fix verified by: deischen

21 years agoAdd necessary newlines.
Nate Lawson [Thu, 18 Sep 2003 05:12:45 +0000 (05:12 +0000)]
Add necessary newlines.

21 years agoShorten the message announcing fixed power/sleep buttons.
Nate Lawson [Thu, 18 Sep 2003 05:01:03 +0000 (05:01 +0000)]
Shorten the message announcing fixed power/sleep buttons.

21 years agoImplement the O modifier. The O modifier sorts the words in a
Marcel Moolenaar [Thu, 18 Sep 2003 03:15:57 +0000 (03:15 +0000)]
Implement the O modifier. The O modifier sorts the words in a
variable. The implementation is based upon the patch sent to
arch@, but modified to be compatible with NetBSD. The modifier
that does a reverse sort has been dropped for now, but the
ability to add one later has been preserved.

21 years agoAdd vm object locking to vnode_pager_lock(). (This triggers the movement
Alan Cox [Thu, 18 Sep 2003 02:26:03 +0000 (02:26 +0000)]
Add vm object locking to vnode_pager_lock().  (This triggers the movement
of a VM_OBJECT_LOCK() in vm_fault().)

21 years agoBandaid locking change: mark static rule mutex recursive so re-entry when
Sam Leffler [Wed, 17 Sep 2003 22:06:47 +0000 (22:06 +0000)]
Bandaid locking change: mark static rule mutex recursive so re-entry when
sending an ICMP packet doesn't cause a panic.  A better solution is needed;
possibly defering the transmit to a dedicated thread.

Observed by: "Aaron Wohl" <freebsd@soith.com>

21 years agoshuffle code so we don't "continue" and miss a needed unlock operation
Sam Leffler [Wed, 17 Sep 2003 21:13:16 +0000 (21:13 +0000)]
shuffle code so we don't "continue" and miss a needed unlock operation

Observed by: Wiktor Niesiobedzki <w@evip.pl>

21 years agoBump FreeBSD_version to note that ports that want constants for the
John Baldwin [Wed, 17 Sep 2003 20:37:02 +0000 (20:37 +0000)]
Bump FreeBSD_version to note that ports that want constants for the
16550 should use <dev/ic/ns16550.h> rather than <dev/sio/sioreg.h>

21 years agoo add support for setting 128-bit WEP keys
Sam Leffler [Wed, 17 Sep 2003 19:27:43 +0000 (19:27 +0000)]
o add support for setting 128-bit WEP keys
o use IEEE80211_KEYBUF_SIZE instead of magic numbers
o distinguish between 40-, 104-, and 128-bit WEP keys when printing status

21 years agofix build on 64-bit platforms
Sam Leffler [Wed, 17 Sep 2003 18:14:49 +0000 (18:14 +0000)]
fix build on 64-bit platforms

21 years agoMiscellaneous minor style fixes (mainly for unsorting of the flags access
Bruce Evans [Wed, 17 Sep 2003 17:26:00 +0000 (17:26 +0000)]
Miscellaneous minor style fixes (mainly for unsorting of the flags access
macros).

21 years agoFixed bitrot in the probe in revs.1.127, 1.165 and 1.169. The
Bruce Evans [Wed, 17 Sep 2003 16:44:02 +0000 (16:44 +0000)]
Fixed bitrot in the probe in revs.1.127, 1.165 and 1.169.  The
COM_NOFIFO() and COM_ESP cases are supposed to be a subsets of the
plain 16550A case, but 16650-related changes made the former fall into
the latter and then both fall into general code for printing the tx
fifo size.  This mainly caused hard to parse boot messages like:
"sio0: type 16550A fifo disabled lookalike with 1 bytes FIFO".
COM_NOFIFO() on an ESP port gave a larger mess whose extent is not
clear.

Fixed some nearby style bugs.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r120169,
Jacques Vidrine [Wed, 17 Sep 2003 15:10:36 +0000 (15:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r120169,
which included commits to RCS files with non-trunk default branches.

21 years agoCorrect address parsing bug that is believed to be remotely exploitable.
Jacques Vidrine [Wed, 17 Sep 2003 15:10:36 +0000 (15:10 +0000)]
Correct address parsing bug that is believed to be remotely exploitable.

Submitted by: Michal Zalewski <lcamtuf@dione.ids.pl>

21 years agoThis commit was generated by cvs2svn to compensate for changes in r120161,
Jacques Vidrine [Wed, 17 Sep 2003 14:36:14 +0000 (14:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r120161,
which included commits to RCS files with non-trunk default branches.

21 years agoCorrect more cases of allocation size bookkeeping being updated before
Jacques Vidrine [Wed, 17 Sep 2003 14:36:14 +0000 (14:36 +0000)]
Correct more cases of allocation size bookkeeping being updated before
calling functions which can potentially fail and cause cleanups to be
invoked.

Submitted by: Solar Designer <solar@openwall.com>

21 years agoCorrect more cases of allocation size bookkeeping being updated before
Jacques Vidrine [Wed, 17 Sep 2003 14:36:14 +0000 (14:36 +0000)]
Correct more cases of allocation size bookkeeping being updated before
calling functions which can potentially fail and cause cleanups to be
invoked.

Submitted by: Solar Designer <solar@openwall.com>

21 years agoCleaned up initialization of hardware flow control for 16650As. Use
Bruce Evans [Wed, 17 Sep 2003 14:05:16 +0000 (14:05 +0000)]
Cleaned up initialization of hardware flow control for 16650As.  Use
defined values instead of hard-coded values.  Don't repeat the register
access part of the code 4 times times or triple-space statements.  This
fixes half of the style bugs in rev.1.172.

Hardware flow control of 16650As is still officially unsupported.  I
was mistaken about it being broken.  It is broken in 16650s but is
fixed in 16650As except for the maximum trigger level (which is no
longer used).  Testing of the 16650's broken hardware flow control
watermarks by programming them on 16950s showed that their effects are
not too bad if the fifo size and trigger level are reasonably large
(16 is much better than 8).

21 years agocondition of padLen check was opposite.
Hajimu UMEMOTO [Wed, 17 Sep 2003 08:51:43 +0000 (08:51 +0000)]
condition of padLen check was opposite.

Reported by: "lg" <zevlg@yandex.ru>
Reviewed by: Lev Walkin <vlm@netli.com>

21 years agoAdd final adjustment code of battery status based on the battery capacity
Mitsuru IWASAKI [Wed, 17 Sep 2003 08:47:39 +0000 (08:47 +0000)]
Add final adjustment code of battery status based on the battery capacity
rather than returning unknown status.

21 years agoAdd pci_resume() to reestablish interrupt routing after
Mitsuru IWASAKI [Wed, 17 Sep 2003 08:32:44 +0000 (08:32 +0000)]
Add pci_resume() to reestablish interrupt routing after
suspend/resume.
Especially after hibernation, interrupt routing went back to initial
status on some machines.

21 years agoPick up softc from dev_t rathern than through newbus gymnastics.
Poul-Henning Kamp [Wed, 17 Sep 2003 07:40:00 +0000 (07:40 +0000)]
Pick up softc from dev_t rathern than through newbus gymnastics.

21 years agoSince it is static these days, there is no reason to uppercase the
Poul-Henning Kamp [Wed, 17 Sep 2003 07:21:20 +0000 (07:21 +0000)]
Since it is static these days, there is no reason to uppercase the
first letter of fdopen() to avoid nameclashing with other stuff.

21 years agoRemove GIANT_REQUIRED from vm_object_shadow().
Alan Cox [Wed, 17 Sep 2003 07:00:14 +0000 (07:00 +0000)]
Remove GIANT_REQUIRED from vm_object_shadow().

21 years agoWhen calling vget() on a vnode-backed vm object, acquire the vnode
Alan Cox [Wed, 17 Sep 2003 06:55:42 +0000 (06:55 +0000)]
When calling vget() on a vnode-backed vm object, acquire the vnode
interlock before releasing the vm object's lock.

21 years agoFix a `cast to pointer from integer of different size' warning.
Marcel Moolenaar [Wed, 17 Sep 2003 03:58:52 +0000 (03:58 +0000)]
Fix a `cast to pointer from integer of different size' warning.
usage() has been made a (non-void) function so that it can be
used in a pointer expression (see macro `next'). Widen the
implied integer return type of usage() so that we can cast to
a pointer without warnings.

21 years agoFix 3 'cast to pointer from integer of different size' warnings.
Marcel Moolenaar [Wed, 17 Sep 2003 03:45:30 +0000 (03:45 +0000)]
Fix 3 'cast to pointer from integer of different size' warnings.
While here, fix the long line bugs in the same statements.

21 years agoIn uart_intr() loop until all interrupts have been handled. Previously
Marcel Moolenaar [Wed, 17 Sep 2003 03:11:32 +0000 (03:11 +0000)]
In uart_intr() loop until all interrupts have been handled. Previously
an UART interface could get stuck when a new interrupt condition
arose while servicing a previous interrupt. Since an interrupt was
already pending, no new interrupt would be triggered.

Avoid infinite recursion by flushing the Rx FIFO and marking an
overrun condition when we could not move the data from the Rx
FIFO to the receive buffer in toto. Failure to flush the Rx FIFO
would leave the Rx ready condition pending.

Note that the SAB 82532 already did this due to the nature of the
chip.

21 years agoOnly build the ebus driver on sparc64. It includes a header directly
Marcel Moolenaar [Wed, 17 Sep 2003 03:00:08 +0000 (03:00 +0000)]
Only build the ebus driver on sparc64. It includes a header directly
from the sparc64 subtree, which breaks building non-sparc64 platforms
in the event the sparc64 subtree does not exist.
The problem is specific to the module, because non-module builds are
affected by the presence or absence of "device ebus" in the kernel
configuration.

PR: kern/56869

21 years agoFix a typo in r1.8: The GTLB enable/flush bit is 1<<7, not 1<<8.
Eric Anholt [Wed, 17 Sep 2003 02:58:17 +0000 (02:58 +0000)]
Fix a typo in r1.8: The GTLB enable/flush bit is 1<<7, not 1<<8.

PR: kern/56297
Submitted by: Dan Angelescu <mrhsaacdoh@yahoo.com>

21 years agoAdd locking to the hardware drivers. I intended to figure out more
Marcel Moolenaar [Wed, 17 Sep 2003 01:41:21 +0000 (01:41 +0000)]
Add locking to the hardware drivers. I intended to figure out more
precisely where locking would be needed before adding it, but it
seems uart(4) draws slightly too much attention to have it without
locking for too long.
The lock added is a spinlock that protects access to the underlying
hardware. As a first and obvious stab at this, each method of the
hardware interface grabs the lock. Roughly speaking this serializes
the methods. Exceptions are the probe, attach and detach methods.

21 years agoFixed world breakage in previous commit. Somehow the wrong include was
Bruce Evans [Wed, 17 Sep 2003 01:09:10 +0000 (01:09 +0000)]
Fixed world breakage in previous commit.  Somehow the wrong include was
removed in the world although the correct one was removed in the universe.

21 years agoAdd locking.
Sam Leffler [Wed, 17 Sep 2003 00:56:50 +0000 (00:56 +0000)]
Add locking.

o change timeout to MPSAFE callout
o restructure rule deletion to deal with locking requirements
o replace static buffer used for ipfw control operations with malloc'd storage

Sponsored by: FreeBSD Foundation

21 years agoMinor fixups + add locking.
Sam Leffler [Wed, 17 Sep 2003 00:54:04 +0000 (00:54 +0000)]
Minor fixups + add locking.

o change time to MPSAFE callout
o make debug printfs conditional on DUMMYNET_DEBUG and runtime controllable
  by net.inet.ip.dummynet.debug
o make boot-time printf dependent on bootverbose

Sponsored by: FreeBSD Foundation

21 years agoMinor overhaul and add locking.
Sam Leffler [Wed, 17 Sep 2003 00:50:33 +0000 (00:50 +0000)]
Minor overhaul and add locking.

o replace magic constants with #defines (e.g. ETHER_ADDR_LEN)
o move mib variables to net.link.ether.bridge with backwards compatible
  entries for well-known items maintained under BURN_BRIDGES
o revamp debugging support so it is conditioanlly compiled with BRIDGE_DEBUG
  (on currently) and runtime controlled by net.link.ether.bridge.debug
o change timeout to MPSAFE callout
o optimize lookup for common case of two interfaces
o optimize forwarding path to take IFNET lock only when needed
o make boot-time printf dependent on bootverbose
o sundry style changes (ANSI decls, extraneous spaces, etc.)

Sponsored by: FreeBSD Foundation

21 years agoNew release/errata note: SA-03:12.
Bruce A. Mah [Tue, 16 Sep 2003 23:25:48 +0000 (23:25 +0000)]
New release/errata note:  SA-03:12.

21 years agoMicrosoft Remote Desktop Protocol uses 3389/tcp.
David E. O'Brien [Tue, 16 Sep 2003 23:17:43 +0000 (23:17 +0000)]
Microsoft Remote Desktop Protocol uses 3389/tcp.

21 years agoAdd NEC PA-WL/54AG.
Takeshi Shibagaki [Tue, 16 Sep 2003 22:43:36 +0000 (22:43 +0000)]
Add NEC PA-WL/54AG.

21 years agoAdd acpi to the build on ia64. The support for ACPI 2.0x has gotten
Marcel Moolenaar [Tue, 16 Sep 2003 21:25:42 +0000 (21:25 +0000)]
Add acpi to the build on ia64. The support for ACPI 2.0x has gotten
to a point where we don't map the wrong (ie 32-bit) addresses. We
don't always dump the right values yet, but that's not critical.

Ok'd: njl

21 years agoCorrectly wrap the producer queue index when dequeuing commands. This wasn't
Scott Long [Tue, 16 Sep 2003 16:07:15 +0000 (16:07 +0000)]
Correctly wrap the producer queue index when dequeuing commands.  This wasn't
a problem for command responses since we rarely ever filled the queue.
However, adapter-initiated commands have a much smaller queue and could
tickle this bug.  It's possible that this might fix the recently reported
problems with the aac-2120s, though I haven't been able to reproduce the
problem locally.

MFC-After: 1 day

21 years agoWhen ignoring interrupts (due to no running request set) then try
Søren Schmidt [Tue, 16 Sep 2003 15:21:37 +0000 (15:21 +0000)]
When ignoring interrupts (due to no running request set) then try
to grap the channel so we can read status (and clear an evt pending
interrupt).

21 years agoRearrange the probe a bit first try ATAPI signatures then ATA.
Søren Schmidt [Tue, 16 Sep 2003 15:16:36 +0000 (15:16 +0000)]
Rearrange the probe a bit first try ATAPI signatures then ATA.

21 years agoProperly cast longs to off_t so we dont loose precision.
Søren Schmidt [Tue, 16 Sep 2003 14:41:44 +0000 (14:41 +0000)]
Properly cast longs to off_t so we dont loose precision.

21 years agoUpdate the OpenSSH addendum string for the buffer handling fix.
Jacques Vidrine [Tue, 16 Sep 2003 14:33:04 +0000 (14:33 +0000)]
Update the OpenSSH addendum string for the buffer handling fix.

21 years agoAdded definitions of most of the interesting 16950 register numbers
Bruce Evans [Tue, 16 Sep 2003 14:21:17 +0000 (14:21 +0000)]
Added definitions of most of the interesting 16950 register numbers
and some of their bits (i.e., fifo trigger levels, frequency multipliers
and divisors, and bits to select the registers for these).  This
attempts to completely describe the 16950's complicated register selects
for 16950-specific registers only.

21 years agoAdded definitions for some 16650 features (mostly misfeatures). This
Bruce Evans [Tue, 16 Sep 2003 14:08:54 +0000 (14:08 +0000)]
Added definitions for some 16650 features (mostly misfeatures).  This
completes defining the 16650 register numbers but not all of their bits.

21 years agoFixed a minor error in the description of the EFR and a major error in
Bruce Evans [Tue, 16 Sep 2003 13:52:01 +0000 (13:52 +0000)]
Fixed a minor error in the description of the EFR and a major error in
the description of the data latch registers (they were described as
readonly).

Added some better and worse aliases for standard registers, mostly taken
from the 16950 data sheet.  Define deprecated aliases in terms of the
preferred one.

Don't define com_efr in terms of com_fifo.  It is unrelated (in a
different bank).

21 years agoHelp those attempting to upgrade from static to dynamic root.
Ruslan Ermilov [Tue, 16 Sep 2003 12:53:18 +0000 (12:53 +0000)]
Help those attempting to upgrade from static to dynamic root.

21 years agoSorted register numbers together with the correspoding register bits.
Bruce Evans [Tue, 16 Sep 2003 11:54:29 +0000 (11:54 +0000)]
Sorted register numbers together with the correspoding register bits.
Merged comments to match (put them at the right of the #defines instead
of duplicating them).

Sorted the resulting sections on UART type and register bank.  Added a
comment for each bank.

21 years agoDon't repeat selected defines from ns16550.h or sioreg.h. Just
Bruce Evans [Tue, 16 Sep 2003 11:24:23 +0000 (11:24 +0000)]
Don't repeat selected defines from ns16550.h or sioreg.h.  Just
include ns16550.h.  The missing installation of ns16550.h was fixed
long ago and the misplaced defines in sioreg.h were fixed recently.

21 years agoDon't include another driver's private reg.h file (sioreg.h). Including
Bruce Evans [Tue, 16 Sep 2003 11:04:22 +0000 (11:04 +0000)]
Don't include another driver's private reg.h file (sioreg.h).  Including
ns16550.h is now sufficient.

21 years agoMoved the definitions of the bits in the ns*50 registers from sioreg.h
Bruce Evans [Tue, 16 Sep 2003 08:08:08 +0000 (08:08 +0000)]
Moved the definitions of the bits in the ns*50 registers from sioreg.h
to ns16550.h.  The organization of these files was sort of backwards.
The bits in the registers have no driver or bus dependencies but they
but the offsets of the registers in bus space are very bus-dependent.
However, it does no harm to keep the definitions of the register offsets
in ns16550.h provided they are thought of as internal ns*50 offsets.

21 years agoDo not record expanded size before attempting to reallocate associated
Jacques Vidrine [Tue, 16 Sep 2003 06:11:58 +0000 (06:11 +0000)]
Do not record expanded size before attempting to reallocate associated
memory.

Obtained from: OpenBSD

21 years agoThis commit was generated by cvs2svn to compensate for changes in r120113,
Jacques Vidrine [Tue, 16 Sep 2003 06:11:58 +0000 (06:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r120113,
which included commits to RCS files with non-trunk default branches.

21 years agoDon't read the MAC address from a copy of the EEPROM in the softc
Martin Blapp [Tue, 16 Sep 2003 05:01:27 +0000 (05:01 +0000)]
Don't read the MAC address from a copy of the EEPROM in the softc
that has been recorded earlier and overwrite it again later by
reading it directly from the EEPROM again.

Read the MAC address from the PAR0/PAR1 registers instead, which
are autoloaded on reboot.

Tested on AN985, AN983B. According to the datasheets, it should
also work for the AL981 (I don't have such a chip on a card at home)

PR:             52988
Submitted by:   Andrew Gordon <arg-bsd@arg.me.uk>
MFC after:      2 weeks

21 years agoGet rid of a nasty error message that tells us
Martin Blapp [Tue, 16 Sep 2003 02:56:13 +0000 (02:56 +0000)]
Get rid of a nasty error message that tells us
dhclient couldn't get killed.

If we execute 'dhclient -r', dhclient gets already
killed, so there is no need to do it twice. Only do
this if we really have to release some leases.

Reviewed by: silence on freebsd-rc@yahoogroups.com

21 years agoFix a typo. Also turn on PTHREAD_SCOPE_SYSTEM after fork().
David Xu [Tue, 16 Sep 2003 02:03:39 +0000 (02:03 +0000)]
Fix a typo. Also turn on PTHREAD_SCOPE_SYSTEM after fork().

21 years agoRemove a comment that questioned why the size of the FPU
Daniel Eischen [Tue, 16 Sep 2003 00:00:53 +0000 (00:00 +0000)]
Remove a comment that questioned why the size of the FPU
state for amd64 was twice as large as necessary.  Peter
recently fixed this, so the comment no longer applies.

Also, since the size of struct mcontext changed, adjust
the threads library version of get&set context to match.

FYI, any change layout/size change to any arch's struct
mcontext will likely need some minor changes in libpthread.

21 years agoFrom OpenBSD:
Bill Fenner [Mon, 15 Sep 2003 23:38:06 +0000 (23:38 +0000)]
From OpenBSD:
always widen the imputed netmask if it is narrower than the specified octets.
fixes a strange behaviour where inet_net_pton would always return 4 (bits)
for multicast addresses no matter how many octets were specified.

negotiated with Paul Vixie, original author of this function.

PR: standards/53151
Submitted by: Max Laier <max@love2party.net>
Optained from: OpenBSD

21 years agoStatically compile in sound as we don't have modules yet.
David E. O'Brien [Mon, 15 Sep 2003 22:40:00 +0000 (22:40 +0000)]
Statically compile in sound as we don't have modules yet.

21 years agoMaintain a history of data associated with received frames and use this to
Sam Leffler [Mon, 15 Sep 2003 22:34:46 +0000 (22:34 +0000)]
Maintain a history of data associated with received frames and use this to
calculate smoothed signal quality data for each node.

o add a 16-deep history buffer to each driver-private node storage that
  holds rssi and antenna info for received frames
o override the default per-node "get rssi" method to return an average
  rssi value based on samples collected over the last second
o enable beacon reception so even idle systems maintain a running history
  of signal quality

This data may also be useful for improving the rate control algorithm.
Based on work by Tom Marshall <tommy@home.tig-grr.com> for MADWIFI.

21 years agoGeneralize the per-node RSSI data so drivers can do more interesting
Sam Leffler [Mon, 15 Sep 2003 22:28:07 +0000 (22:28 +0000)]
Generalize the per-node RSSI data so drivers can do more interesting
things than record a single value.

o add a per-node method for returning the "current RSSI" for a node
o create a default method that returns ni_rssi which is the rssi for
  the last received frame
o use the per-node "get rssi" method to return data for the RID's
  submitted by wicontrol, et. al.

Loosely based on work by Tom Marshall <tommy@home.tig-grr.com> for MADWIFI.

21 years agoBump the EC timeout from 50 to 100 ms. I believe the underlying issue is
Nate Lawson [Mon, 15 Sep 2003 21:20:55 +0000 (21:20 +0000)]
Bump the EC timeout from 50 to 100 ms.  I believe the underlying issue is
global lock contention as symptoms only appear under heavy load (i.e. the
nightly periodic run).

21 years agoCatch up with libpthread/support/Makefile.inc,v 1.6 and revert
Ruslan Ermilov [Mon, 15 Sep 2003 21:18:30 +0000 (21:18 +0000)]
Catch up with libpthread/support/Makefile.inc,v 1.6 and revert
Makefile.inc1 revisions 1.365 and 1.367: libc_pic.a is no longer
necessary to build libpthread.so (ie: libkse.so).

21 years agoCorrectly reset ich[3-5] sound cards on resume. This fixes audio playback
Nate Lawson [Mon, 15 Sep 2003 21:16:47 +0000 (21:16 +0000)]
Correctly reset ich[3-5] sound cards on resume.  This fixes audio playback
after suspend/resume for me.

PR:
Submitted by: iwasaki
Reviewed by: orion
Approved by: cg
Obtained from:
MFC after:

21 years agoo do not filter received frames based on type or length; pass 'em all up
Sam Leffler [Mon, 15 Sep 2003 19:41:54 +0000 (19:41 +0000)]
o do not filter received frames based on type or length; pass 'em all up
  to the 802.11 layer if they are at least IEEE80211_MIN_LEN
o mask off interrupt status bits that we don't care about so we don't do
  the wrong thing; this fixes a problem where the beacon miss interrupt status
  bit is delivered together with other status bits when operating in monitor
  mode (we would post a beacon miss swi and then do the wrong thing)

21 years agoChange input handling to not expect drivers to filter short frames.
Sam Leffler [Mon, 15 Sep 2003 19:38:29 +0000 (19:38 +0000)]
Change input handling to not expect drivers to filter short frames.
In particular, let drivers send up control frames so we can dispatch
them to bpf in monitor mode.

This is the first (small) step to adding more functionality such as
power save mode.

21 years agoadd definitions for various control frames and a minimum-sized frame that
Sam Leffler [Mon, 15 Sep 2003 19:36:34 +0000 (19:36 +0000)]
add definitions for various control frames and a minimum-sized frame that
we use to define IEEE80211_MIN_LEN; the minimal length for frames drivers
may pass up into the 802.11 layer

21 years agoRelease a previous lease if there is any, instead of
Martin Blapp [Mon, 15 Sep 2003 18:27:38 +0000 (18:27 +0000)]
Release a previous lease if there is any, instead of
just killing dhclient. Needed my some broken dhcpd
implementations to be able to get a lease again.