]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoAllow user to override default port numbers used by communication
bp [Sun, 2 Oct 2005 08:32:49 +0000 (08:32 +0000)]
Allow user to override default port numbers used by communication
protocols.  This is very useful for tunneled SMB connections.

MFC after: 4 weeks

18 years agoo Remove unfinished code and make it possible to override
maxim [Sun, 2 Oct 2005 07:03:00 +0000 (07:03 +0000)]
o Remove unfinished code and make it possible to override
bsdextended_script from rc.conf(5):

Not objected by: trhodes

18 years agoFixing WEP bustage in hostap mode since 5.2-RELEASE.
avatar [Sun, 2 Oct 2005 04:29:08 +0000 (04:29 +0000)]
Fixing WEP bustage in hostap mode since 5.2-RELEASE.

- WEP TX fix:

  The original code called software crypto, ieee80211_crypto_encap(),
which never worked since IEEE80211_KEY_SWCRYPT was never flagged due to
ieee80211_crypto_newkey() assumes that wi always supports hardware based
crypto regardless of operational mode(by virtue of IEEE80211_C_WEP).
This fix works around that issue by adding wi_key_alloc() to force
the use of s/w crypto.  Also if anyone ever decides to cleanup ioctl
handling where key changes wouldn't cause a call to wi_init() every time,
we'll need wi_key_alloc() to DTRT.

  In addition to that, this fix also adds code to wi_write_wep() to force
existing keys to be switched between h/w and s/w crypto such that an
operation mode change(sta <-> hostap) will flag IEEE80211_KEY_SWCRYPT
properly.

- WEP RX fix:

  Clear IEEE80211_F_DROPUNENC even in hostap mode.  Quote from Sam:

"This is really gross but I don't see an easy way around it.
By doing it we lose the ability to independently drop unencode
frames (and support mixed wep/!wep use).  We should really be
setting the EXCLUDE_UNENCRYPTED flag written in wi_write_wep
based on IEEE80211_F_DROPUNENC but with our clearing it we can't
depend on it being set properly."

Reported by: Holm Tiffe <holm at freibergnet dot de>
Submitted by: sam
MFC after: 3 days

18 years agoHonouring ic->ic_dtim_period.
avatar [Sun, 2 Oct 2005 03:55:07 +0000 (03:55 +0000)]
Honouring ic->ic_dtim_period.

Submitted by: sam
MFC after: 3 days

18 years agoFix the usage of rc_usage. The rc_usage function takes
yar [Sat, 1 Oct 2005 20:58:03 +0000 (20:58 +0000)]
Fix the usage of rc_usage.  The rc_usage function takes
a list of possible keywords, not all them in a single argument.
This also fixes the issue of extra delimiter characters appearing
on the help line from rc.d scripts not setting $extra_commands.

18 years agoNote that kern.polling.enable is deprecated.
glebius [Sat, 1 Oct 2005 20:53:51 +0000 (20:53 +0000)]
Note that kern.polling.enable is deprecated.

18 years agoSecond attempt at a work-around for fifo-related socket panics during
rwatson [Sat, 1 Oct 2005 20:15:41 +0000 (20:15 +0000)]
Second attempt at a work-around for fifo-related socket panics during
make -j with high levels of parallelism: acquire Giant in fifo I/O
routines.

Discussed with: ups
MFC after: 3 days

18 years agoMake sure the clone lists are sorted in the right order.
phk [Sat, 1 Oct 2005 19:21:03 +0000 (19:21 +0000)]
Make sure the clone lists are sorted in the right order.

Explosion triggered by: pjd
MFC: 3 days

18 years agoNow ifconfig is the one right way to turn polling on. Thus, remove
glebius [Sat, 1 Oct 2005 19:14:34 +0000 (19:14 +0000)]
Now ifconfig is the one right way to turn polling on. Thus, remove
the "if" clauses.

18 years agoCorrect previous commit to fix the sense of the TDP_NORUNNINGBUF
truckman [Sat, 1 Oct 2005 19:10:48 +0000 (19:10 +0000)]
Correct previous commit to fix the sense of the TDP_NORUNNINGBUF
check in ffs_copyonwrite() that is a precondition for calling
waitrunningbufspace().

Pointed out by: tegge
Pointy hat to: truckman
MFC after: 3 days

18 years ago- Catch up with the fact that HZ is 1000 now by default.
glebius [Sat, 1 Oct 2005 19:04:22 +0000 (19:04 +0000)]
- Catch up with the fact that HZ is 1000 now by default.
- Remove description of poll in trap feature.
- Tell that polling should be turned on and off with ifconfig.
- Move description of kern.polling.enable to the end and say
  that this a deprecated way of turning polling on.
