]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoSome RealTek chips are known to be buggy on DAC handling, so
yongari [Sun, 23 Mar 2008 05:13:45 +0000 (05:13 +0000)]
Some RealTek chips are known to be buggy on DAC handling, so
disable DAC by default.

16 years agoVLAN hardware tag information should be set for all desciptors of a
yongari [Sun, 23 Mar 2008 05:06:16 +0000 (05:06 +0000)]
VLAN hardware tag information should be set for all desciptors of a
multi-descriptor transmission attempt. Datasheet said nothing about
this requirements. This should fix a long-standing VLAN hardware
tagging issues with re(4).

Reported by: Giulio Ferro ( auryn AT zirakzigil DOT org )
Tested by: Giulio Ferro ( auryn AT zirakzigil DOT org )

16 years agoAlways honor configured VLAN/checksum offload capabilities.
yongari [Sun, 23 Mar 2008 04:59:13 +0000 (04:59 +0000)]
Always honor configured VLAN/checksum offload capabilities.
Previously re(4) used to blindly enable VLAN hardware tag stripping
and Rx checksum offload regardless of enabled optional features of
interface.

16 years agoNew release notes: KSE removed, cmx(4), uslcom(4), sf(4) update,
bmah [Sun, 23 Mar 2008 04:12:07 +0000 (04:12 +0000)]
New release notes:  KSE removed, cmx(4), uslcom(4), sf(4) update,
re(4) update, vr(4) update, TCP options padding fix, ata(4) spindown,
hptrr(4) 1.2, mmap(2)/ZFS fix, chflags(1) -v/-f, cp(1) -a, find(1)
primaries to match GNU find, split(1) -n, tar(1) -Z, bzip2 1.0.5.

Modified release notes:  CVS post-1.11.12 snapshot from 10 March 2008.

16 years agoRemove comment about "-r" flag from readlabel. "-r" is a no-op.
rodrigc [Sun, 23 Mar 2008 03:01:10 +0000 (03:01 +0000)]
Remove comment about "-r" flag from readlabel.  "-r" is a no-op.
The is comment is left over from the old disklabel command.

Reviewed by: phk

16 years agoRemove commented out code, thread suspension is done in thread library.
davidxu [Sun, 23 Mar 2008 02:03:06 +0000 (02:03 +0000)]
Remove commented out code, thread suspension is done in thread library.

16 years ago - Only return 1 from sync_vnode() in cases where the vnode is still
jeff [Sun, 23 Mar 2008 01:44:28 +0000 (01:44 +0000)]
 - Only return 1 from sync_vnode() in cases where the vnode is still
   at the head of the sync list.  This prevents sched_sync() from
   re-queueing a vnode which may have been freed already.

Discussed with: kib

16 years agoInstead of making a single geom_part.ko module, make a module
marcel [Sun, 23 Mar 2008 01:42:47 +0000 (01:42 +0000)]
Instead of making a single geom_part.ko module, make a module
for each partitioning scheme. The gpart code is currently non-
optional.

16 years ago - Pass BO_MTX(bo) to lockmgr in vtruncbuf, we don't own the vnode
jeff [Sun, 23 Mar 2008 01:42:19 +0000 (01:42 +0000)]
 - Pass BO_MTX(bo) to lockmgr in vtruncbuf, we don't own the vnode
   interlock here anymore.

Reported by: kris

16 years agoRedefine G_PART_SCHEME_DECLARE() from populating a private linker set
marcel [Sun, 23 Mar 2008 01:31:59 +0000 (01:31 +0000)]
Redefine G_PART_SCHEME_DECLARE() from populating a private linker set
to declaring a proper module. The module event handler is part of the
gpart core and will add the scheme to an internal list on module load
and will remove the scheme from the internal list on module unload.
This makes it possible to dynamically load and unload partitioning
schemes.

16 years agoAdd g_retaste(), which given a class will present all non-open providers
marcel [Sun, 23 Mar 2008 01:23:35 +0000 (01:23 +0000)]
Add g_retaste(), which given a class will present all non-open providers
to it for tasting. This is useful when the class, through means outside
the scope of GEOM, can claim providers previously unclaimed.

The g_retaste() function posts an event which is handled by the
g_retaste_event().

Event suggested by: phk

16 years agoWe need to prototype _start() as well, as we use it to test if we're running
cognet [Sat, 22 Mar 2008 20:34:07 +0000 (20:34 +0000)]
We need to prototype _start() as well, as we use it to test if we're running
from flash or from RAM.

Reported by: imp
MFC After: 3 days

