]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoDocument lockmgr_waiters(9).
brueffer [Fri, 28 Mar 2008 21:30:37 +0000 (21:30 +0000)]
Document lockmgr_waiters(9).

Reviewed by: attilio

16 years agoImplement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls. RAID
emaste [Fri, 28 Mar 2008 19:07:25 +0000 (19:07 +0000)]
Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls.  RAID
tools (e.g. arcconf) need this to be able to create arrays larger than 2TB.

Submitted by: Adaptec, via driver build 15317

16 years agoAdd a couple of missing NIC driver modules.
brueffer [Fri, 28 Mar 2008 18:13:09 +0000 (18:13 +0000)]
Add a couple of missing NIC driver modules.

Approved by: rwatson (mentor)
MFC after: 3 days

16 years agoAdd support for PC-9800 partition tables.
marcel [Fri, 28 Mar 2008 17:58:55 +0000 (17:58 +0000)]
Add support for PC-9800 partition tables.

16 years agoAdd Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
rpaulo [Fri, 28 Mar 2008 15:28:59 +0000 (15:28 +0000)]
Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
devices.

MFC after: 1 week

16 years agoIf we're returning successfully from bus_dmamem_alloc, don't record a KTR
emaste [Fri, 28 Mar 2008 15:28:20 +0000 (15:28 +0000)]
If we're returning successfully from bus_dmamem_alloc, don't record a KTR
of error = ENOMEM.

16 years agoAdd Qualcomm ZTE CMDMA MSM modem to the list of supported modems.
rpaulo [Fri, 28 Mar 2008 14:20:06 +0000 (14:20 +0000)]
Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.

MFC after:   1 week

16 years agoBump __FreeBSD_version in order to reflect BUF_LOCKWAITERS() reintegration
attilio [Fri, 28 Mar 2008 12:31:26 +0000 (12:31 +0000)]
Bump __FreeBSD_version in order to reflect BUF_LOCKWAITERS() reintegration
and lockmgr_waiters() introduction.

16 years agob_waiters cannot be adequately protected by the interlock because it is
attilio [Fri, 28 Mar 2008 12:30:12 +0000 (12:30 +0000)]
b_waiters cannot be adequately protected by the interlock because it is
dropped after the call to lockmgr() so just revert this approach using
something similar to the precedent one:
BUF_LOCKWAITERS() just checks if there are waiters (not the actual number
of them) and it is based on newly introduced lockmgr_waiters() which
returns if the lockmgr has waiters or not. The name has been choosen
differently by old lockwaiters() in order to not confuse them.

KPI results enriched by this commit so __FreeBSD_version bumping and
manpage update will be happening soon.
'struct buf' also changes, so kernel ABI is disturbed.

Bug found by: jeff
Approved by: jeff, kib

16 years agoMinor changes to improve compatibility with older FreeBSD releases.
dfr [Fri, 28 Mar 2008 09:50:32 +0000 (09:50 +0000)]
Minor changes to improve compatibility with older FreeBSD releases.

16 years agoUse ; instead of : to end a line.
brooks [Fri, 28 Mar 2008 08:19:03 +0000 (08:19 +0000)]
Use ; instead of : to end a line.

Submitted by: Niclas Zeising <niclas dot zeising at gmail dot com>

16 years agoAdd support for hardwiring ppp sessions to particular devices with new
brooks [Fri, 28 Mar 2008 07:57:52 +0000 (07:57 +0000)]
Add support for hardwiring ppp sessions to particular devices with new
per-profile variables of the form ppp_<profile>_unit.  No ppp_unit
variable is supported since tying the same unit to more than one profile
won't work.

PR: conf/122127
MFC after: 1 week

16 years agoSupport gif_interface values that don't follow the pattern gif###.
brooks [Fri, 28 Mar 2008 06:50:06 +0000 (06:50 +0000)]
Support gif_interface values that don't follow the pattern gif###.
Remove ancient compatablity support for gif_interface="NO".

16 years agoWhen retasting, wither any existing GEOMs of the same class. This
marcel [Fri, 28 Mar 2008 06:31:12 +0000 (06:31 +0000)]
When retasting, wither any existing GEOMs of the same class. This
allows the class to create a different GEOM for the same provider
as well as avoid that we end up with multiple GEOMs of the same
class with the same name.

For example, when a disk contains a PC98 partition table but
only MBR is supported, then the partition table can be treated
as a MBR. If support for PC98 is later loaded as a module, the
MBR scheme is pre-empted for the PC98 scheme as expected.