- Remove note that idle poll has some problems in CURRENT. I failed
  to find them, while Sam and Luigi failed to remember what the
  problem actually were there.

18 years agoBig polling(4) cleanup.
glebius [Sat, 1 Oct 2005 18:56:19 +0000 (18:56 +0000)]
Big polling(4) cleanup.

o Axe poll in trap.

o Axe IFF_POLLING flag from if_flags.

o Rework revision 1.21 (Giant removal), in such a way that
  poll_mtx is not dropped during call to polling handler.
  This fixes problem with idle polling.

o Make registration and deregistration from polling in a
  functional way, insted of next tick/interrupt.

o Obsolete kern.polling.enable. Polling is turned on/off
  with ifconfig.

Detailed kern_poll.c changes:
  - Remove polling handler flags, introduced in 1.21. The are not
    needed now.
  - Forget and do not check if_flags, if_capenable and if_drv_flags.
  - Call all registered polling handlers unconditionally.
  - Do not drop poll_mtx, when entering polling handlers.
  - In ether_poll() NET_LOCK_GIANT prior to locking poll_mtx.
  - In netisr_poll() axe the block, where polling code asks drivers
    to unregister.
  - In netisr_poll() and ether_poll() do polling always, if any
    handlers are present.
  - In ether_poll_[de]register() remove a lot of error hiding code. Assert
    that arguments are correct, instead.
  - In ether_poll_[de]register() use standard return values in case of
    error or success.
  - Introduce poll_switch() that is a sysctl handler for kern.polling.enable.
    poll_switch() goes through interface list and enabled/disables polling.
    A message that kern.polling.enable is deprecated is printed.

Detailed driver changes:
  - On attach driver announces IFCAP_POLLING in if_capabilities, but
    not in if_capenable.
  - On detach driver calls ether_poll_deregister() if polling is enabled.
  - In polling handler driver obtains its lock and checks IFF_DRV_RUNNING
    flag. If there is no, then unlocks and returns.
  - In ioctl handler driver checks for IFCAP_POLLING flag requested to
    be set or cleared. Driver first calls ether_poll_[de]register(), then
    obtains driver lock and [dis/en]ables interrupts.
  - In interrupt handler driver checks IFCAP_POLLING flag in if_capenable.
    If present, then returns.This is important to protect from spurious
    interrupts.

Reviewed by: ru, sam, jhb

18 years agoCopy new process argument list in do_execve() before grabbing PROC_LOCK
truckman [Sat, 1 Oct 2005 08:33:56 +0000 (08:33 +0000)]
Copy new process argument list in do_execve() before grabbing PROC_LOCK
to avoid touching pageable memory while holding a mutex.

Simplify argument list replacement logic.

PR: kern/84935
Submitted by: "Antoine Pelisse" apelisse AT gmail.com (in a different form)
MFC after: 3 days

18 years agoUpdate for GNU cpio 2.6.
tjr [Sat, 1 Oct 2005 06:41:34 +0000 (06:41 +0000)]
Update for GNU cpio 2.6.

18 years agoMerge long_format() time formatting code and fixes for printf() format
tjr [Sat, 1 Oct 2005 06:37:41 +0000 (06:37 +0000)]
Merge long_format() time formatting code and fixes for printf() format
errors from old copyin.c.

18 years agoDefine HAVE_MKFIFO and HAVE_SETLOCALE here since the configure script
tjr [Sat, 1 Oct 2005 06:35:58 +0000 (06:35 +0000)]
Define HAVE_MKFIFO and HAVE_SETLOCALE here since the configure script
apparently fails to do it.

18 years agoMerge from old copyout.c rev 1.2: Output a zero rdev except for bdevs,
tjr [Sat, 1 Oct 2005 06:09:55 +0000 (06:09 +0000)]
Merge from old copyout.c rev 1.2: Output a zero rdev except for bdevs,
cdevs, fifos and sockets. Don't output a file if the major, minor or
totality of its rdev would be truncated.

18 years agoMerge from old copypass.c rev 1.3: If we must yell at the user than a
tjr [Sat, 1 Oct 2005 05:54:39 +0000 (05:54 +0000)]
Merge from old copypass.c rev 1.3: If we must yell at the user than a
file cannot be linked into place when requested (not required) to do it,
reassure them that cpio is still intelligent enough that it will perform
a full copy instead.

18 years agoMerge from old util.c rev 1.2: say "volume" instead of "tape".
tjr [Sat, 1 Oct 2005 05:52:40 +0000 (05:52 +0000)]
Merge from old util.c rev 1.2: say "volume" instead of "tape".

18 years agoMerge from old main.c rev 1.2: Don't set the umask until after we have
tjr [Sat, 1 Oct 2005 05:49:29 +0000 (05:49 +0000)]
Merge from old main.c rev 1.2: Don't set the umask until after we have
processed the arguments and opened the archive file.