16 years agoReuse the mbuf that was just retrieved from the receive ring if mbuf
qingli [Sat, 22 Mar 2008 18:13:39 +0000 (18:13 +0000)]
Reuse the mbuf that was just retrieved from the receive ring if mbuf
exhaustion is encountered. There was a fix made previously for this
problem but the solution (breaking out of the receive loop) does not
seem to work. mbuf reuse strategy is already adopted by other drivers
such as if_bge.  The problem was recreated and the patch is also
verified in the same test environment.

16 years agoadd hints to specify how NPE ports are mapped to MAC+PHY; these
sam [Sat, 22 Mar 2008 16:55:51 +0000 (16:55 +0000)]
add hints to specify how NPE ports are mapped to MAC+PHY; these
could be commented out as they just duplicate the defaults that
are built into the code

Reviewed by: imp
MFC after: 1 week

16 years agoImprove mac+phy configuration so that hints can be used to describe
sam [Sat, 22 Mar 2008 16:53:28 +0000 (16:53 +0000)]
Improve mac+phy configuration so that hints can be used to describe
layouts different than the defaults:
o hint.npe.0.mac="A", "B", etc. specifies the window for MAC register accesses
o hint.npe.0.mii="A", "B", etc. specifies PHY registers
o hint.npe.1.phy=%d specifies the PHY to map to a port

This allows devices like NSLU to be setup w/o code changes and will
also be used for forthcoming support for more Avila boards.

Reviewed by: imp
MFC after 1 week

16 years agosync w/ p4: minor cleanups to improve msgs
sam [Sat, 22 Mar 2008 16:39:30 +0000 (16:39 +0000)]
sync w/ p4: minor cleanups to improve msgs

16 years agoIn abort2(2): Accept a NULL arg pointer if nargs == 0
phk [Sat, 22 Mar 2008 16:32:52 +0000 (16:32 +0000)]
In abort2(2): Accept a NULL arg pointer if nargs == 0

16 years ago(finally) add the hal status to the diagnostic generated after
sam [Sat, 22 Mar 2008 16:27:47 +0000 (16:27 +0000)]
(finally) add the hal status to the diagnostic generated after
a failed ath_hal_reset call

MFC after: 3 days

16 years agoDefer state change on disassociate to avoid unnecessarily dropping the
sam [Sat, 22 Mar 2008 16:24:02 +0000 (16:24 +0000)]
Defer state change on disassociate to avoid unnecessarily dropping the
lease: track the current bssid and if it changes (as reported in an
assoc/reassoc) event only then kick the state machine.  This gives us
immediate response when roaming but otherwise causes us to fallback on
the normal state machine.

Reviewed by: brooks, jhb
MFC after: 3 weeks

16 years agocorrect syslog mask so LOG_DEBUG msgs are not lost
sam [Sat, 22 Mar 2008 16:18:07 +0000 (16:18 +0000)]
correct syslog mask so LOG_DEBUG msgs are not lost

MFC after: 2 weeks

16 years agoAdd a test case for options.c revision 1.26.
stefanf [Sat, 22 Mar 2008 14:07:49 +0000 (14:07 +0000)]
Add a test case for options.c revision 1.26.

16 years agoReset the internal state used for the 'getopts' built-in when 'shift' or 'set'
stefanf [Sat, 22 Mar 2008 14:06:01 +0000 (14:06 +0000)]
Reset the internal state used for the 'getopts' built-in when 'shift' or 'set'
are used to modify the arguments.  Not doing so caused random memory reads or
null pointer dereferences when 'getopts' was called again later (SUSv3 says
getopts produces unspecified results in this case).

PR: 48318

16 years agoIn route.c in newroute() there's a call to exit(0) if the command was
remko [Sat, 22 Mar 2008 12:50:43 +0000 (12:50 +0000)]
In route.c in newroute() there's a call to exit(0) if the command was
'get'. Since rtmsg() always gets called and returns 0 on success and -1
on failure, it's possible to exit with a suitable exit code by calling
exit(ret != 0) instead, as is done at the end of newroute().

PR: bin/112303
Submitted by: bruce@cran.org.uk
MFC after: 1 week

16 years agoAdd POSIX pthread API pthread_getcpuclockid() to get a thread's cpu
davidxu [Sat, 22 Mar 2008 09:59:20 +0000 (09:59 +0000)]
Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu
time clock id.