16 years agoAdd support to mincore for detecting whether a page is part of a
ps [Fri, 28 Mar 2008 04:29:27 +0000 (04:29 +0000)]
Add support to mincore for detecting whether a page is part of a
"super" page or not.

Reviewed by: alc, ups

16 years ago_lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK()
attilio [Fri, 28 Mar 2008 02:48:16 +0000 (02:48 +0000)]
_lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK()
and _BUF_TIMELOCK() prototypes accordingly with this.

16 years agoIn revision 1.70, 1.71 and 1.84 re(4) tried to workaround checksum
yongari [Fri, 28 Mar 2008 01:21:21 +0000 (01:21 +0000)]
In revision 1.70, 1.71 and 1.84 re(4) tried to workaround checksum
offload bugs by manual padding for short IP/UDP frames. Unfortunately
it seems that these workaround does not work reliably on newer PCIe
variants of RealTek chips.

To workaround the hardware bug, always pad short frames if Tx IP
checksum offload is requested. It seems that the hardware has a
bug in IP checksum offload handling. NetBSD manually pads short
frames only when the length of IP frame is less than 28 bytes but I
chose 60 bytes to safety. Also unconditionally set IP checksum
offload bit in Tx descriptor if any TCP or UDP checksum offload is
requested. This is the same way as Linux does but it's not
mentioned in data sheet.

Obtained from: NetBSD
Tested by: remko, danger

16 years agoRemove the last 3 files I missed. These have been repo copied to the new
jb [Fri, 28 Mar 2008 00:28:45 +0000 (00:28 +0000)]
Remove the last 3 files I missed. These have been repo copied to the new
location under a cddl part of the tree following the core@ license review.

16 years agoInstruments buffer lock objects in order to track correctly consumers
attilio [Fri, 28 Mar 2008 00:14:33 +0000 (00:14 +0000)]
Instruments buffer lock objects in order to track correctly consumers
consumers in locking operations.
While here, operates some style(9) cleanups.

16 years agoRemove files that have been repo copied to their new location
jb [Fri, 28 Mar 2008 00:08:47 +0000 (00:08 +0000)]
Remove files that have been repo copied to their new location
in cddl-specific parts of the source tree.

16 years agoThe sources covered by Sun's CDDL have been repo copied below the
jb [Thu, 27 Mar 2008 23:21:25 +0000 (23:21 +0000)]
The sources covered by Sun's CDDL have been repo copied below the
src/cddl and src/sys/cddl directories per the core@ decision following
the license review.

This change modifies the affected Makefiles to reference the sources
in their new location.

16 years agoRemove ng_setisr() call from ng_dequeue(). It is useless as we any way
mav [Thu, 27 Mar 2008 23:02:30 +0000 (23:02 +0000)]
Remove ng_setisr() call from ng_dequeue(). It is useless as we any way
will never exit ngintr(), while there is some ready requests on the queue.
It was made years ago with hope of parallel queue processing by several
net threads. But even if we have several threads sometimes, we have no
rights to process queue in parallel as it will break original requests
serialization that is critically important for some setups.

16 years agoRemove option headers that do not exist and are not used
antoine [Thu, 27 Mar 2008 20:38:03 +0000 (20:38 +0000)]
Remove option headers that do not exist and are not used
from the Makefiles in sys/modules.
(opt_devfs.h, opt_bdg.h, opt_emu10kx.h and opt_uslcom.h)

Approved by: rwatson (mentor)

16 years agoSwitch from timeval to bintime, to use 1/(2^20) of seconds instead of
mav [Thu, 27 Mar 2008 20:04:20 +0000 (20:04 +0000)]
Switch from timeval to bintime, to use 1/(2^20) of seconds instead of
microseconds. It allows to use bit shifts instead of some heavy 64bit
mul/div math operations.

16 years agoAdd IFF_NEEDSGIANT to IFF_CANTCHANGE, to prevent user-level code
iedowse [Thu, 27 Mar 2008 18:02:30 +0000 (18:02 +0000)]
Add IFF_NEEDSGIANT to IFF_CANTCHANGE, to prevent user-level code
from clearing the IFF_NEEDSGIANT flag on Giant-locked interfaces.
In particular, wpa_supplicant was doing this on USB interfaces,
causing panics when Giant-locked code was then called without Giant.

Submitted by: Alexey Popov
Reviewed by: rwatson
MFC after: 3 days

16 years agoRemove the '-k' option.
dfr [Thu, 27 Mar 2008 15:11:02 +0000 (15:11 +0000)]
Remove the '-k' option.

