]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoUpdate the list of Cx states when ACPICA notifies us. Usually, this
Rui Paulo [Sat, 12 Apr 2008 12:06:00 +0000 (12:06 +0000)]
Update the list of Cx states when ACPICA notifies us. Usually, this
notification is sent when the AC plug is plugged in/out.

This is required on some laptops, namely the MacBooks.

Silence on:  freebsd-acpi

16 years agoMatch the Mac Pro with 8 cores. This machine reports 35 temperature
Rui Paulo [Sat, 12 Apr 2008 12:04:09 +0000 (12:04 +0000)]
Match the Mac Pro with 8 cores. This machine reports 35 temperature
sensors and some fans.
As I don't own this machine, I could not test this patch.

Obtained from: applesmc Linux driver.

16 years agoCorrect an obvious typo.
Pawel Jakub Dawidek [Sat, 12 Apr 2008 05:49:05 +0000 (05:49 +0000)]
Correct an obvious typo.

16 years agoUpdates for changes in the way printf() handles hex floating point
David Schultz [Sat, 12 Apr 2008 03:11:56 +0000 (03:11 +0000)]
Updates for changes in the way printf() handles hex floating point
numbers.

16 years agoMake several changes to the way printf handles hex floating point (%a):
David Schultz [Sat, 12 Apr 2008 03:11:36 +0000 (03:11 +0000)]
Make several changes to the way printf handles hex floating point (%a):

1. Previously, printing the number 1.0 could produce 0x1p+0, 0x2p-1,
   0x4p-2, or 0x8p-3, depending on what happened to be convenient. This
   meant that printing a value as a double and printing the same value
   as a long double could produce different (but equivalent) results.
   The change is to always make the leading digit a 1, unless the
   number is 0. This solves the aforementioned problem and has
   several other advantages.

2. Use the FPU to do rounding. This is far simpler and more portable
   than manipulating the bits, and it fixes an obsure round-to-even
   bug. It also raises the exceptions now required by IEEE 754R.
   The drawbacks are that it is usually slightly slower, and it makes
   printf less effective as a debugging tool when the FPU is hosed
   (e.g., due to a buggy softfloat implementation).

3. On i386, twiddle the rounding precision so that (2) works properly
   for long doubles.

4. Make several simplifications that are now possible due to (2).

5. Split __hldtoa() into a separate file.

Thanks to remko for access to a sparc64 box for testing.

16 years agoFix some bugs that caused sparc64's quad precision sqrt to get
David Schultz [Sat, 12 Apr 2008 03:10:13 +0000 (03:10 +0000)]
Fix some bugs that caused sparc64's quad precision sqrt to get
the wrong answer for virtually all inputs.

Thanks to remko for access to a sparc64 box for testing.

16 years agoMake the software emulator for long doubles set the FPU exception
David Schultz [Sat, 12 Apr 2008 03:09:51 +0000 (03:09 +0000)]
Make the software emulator for long doubles set the FPU exception
flags appropriately. The next step is to make it raise a SIGFPE if
any exceptions are unmasked.

Thanks to remko for access to a sparc64 box for testing.

16 years ago- Fixed a problem with the send chain consumer index which would cause
David Christensen [Fri, 11 Apr 2008 23:10:40 +0000 (23:10 +0000)]
- Fixed a problem with the send chain consumer index which would cause
  TX traffic to sit in the send chain until a received packet kick
  started the interrupt handler.  This would cause extremely slow
  performance when used with NFS over UDP.
- Removed untested polling code.
- Updated copyright year in the file header.
- Removed inadvertent ^M's created by DOS text editor.

MFC after: 2 weeks

16 years ago - Pass the irq and not the vector to intr_event_create().
Jeff Roberson [Fri, 11 Apr 2008 23:10:39 +0000 (23:10 +0000)]
 - Pass the irq and not the vector to intr_event_create().

Reviewed by: marcel

16 years agoHook up ZFS to the sparc64 build.
Marius Strobl [Fri, 11 Apr 2008 23:04:36 +0000 (23:04 +0000)]
Hook up ZFS to the sparc64 build.

Approved by: pjd
MFC after: 2 weeks

16 years agoAdd atomic operations for ZFS/sparc64.
Marius Strobl [Fri, 11 Apr 2008 22:59:33 +0000 (22:59 +0000)]
Add atomic operations for ZFS/sparc64.

Approved by: core, pjd
Obtained from: OpenSolaris (w/ adaptations)
MFC after: 2 weeks