16 years ago - Complete part of the unfinished bufobj work by consistently using
jeff [Sat, 22 Mar 2008 09:15:16 +0000 (09:15 +0000)]
 - Complete part of the unfinished bufobj work by consistently using
   BO_LOCK/UNLOCK/MTX when manipulating the bufobj.
 - Create a new lock in the bufobj to lock bufobj fields independently.
   This leaves the vnode interlock as an 'identity' lock while the bufobj
   is an io lock.  The bufobj lock is ordered before the vnode interlock
   and also before the mnt ilock.
 - Exploit this new lock order to simplify softdep_check_suspend().
 - A few sync related functions are marked with a new XXX to note that
   we may not properly interlock against a non-zero bv_cnt when
   attempting to sync all vnodes on a mountlist.  I do not believe this
   race is important.  If I'm wrong this will make these locations easier
   to find.

Reviewed by: kib (earlier diff)
Tested by: kris, pho (earlier diff)

16 years agoFix a race where timeout/untimeout could cause crashes for Giant locked
alfred [Sat, 22 Mar 2008 07:29:45 +0000 (07:29 +0000)]
Fix a race where timeout/untimeout could cause crashes for Giant locked
code.

The bug:

There exists a race condition for timeout/untimeout(9) due to the
way that the softclock thread dequeues timeouts.

The softclock thread sets the c_func and c_arg of the callout to
NULL while holding the callout lock but not Giant.  It then drops
the callout lock and acquires Giant.

It is at this point where untimeout(9) on another cpu/thread could
be called.

Since c_arg and c_func are cleared, untimeout(9) does not touch the
callout and returns as if the callout is canceled.

The softclock then tries to acquire Giant and likely blocks due to
the other cpu/thread holding it.

The other cpu/thread then likely deallocates the backing store that
c_arg points to and finishes working and hence drops Giant.

Softclock resumes and acquires giant and calls the function with
the now free'd c_arg and we have corruption/crash.

The fix:

We need to track curr_callout even for timeout(9) (LOCAL_ALLOC)
callouts.  We need to free the callout after the softclock processes
it to deal with the race here.

Obtained from: Juniper Networks, iedowse
Reviewed by: jhb, iedowse
MFC After: 2 weeks.

16 years agoUse linker set to collection all target operations.
davidxu [Sat, 22 Mar 2008 05:40:44 +0000 (05:40 +0000)]
Use linker set to collection all target operations.

16 years agoAdd in a compat. mode so you can either open the card's device
ambrisko [Sat, 22 Mar 2008 02:57:49 +0000 (02:57 +0000)]
Add in a compat. mode so you can either open the card's device
node or directly open mfi0 and specify the card you want to talk to
in the ioctl.

16 years agoNo need to be gratuitously style(9) non-compliant here, even though
imp [Fri, 21 Mar 2008 20:38:28 +0000 (20:38 +0000)]
No need to be gratuitously style(9) non-compliant here, even though
C++ lets me get away with it.

16 years agoReplace reference from vinum.8 to gvinum.8, it was advised in the PR to
remko [Fri, 21 Mar 2008 20:16:25 +0000 (20:16 +0000)]
Replace reference from vinum.8 to gvinum.8, it was advised in the PR to
replace this with vinum.4, but that's the kernel interface manual, which
is not appropriate in my understanding.  I think that gvinum is a suitable
replacement for this.

PR: docs/121938
Submitted by: "Federico" <federicogalvezdurand at yahoo dot com>
MFC after: 3 days

16 years agoAdd ';' missed with the SYSINIT changes.
bz [Fri, 21 Mar 2008 18:31:42 +0000 (18:31 +0000)]
Add ';' missed with the SYSINIT changes.
Not noticed by tb as TCP_SIGNATURE is not in LINT.

MFC after: 1 month

16 years agoAdd the i915 GME device to DRM.
remko [Fri, 21 Mar 2008 16:38:42 +0000 (16:38 +0000)]
Add the i915 GME device to DRM.

PR: kern/121808
Submitted by: Volker Werth <volker at vwsoft dot com>
Approved by: imp (mentor, implicit for trivial changes)
MFC after: 3 days

16 years agoReduce contention on the vnode interlock by not acquiring the BO_LOCK
kib [Fri, 21 Mar 2008 12:38:44 +0000 (12:38 +0000)]
Reduce contention on the vnode interlock by not acquiring the BO_LOCK
around the check for the BV_BKGRDINPROG in the brelse() and bqrelse().
See the comment for the explanation why it is safe.

Tested by: pho
Submitted by: jeff

16 years agoReduce the acquisition of the vnode interlock in the ffs_read() and
kib [Fri, 21 Mar 2008 12:33:00 +0000 (12:33 +0000)]
Reduce the acquisition of the vnode interlock in the ffs_read() and
ffs_extread() when setting the IN_ACCESS flag by checking whether the
IN_ACCESS is already set. The possible race there is admissible.

Tested by: pho
Submitted by: jeff