16 years agoAdd nfslockd and krpc modules.
dfr [Thu, 27 Mar 2008 11:55:03 +0000 (11:55 +0000)]
Add nfslockd and krpc modules.

16 years agoAdd kernel module support for nfslockd and krpc. Use the module system
dfr [Thu, 27 Mar 2008 11:54:20 +0000 (11:54 +0000)]
Add kernel module support for nfslockd and krpc. Use the module system
to detect (or load) kernel NLM support in rpc.lockd. Remove the '-k'
option to rpc.lockd and make kernel NLM the default. A user can still
force the use of the old user NLM by building a kernel without NFSLOCKD
and/or removing the nfslockd.ko module.

16 years agoWhen building a kernel module, define MAXCPU the same as SMP so
jb [Thu, 27 Mar 2008 05:03:26 +0000 (05:03 +0000)]
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.

16 years agoMFamd64 with few changes:
alc [Thu, 27 Mar 2008 04:34:17 +0000 (04:34 +0000)]
MFamd64 with few changes:

1. Add support for automatic promotion of 4KB page mappings to 2MB page
   mappings.  Automatic promotion can be enabled by setting the tunable
   "vm.pmap.pg_ps_enabled" to a non-zero value.  By default, automatic
   promotion is disabled.  Tested by: kris

2. To date, we have assumed that the TLB will only set the PG_M bit in a
   PTE if that PTE has the PG_RW bit set.  However, this assumption does
   not hold on recent processors from Intel.  For example, consider a PTE
   that has the PG_RW bit set but the PG_M bit clear.  Suppose this PTE
   is cached in the TLB and later the PG_RW bit is cleared in the PTE,
   but the corresponding TLB entry is not (yet) invalidated.
   Historically, upon a write access using this (stale) TLB entry, the
   TLB would observe that the PG_RW bit had been cleared and initiate a
   page fault, aborting the setting of the PG_M bit in the PTE.  Now,
   however, P4- and Core2-family processors will set the PG_M bit before
   observing that the PG_RW bit is clear and initiating a page fault.  In
   other words, the write does not occur but the PG_M bit is still set.

   The real impact of this difference is not that great.  Specifically,
   we should no longer assert that any PTE with the PG_M bit set must
   also have the PG_RW bit set, and we should ignore the state of the
   PG_M bit unless the PG_RW bit is set.

16 years agoRemove the C flag from slip.log. The current slip userbase does not
brooks [Thu, 27 Mar 2008 03:30:14 +0000 (03:30 +0000)]
Remove the C flag from slip.log.  The current slip userbase does not
justify the presence of a (usually empty) /var/log/slip.log on every
FreeBSD box.

16 years agoRegen after makesyscalls.sh change.
jb [Thu, 27 Mar 2008 01:55:06 +0000 (01:55 +0000)]
Regen after makesyscalls.sh change.

16 years agoGenerate another function for the DTrace syscall provider to specify
jb [Thu, 27 Mar 2008 01:53:44 +0000 (01:53 +0000)]
Generate another function for the DTrace syscall provider to specify
the syscall argument types.

This code is only compiled into the systrace kernel modul and has no
effect otherwise.

16 years agoAllow awk (the one true one!) to handle 64 files instead of just 20.
jb [Thu, 27 Mar 2008 01:33:26 +0000 (01:33 +0000)]
Allow awk (the one true one!) to handle 64 files instead of just 20.
The current FreeBSD syscall generation script uses all 20 and I need
another open file.

It's a shame that something named as the 'one-true-awk' is so limited
by an old denition like FOPEN_MAX when it could just make the file
handling dynamic.

This is done to avoid touching contrib sources on a vendor branch.

16 years agoReally, smb_iod_main() is not totally MPSAFE, so just acquire and drop
attilio [Thu, 27 Mar 2008 01:23:59 +0000 (01:23 +0000)]
Really, smb_iod_main() is not totally MPSAFE, so just acquire and drop
Giant around it in order to assume MPSAFETY.

Reported by: jhb, rwatson
Pointy hat to: attilio