16 years agoFix badly placed '{'
Søren Schmidt [Fri, 11 Apr 2008 22:56:27 +0000 (22:56 +0000)]
Fix badly placed '{'
Dont leak requests on busdma failure (not that we'd get anywhere anyhow).

Reported by: antoine@

16 years ago- Fix the path encoded in the multiple inclusion protection.
Marius Strobl [Fri, 11 Apr 2008 22:53:06 +0000 (22:53 +0000)]
- Fix the path encoded in the multiple inclusion protection.
- GCC uses 32-byte function alignment for UltraSPARC CPUs.
- Remove code duplication.

Approved by: core, pjd
MFC after: 2 weeks

16 years agoAvoid printing spurious ``Header with wrong dumpdate.'' message.
Kirk McKusick [Fri, 11 Apr 2008 21:51:53 +0000 (21:51 +0000)]
Avoid printing spurious ``Header with wrong dumpdate.'' message.

16 years agoCorrectly set file group when restore is run by a user other than root.
Kirk McKusick [Fri, 11 Apr 2008 21:48:14 +0000 (21:48 +0000)]
Correctly set file group when restore is run by a user other than root.

16 years agoInstead of rolling our own jail number allocation procedure, use
Xin LI [Fri, 11 Apr 2008 21:31:15 +0000 (21:31 +0000)]
Instead of rolling our own jail number allocation procedure, use
alloc_unr() to do it.

Submitted by: Ed Schouten <ed 80386 nl>
PR: kern/122270
MFC after: 1 month

16 years agoUse kthread_exit() to terminate a taskqueue thread rather than kproc_exit()
John Baldwin [Fri, 11 Apr 2008 17:35:54 +0000 (17:35 +0000)]
Use kthread_exit() to terminate a taskqueue thread rather than kproc_exit()
now that the taskqueue threads are kthreads rather than kprocs.

Reported by: kris

16 years agoDon't call acpi_disabled() because we are not part of the acpi.ko
Rui Paulo [Fri, 11 Apr 2008 17:16:19 +0000 (17:16 +0000)]
Don't call acpi_disabled() because we are not part of the acpi.ko
module. Instead, use resource_disabled() that doesn't depend on any
module.

Noticed by: Ian FREISLICH <ianf at clue.co.za>

16 years agoDon't mess up with CHN_F_TRIGGERED, since it should exclusively
Ariff Abdullah [Fri, 11 Apr 2008 15:26:25 +0000 (15:26 +0000)]
Don't mess up with CHN_F_TRIGGERED, since it should exclusively
be handled by chn_abort() and chn_start() alone. This should fix
few issues with single duplex hardware (mostly) or pre virtual record
(RELENG 6) under WINE emulation and possibly others that using
SNDCTL_DSP_SETTRIGGER.

MFC after: 3 days

16 years agoStyle nit. No functional change.
Rui Paulo [Fri, 11 Apr 2008 12:12:25 +0000 (12:12 +0000)]
Style nit. No functional change.

16 years agosystem_info.cpustates isn't sparse, so a bitmask of available CPU states
Ruslan Ermilov [Fri, 11 Apr 2008 11:39:26 +0000 (11:39 +0000)]
system_info.cpustates isn't sparse, so a bitmask of available CPU states
is redundant (I think it's a leftover from an older implementation).

16 years agoAllocate enough memory for pcpu_cp_time[] to stop sysctl() from
Ruslan Ermilov [Fri, 11 Apr 2008 11:34:09 +0000 (11:34 +0000)]
Allocate enough memory for pcpu_cp_time[] to stop sysctl() from
writing outside of array bounds.  This fully fixes -P display on
i386, where kern.cp_times prints zeroes for non-existing CPUs.

16 years agoFix the brokenness in the former commit, sorry for the mess.
Søren Schmidt [Fri, 11 Apr 2008 11:30:27 +0000 (11:30 +0000)]
Fix the brokenness in the former commit, sorry for the mess.
The problem is that the PM support is part of a much larger WIP here, but due to popular demand I decided to get some of it imported.

Also I forgot the mention:

HW sponsored by: Vitsch Electronics / VEHosting

16 years agoFix some issues that showed up during Kris' testing.
Doug Rabson [Fri, 11 Apr 2008 10:34:59 +0000 (10:34 +0000)]
Fix some issues that showed up during Kris' testing.

Reported by: kris
MFC after: 3 days

16 years ago - Use a lockmgr lock rather than a mtx to protect dirhash. This lock
Jeff Roberson [Fri, 11 Apr 2008 09:48:12 +0000 (09:48 +0000)]
 - Use a lockmgr lock rather than a mtx to protect dirhash.  This lock
   may be held for the duration of the various dirhash operations which
   avoids many complex unlock/lock/revalidate sequences.
 - Permit shared locks on lookup.  To protect the ip->i_dirhash pointer we
   use the vnode interlock in the shared case.  Callers holding the
   exclusive vnode lock can run without fear of concurrent modification to
   i_dirhash.
 - Hold an exclusive dirhash lock when creating the dirhash structure for
   the first time or when re-creating a dirhash structure which has been
   recycled.

Tested by: kris, pho

16 years ago - cache dp->i_offset in the local 'i_offset' variable for use in loop
Jeff Roberson [Fri, 11 Apr 2008 09:44:25 +0000 (09:44 +0000)]
 - cache dp->i_offset in the local 'i_offset' variable for use in loop
   indexes so directory lookup becomes shared lock safe.  In the modifying
   cases an exclusive lock is held here so the commit routine may
   rely on the state of i_offset.
 - Similarly handle i_diroff by fetching at the start and setting only once
   the operation is complete.  Without the exclusive lock these are only
   considered hints.
 - Assert that an exclusive lock is held when we're preparing for a commit
   routine.
 - Honor the lock type request from lookup instead of always using exclusive
   locking.

Tested by: pho, kris

16 years agoOptimize package registration/deregistration. Previously, when looking up the
Pav Lucistnik [Fri, 11 Apr 2008 08:26:06 +0000 (08:26 +0000)]
Optimize package registration/deregistration.  Previously, when looking up the
package name for the origin of a dependency, all entries in /var/db/pkg were
traversed for each dependency of added/removed package.  Now, gather all the
origins first, then do the lookup in a single pass over /var/db/pkg.

This should provide a major speedup for packages with hundreds of dependencies.

Submitted by: rdivacky (earlier version)
MFC after: 1 month

16 years agoIdentify ICH9 USB controllers.
Benno Rice [Fri, 11 Apr 2008 05:50:53 +0000 (05:50 +0000)]
Identify ICH9 USB controllers.

I've taken a slightly different approach than is used with the ICH8 controllers
in that each controller is not identified individually (eg USB A, USB B, etc).
Instead I've given then same description to each one even though the device ID
differs.  This can easily be changed if desired, or ICH8 (and any others using
that approach) can be made to work as this does.

16 years ago - Add support for interrupt bindig to cpuset(1). Interrupts are bound
Jeff Roberson [Fri, 11 Apr 2008 03:27:42 +0000 (03:27 +0000)]
 - Add support for interrupt bindig to cpuset(1).  Interrupts are bound
   by specifying the interrupt with -x <irq>.  The irq number matches
   those displayed by vmstat -i.

Sponsored by: Nokia

16 years ago - Add the interrupt vector number to intr_event_create so MI code can
Jeff Roberson [Fri, 11 Apr 2008 03:26:41 +0000 (03:26 +0000)]
 - Add the interrupt vector number to intr_event_create so MI code can
   lookup hard interrupt events by number.  Ignore the irq# for soft intrs.
 - Add support to cpuset for binding hardware interrupts.  This has the
   side effect of binding any ithread associated with the hard interrupt.
   As per restrictions imposed by MD code we can only bind interrupts to
   a single cpu presently.  Interrupts can be 'unbound' by binding them
   to all cpus.

Reviewed by: jhb
Sponsored by: Nokia

16 years agoAdd a new flag, '-C' which enables a special mode that is intended for
Xin LI [Thu, 10 Apr 2008 23:49:23 +0000 (23:49 +0000)]
Add a new flag, '-C' which enables a special mode that is intended for
catastrophic recovery.  Currently, this mode only validates whether a
cylindergroup has good signature data, and prompts the user to decide
whether to clear it as a whole.

This mode is useful when there is data damage on a disk and you are
working on copy of the original disk, as fsck_ffs(8) tends to abnormally
exit in such case, as a last resort to recover data from the disk.

16 years agoFix a bug introduced by DEFAULTS feature. When the config file
Warner Losh [Thu, 10 Apr 2008 22:57:54 +0000 (22:57 +0000)]
Fix a bug introduced by DEFAULTS feature.  When the config file
doesn't exist, we make a directory and then say "oops, that file isn't
there" leaving the directory behind.  Add a stat for the config file
so that we detect this before making the directory.  This is
semi-lame, but less lame than having this bug.

16 years agoFix clearing of nVidia interrupts.
Søren Schmidt [Thu, 10 Apr 2008 20:40:25 +0000 (20:40 +0000)]
Fix clearing of nVidia interrupts.

16 years agoDon't break identity mapping set up for ACPI resume path.
Takanori Watanabe [Thu, 10 Apr 2008 18:38:31 +0000 (18:38 +0000)]
Don't break identity mapping set up for ACPI resume path.
With this change, BSP processor context seems to be recovered.

16 years agoFix "top -P" (`&' mistyped as `&&' and a botched logic).
Ruslan Ermilov [Thu, 10 Apr 2008 16:17:54 +0000 (16:17 +0000)]
Fix "top -P" (`&' mistyped as `&&' and a botched logic).
The bug was unnoticed on non-i386 because mp_maxid is
initialized differently, kern.cp_times doesn't print
zeroes for non-existing CPUs, so no "writing outside of
array bounds" happens.

MFC after: 3 days

16 years agoCorrect pmap_copy()'s method for extracting the physical address of a
Alan Cox [Thu, 10 Apr 2008 16:04:50 +0000 (16:04 +0000)]
Correct pmap_copy()'s method for extracting the physical address of a
2/4MB page from a PDE.  Specifically, change it to use PG_PS_FRAME,
not PG_FRAME, to extract the physical address of a 2/4MB page from a
PDE.

Change the last argument passed to pmap_pv_insert_pde() from a
vm_page_t representing the first 4KB page of a 2/4MB page to the
vm_paddr_t of the 2/4MB page.  This avoids an otherwise unnecessary
conversion from a vm_paddr_t to a vm_page_t in pmap_copy().

16 years ago- Add ASUS G2K laptop support.
Jung-uk Kim [Thu, 10 Apr 2008 15:17:41 +0000 (15:17 +0000)]
- Add ASUS G2K laptop support.
- Add DLED and GLED found on newer ASUS laptops.
- Turn on BLED, TLED, and WLED by default as other OSes.

Reviewed by: philip
MFC after: 3 days

16 years agoClean up makefiles and a manpage.
Ruslan Ermilov [Thu, 10 Apr 2008 14:02:00 +0000 (14:02 +0000)]
Clean up makefiles and a manpage.

OK'ed by: phk

16 years agoAdd experimental support for SATA Port Multipliers
Søren Schmidt [Thu, 10 Apr 2008 13:05:05 +0000 (13:05 +0000)]
Add experimental support for SATA Port Multipliers

Support is working on the Silicon Image SiI3124/3132.
Support is working on some AHCI chips but far from all.

Remember this is WIP, so test reports and (constructive) suggestions are welcome!

16 years agoIf we can't find or load the kernel NLM support, don't just go ahead and
Doug Rabson [Thu, 10 Apr 2008 12:54:53 +0000 (12:54 +0000)]
If we can't find or load the kernel NLM support, don't just go ahead and
try to use it anyway.

16 years agoFix printing of sockaddr prefixes in verbose mode.
Ruslan Ermilov [Thu, 10 Apr 2008 12:16:20 +0000 (12:16 +0000)]
Fix printing of sockaddr prefixes in verbose mode.

PR: bin/122403
Submitted by: az
MFC after: 3 days

16 years agoAdd the restrict qualifiers to the pointer arguments of the readlinkat.
Konstantin Belousov [Thu, 10 Apr 2008 12:13:56 +0000 (12:13 +0000)]
Add the restrict qualifiers to the pointer arguments of the readlinkat.

16 years agoAdd forgotten -H, -h, and -P to usage().
Ruslan Ermilov [Thu, 10 Apr 2008 09:56:57 +0000 (09:56 +0000)]
Add forgotten -H, -h, and -P to usage().

16 years agoFix copy-n-paste typos in free text.
Marcel Moolenaar [Thu, 10 Apr 2008 02:37:26 +0000 (02:37 +0000)]
Fix copy-n-paste typos in free text.

16 years agoDeclare _ppp_profile_cleaned, _punct, and _punct_c local in
Brooks Davis [Thu, 10 Apr 2008 01:32:49 +0000 (01:32 +0000)]
Declare _ppp_profile_cleaned, _punct, and _punct_c local in
ppp_start_profile().

Reported by: yar
MFC after: 1 week

16 years agoAdd support for MCP73 chips.
Pyun YongHyeon [Thu, 10 Apr 2008 01:25:09 +0000 (01:25 +0000)]
Add support for MCP73 chips.

Tested by: "Daan Vreeken [PA4DAN]" ( Danovitsch AT vitsch DOT net )
MFC after: 1 week

16 years agoIt seems that RealTek 8129/8139 chip reports invalid length of
Pyun YongHyeon [Thu, 10 Apr 2008 01:06:05 +0000 (01:06 +0000)]
It seems that RealTek 8129/8139 chip reports invalid length of
received frame under certain conditions. wpaul said the length
0xfff0 is special meaning that indicates hardware is in the
process of copying a packet into host memory. But it seems
there are other cases that hardware is busy or stuck in bad
situation even if the received frame length is not 0xfff0.
To work-around this condition, add a check that verifys that
recevied frame length is in valid range. If received length is out
of range reinitialize hardware to recover from stuck condition.

Reported by: Mike Tancsa ( mike AT sentex DOT net )
Tested by: Mike Tancsa
Obtained from: OpenBSD
MFC after: 1 week

16 years agoAdd memrchr(3).
Xin LI [Thu, 10 Apr 2008 00:12:44 +0000 (00:12 +0000)]
Add memrchr(3).

Obtained from: OpenBSD

16 years agoAdd support for Verizon v740 to ubsa(4).
Florent Thoumie [Wed, 9 Apr 2008 22:20:28 +0000 (22:20 +0000)]
Add support for Verizon v740 to ubsa(4).

PR: usb/122610
Submitted by: Randi Harper <randi@freebsdgirl.com>
MFC after: 3 days

16 years agoUpdate .Dd
Maksim Yevmenkin [Wed, 9 Apr 2008 21:24:11 +0000 (21:24 +0000)]
Update .Dd

Pointed out by: Niclas Zeising <niclas-dot-zeising-at-gmail.com>
MFC after: 1 week

16 years ago- Add support for IPI_PREEMPT. [1]
Marius Strobl [Wed, 9 Apr 2008 21:14:01 +0000 (21:14 +0000)]
- Add support for IPI_PREEMPT. [1]
- Add my copyright to mp_machdep.c for having implemented support for
  USIII and up and some fixes.

Obtained from: sun4v (modulo style(9) bugs) [1]

16 years agoFix spelling mistake in comment.
Alexander Kabaev [Wed, 9 Apr 2008 20:27:53 +0000 (20:27 +0000)]
Fix spelling mistake in comment.

16 years ago- Use LK_TYPE_MASK where needed. Actually after sys/sys/lockmgr.h:1.69 it is
Pawel Jakub Dawidek [Wed, 9 Apr 2008 20:19:55 +0000 (20:19 +0000)]
- Use LK_TYPE_MASK where needed. Actually after sys/sys/lockmgr.h:1.69 it is
  no longer needed, but for now we still want to be consistent with other
  similar checks in the tree.
- Call ASSERT_VOP_ELOCKED() only when vget() returns 0.

Reviewed by: jeff

16 years agoDo image loading in a context known to have a root directory:
Sam Leffler [Wed, 9 Apr 2008 19:07:48 +0000 (19:07 +0000)]
Do image loading in a context known to have a root directory:
o create a private task queue thread that sets up root and current
  directories (hooking mountroot event as needed); this is necessary
  because task queue threads are parented from proc0 and it does not
  have a reference to rootvnode (lost when / mounting moved to init)
o bounce image load + unload requests through the private task q so
  we can load images even when the request is made from a thread that
  does not have sufficient context (e.g. task q thread)
o add a check in the task q thread to fail requests before root is
  mounted (just in case)

Reviewed by: jhb, mlaier, luigi (glance)
MFC after: 1 month

16 years agoAdd memory barriers to the node locking operations.
Alexander Motin [Wed, 9 Apr 2008 19:03:19 +0000 (19:03 +0000)]
Add memory barriers to the node locking operations.
Add some comments.

16 years agofix locking botch
Sam Leffler [Wed, 9 Apr 2008 18:40:10 +0000 (18:40 +0000)]
fix locking botch

MFC after: 1 week

16 years agoRevert the previous change and let PROBE_KEYBOARD function identical to -P
John Baldwin [Wed, 9 Apr 2008 17:59:17 +0000 (17:59 +0000)]
Revert the previous change and let PROBE_KEYBOARD function identical to -P
in boot2/gptboot.

16 years agoRemove using magic value of -1 to distinguish between linux_open()
Roman Divacky [Wed, 9 Apr 2008 16:42:50 +0000 (16:42 +0000)]
Remove using magic value of -1 to distinguish between linux_open()
and linux_openat(). Instead just pass AT_FDCWD into linux_common_open()
for the linux_open() case. This prevents passing -1 as a dirfd to
openat() from succeeding which is wrong.

Suggested by: rwatson, kib
Approved by: kib (mentor)

16 years agoFix a problem which stopped this from starting up on a kernel compiled
Doug Rabson [Wed, 9 Apr 2008 15:43:19 +0000 (15:43 +0000)]
Fix a problem which stopped this from starting up on a kernel compiled
without the INET6 option.

16 years agoAdd a distfile target to generate a distfile to be used by the
Florent Thoumie [Wed, 9 Apr 2008 15:08:31 +0000 (15:08 +0000)]
Add a distfile target to generate a distfile to be used by the
ports-mgmt/pkg_install port.

16 years agoInclude <sys/types.h> before <sys/systm.h> to get typedefs required
Peter Grehan [Wed, 9 Apr 2008 08:50:37 +0000 (08:50 +0000)]
Include <sys/types.h> before <sys/systm.h> to get typedefs required
by new atomic.h. Fixes tinderbox LINT build.

16 years agoTake the route mtu into account, if available, when sending an
Bjoern A. Zeeb [Wed, 9 Apr 2008 05:17:18 +0000 (05:17 +0000)]
Take the route mtu into account, if available, when sending an
ICMP unreach, frag needed.  Up to now we only looked at the
interface MTU. Make sure to only use the minimum of the two.

In case IPSEC is compiled in, loop the mtu through ip_ipsec_mtu()
to avoid any further conditional maths.

Without this, PMTU was broken in those cases when there was a
route with a lower MTU than the MTU of the outgoing interface.

PR: kern/122338
Tested by: Mark Cammidge  mark peralex.com
Reviewed by: silence on net@
MFC after: 2 weeks

16 years agoUnbreak after removal of SI_SUB_MOUNT_ROOT.
Marcel Moolenaar [Wed, 9 Apr 2008 03:32:48 +0000 (03:32 +0000)]
Unbreak after removal of SI_SUB_MOUNT_ROOT.

16 years agoReimplement atomic_add, atomic_clear, atomic_set and atomic_subtract
Marcel Moolenaar [Wed, 9 Apr 2008 01:00:35 +0000 (01:00 +0000)]
Reimplement atomic_add, atomic_clear, atomic_set and atomic_subtract
so that all implemented variants have proper prototypes. The 8-bit,
16-bit and 64-bit variants are not implemented.

This really fixes the current build breakages caused by type casting
and struct aliasing rules.

16 years agoSet defaults for the rfcomm_pppd_server rc script
Maksim Yevmenkin [Tue, 8 Apr 2008 23:50:03 +0000 (23:50 +0000)]
Set defaults for the rfcomm_pppd_server rc script

MFC after: 1 week

16 years agoAdd rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server
Maksim Yevmenkin [Tue, 8 Apr 2008 23:34:12 +0000 (23:34 +0000)]
Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server
mode at boot time. Multiple profiles can be started at the same time.
The whole idea is very similar to the ppp rc script.

Document Bluetooth knobs in rc.conf(5)

MFC after: 1 week

16 years agoo add rc.conf knobs to set the wpa_supplicant program, logging flags,
Sam Leffler [Tue, 8 Apr 2008 23:12:15 +0000 (23:12 +0000)]
o add rc.conf knobs to set the wpa_supplicant program, logging flags,
  and config file
o change default logging options from -q to -s (log to syslog); this
  is currently broken for boot-time startup as syslogd is started too
  late but that'll be dealt with separately

MFC after: 2 weeks

16 years agoadd support wired interfaces
Sam Leffler [Tue, 8 Apr 2008 23:00:04 +0000 (23:00 +0000)]
add support wired interfaces

MFC after: 2 weeks

16 years agoRemove ftp.hk.super.net, the DNS isn't pointing to anything at the moment.
Remko Lodder [Tue, 8 Apr 2008 19:43:00 +0000 (19:43 +0000)]
Remove ftp.hk.super.net, the DNS isn't pointing to anything at the moment.

I tested this as well as the submitter and couldn't resolve this either,
since I dont want to "announce" dead mirrors, I'll remove it from the
list.

PR: 122567
Submitted by: vs
Approved by: imp (mentor, implicit for trivial changes)
MFC after: 1 week

16 years agoClean up and fix style(9) nits.
Jung-uk Kim [Tue, 8 Apr 2008 19:09:45 +0000 (19:09 +0000)]
Clean up and fix style(9) nits.

16 years agospell pidfile correctly so multiple wpa_supplicant processes can be run
Sam Leffler [Tue, 8 Apr 2008 18:54:42 +0000 (18:54 +0000)]
spell pidfile correctly so multiple wpa_supplicant processes can be run

MFC after: 1 week

16 years ago- Add write(2) support for psm(4) in native operation level. Now arbitrary
Jung-uk Kim [Tue, 8 Apr 2008 17:55:26 +0000 (17:55 +0000)]
- Add write(2) support for psm(4) in native operation level.  Now arbitrary
commands can be written to /dev/psm%d and status can be read back from it.
- Reflect the change in psm(4) and bump version for ports.

MFC after: 1 week

16 years agoo add a mountroot event handler that fires when / is mounted; this information
Sam Leffler [Tue, 8 Apr 2008 17:53:33 +0000 (17:53 +0000)]
o add a mountroot event handler that fires when / is mounted; this information
  was lost when root started being mounted by init
o remove SI_SUB_MOUNT_ROOT since it's no longer meaningful

MFC after: 2 weeks

16 years agochange taskqueue_start_threads to create threads instead of proc's
Sam Leffler [Tue, 8 Apr 2008 17:48:02 +0000 (17:48 +0000)]
change taskqueue_start_threads to create threads instead of proc's

Reviewed by: jhb

16 years agoQuick fix for the kernel build breakage in netgraph and the
Marcel Moolenaar [Tue, 8 Apr 2008 16:34:50 +0000 (16:34 +0000)]
Quick fix for the kernel build breakage in netgraph and the
aliasing warning in libthr. A more elaborate fix is in the
works that makes sure that all variants have proper inline
functions with proper types.

16 years agoAlways set the bell_pitch to 800. This catch up with the sysbeep() argument
Yoshihiro Takahashi [Tue, 8 Apr 2008 13:10:57 +0000 (13:10 +0000)]
Always set the bell_pitch to 800.  This catch up with the sysbeep() argument
changing.

16 years agoBump __FreeBSD_version after the implementation of the openat() and
Konstantin Belousov [Tue, 8 Apr 2008 12:57:26 +0000 (12:57 +0000)]
Bump __FreeBSD_version after the implementation of the openat() and
related syscalls both for the native FreeBSD ABI and linuxolator.

16 years agoIn some situations we were not clearing pending link state attentions.
Bjoern A. Zeeb [Tue, 8 Apr 2008 11:51:17 +0000 (11:51 +0000)]
In some situations we were not clearing pending link state attentions.
Because of this we were not getting further interrupts for link state
changes, thus never went into iface UP state and thus could not transmit.

The only way out of this was an incoming packet generating an rx interrupt
and making us call into bge_link_upd.

Up to rev. 1.101, in bge_start_locked, we only returned instantly
if there was 'no link AND nothing queued for tx'. So with a packet queued
for tx, we hit the register scrubbing at the end of bge_start_locked
and were out fine. We simply lost a packet or two but got the interrupts
need to get into UP state.
With rev. 1.102 this was turned into 'if there is no link OR there is
nothing to send' (correct behaviour) and as long as there is no link
we never hit the register scrubbing and consequently never got the link UP.

What we do now is force an interrupt at the end of bge_ifmedia_upd_locked
so we will call bge_link_upd, clear the link state attention and get
further interrupts.
This helps to get the iface UP on an idle network or at least to get
it UP faster not depending on an rx intr anymore.
In case you could not get a DHCP lease or it took very long,
it was because of this.

It is unknown which chips are affected by this. ASIC rev. 0x2003 was the
most popular trouble candidate.
At least the fiber cards should have been working fine.

Which register to scrub is currently under discussion. The comitted
solution was tested and found to work for a lot of setups. It might
not help with MSI.
The reason why we end up in such a situation is entirely unknown.

PR: kern/111804
Tested by: phk, scottl at Y!
MFC after: 14 days

16 years agoRemove some long-dead code
Kevin Lo [Tue, 8 Apr 2008 10:24:42 +0000 (10:24 +0000)]
Remove some long-dead code

Reviewed by: cognet

16 years agoRegenerate
Konstantin Belousov [Tue, 8 Apr 2008 09:51:19 +0000 (09:51 +0000)]
Regenerate

16 years agoImplement the linux syscalls
Konstantin Belousov [Tue, 8 Apr 2008 09:45:49 +0000 (09:45 +0000)]
Implement the linux syscalls
    openat, mkdirat, mknodat, fchownat, futimesat, fstatat, unlinkat,
    renameat, linkat, symlinkat, readlinkat, fchmodat, faccessat.

Submitted by: rdivacky
Sponsored by: Google Summer of Code 2007
Tested by: pho

16 years agoIncrease the size of the EFI system partition from 16M to 20M.
Marcel Moolenaar [Tue, 8 Apr 2008 02:57:59 +0000 (02:57 +0000)]
Increase the size of the EFI system partition from 16M to 20M.
We just ran out of space...

16 years agoAdd a couple of missing wireless NIC driver modules.
Weongyo Jeong [Tue, 8 Apr 2008 01:47:33 +0000 (01:47 +0000)]
Add a couple of missing wireless NIC driver modules.

Approved by: thompsa (mentor)

16 years agoAdd PCI ID's for ICH8 USB controllers.
John Baldwin [Mon, 7 Apr 2008 19:12:22 +0000 (19:12 +0000)]
Add PCI ID's for ICH8 USB controllers.

MFC after: 1 week
PR: usb/116574
Submitted by: Dave Grochowski  malus.x of gmail

16 years agoRemove TCP options ordering assumptions in tcp_addoptions(). Ordering
Andre Oppermann [Mon, 7 Apr 2008 19:09:23 +0000 (19:09 +0000)]
Remove TCP options ordering assumptions in tcp_addoptions().  Ordering
was changed in rev. 1.161 of tcp_var.h.  All option now test for sufficient
space in TCP header before getting added.

Reported by: Mark Atkinson <atkin901-at-yahoo.com>
Tested by: Mark Atkinson <atkin901-at-yahoo.com>
MFC after: 1 week

16 years agoRemove now unnecessary comment.
Andre Oppermann [Mon, 7 Apr 2008 18:50:05 +0000 (18:50 +0000)]
Remove now unnecessary comment.

16 years agoUse #defines for TCP options padding after EOL to be consistent.
Andre Oppermann [Mon, 7 Apr 2008 18:43:59 +0000 (18:43 +0000)]
Use #defines for TCP options padding after EOL to be consistent.

Reviewed by: bz

16 years agoRevert back to probing Host-PCI bridges in the order we encounter them in
John Baldwin [Mon, 7 Apr 2008 18:35:11 +0000 (18:35 +0000)]
Revert back to probing Host-PCI bridges in the order we encounter them in
the tree rather than sorting them by their address on PCI bus 0.

Reported by: kan

16 years agoAdd 'zfs' as an alias for the FreeBSD ZFS UUID.
John Baldwin [Mon, 7 Apr 2008 18:23:28 +0000 (18:23 +0000)]
Add 'zfs' as an alias for the FreeBSD ZFS UUID.

MFC after: 3 days
PR: bin/119976
Submitted by: Cian Hughes  Ci of nhugh.es

16 years agoCorrect function name in panic().
Pawel Jakub Dawidek [Mon, 7 Apr 2008 18:12:37 +0000 (18:12 +0000)]
Correct function name in panic().

Reported by: kensmith

16 years ago- Use a different encoding for lockmgr options: make them encoded by
Attilio Rao [Mon, 7 Apr 2008 14:46:38 +0000 (14:46 +0000)]
- Use a different encoding for lockmgr options: make them encoded by
  bit in order to allow per-bit checks on the options flag, in particular
  in the consumers code [1]
- Re-enable the check against TDP_DEADLKTREAT as the anti-waiters
  starvation patch allows exclusive waiters to override new shared
  requests.

[1] Requested by: pjd, jeff

16 years agoMove the cpuset functions from FBSD_1.0 to FBSD_1.1. All symbols added
Daniel Eischen [Mon, 7 Apr 2008 13:53:51 +0000 (13:53 +0000)]
Move the cpuset functions from FBSD_1.0 to FBSD_1.1.  All symbols added
to 8.0 belong in the FBSD_1.1 symbol namespace.

16 years agoActually, I was looking at the wrong Linux .c file. Set INIT2 to its
Rui Paulo [Mon, 7 Apr 2008 12:58:43 +0000 (12:58 +0000)]
Actually, I was looking at the wrong Linux .c file. Set INIT2 to its
previous value.
While there, lower the delay for the misterious key.

16 years agoAdd further TCP inpcb locking assertions to some TCP input code paths.
Robert Watson [Mon, 7 Apr 2008 12:41:45 +0000 (12:41 +0000)]
Add further TCP inpcb locking assertions to some TCP input code paths.

MFC after: 1 month

16 years ago* Add missing #else in the #ifdef DEBUG section.
Rui Paulo [Mon, 7 Apr 2008 12:09:59 +0000 (12:09 +0000)]
* Add missing #else in the #ifdef DEBUG section.
* Fix the login in asmc_init().
* Change the INIT2 constant to reflect the same change in the Linux driver.

16 years ago"Prettyfy" numbers in hexadecimal. No functional change.
Rui Paulo [Mon, 7 Apr 2008 11:38:42 +0000 (11:38 +0000)]
"Prettyfy" numbers in hexadecimal. No functional change.

16 years agoChange the EXAMPLE section to reflect reality (ISA -> ACPI).
Rui Paulo [Mon, 7 Apr 2008 11:27:16 +0000 (11:27 +0000)]
Change the EXAMPLE section to reflect reality (ISA -> ACPI).

16 years agoRemove isa_if.h.
Rui Paulo [Mon, 7 Apr 2008 11:26:13 +0000 (11:26 +0000)]
Remove isa_if.h.

16 years agoThe SMC is represented on the acpi tables, so we can completely remove
Rui Paulo [Mon, 7 Apr 2008 11:22:12 +0000 (11:22 +0000)]
The SMC is represented on the acpi tables, so we can completely remove
dependency on isa. We are now an acpi child.

Also:
* Add compile time debugging activation
* Increase the delay for the SMS init flag.

16 years agoAdd opt_intr_filter.h.
Rui Paulo [Mon, 7 Apr 2008 11:08:45 +0000 (11:08 +0000)]
Add opt_intr_filter.h.