16 years agoAdd MLINK for archive_write_close.
kaiw [Fri, 21 Mar 2008 11:10:20 +0000 (11:10 +0000)]
Add MLINK for archive_write_close.

Approved by: jkoshy(mentor), kientzle

16 years ago - Reduce contention on the global bdonelock and bpinlock by using
jeff [Fri, 21 Mar 2008 10:00:05 +0000 (10:00 +0000)]
 - Reduce contention on the global bdonelock and bpinlock by using
   a pool mutex to protect these sleep/wakeup/counter races.  This
   still is preferable to bloating each bio with a mtx.

16 years ago - Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs
jeff [Fri, 21 Mar 2008 08:23:25 +0000 (08:23 +0000)]
 - Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs
   to enter thread_suspend_check().
 - Set TDF_ASTPENDING along with TDF_NEEDSUSPCHK so we can move the
   thread_suspend_check() to ast() rather than userret().
 - Check TDF_NEEDSUSPCHK in the sleepq_catch_signals() optimization so
   that we don't miss a suspend request.  If this is set use the
   expensive signal path.
 - Set NEEDSUSPCHK when creating a new thread in thr in case the
   creating thread is due to be suspended as well but has not yet.

Reviewed by: davidxu (Authored original patch)

16 years agoResolve __error()'s PLT early so that it needs not to be resolved again,
davidxu [Fri, 21 Mar 2008 02:31:55 +0000 (02:31 +0000)]
Resolve __error()'s PLT early so that it needs not to be resolved again,
otherwise rwlock is recursivly called when signal happens and the __error
was never resolved before.

16 years agoThe last commit was:
remko [Thu, 20 Mar 2008 22:36:49 +0000 (22:36 +0000)]
The last commit was:

Approved by: imp (mentor)
Noticed by: rink

16 years agoExplicitly use spinlock_enter/exit rather than locking the icu_lock spin
jhb [Thu, 20 Mar 2008 21:53:27 +0000 (21:53 +0000)]
Explicitly use spinlock_enter/exit rather than locking the icu_lock spin
lock in the 8259A drivers as these drivers are only used on UP systems.
This slightly reduces the penalty of an SMP kernel (such as GENERIC) on
a UP x86 machine.

16 years agoImplement a BUS_BIND_INTR() method in the bus interface to bind an IRQ
jhb [Thu, 20 Mar 2008 21:24:32 +0000 (21:24 +0000)]
Implement a BUS_BIND_INTR() method in the bus interface to bind an IRQ
resource to a CPU.  The default method is to pass the request up to the
parent similar to BUS_CONFIG_INTR() so that all busses don't have to
explicitly implement bus_bind_intr.  A bus_bind_intr(9) wrapper routine
similar to bus_setup/teardown_intr() is added for device drivers to use.
Unbinding an interrupt is done by binding it to NOCPU.  The IRQ resource
must be allocated, but it can happen in any order with respect to
bus_setup_intr().  Currently it is only supported on amd64 and i386 via
nexus(4) methods that simply call the intr_bind() routine.

Tested by: gallatin

16 years agoUnbreak the last commit.
sos [Thu, 20 Mar 2008 21:21:31 +0000 (21:21 +0000)]
Unbreak the last commit.
Changes from the PM WIP sneaked in and caused compile errors.

16 years agopay attention to default cluster limits when sizing receive queues
kmacy [Thu, 20 Mar 2008 20:52:37 +0000 (20:52 +0000)]
pay attention to default cluster limits when sizing receive queues

16 years agoRestore creation of passthrough devices with newer controller firmware by
emaste [Thu, 20 Mar 2008 20:33:48 +0000 (20:33 +0000)]
Restore creation of passthrough devices with newer controller firmware by
putting the correct size in the fib header.  Presumably the older firmware
silently ignored a bad size field.