16 years agoAllow an application to define FOPEN_MAX (like we allow for OPEN_MAX
jb [Wed, 26 Mar 2008 23:43:11 +0000 (23:43 +0000)]
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

16 years agoRemoved no longer existing CTL_MACHDEP defines.
ru [Wed, 26 Mar 2008 23:02:17 +0000 (23:02 +0000)]
Removed no longer existing CTL_MACHDEP defines.

Inspired by: phk

16 years agoBack in the good old days, PC's had random pieces of rock for
phk [Wed, 26 Mar 2008 22:12:00 +0000 (22:12 +0000)]
Back in the good old days, PC's had random pieces of rock for
frequency generation and what frequency the generated was anyones
guess.

In general the 32.768kHz RTC clock x-tal was the best, because that
was a regular wrist-watch Xtal, whereas the X-tal generating the
ISA bus frequency was much lower quality, often costing as much as
several cents a piece, so it made good sense to check the ISA bus
frequency against the RTC clock.

The other relevant property of those machines, is that they
typically had no more than 16MB RAM.

These days, CPU chips croak if their clocks are not tightly within
specs and all necessary frequencies are derived from the master
crystal by means if PLL's.

Considering that it takes on average 1.5 second to calibrate the
frequency of the i8254 counter, that more likely than not, we will
not actually use the result of the calibration, and as the final
clincher, we seldom use the i8254 for anything besides BEL in
syscons anyway, it has become time to drop the calibration code.

If you need to tell the system what frequency your i8254 runs,
you can do so from the loader using hw.i8254.freq or using the
sysctl kern.timecounter.tc.i8254.frequency.

16 years agoFurther cleanup of sound generation in syscons:
phk [Wed, 26 Mar 2008 22:02:51 +0000 (22:02 +0000)]
Further cleanup of sound generation in syscons:

The timer_spkr_*() functions take care of the enabling/disabling
of the speaker.

Test on the existence of timer_spkr_*() functions, rather than
architectures.

16 years agoAllow the characters .-+/ to appear in ppp profile names by folding them
brooks [Wed, 26 Mar 2008 21:54:48 +0000 (21:54 +0000)]
Allow the characters .-+/ to appear in ppp profile names by folding them
to _ when evaluating ppp_<profile>_nat and ppp_<profile>_mode.  Document
the per-profile variables.

PR: conf/121452, conf/122127 (partial)
MFC after: 1 week

16 years agoMake speaker a pseudo device driver instead of attaching to a PnP id.
phk [Wed, 26 Mar 2008 21:33:41 +0000 (21:33 +0000)]
Make speaker a pseudo device driver instead of attaching to a PnP id.

If somebody cleaned this code up to proper style(9), it could become
a great educational starting point for aspiring kernel hackers.

16 years agoAdd a comment explaining that we initialize the 'a' buffer for
rwatson [Wed, 26 Mar 2008 21:29:13 +0000 (21:29 +0000)]
Add a comment explaining that we initialize the 'a' buffer for
zero-copy to the store buffer position on the BPF descriptor,
and the 'b' buffer as the free buffer in order to fill them in
the order documented in bpf(4).

MFC after: 4 months
Suggested by: csjp

16 years agoSome minor code and math optimizations.
mav [Wed, 26 Mar 2008 21:19:03 +0000 (21:19 +0000)]
Some minor code and math optimizations.

16 years agoFix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
jhb [Wed, 26 Mar 2008 20:48:07 +0000 (20:48 +0000)]
Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
(such as 'atime' vs 'noatime').  The filesystems will always see either
'nofoo' or 'nonofoo', never plain 'foo'.  As such, their list of valid
mount options should include 'nofoo' instead of 'foo'.  With this fix,
you can do 'mount -u -o atime' on a FFS filesystem that isn't marked as
noatime without getting an error.  You can also update a noatime FFS
filesystem mounted via mount(2) (e.g. 6.x /sbin/mount binary) to 'atime'
using nmount(2) (e.g. 7.x /sbin/mount binary).

MFC after: 1 week
Reviewed by: crodig

16 years agoRemove two variables which are handled MI now.
phk [Wed, 26 Mar 2008 20:28:52 +0000 (20:28 +0000)]
Remove two variables which are handled MI now.

16 years agoEliminate unnecessary #includes
phk [Wed, 26 Mar 2008 20:26:12 +0000 (20:26 +0000)]
Eliminate unnecessary #includes

16 years agoThe "free-lance" timer in the i8254 is only used for the speaker
phk [Wed, 26 Mar 2008 20:09:21 +0000 (20:09 +0000)]
The "free-lance" timer in the i8254 is only used for the speaker
these days, so de-generalize the acquire_timer/release_timer api
to just deal with speakers.

The new (optional) MD functions are:
timer_spkr_acquire()
timer_spkr_release()
and
timer_spkr_setfreq()

the last of which configures the timer to generate a tone of a given
frequency, in Hz instead of 1/1193182th of seconds.

Drop entirely timer2 on pc98, it is not used anywhere at all.

Move sysbeep() to kern/tty_cons.c and use the timer_spkr*() if
they exist, and do nothing otherwise.

Remove prototypes and empty acquire-/release-timer() and sysbeep()
functions from the non-beeping archs.

This eliminate the need for the speaker driver to know about
i8254frequency at all.  In theory this makes the speaker driver MI,
contingent on the timer_spkr_*() functions existing but the driver
does not know this yet and still attaches to the ISA bus.

Syscons is more tricky, in one function, sc_tone(), it knows the hz
and things are just fine.

In the other function, sc_bell() it seems to get the period from
the KDMKTONE ioctl in terms if 1/1193182th second, so we hardcode
the 1193182 and leave it at that.  It's probably not important.

Change a few other sysbeep() uses which obviously knew that the
argument was in terms of i8254 frequency, and leave alone those
that look like people thought sysbeep() took frequency in hertz.

This eliminates the knowledge of i8254_freq from all but the actual
clock.c code and the prof_machdep.c on amd64 and i386, where I think
it would be smart to ask for help from the timecounters anyway [TBD].

16 years agoFix the __FreeBSD_version check.
dfr [Wed, 26 Mar 2008 15:42:22 +0000 (15:42 +0000)]
Fix the __FreeBSD_version check.

16 years agoBump __FreeBSD_version for the addition of 'l_sysid' to the flock structure.
dfr [Wed, 26 Mar 2008 15:41:00 +0000 (15:41 +0000)]
Bump __FreeBSD_version for the addition of 'l_sysid' to the flock structure.

16 years agoAdd some regression tests for posix record locks.
dfr [Wed, 26 Mar 2008 15:39:44 +0000 (15:39 +0000)]
Add some regression tests for posix record locks.

16 years agoAdd \n to the end of a printf string and remove it from panic strings.
emaste [Wed, 26 Mar 2008 15:28:56 +0000 (15:28 +0000)]
Add \n to the end of a printf string and remove it from panic strings.

16 years agoRegen.
dfr [Wed, 26 Mar 2008 15:24:02 +0000 (15:24 +0000)]
Regen.

16 years agoAdd the new kernel-mode NFS Lock Manager. To use it instead of the
dfr [Wed, 26 Mar 2008 15:23:12 +0000 (15:23 +0000)]
Add the new kernel-mode NFS Lock Manager. To use it instead of the
user-mode lock manager, build a kernel with the NFSLOCKD option and
add '-k' to 'rpc_lockd_flags' in rc.conf.

Highlights include:

* Thread-safe kernel RPC client - many threads can use the same RPC
  client handle safely with replies being de-multiplexed at the socket
  upcall (typically driven directly by the NIC interrupt) and handed
  off to whichever thread matches the reply. For UDP sockets, many RPC
  clients can share the same socket. This allows the use of a single
  privileged UDP port number to talk to an arbitrary number of remote
  hosts.

* Single-threaded kernel RPC server. Adding support for multi-threaded
  server would be relatively straightforward and would follow
  approximately the Solaris KPI. A single thread should be sufficient
  for the NLM since it should rarely block in normal operation.

* Kernel mode NLM server supporting cancel requests and granted
  callbacks. I've tested the NLM server reasonably extensively - it
  passes both my own tests and the NFS Connectathon locking tests
  running on Solaris, Mac OS X and Ubuntu Linux.

* Userland NLM client supported. While the NLM server doesn't have
  support for the local NFS client's locking needs, it does have to
  field async replies and granted callbacks from remote NLMs that the
  local client has contacted. We relay these replies to the userland
  rpc.lockd over a local domain RPC socket.

* Robust deadlock detection for the local lock manager. In particular
  it will detect deadlocks caused by a lock request that covers more
  than one blocking request. As required by the NLM protocol, all
  deadlock detection happens synchronously - a user is guaranteed that
  if a lock request isn't rejected immediately, the lock will
  eventually be granted. The old system allowed for a 'deferred
  deadlock' condition where a blocked lock request could wake up and
  find that some other deadlock-causing lock owner had beaten them to
  the lock.

* Since both local and remote locks are managed by the same kernel
  locking code, local and remote processes can safely use file locks
  for mutual exclusion. Local processes have no fairness advantage
  compared to remote processes when contending to lock a region that
  has just been unlocked - the local lock manager enforces a strict
  first-come first-served model for both local and remote lockers.

Sponsored by: Isilon Systems
PR: 95247 107555 115524 116679
MFC after: 2 weeks

16 years agoRename timer0_max_count to i8254_max_count.
phk [Wed, 26 Mar 2008 15:03:24 +0000 (15:03 +0000)]
Rename timer0_max_count to i8254_max_count.
Rename timer0_real_max_count to i8254_real_max_count and make it static.
Rename timer_freq to i8254_freq and make it a loader tunable.

16 years agoThe RTC related pscnt and psdiv variables have no business being public.
phk [Wed, 26 Mar 2008 13:25:27 +0000 (13:25 +0000)]
The RTC related pscnt and psdiv variables have no business being public.

16 years agoRemove old sysctl stuff which is long gone in other arch's.
phk [Wed, 26 Mar 2008 13:03:51 +0000 (13:03 +0000)]
Remove old sysctl stuff which is long gone in other arch's.

16 years agoFix some "in in" typos in comments.
brueffer [Wed, 26 Mar 2008 07:32:08 +0000 (07:32 +0000)]
Fix some "in in" typos in comments.

PR: 121490
Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com>
Approved by: rwatson (mentor), jkoshy
MFC after: 3 days

16 years agoDocument the removal data for usbdevs.h and usbdevs_data.h,
remko [Wed, 26 Mar 2008 06:45:28 +0000 (06:45 +0000)]
Document the removal data for usbdevs.h and usbdevs_data.h,
sort the entry into it's correct place (behind 200407XX before
200406XX because we have an explicit date here).