18 years agoMerge from old tar.c rev 1.2: Recognize and skip 'x' and 'g' pax
tjr [Sat, 1 Oct 2005 05:42:44 +0000 (05:42 +0000)]
Merge from old tar.c rev 1.2: Recognize and skip 'x' and 'g' pax
extension entries.

18 years agoMerge from old copyin.c rev 1.5, copypass.c rev 1.2: Create fifos using
tjr [Sat, 1 Oct 2005 05:36:39 +0000 (05:36 +0000)]
Merge from old copyin.c rev 1.5, copypass.c rev 1.2: Create fifos using
mkfifo() instead of attempting to create them using mknod().

18 years agoUpdate for GNU cpio 2.6.
tjr [Sat, 1 Oct 2005 04:57:01 +0000 (04:57 +0000)]
Update for GNU cpio 2.6.

18 years agoRename isnumber() to cpio_isnumber() to avoid clashing with the
tjr [Sat, 1 Oct 2005 04:56:09 +0000 (04:56 +0000)]
Rename isnumber() to cpio_isnumber() to avoid clashing with the
<ctype.h> library function of the same name.

18 years agoRemove files no longer present in GNU cpio distribution. Most of these
tjr [Sat, 1 Oct 2005 04:47:43 +0000 (04:47 +0000)]
Remove files no longer present in GNU cpio distribution. Most of these
were actually moved into subdirectories.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r150765,
tjr [Sat, 1 Oct 2005 04:37:08 +0000 (04:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r150765,
which included commits to RCS files with non-trunk default branches.

18 years agoImport GNU cpio 2.6 (trimmed)
tjr [Sat, 1 Oct 2005 04:37:08 +0000 (04:37 +0000)]
Import GNU cpio 2.6 (trimmed)

18 years agoAllow the root user to be aware of other credentials by virtue
trhodes [Fri, 30 Sep 2005 23:41:10 +0000 (23:41 +0000)]
Allow the root user to be aware of other credentials by virtue
of privilege.

Submitted by: rwatson

18 years agoUse ansi function definitions in preference to K&R to reduce diffs
imp [Fri, 30 Sep 2005 19:39:27 +0000 (19:39 +0000)]
Use ansi function definitions in preference to K&R to reduce diffs
with NetBSD (and cause it looks cooler).

18 years agoNot sporttings on other cards
imp [Fri, 30 Sep 2005 19:35:44 +0000 (19:35 +0000)]
Not sporttings on other cards

18 years agoThe NWFS code in RELENG_6 is broken due to a typo in
phk [Fri, 30 Sep 2005 18:21:05 +0000 (18:21 +0000)]
The NWFS code in RELENG_6 is broken due to a typo in
sys/fs/nwfs/nwfs_vfsop= s.c, introduced with the conversion to
nmount with revision 1.38. This causes mount_nwfs to fail with
the error message:

  mount_nwfs: mount error: /mnt/netware: syserr = No such file or directo=
ry

This is caused by a typo on line 178, which specifies "nwfw_args"
rather than "nwfs_args".

Submitted by: Antony Mawer <gnats@mawer.org>
Fat fingers: phk
PR: 86757
MFC: 3 days

18 years agoUn-staticize waitrunningbufspace() and call it before returning from
truckman [Fri, 30 Sep 2005 18:07:41 +0000 (18:07 +0000)]
Un-staticize waitrunningbufspace() and call it before returning from
ffs_copyonwrite() if any async writes were launched.

Restore the threads previous TDP_NORUNNINGBUF state before returning
from ffs_copyonwrite().

18 years agoMove some devstat collection to below where large IO operations are chopped
tegge [Fri, 30 Sep 2005 17:32:08 +0000 (17:32 +0000)]
Move some devstat collection to below where large IO operations are chopped
up.  This make iostat report operations passed down to the device driver
instead of operations passed down to GEOM disk.  The transfer size limit
imposed by the device driver is no longer hidden, improving the correlation
between iostat output and device driver workload.

18 years agoA minor overhaul: added comments, split cmds in 2, changed synopsis.
garys [Fri, 30 Sep 2005 17:31:39 +0000 (17:31 +0000)]
A minor overhaul: added comments, split cmds in 2, changed synopsis.

Split commands into two groups: one with optional count and one with
required argument.  Changed synopsis line accordingly.

Added some hopefully-helpful comments based on experiments, knowing
that not all hardware works the same.

PR:             docs/84101
Approved by:    keramida
MFC after:      3 days

18 years agociphy wasn't included here.
imp [Fri, 30 Sep 2005 14:54:17 +0000 (14:54 +0000)]
ciphy wasn't included here.

18 years agoAdd a more generic version of the mii_phy_match routine (mii_phy_match_gen)
imp [Fri, 30 Sep 2005 14:51:44 +0000 (14:51 +0000)]
Add a more generic version of the mii_phy_match routine (mii_phy_match_gen)
which can be used for phy that want to piggy back other data with their
table.

18 years agoAdd macros which follow the miidevs design pattern to make it easier
imp [Fri, 30 Sep 2005 14:45:10 +0000 (14:45 +0000)]
Add macros which follow the miidevs design pattern to make it easier
to construct tables for mii_phy_match.

18 years agoUse hw.machine_arch instead of hw.machine.
nyan [Fri, 30 Sep 2005 13:27:36 +0000 (13:27 +0000)]
Use hw.machine_arch instead of hw.machine.

18 years agoMFi386: revision 1.33.
nyan [Fri, 30 Sep 2005 13:24:14 +0000 (13:24 +0000)]
MFi386: revision 1.33.
  > Cause all flags passed by boot2 to set the respective loader(8)
  > boot_* variable.  The end effect is that all flags from boot2
  > are now passed to the kernel.

18 years agoUse 'PC Card'
nyan [Fri, 30 Sep 2005 13:17:54 +0000 (13:17 +0000)]
Use 'PC Card'

18 years agoReport any errors we might see when disabling the watchdog.
phk [Fri, 30 Sep 2005 08:30:20 +0000 (08:30 +0000)]
Report any errors we might see when disabling the watchdog.

Complain about extra arguments so people don't get surprised
if they type "watchdog 0"

18 years agoFox a LOR of sleep and sched_lock by using a timeout wait
davidxu [Fri, 30 Sep 2005 06:09:41 +0000 (06:09 +0000)]
Fox a LOR of sleep and sched_lock by using a timeout wait
when process reaches maximum number of threads.

MFC after: 3 days

18 years agoGive .Dd a tummy rub, forgotten on my last commit.
dougb [Fri, 30 Sep 2005 02:12:15 +0000 (02:12 +0000)]
Give .Dd a tummy rub, forgotten on my last commit.

18 years agoUn-staticize runningbufwakeup() and staticize updateproc.
truckman [Fri, 30 Sep 2005 01:30:01 +0000 (01:30 +0000)]
Un-staticize runningbufwakeup() and staticize updateproc.

Add a new private thread flag to indicate that the thread should
not sleep if runningbufspace is too large.

Set this flag on the bufdaemon and syncer threads so that they skip
the waitrunningbufspace() call in bufwrite() rather than than
checking the proc pointer vs. the known proc pointers for these two
threads.  A way of preventing these threads from being starved for
I/O but still placing limits on their outstanding I/O would be
desirable.

Set this flag in ffs_copyonwrite() to prevent bufwrite() calls from
blocking on the runningbufspace check while holding snaplk.  This
prevents snaplk from being held for an arbitrarily long period of
time if runningbufspace is high and greatly reduces the contention
for snaplk.  The disadvantage is that ffs_copyonwrite() can start
a large amount of I/O if there are a large number of snapshots,
which could cause a deadlock in other parts of the code.

Call runningbufwakeup() in ffs_copyonwrite() to decrement runningbufspace
before attempting to grab snaplk so that I/O requests waiting on
snaplk are not counted in runningbufspace as being in-progress.
Increment runningbufspace again before actually launching the
original I/O request.

Prior to the above two changes, the system could deadlock if enough
I/O requests were blocked by snaplk to prevent runningbufspace from
falling below lorunningspace and one of the bawrite() calls in
ffs_copyonwrite() blocked in waitrunningbufspace() while holding
snaplk.

See <http://www.holm.cc/stress/log/cons143.html>

18 years agoFor the sake of consistency and easier typing,
yar [Thu, 29 Sep 2005 23:53:29 +0000 (23:53 +0000)]
For the sake of consistency and easier typing,
introduce "-tunnel" as an alias for "deletetunnel".
The latter is overly long and prone to typos,  but
keep it for POLA since it costs nothing.

MFC after: 5 days

18 years agoForgot to touch .Dd in the previous commit.
yar [Thu, 29 Sep 2005 23:39:37 +0000 (23:39 +0000)]
Forgot to touch .Dd in the previous commit.

18 years agoDeprecate the useless argument to -vlandev.
yar [Thu, 29 Sep 2005 23:38:24 +0000 (23:38 +0000)]
Deprecate the useless argument to -vlandev.

Submitted by: Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> (implementation)
Reviewed by: brooks
MFC after: 5 days

18 years ago- Fix "end_blk out of range" panic when INVARIANTS.
fjoe [Thu, 29 Sep 2005 22:45:16 +0000 (22:45 +0000)]
- Fix "end_blk out of range" panic when INVARIANTS.
- Do not allow rw access.

Submitted by: Dario Freni <saturnero at freesbie dot org>
MFC after: 3 days

18 years agoUse mkuzip(8) instead of create_compressed_fs.
fjoe [Thu, 29 Sep 2005 22:41:20 +0000 (22:41 +0000)]
Use mkuzip(8) instead of create_compressed_fs.

18 years agoAfter a rmdir()ed directory has been truncated, force an update of
truckman [Thu, 29 Sep 2005 21:50:26 +0000 (21:50 +0000)]
After a rmdir()ed directory has been truncated, force an update of
the directory's inode after queuing the dirrem that will decrement
the parent directory's link count.  This will force the update of
the parent directory's actual link to actually be scheduled.  Without
this change the parent directory's actual link count would not be
updated until ufs_inactive() cleared the inode of the newly removed
directory, which might be deferred indefinitely.  ufs_inactive()
will not be called as long as any process holds a reference to the
removed directory, and ufs_inactive() will not clear the inode if
the link count is non-zero, which could be the result of an earlier
system crash.

If a background fsck is run before the update of the parent directory's
actual link count has been performed, or at least scheduled by
putting the dirrem on the leaf directory's inodedep id_bufwait list,
fsck will corrupt the file system by decrementing the parent
directory's effective link count, which was previously correct
because it already took the removal of the leaf directory into
account, and setting the actual link count to the same value as the
effective link count after the dangling, removed, leaf directory
has been removed.  This happens because fsck acts based on the
actual link count, which will be too high when fsck creates the
file system snapshot that it references.

This change has the fortunate side effect of more quickly cleaning
up the large number dirrem structures that linger for an extended
time after the removal of a large directory tree.  It also fixes a
potential problem with the shutdown of the syncer thread timing out
if the system is rebooted immediately after removing a large directory
tree.

Submitted by: tegge
MFC after: 3 days

18 years agoDon't build pccardd anymore.
imp [Thu, 29 Sep 2005 21:32:57 +0000 (21:32 +0000)]
Don't build pccardd anymore.

18 years agoFix bad compile. Pointy hat to: imp
imp [Thu, 29 Sep 2005 20:41:04 +0000 (20:41 +0000)]
Fix bad compile.  Pointy hat to: imp

18 years agoHandle the case where the -P flag is specified for a read-only file
dougb [Thu, 29 Sep 2005 20:40:29 +0000 (20:40 +0000)]
Handle the case where the -P flag is specified for a read-only file
earlier, and more gracefully. Previously, this combination would be
ignored early in the code where permissions are tested and fail later
with a very unhelpful "permission denied" error.

Instead, test for this flag in the same block that generates the
"override?" messages for read-only files, but instead of trying
to guess what the user has in mind, generate an error and exit.

Update the man page to reflect this new behavior.

Not objected to by: freebsd-hackers@

18 years agoo Add a bunch of o2micro controller IDs
imp [Thu, 29 Sep 2005 19:59:03 +0000 (19:59 +0000)]
o Add a bunch of o2micro controller IDs
o Add SMC34C90 to list as well, since I've found enough more data about it
  since my original research to know it is appropriate for this driver.

18 years agoTrim a couple of unneeded includes.
jhb [Thu, 29 Sep 2005 19:13:52 +0000 (19:13 +0000)]
Trim a couple of unneeded includes.

18 years agoRemove the hack to clear the owepreempt flag after running a fast
jhb [Thu, 29 Sep 2005 19:12:44 +0000 (19:12 +0000)]
Remove the hack to clear the owepreempt flag after running a fast
interrupt handler from Alpha.  Instead, expand the scheduler pinning
in the interrupt handling code so that curthread is pinned while executing
fast interrupt handlers.

MFC after: 1 week

18 years ago- Use if_printf() and device_printf() in re(4) and remove rl_unit from
jhb [Thu, 29 Sep 2005 16:52:19 +0000 (16:52 +0000)]
- Use if_printf() and device_printf() in re(4) and remove rl_unit from
  the softc.
- Use callout_init_mtx() and rather than timeout/untimeout in both rl(4)
  and re(4).
- Fix locking for ifmedia by locking the driver in the ifmedia handlers
  rather than in the miibus functions.  (re(4) didn't lock the mii stuff
  at all!)
- Fix some locking in re_ioctl().

Note: the two drivers share the same softc declared in if_rlreg.h, so they
had to be change simultaneously.

MFC after:  1 week
Tested by: several on rl(4), none on re(4)

18 years agoUse if_printf() and device_printf().
jhb [Thu, 29 Sep 2005 16:47:08 +0000 (16:47 +0000)]
Use if_printf() and device_printf().

18 years agoDcoument typical debugging options, plus the new CIS device for pccard.
imp [Thu, 29 Sep 2005 16:45:53 +0000 (16:45 +0000)]
Dcoument typical debugging options, plus the new CIS device for pccard.

18 years agoFix a bug in disk geometry calculation.
phk [Thu, 29 Sep 2005 16:06:59 +0000 (16:06 +0000)]
Fix a bug in disk geometry calculation.

Fix NANO_TOOLS usage in FlashDevice()

18 years agoTypo.
jhb [Thu, 29 Sep 2005 15:04:58 +0000 (15:04 +0000)]
Typo.

18 years ago- Consolidate duplicated code for assigning interrupts to PCI devices via
jhb [Thu, 29 Sep 2005 15:04:41 +0000 (15:04 +0000)]
- Consolidate duplicated code for assigning interrupts to PCI devices via
  routing, etc. in a static pci_assign_interrupt() function.
- Add a sledgehammer that allows the user to override the interrupt
  assignment of any PCI device via a tunable (e.g. "hw.pci0.7.INTB=5" would
  force any functions on the pci device in slot 7 of bus 0 that use B# to
  use IRQ 5).  This should be used with great caution!  Generally, if the
  interrupt routing in use provides specific tunables (such as hard-wiring
  the IRQ for a given $PIR or ACPI PCI link device), then those should be
  used instead.  One instance where this tunable might be useful is if a
  box has an MPTable with duplicate entries for the same PCI device with
  different IRQs.

MFC after: 1 week

18 years agoDon't save and restore the ELCR register across suspend and resume for
jhb [Thu, 29 Sep 2005 15:00:09 +0000 (15:00 +0000)]
Don't save and restore the ELCR register across suspend and resume for
the Intel 82371AB PCI-ISA bridge.  We now do this all the time for the
!APIC case in the atpic driver.  This cuts the raw line count for this
driver by about 40%.

MFC after: 1 week

18 years agoI added the device IDs to the header, but not to the table. Add them
imp [Thu, 29 Sep 2005 14:57:51 +0000 (14:57 +0000)]
I added the device IDs to the header, but not to the table.  Add them
to the table.

MFC After: 3 days

18 years ago- Use PCIR_BAR macro rather than hardcoding 0x10.
jhb [Thu, 29 Sep 2005 14:56:30 +0000 (14:56 +0000)]
- Use PCIR_BAR macro rather than hardcoding 0x10.
- Use pci_enable_busmaster() rather than doing it by hand.
- Remove duplicate if_free().

18 years agoRemove checks for BOOTSIG[23] from FAT32 bootblocks.
peadar [Thu, 29 Sep 2005 14:09:46 +0000 (14:09 +0000)]
Remove checks for BOOTSIG[23] from FAT32 bootblocks.

There seems to be very little documentary evidence outside this
implementation to suggest a these checks are neccessary, and more
than one camera-formatted flash disk fails the check, but mounts
successfully on most other systems.

Reviewed By: bde@

18 years agoIn em_process_receive_interrupts() store and clear adapter->fmt. This
glebius [Thu, 29 Sep 2005 13:23:34 +0000 (13:23 +0000)]
In em_process_receive_interrupts() store and clear adapter->fmt. This
make function reenterable. In the runtime the race is masked by serializing
of em_process_receive_interrupts() either by interrupt thread, or by
polling. The race can be triggered when polling is switched on or off.

18 years agoerr() -> errx() where appropriate.
ru [Thu, 29 Sep 2005 13:09:04 +0000 (13:09 +0000)]
err() -> errx() where appropriate.

18 years agoReturn zero when disabling watchdog, unless any of the drivers complain.
phk [Thu, 29 Sep 2005 12:31:44 +0000 (12:31 +0000)]
Return zero when disabling watchdog, unless any of the drivers complain.

18 years agoAdd -DINVARIANT_SUPPORT -DINVARIANTS
fjoe [Thu, 29 Sep 2005 11:56:16 +0000 (11:56 +0000)]
Add -DINVARIANT_SUPPORT -DINVARIANTS
(to commented out CFLAGS, used for debugging).

18 years agoClose a race in biodone(), whereby the bio_done field of the passed
peadar [Thu, 29 Sep 2005 10:37:20 +0000 (10:37 +0000)]
Close a race in biodone(), whereby the bio_done field of the passed
bio may have been freed and reassigned by the wakeup before being
tested after releasing the bdonelock.

There's a non-zero chance this is the cause of a few of the crashes
knocking around with biodone() sitting in the stack backtrace.

Reviewed By: phk@

18 years agoAdd a note in example as well, that last sector is used for metadata,
pjd [Thu, 29 Sep 2005 08:56:15 +0000 (08:56 +0000)]
Add a note in example as well, that last sector is used for metadata,
so it don't provoke confusions.

Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru>
MFC after: 2 days

18 years agoThe 'intr_bufferfull' driver statistic actually counts the number
jkoshy [Thu, 29 Sep 2005 01:40:03 +0000 (01:40 +0000)]
The 'intr_bufferfull' driver statistic actually counts the number
of times sampling was stopped due to a space shortage; change its
description in the output of `pmcstat -s` to match reality.

MFC after: 3 days

18 years agoBe less IPv4 centric. When checking if the interface is already
brooks [Wed, 28 Sep 2005 19:59:18 +0000 (19:59 +0000)]
Be less IPv4 centric.  When checking if the interface is already
configured, check if the UP flag is set instead of checking for the
netmask keyword.

18 years agoadd product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.
ume [Wed, 28 Sep 2005 19:41:25 +0000 (19:41 +0000)]
add product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.

Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net>
MFC after: 2 days

18 years agoImplement suspend/resume methods to be more ACPI friendly.
pjd [Wed, 28 Sep 2005 19:20:49 +0000 (19:20 +0000)]
Implement suspend/resume methods to be more ACPI friendly.
I'm able to suspend/resume my laptop without this change, but then I need
to wait for the watchdog to reset the card.
With this change, it is ready immediately.

Glanced at by: glebius

18 years agoNuke duplicates found via fuzzy logic:
schweikh [Wed, 28 Sep 2005 18:18:29 +0000 (18:18 +0000)]
Nuke duplicates found via fuzzy logic:
- typos
- different spelling, punctuation, whitespace
- phonetically similar names
- words rearranged ("was once" vs "once was" etc)

If a limerick appeared as a single one and as part of a
double or triple, the singleton was removed.

With a little help from: sort limerick|uniq -d
This still turns up 20 lines being repeated, but the respective
limericks are sufficiently unique to leave them in (i.e. most differ
in at least two lines).

Nuke spaces in front of colons while I'm here.

18 years agopuc(4) does strange things to resources in order to fool the
phk [Wed, 28 Sep 2005 18:06:25 +0000 (18:06 +0000)]
puc(4) does strange things to resources in order to fool the
subdrivers to hook up.

It should probably be rewritten to implement a simple bus to which
the sub drivers attach using some kind of hint.

Until then, provide a couple of crutch functions with big warning
signs so it can survive the recent changes to struct resource.

18 years agoAdd interrupt counters for IPIs. By default they are disabled, but they
jhb [Wed, 28 Sep 2005 18:04:11 +0000 (18:04 +0000)]
Add interrupt counters for IPIs.  By default they are disabled, but they
can be enabled by enabling COUNT_IPIS in smptests.h.  When enabled, each
CPU provides an interrupt counter for nearly all of the IPIs it receives
(IPI_STOP currently doesn't have a counter) that can be examined using
vmstat -i, etc.

MFC after: 3 days
Requested by: rwatson

18 years agoRename the lapic timer interrupt counters from lapicX: timer to cpuX: timer
jhb [Wed, 28 Sep 2005 18:01:41 +0000 (18:01 +0000)]
Rename the lapic timer interrupt counters from lapicX: timer to cpuX: timer
since it's not always obvious that lapic == cpu.

MFC after: 3 days

18 years agoMake it a good-mannered rcNG script respectful to the command line.
yar [Wed, 28 Sep 2005 16:24:47 +0000 (16:24 +0000)]
Make it a good-mannered rcNG script respectful to the command line.

18 years agosetsockopt() will return -1 on error, not 0.
cognet [Wed, 28 Sep 2005 16:14:43 +0000 (16:14 +0000)]
setsockopt() will return -1 on error, not 0.

Pointy hat to: Jeremie Le Hen

18 years agoUse SO_REUSEADDR on the socket, to make the use of syslogd in jails easier.
cognet [Wed, 28 Sep 2005 16:05:13 +0000 (16:05 +0000)]
Use SO_REUSEADDR on the socket, to make the use of syslogd in jails easier.

Submitted by:   Jeremie Le Hen <jeremie le-hen org>

18 years agoo Follow the trend and update a host-based wireless bridge example.
maxim [Wed, 28 Sep 2005 15:22:17 +0000 (15:22 +0000)]
o Follow the trend and update a host-based wireless bridge example.

18 years agoFix an endianness issue in pnp_eisaformat(). This corrects printing PnP IDs
marius [Wed, 28 Sep 2005 15:01:58 +0000 (15:01 +0000)]
Fix an endianness issue in pnp_eisaformat(). This corrects printing PnP IDs
on big-endian archs like sparc64, e.g.:
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 43 pnpid @HEd041 on isa0
is now correctly printed as:
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 43 pnpid PNP0501 on isa0

There are probably other endianness issues lurking in the PnP code which
however aren't exhibited on sparc64 as the PnP devices there are sort of
PnP BIOS devices rather than ISA PnP devices.

Tested on: i386, sparc64
MFC after: 1 week

18 years agoAdd a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t
marius [Wed, 28 Sep 2005 14:54:07 +0000 (14:54 +0000)]
Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t
and do some preparations for handling 12x22 fonts (currently lots of code
implies and/or hardcodes a font width of 8 pixels). This will be required
on sparc64 which uses a default font size of 12x22 in order to add font
loading and saving support as well as to use a syscons(4)-supplied mouse
pointer image.
This API breakage is committed now so it can be MFC'ed in time for 6.0
and later on upcoming framebuffer drivers destined for use on sparc64
and which are expected to rely on using font loading internally and on
a syscons(4)-supplied mouse pointer image can be easily MFC'ed to
RELENG_6 rather than requiring a backport.

Tested on: i386, sparc64, make universe
MFC after: 1 week

18 years agoCommenting out WARNS actually brought it up to 4.
ru [Wed, 28 Sep 2005 14:36:16 +0000 (14:36 +0000)]
Commenting out WARNS actually brought it up to 4.

18 years agoNote the requirement for 'device apic' on i386 systems. [1]
jkoshy [Wed, 28 Sep 2005 14:19:31 +0000 (14:19 +0000)]
Note the requirement for 'device apic' on i386 systems. [1]

Consistently use 'x86' when referring to behaviour common to the
i386 and amd64.

Submitted by: Niklas Sorensson <nik@cs.chalmers.se> [1]

18 years agoMinor clarifications and fixes to wording, grammar, and markup
yar [Wed, 28 Sep 2005 13:07:43 +0000 (13:07 +0000)]
Minor clarifications and fixes to wording, grammar, and markup
around ${network_interfaces}.

18 years agoAdd SHA256 checksums to the release build.
kensmith [Wed, 28 Sep 2005 12:39:00 +0000 (12:39 +0000)]
Add SHA256 checksums to the release build.

Requested by: cperciva (so)
Reviewed/improved by: ru
MFC after: 2 days

18 years agoIntroduce "route del" as an alias to "route delete".
tobez [Wed, 28 Sep 2005 12:12:15 +0000 (12:12 +0000)]
Introduce "route del" as an alias to "route delete".

Reviewed by: arch

18 years agoFix "taskqueue_drain with the following non-sleepable locks held"
ru [Wed, 28 Sep 2005 09:27:46 +0000 (09:27 +0000)]
Fix "taskqueue_drain with the following non-sleepable locks held"
witness(9) warning on detach.

18 years agoDo not commit before the first cup of coffee. Other entries don't have a
mlaier [Wed, 28 Sep 2005 09:19:17 +0000 (09:19 +0000)]
Do not commit before the first cup of coffee. Other entries don't have a
preceeding slash.

Pointed out by: thompsa

18 years agoDocument bridge(4) leftovers.
mlaier [Wed, 28 Sep 2005 08:25:48 +0000 (08:25 +0000)]
Document bridge(4) leftovers.

Submitted by: maxim

18 years agoRedirect bridge(4) to if_bridge(4) and rename sysctl accordingly.
mlaier [Wed, 28 Sep 2005 08:18:55 +0000 (08:18 +0000)]
Redirect bridge(4) to if_bridge(4) and rename sysctl accordingly.

Reminded by: ru

18 years agoWe bootstrap make(1) if necessary during an upgrade, so checking
ru [Wed, 28 Sep 2005 08:17:30 +0000 (08:17 +0000)]
We bootstrap make(1) if necessary during an upgrade, so checking
if MACHINE_ARCH is defined is no longer needed.

18 years agoRedirect bridge(4) to if_bridge(4). These should have pointed to if_bridge
mlaier [Wed, 28 Sep 2005 08:11:15 +0000 (08:11 +0000)]
Redirect bridge(4) to if_bridge(4).  These should have pointed to if_bridge
from the begining.

Reminded by: ru

18 years agoOops, revert last commit (the manpage is still built in objdir).
ru [Wed, 28 Sep 2005 07:54:18 +0000 (07:54 +0000)]
Oops, revert last commit (the manpage is still built in objdir).

18 years agoAdd NO_OBJ, remove redundant SCRIPTSNAME.
ru [Wed, 28 Sep 2005 07:52:27 +0000 (07:52 +0000)]
Add NO_OBJ, remove redundant SCRIPTSNAME.

18 years agoAdd NO_OBJ.
ru [Wed, 28 Sep 2005 07:49:30 +0000 (07:49 +0000)]
Add NO_OBJ.