(This change tested with a 3805 controller.  Passthrough devices were
created when running firmware build 12814, but not 15323 or later.  With
this change they're created for both old and new firmware versions.)

Submitted by: Adaptec

16 years agoAdd ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB,
emaste [Thu, 20 Mar 2008 17:59:19 +0000 (17:59 +0000)]
Add ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB,
FSACTL_LNX_SEND_LARGE_FIB, and FSACTL_LNX_SEND_RAW_SRB, and correct size
checks on FIBs passed in from userspace.  Both changes were obtained from
Adaptec's driver build 15317.  Adaptec's commandline RAID tool arcconf uses
these ioctls when creating a RAID-10 array (and probably other operations
too).

16 years agoadd usb devices and more wlan stuff now that usb is functional
sam [Thu, 20 Mar 2008 17:44:58 +0000 (17:44 +0000)]
add usb devices and more wlan stuff now that usb is functional

MFC after: 1 month

16 years ago o Add stub support for some new futex operations,
rdivacky [Thu, 20 Mar 2008 17:03:55 +0000 (17:03 +0000)]
o Add stub support for some new futex operations,
so the annoying message is not printed.

o Don't warn about FUTEX_FD not being implemented
and return ENOSYS instead of 0 (eg. success).

o Clear FUTEX_PRIVATE_FLAG as we actually implement
only private futexes so there is no reason to
return ENOSYS when app asks for a private futex.
We don't reject shared futexes because they worked
just fine with our implementation so far.

Approved by: kib (mentor)
Tested by: bsam
MFC after: 1 week

16 years agoWorkaround design botch in usb: blindly mixing bus_dma with PIO does not
sam [Thu, 20 Mar 2008 16:19:25 +0000 (16:19 +0000)]
Workaround design botch in usb: blindly mixing bus_dma with PIO does not
work on architectures with a write-back cache as the PIO writes end up
in the cache which the sync(BUS_DMASYNC_POSTREAD) in usb_transfer_complete
then discards; compensate in the xfer methods that do PIO by pushing the
writes out of the cache before usb_transfer_complete is called.

This fixes USB on xscale and likely other places.

Sponsored by: hobnob
Reviewed by: cognet, imp
MFC after: 1 month

16 years agoDo not dereference cdev->si_cdevsw, use the dev_refthread() to properly
kib [Thu, 20 Mar 2008 16:08:42 +0000 (16:08 +0000)]
Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly
obtain the reference. In particular, this fixes the panic reported in
the PR. Remove the comments stating that this needs to be done.

PR: kern/119422
MFC after: 1 week

16 years agoCorrect cache handling for xfer requests marked URQ_REQUEST: many (if not
sam [Thu, 20 Mar 2008 16:04:13 +0000 (16:04 +0000)]
Correct cache handling for xfer requests marked URQ_REQUEST: many (if not
all uses) involve a read but usbd_start_transfer only does a PREWRITE; change
this to BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE as I'm not sure if any
users do write+read.

Reviewed by: cognet, imp
MFC after: 1 month

16 years agomap device 5; the optional USB controller on Gateworks 2348 boards
sam [Thu, 20 Mar 2008 15:54:19 +0000 (15:54 +0000)]
map device 5; the optional USB controller on Gateworks 2348 boards
shows up here instead of the minipci slot at J4

Reviewed by: cognet, imp
MFC after: 1 week

16 years agoFix the leak of the vmspace on the fork when the process limits
kib [Thu, 20 Mar 2008 15:24:49 +0000 (15:24 +0000)]
Fix the leak of the vmspace on the fork when the process limits
are exceeded.

Pointy hat to: me
MFC after: 3 days

16 years agoAlert properly when we have stale mounts left after interupting
remko [Thu, 20 Mar 2008 12:56:49 +0000 (12:56 +0000)]
Alert properly when we have stale mounts left after interupting
a tinybsd build.  If we do not do this, we can accidentally remove
critical files from directories like /lib (if mounted).

PR: misc/121763
Submitted by: Richard Arends < richard at unixguru dot nl >
MFC after: 3 days

16 years agoFix Problem with Intel Matrix RAID.
sos [Thu, 20 Mar 2008 11:54:26 +0000 (11:54 +0000)]
Fix Problem with Intel Matrix RAID.

Fix from PR/121899.

16 years agopthread_mutexattr_destroy() was accidentally broken in last revision,
ru [Thu, 20 Mar 2008 11:47:08 +0000 (11:47 +0000)]
pthread_mutexattr_destroy() was accidentally broken in last revision,
unbreak it.  We should really start compiling this with warnings.

16 years ago"track" is a script I've used for ages to track the progress of a build.
des [Thu, 20 Mar 2008 10:15:45 +0000 (10:15 +0000)]
"track" is a script I've used for ages to track the progress of a build.
Unlike whereintheworld, it continuously monitors the log file; it also
produses less verbose output.

16 years agos/wait/delta/ to avoid namespace collision.
des [Thu, 20 Mar 2008 09:55:27 +0000 (09:55 +0000)]
s/wait/delta/ to avoid namespace collision.

MFC after: 2 weeks

16 years agoFix usage string.
des [Thu, 20 Mar 2008 09:53:45 +0000 (09:53 +0000)]
Fix usage string.

16 years agoPreserve application code's errno in rtld locking code, it attemps to keep
davidxu [Thu, 20 Mar 2008 09:35:44 +0000 (09:35 +0000)]
Preserve application code's errno in rtld locking code, it attemps to keep
any case safe.

16 years agoOops, add back the SYNOPSIS section header I accidently removed in the
brueffer [Thu, 20 Mar 2008 08:46:27 +0000 (08:46 +0000)]
Oops, add back the SYNOPSIS section header I accidently removed in the
previous revision.

16 years agoMake pthread_mutexattr_settype to return error number directly and
davidxu [Thu, 20 Mar 2008 08:27:14 +0000 (08:27 +0000)]
Make pthread_mutexattr_settype to return error number directly and
conformant to POSIX specification.

Bug reported by: modelnine at modelnine dt org

16 years agoback out last change as Sam believes that it breaks multicast - need to revisit after...
kmacy [Thu, 20 Mar 2008 06:19:34 +0000 (06:19 +0000)]
back out last change as Sam believes that it breaks multicast - need to revisit after following up with pyun

16 years ago - Restore runq to manipulating threads directly by putting runq links and
jeff [Thu, 20 Mar 2008 05:51:16 +0000 (05:51 +0000)]
 - Restore runq to manipulating threads directly by putting runq links and
   rqindex back in struct thread.
 - Compile kern_switch.c independently again and stop #include'ing it from
   schedulers.
 - Remove the ts_thread backpointers and convert most code to go from
   struct thread to struct td_sched.
 - Cleanup the ts_flags #define garbage that was causing us to sometimes
   do things that expanded to td->td_sched->ts_thread->td_flags in 4BSD.
 - Export the kern.sched sysctl node in sysctl.h

16 years agoforced commit to add that the fix in the previous commit was submitted by Devon H...
kmacy [Thu, 20 Mar 2008 05:45:27 +0000 (05:45 +0000)]
forced commit to add that the fix in the previous commit was submitted by Devon H. O'Dell

16 years agoDon't re-initialize the interface if it is already running.
kmacy [Thu, 20 Mar 2008 05:35:02 +0000 (05:35 +0000)]
Don't re-initialize the interface if it is already running.

This one line change makes the following code found in many ethernet device drivers
(at least em, igb, ixgbe, and cxgb) gratuitous

case SIOCSIFADDR:
if (ifa->ifa_addr->sa_family == AF_INET) {
/*
 * XXX
 * Since resetting hardware takes a very long time
 * and results in link renegotiation we only
 * initialize the hardware only when it is absolutely
 * required.
 */
ifp->if_flags |= IFF_UP;
if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) {
EM_CORE_LOCK(adapter);
em_init_locked(adapter);
EM_CORE_UNLOCK(adapter);
}
arp_ifinit(ifp, ifa);
} else
error = ether_ioctl(ifp, command, data);
break;

16 years ago- Add the Corega CG-WLUSB2GL from NetBSD
kevlo [Thu, 20 Mar 2008 05:05:37 +0000 (05:05 +0000)]
- Add the Corega CG-WLUSB2GL from NetBSD
- Add the Corega CG-WLUSB2GPX

16 years agoImprove VT_WAITACTIVE semantics.
bland [Thu, 20 Mar 2008 04:10:52 +0000 (04:10 +0000)]
Improve VT_WAITACTIVE semantics.
- Wait for requested vty activation regardless its open state.
- Remove redundant console cleanup.

Approved by: kib
MFC after: 1 week

16 years agoadd some debug msgs for tracking xfers
sam [Thu, 20 Mar 2008 03:11:07 +0000 (03:11 +0000)]
add some debug msgs for tracking xfers

16 years agoadd support for %b printing of request + xfer flags
sam [Thu, 20 Mar 2008 03:09:59 +0000 (03:09 +0000)]
add support for %b printing of request + xfer flags

16 years ago - Remove the unused and redundant sched_newproc() function.
jeff [Thu, 20 Mar 2008 03:09:15 +0000 (03:09 +0000)]
 - Remove the unused and redundant sched_newproc() function.
 - Remove the unused and redundant sched_newthread() which peaks into scheduler
   private structures.

16 years ago - There is no sense in calling sched_newthread() at thread_init() and
jeff [Thu, 20 Mar 2008 03:07:57 +0000 (03:07 +0000)]
 - There is no sense in calling sched_newthread() at thread_init() and
   thread_fini().  The schedulers initialize themselves properly during
   sched_fork_thread() anyhow.  fini is only called when we're returning
   the memory to the allocator which surely doesn't care what state the
   memory is in.

16 years ago - ULE and 4BSD share only one line of code from sched_newthread() so implement
jeff [Thu, 20 Mar 2008 03:06:33 +0000 (03:06 +0000)]
 - ULE and 4BSD share only one line of code from sched_newthread() so implement
   the required pieces in sched_fork_thread().  The td_sched pointer is already
   setup by thread_init anyway.

16 years ago - Don't call the empty sched_newproc() function. sched_newproc() already
jeff [Thu, 20 Mar 2008 03:05:17 +0000 (03:05 +0000)]
 - Don't call the empty sched_newproc() function.  sched_newproc() already
   existed as sched_fork() which is a non empty function in both schedulers.

16 years agoResolve conflicts.
delphij [Thu, 20 Mar 2008 02:56:24 +0000 (02:56 +0000)]
Resolve conflicts.

16 years agoUpdate upgrade instructions to reflect 1.0.5 import; add FREEBSD-vendor
delphij [Thu, 20 Mar 2008 02:45:32 +0000 (02:45 +0000)]
Update upgrade instructions to reflect 1.0.5 import; add FREEBSD-vendor
metadata file.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r177420,
delphij [Thu, 20 Mar 2008 02:16:44 +0000 (02:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r177420,
which included commits to RCS files with non-trunk default branches.

16 years agoVirgin import (trimmed) of Bzip2 version 1.0.5.
delphij [Thu, 20 Mar 2008 02:16:44 +0000 (02:16 +0000)]
Virgin import (trimmed) of Bzip2 version 1.0.5.

16 years ago - Move maybe_preempt() from kern_switch.c to sched_4bsd.c. This is function
jeff [Thu, 20 Mar 2008 02:14:02 +0000 (02:14 +0000)]
 - Move maybe_preempt() from kern_switch.c to sched_4bsd.c.  This is function
   is only used by 4bsd.
 - Create a new runq_choose_fuzz() function rather than polluting runq_choose()
   with 4BSD specific code.
 - Move the fuzz sysctl into sched_4bsd.c
 - Remove some dead code from kern_switch.c

16 years ago - Directly include opt_sched.h in sched_4bsd.
jeff [Thu, 20 Mar 2008 01:32:48 +0000 (01:32 +0000)]
 - Directly include opt_sched.h in sched_4bsd.

16 years ago - Add an option to compile in SCHED_STATS.
jeff [Thu, 20 Mar 2008 01:30:49 +0000 (01:30 +0000)]
 - Add an option to compile in SCHED_STATS.
 - Add some more information about SLEEPQUEUE_PROFILING to NOTES.

16 years agoReplace really convoluted code that simplifies to "a ^= 0x01;"
julian [Wed, 19 Mar 2008 22:29:11 +0000 (22:29 +0000)]
Replace really convoluted code that simplifies to "a ^= 0x01;"

16 years agofix link management bug and conditionally allow the PHY to be kept on at all times...
kmacy [Wed, 19 Mar 2008 20:56:51 +0000 (20:56 +0000)]
fix link management bug and conditionally allow the PHY to be kept on at all times for allowing non-conformant link state checks

16 years agoRename vm_pageq_requeue() to vm_page_requeue() on account of its recent
alc [Wed, 19 Mar 2008 20:24:35 +0000 (20:24 +0000)]
Rename vm_pageq_requeue() to vm_page_requeue() on account of its recent
migration to vm/vm_page.c.

16 years agoRe-enable the CVS build.
obrien [Wed, 19 Mar 2008 15:21:44 +0000 (15:21 +0000)]
Re-enable the CVS build.

16 years agoUpdate for version 1.11-20080310.
obrien [Wed, 19 Mar 2008 15:19:42 +0000 (15:19 +0000)]
Update for version 1.11-20080310.
Make our changes to CVS_RSH & CVS_SSH settings here instead of
  contrib/cvs/src/cvs.h.

16 years ago+ Make it clear this was taken from the CVS 1.11 branch on 10-March-2008.
obrien [Wed, 19 Mar 2008 15:18:03 +0000 (15:18 +0000)]
+ Make it clear this was taken from the CVS 1.11 branch on 10-March-2008.
+ Depend on $CVSDIR/configure also - so things get properly remade if we tweak.

16 years agoRemove FreeBSD ID's so these are exact copies of the vendor sources.
obrien [Wed, 19 Mar 2008 15:15:26 +0000 (15:15 +0000)]
Remove FreeBSD ID's so these are exact copies of the vendor sources.

16 years agoWe use the stock versions of these files.
obrien [Wed, 19 Mar 2008 15:11:46 +0000 (15:11 +0000)]
We use the stock versions of these files.

16 years agoActually our rev 1.21(change default from "rsh" to "ssh") tweaking is
obrien [Wed, 19 Mar 2008 15:10:20 +0000 (15:10 +0000)]
Actually our rev 1.21(change default from "rsh" to "ssh") tweaking is
moving to gnu/usr.bin/cvs/lib/config.h.proto.  So the rev 1.21 no longer
is applicable here.

16 years agoMerge rev 1.9 (new long flag to ignore the CVSROOT/passwd file)
obrien [Wed, 19 Mar 2008 15:08:01 +0000 (15:08 +0000)]
Merge rev 1.9 (new long flag to ignore the CVSROOT/passwd file)
rev 1.2 (local tag/$Id$ keyword support)  into version 1.11-20080310.

16 years agoMerge rev 1.9 (update "-T" Template support) and rev 1.2 (-D'date'
obrien [Wed, 19 Mar 2008 15:07:28 +0000 (15:07 +0000)]
Merge rev 1.9 (update "-T" Template support) and rev 1.2 (-D'date'
option with -r'branch' on update)  into version 1.11-20080310.

16 years agoMerge rev 1.28 (CAN-2005-0753 / FreeBSD-SA-05:05.cvs fixes),
obrien [Wed, 19 Mar 2008 15:06:50 +0000 (15:06 +0000)]
Merge rev 1.28 (CAN-2005-0753 / FreeBSD-SA-05:05.cvs fixes),
rev 1.27 ("iso8601" option keyword) revs 1.12/1.10/1.5/1.4 ($CVSHeader$
support) rev 1.2 ($CVS_LOCAL_BRANCH_NUM support for local commit
feature of cvsup)  into version 1.11-20080310.

16 years agoMerge rev 1.2 (extensions to the $CVSROOT/config syntax) and
obrien [Wed, 19 Mar 2008 15:05:27 +0000 (15:05 +0000)]
Merge rev 1.2 (extensions to the $CVSROOT/config syntax) and
rev 1.4 (1.12 CVSROOT/config keyword expansion forward compatability)
into version 1.11-20080310.
Note the vendor has also added some forward compatability support.
We should determine if we can live with just the vendor's method.

16 years agoMerge rev 1.25 ("iso8601" option keyword), rev 1.17 (environtmental var
obrien [Wed, 19 Mar 2008 15:00:43 +0000 (15:00 +0000)]
Merge rev 1.25 ("iso8601" option keyword), rev 1.17 (environtmental var
"CVS_OPTIONS"), rev 1.14 ('-g' option to support shared-group access),
rev 1.7 ('-R' read-only repository mode), rev 1.6 (support for checking
out from a read-only repository), revs 1.4 & 1.5 ("tagexpand=")
into version 1.11-20080310.  Note the vendor accepted my "blame" alias.

16 years agoMerge rev. 1.2 ("iso8601" option keyword) into version 1.11-20080310.
obrien [Wed, 19 Mar 2008 14:56:41 +0000 (14:56 +0000)]
Merge rev. 1.2 ("iso8601" option keyword)  into version 1.11-20080310.
Note the vendor added our '-n' feature to the offical code base.

16 years agoMerge rev 1.3 (catch write-lock attempts immediately if running in
obrien [Wed, 19 Mar 2008 14:55:59 +0000 (14:55 +0000)]
Merge rev 1.3 (catch write-lock attempts immediately if running in
read-only mode) & rev 1.2 (check out from read-only repository support)
into version 1.11-20080310.

16 years agoMerge rev 1.21: change default from "rsh" to "ssh", rev 1.14: comprehensive
obrien [Wed, 19 Mar 2008 14:50:22 +0000 (14:50 +0000)]
Merge rev 1.21: change default from "rsh" to "ssh", rev 1.14: comprehensive
-T CVS/Template support, rev 1.9: new long flag that causes cvs to ignore
the CVSROOT/passwd file, rev 1.3: support for checking out from a read-only
repository, rev. 1.2: support for local $Id$ keyword  into cvs 1.11-20080310.

16 years agoMerge rev 1.7: always upload new files, even if the timestamps match,
obrien [Wed, 19 Mar 2008 14:49:14 +0000 (14:49 +0000)]
Merge rev 1.7: always upload new files, even if the timestamps match,
rev 1.2: fix a problem sometimes seen when doing checkouts from a local repo
and committing via remote cvs (a cvs -d override of the mismatched CVS/Root
files was missing)  into cvs 1.11-20080310.

Note that rev 1.4 (default CVS_RSH to "ssh") will not be handled thru the
vendor's config.h.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r177391,
obrien [Wed, 19 Mar 2008 14:46:59 +0000 (14:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r177391,
which included commits to RCS files with non-trunk default branches.

16 years agoImport of 1.11 branch snapshot - using the 10-March-2008 code base.
obrien [Wed, 19 Mar 2008 14:46:59 +0000 (14:46 +0000)]
Import of 1.11 branch snapshot - using the 10-March-2008 code base.