PR: misc/122098
Submitted by: "John Hein" <jhein@timing.com>
MFC after: 3 days

16 years agoEnable the automatic creation of superpage reservations.
alc [Wed, 26 Mar 2008 03:12:00 +0000 (03:12 +0000)]
Enable the automatic creation of superpage reservations.

16 years agosplit out tty create part of ucom_attach into ucom_attach_tty so
sam [Tue, 25 Mar 2008 23:46:24 +0000 (23:46 +0000)]
split out tty create part of ucom_attach into ucom_attach_tty so
derived drivers can use it

Submitted by: Jared Go
MFC after: 3 weeks

16 years agoadd some CDMA modems
sam [Tue, 25 Mar 2008 23:35:32 +0000 (23:35 +0000)]
add some CDMA modems

Submitted by: Jared Go
MFC after: 1 week

16 years agoImplement taskqueue_block() and taskqueue_unblock(). These functions allow
scottl [Tue, 25 Mar 2008 22:38:45 +0000 (22:38 +0000)]
Implement taskqueue_block() and taskqueue_unblock().  These functions allow
the owner of a queue to block and unblock execution of the tasks in the
queue while allowing tasks to continue to be added queue.  Combining this
with taskqueue_drain() allows a queue to be safely disabled.  The unblock
function may run (or schedule to run) the queue when it is called, just as
calling taskqueue_enqueue() would.

Reviewed by: jhb, sam

16 years agofix botched merge of syslog support to the vendor branch; these files
sam [Tue, 25 Mar 2008 21:47:03 +0000 (21:47 +0000)]
fix botched merge of syslog support to the vendor branch; these files
were off the branch so we need to pull the changes back up

16 years agoAdd 64-bit array support for RAIDs > 2TB. This corresponds to ~ Adaptec
emaste [Tue, 25 Mar 2008 21:39:06 +0000 (21:39 +0000)]
Add 64-bit array support for RAIDs > 2TB.  This corresponds to ~ Adaptec
driver build 15317.

Tested on:
Adaptec 2230S, Firmware 4.2-0 (8205)
ICP ICP5085BL, Firmware 5.2-0 (12814)

Submitted by: Adaptec

16 years agoadd __noinline
sam [Tue, 25 Mar 2008 21:30:01 +0000 (21:30 +0000)]
add __noinline

Submitted by: imp
Reviewed by: kan (long ago)
MFC after: 3 weeks

16 years agoexpose if_purgemaddrs, it will be used by the vap code unless someone
sam [Tue, 25 Mar 2008 21:23:32 +0000 (21:23 +0000)]
expose if_purgemaddrs, it will be used by the vap code unless someone
redesigns the mcast support code in the next few weeks

MFC after: 3 weeks

16 years agoIFM_IEEE80211_IBSSMASTER hasn't been used in many years; replace it
sam [Tue, 25 Mar 2008 21:22:43 +0000 (21:22 +0000)]
IFM_IEEE80211_IBSSMASTER hasn't been used in many years; replace it
with IFM_IEEE80211_WDS which will be used by the forthcoming vap code

MFC after: 3 weeks

16 years agoenable dynamic addition of "show all" commands
sam [Tue, 25 Mar 2008 20:36:32 +0000 (20:36 +0000)]
enable dynamic addition of "show all" commands

MFC after: 3 weeks

16 years agoBring this manpage more in line with other wlan driver manpages.
brueffer [Tue, 25 Mar 2008 20:32:19 +0000 (20:32 +0000)]
Bring this manpage more in line with other wlan driver manpages.

16 years agoRegen.
jhb [Tue, 25 Mar 2008 19:35:34 +0000 (19:35 +0000)]
Regen.

16 years agoAdd entries for the cpuset-related system calls. The existing system calls
jhb [Tue, 25 Mar 2008 19:34:47 +0000 (19:34 +0000)]
Add entries for the cpuset-related system calls.  The existing system calls
can be used on little endian systems.

Pointy hat to: jeff

16 years agoCorrect data direction flags in aac_bio_command() in the
emaste [Tue, 25 Mar 2008 18:34:04 +0000 (18:34 +0000)]
Correct data direction flags in aac_bio_command() in the
!AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

Submitted by:   Adaptec

16 years agoAdd code that should catch the most common case when date/time is
ru [Tue, 25 Mar 2008 15:47:22 +0000 (15:47 +0000)]
Add code that should catch the most common case when date/time is
set incorrectly.

16 years agos/M_TRYWAIT/M_WAIT/
ru [Tue, 25 Mar 2008 15:44:49 +0000 (15:44 +0000)]
s/M_TRYWAIT/M_WAIT/

16 years agoCompile libthr with warnings.
ru [Tue, 25 Mar 2008 15:33:00 +0000 (15:33 +0000)]
Compile libthr with warnings.

(Somehow this file sneaked from initial commit.)

16 years agoAdd a missing ;.
remko [Tue, 25 Mar 2008 15:16:19 +0000 (15:16 +0000)]
Add a missing ;.

PR: misc/122069
Submitted by: taku@tekipaki.jp
MFC after: 3 days
Approved by: imp (mentor, implicit trivial change).

16 years agoCompile libthr with warnings.
ru [Tue, 25 Mar 2008 13:28:12 +0000 (13:28 +0000)]
Compile libthr with warnings.

16 years agoFix build.
ru [Tue, 25 Mar 2008 13:20:52 +0000 (13:20 +0000)]
Fix build.

Reported by: ache, tinderbox

16 years agoAdd /boot/device.hints to the list of files which will have local
cperciva [Tue, 25 Mar 2008 12:13:12 +0000 (12:13 +0000)]
Add /boot/device.hints to the list of files which will have local
modifications merged.  I had initially expected that people would
put any local changes into /boot/loader.conf, but it turns out that
editing /boot/device.hints is something many people do.

Suggested by: Jaakko Heinonen
MFC after: 1 week

16 years agoAdjust recognize-shared-libraries regex to avoid matching symlinks to
cperciva [Tue, 25 Mar 2008 11:31:16 +0000 (11:31 +0000)]
Adjust recognize-shared-libraries regex to avoid matching symlinks to
shared libraries.

This fixes a problem which resulted in 6.x->7.x upgrades having the
/usr/lib/libpthread.so -> libthr.so symlink missing; what happened was
that the old libpthread.so symlink pointed to /lib/libpthread.so.2 --
which matched the "/lib/*\.so\.[0-9]+" regex -- but the new symlink
didn't, so FreeBSD Update got confused and deleted the symlink as part
of its "remove old shared libraries" step.

To recreate the symlink (which I understand is necessary for ports like
KDE to build) on a 7.x system which FreeBSD Update upgraded from 6.x:
# ln -s libthr.so /usr/lib/libpthread.so

Reported by: Dmitry RCL Rekman
Help diagnosing bug from: kris
MFC after: 7 days

16 years agoFixed mis-implementation of pthread_mutex_get{spin,yield}loops_np().
ru [Tue, 25 Mar 2008 09:48:10 +0000 (09:48 +0000)]
Fixed mis-implementation of pthread_mutex_get{spin,yield}loops_np().

Reviewed by: davidxu

16 years agoReplaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT.
ru [Tue, 25 Mar 2008 09:39:02 +0000 (09:39 +0000)]
Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT.
Removed dead code that assumed that M_TRYWAIT can return NULL; it's not true
since the advent of MBUMA.

Reviewed by: arch

There are ongoing disputes as to whether we want to switch to directly using
UMA flags M_WAITOK/M_NOWAIT for mbuf(9) allocation.

16 years agoRegen after changing prototypes of cpuset_{get,set}affinity().
ru [Tue, 25 Mar 2008 09:14:17 +0000 (09:14 +0000)]
Regen after changing prototypes of  cpuset_{get,set}affinity().

16 years agoFixed type of the fourth argument of cpuset_{get,set}affinity(2) to be size_t.
ru [Tue, 25 Mar 2008 09:11:53 +0000 (09:11 +0000)]
Fixed type of the fourth argument of cpuset_{get,set}affinity(2) to be size_t.

Prodded by: davidxu

16 years agoCheck for a NULL free buffer pointer in BPF before invoking
rwatson [Tue, 25 Mar 2008 07:41:33 +0000 (07:41 +0000)]
Check for a NULL free buffer pointer in BPF before invoking
bpf_canfreebuf() in order to avoid potentially calling a non-inlinable
but trivial function in zero-copy buffer mode for every packet
received when we couldn't free the buffer anyway.

MFC after: 4 months

16 years agoAdd support for Marvell Libertas 88W8335 based PCI network adapters.
weongyo [Tue, 25 Mar 2008 06:32:33 +0000 (06:32 +0000)]
Add support for Marvell Libertas 88W8335 based PCI network adapters.

Reviewed by: sam, many wireless people
Approved by: thompsa (mentor)

16 years agoFix double patch on this file.
edwin [Tue, 25 Mar 2008 03:04:54 +0000 (03:04 +0000)]
Fix double patch on this file.

16 years agoMFV of tzdata2008a
edwin [Tue, 25 Mar 2008 02:56:25 +0000 (02:56 +0000)]
MFV of tzdata2008a

Changes:
- Calcutta -> Kolkata
- Iraq DST changes
- Syria DST changes
- Saigon -> Ho_Chi_Minh
- Cuba DST changes
- New area America/Argentina/San_Luis

Approved by: grog@ (mentor)

16 years agoSpell "blackhole" correctly and fix one grammar nit.
ru [Mon, 24 Mar 2008 22:57:55 +0000 (22:57 +0000)]
Spell "blackhole" correctly and fix one grammar nit.

16 years agoRewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
mav [Mon, 24 Mar 2008 22:55:22 +0000 (22:55 +0000)]
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.

Together with appropriate user-level support (by latest mpd5) it gives
huge performance benefits for case of multiple active calls between
two peers because of avoiding data duplication and extra socket processing.
On my benchmarks I have got more then 10 times speedup for the 200
simultaneous PPTP calls between two peers.
In conclusion, it allows now to build effective "clients <=> PAC <=> PNS"
setups.

16 years agoBelatedly add BPF_JITTER in NOTES for supported architectures.
jkim [Mon, 24 Mar 2008 22:23:22 +0000 (22:23 +0000)]
Belatedly add BPF_JITTER in NOTES for supported architectures.

16 years agoFix build with option BPF_JITTER.
jkim [Mon, 24 Mar 2008 22:21:32 +0000 (22:21 +0000)]
Fix build with option BPF_JITTER.

16 years agoRemove redundant inclusions of net/bpfdesc.h.
jkim [Mon, 24 Mar 2008 22:16:46 +0000 (22:16 +0000)]
Remove redundant inclusions of net/bpfdesc.h.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r177580,
sam [Mon, 24 Mar 2008 21:20:35 +0000 (21:20 +0000)]
This commit was generated by cvs2svn to compensate for changes in r177580,
which included commits to RCS files with non-trunk default branches.

16 years agoadd support for driver-based RADIUS ACL's (committed on vendor branch as it's
sam [Mon, 24 Mar 2008 21:20:35 +0000 (21:20 +0000)]
add support for driver-based RADIUS ACL's (committed on vendor branch as it's
been sent upstream)

Submitted by: Chris Zimmermann

16 years agoresolve merge conflicts
sam [Mon, 24 Mar 2008 21:08:25 +0000 (21:08 +0000)]
resolve merge conflicts

MFC after: 3 weeks

16 years agoImport of hostapd 0.5.10
sam [Mon, 24 Mar 2008 21:06:16 +0000 (21:06 +0000)]
Import of hostapd 0.5.10

16 years agoThis commit was generated by cvs2svn to compensate for changes in r177576,
sam [Mon, 24 Mar 2008 21:06:16 +0000 (21:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r177576,
which included commits to RCS files with non-trunk default branches.

16 years agochange inp_wlock_assert to inp_lock_assert
kmacy [Mon, 24 Mar 2008 20:24:04 +0000 (20:24 +0000)]
change inp_wlock_assert to inp_lock_assert

16 years agoenable syslog support and add -s option to the man page
sam [Mon, 24 Mar 2008 20:19:20 +0000 (20:19 +0000)]
enable syslog support and add -s option to the man page

MFC after: 3 weeks