]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoSupport sending ATH_ALQ messages with no payload.
Adrian Chadd [Mon, 13 May 2013 21:17:27 +0000 (21:17 +0000)]
Support sending ATH_ALQ messages with no payload.

11 years agoetc/rc.d/syslogd
Alan Somers [Mon, 13 May 2013 20:28:24 +0000 (20:28 +0000)]
etc/rc.d/syslogd
Add netif as a requirement of syslogd to get lo0 up.  Currently, this
doesn't affect the rc order, because mountcritremote already depends on
netif.

Reviewed by: eadler
Approved by: kenm (mentor)
MFC after: 2 weeks

11 years agoUse an ugly hack to get around bootstrapping problems when building
Dimitry Andric [Mon, 13 May 2013 20:14:58 +0000 (20:14 +0000)]
Use an ugly hack to get around bootstrapping problems when building
clang on head between r239347 and r245428.

The former revision introduced CLOCK_PROCESS_CPUTIME_ID as a clock id
for the clock_gettime() function and friends, but it was only added in
<sys/time.h>, not in <time.h>.  Any program including <time.h> would
therefore not be able to use CLOCK_PROCESS_CPUTIME_ID, even though the
value of _POSIX_CPUTIME indicates its existence.  The latter revision
synchronized the defines again.

Work around this problem by defining the id on the command line for the
particular .cpp file that needs it.  If the id ever changes value, this
hack will need to be updated.

11 years agoRemove a bogus re-assignment.
Jung-uk Kim [Mon, 13 May 2013 20:03:59 +0000 (20:03 +0000)]
Remove a bogus re-assignment.

MFC after: 3 days

11 years agoDeal correctly with 40G ports that don't have any transceiver plugged
Navdeep Parhar [Mon, 13 May 2013 20:00:03 +0000 (20:00 +0000)]
Deal correctly with 40G ports that don't have any transceiver plugged
in.  Do not claim that they have unknown tranceivers.

MFC after: 3 days

11 years agoFix typo in net.inet.tcp.minmss sysctl description.
Jim Harris [Mon, 13 May 2013 19:55:27 +0000 (19:55 +0000)]
Fix typo in net.inet.tcp.minmss sysctl description.

MFC after: 3 days

11 years agoAs python3 does not have raw_input(), convert it to input() when we
Hiren Panchasara [Mon, 13 May 2013 19:53:19 +0000 (19:53 +0000)]
As python3 does not have raw_input(), convert it to input() when we
are using python3.

PR: 177214
Reviewed by: gnn
Approved by: sbruno (mentor)

11 years agoImprove the debugging output - use the MAC address rather than various
Adrian Chadd [Mon, 13 May 2013 19:52:35 +0000 (19:52 +0000)]
Improve the debugging output - use the MAC address rather than various
pointer values everywhere.

11 years agoSince the node state is 100% back under the TX lock, just kill the use
Adrian Chadd [Mon, 13 May 2013 19:03:12 +0000 (19:03 +0000)]
Since the node state is 100% back under the TX lock, just kill the use
of atomics.

I'll re-think this nonsense later.

11 years agoOops, commit the other half of r250606.
Adrian Chadd [Mon, 13 May 2013 19:02:22 +0000 (19:02 +0000)]
Oops, commit the other half of r250606.

11 years agoThis lock only protects the rate control state for now, mention this.
Adrian Chadd [Mon, 13 May 2013 18:57:18 +0000 (18:57 +0000)]
This lock only protects the rate control state for now, mention this.

11 years agoBegin tidying up the reassociation and node sleep/wakeup paths.
Adrian Chadd [Mon, 13 May 2013 18:56:04 +0000 (18:56 +0000)]
Begin tidying up the reassociation and node sleep/wakeup paths.

* Move the node sleep/wake state under the TX lock rather than the
  node lock.  Let's leave the node lock protecting rate control only
  for now.

* When reassociating, various state needs to be cleared.  For example,
  the aggregate session needs to be torn down, including any pending
  aggregation negotiation and BAR TX waiting.

* .. and we need to do a "cleanup" pass since frames in the hardware
  TX queue need to be transmitted.

Modify ath_tx_tid_cleanup() to be called with the TX lock held and push
frames into a completion list.  This allows for the cleanup to be
done atomically for all TIDs in a node rather than grabbing and
releasing the TX lock each time.

11 years agoSet st_nlink in the stat structure within the inode to 1 as well.
Marcel Moolenaar [Mon, 13 May 2013 18:34:33 +0000 (18:34 +0000)]
Set st_nlink in the stat structure within the inode to 1 as well.
The cd9660 file system uses that field for the link count and it
was 0. This impacts pwd_mkdb(8) as it checks for st_nlink not being
0 as part of closing a race.

11 years agomdoc sweep
Joel Dahl [Mon, 13 May 2013 18:13:50 +0000 (18:13 +0000)]
mdoc sweep

11 years agoo Add accessor functions to add and remove pages from a specific
Attilio Rao [Mon, 13 May 2013 15:40:51 +0000 (15:40 +0000)]
o Add accessor functions to add and remove pages from a specific
  freelist.
o Split the pool of free pages queues really by domain and not rely on
  definition of VM_RAW_NFREELIST.
o For MAXMEMDOM > 1, wrap the RR allocation logic into a specific
  function that is called when calculating the allocation domain.
  The RR counter is kept, currently, per-thread.
  In the future it is expected that such function evolves in a real
  policy decision referee, based on specific informations retrieved by
  per-thread and per-vm_object attributes.
o Add the concept of "probed domains" under the form of vm_ndomains.
  It is responsibility for every architecture willing to support multiple
  memory domains to correctly probe vm_ndomains along with mem_affinity
  segments attributes.  Those two values are supposed to remain always
  consistent.
  Please also note that vm_ndomains and td_dom_rr_idx are both int
  because segments already store domains as int.  Ideally u_int would
  have much more sense. Probabilly this should be cleaned up in the
  future.
o Apply RR domain selection also to vm_phys_zero_pages_idle().

Sponsored by: EMC / Isilon storage division
Partly obtained from: jeff
Reviewed by: alc
Tested by: jeff

11 years agoAdd a remark to the effect that a manually started relearn will always
Mark Johnston [Mon, 13 May 2013 15:00:36 +0000 (15:00 +0000)]
Add a remark to the effect that a manually started relearn will always
result in the battery being completely drained, even in transparent learning
mode.

MFC in: 3 days
Sponsored by: Sandvine Inc.

11 years agoThe HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW
Bryan Drewery [Mon, 13 May 2013 11:32:20 +0000 (11:32 +0000)]
The HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW
and the update to 6.1 added SSH_BUG_DYNAMIC_RPORT with the
same value.

Fix the HPN SSH_BUG_LARGEWINDOW bit so it is unique.

Approved by: des
MFC after: 2 weeks

11 years agoBandaid for compiling with gcc, which happens to be the default compiler
Peter Wemm [Mon, 13 May 2013 07:09:31 +0000 (07:09 +0000)]
Bandaid for compiling with gcc, which happens to be the default compiler
for a number of platforms still.

11 years agoPull in r181286 from upstream llvm trunk:
Dimitry Andric [Mon, 13 May 2013 07:02:15 +0000 (07:02 +0000)]
Pull in r181286 from upstream llvm trunk:

  LoopVectorize: getConsecutiveVector must respect signed arithmetic

  We were passing an i32 to ConstantInt::get where an i64 was needed and we must
  also pass the sign if we pass negatives numbers. The start index passed to
  getConsecutiveVector must also be signed.

  Should fix PR15882.

This should fix Firefox crashes some people have been reporting, when it
is compiled with -O3.

11 years agoMFV: less v458.
Xin LI [Mon, 13 May 2013 06:52:46 +0000 (06:52 +0000)]
MFV: less v458.

MFC after: 2 weeks

11 years agoVendor import of less v458.
Xin LI [Mon, 13 May 2013 05:27:43 +0000 (05:27 +0000)]
Vendor import of less v458.

11 years agomdoc sweep.
Joel Dahl [Sun, 12 May 2013 22:22:12 +0000 (22:22 +0000)]
mdoc sweep.

11 years agoAdd support for the eofflag to nfs_readdir() in the new NFS
Rick Macklem [Sun, 12 May 2013 21:48:08 +0000 (21:48 +0000)]
Add support for the eofflag to nfs_readdir() in the new NFS
client so that it works under a unionfs mount.

Submitted by: Jared Yanovich (slovichon@gmail.com)
Reviewed by: kib
MFC after: 2 weeks

11 years agoRevert r250565 which causes issues for older CPUs
Eitan Adler [Sun, 12 May 2013 21:24:18 +0000 (21:24 +0000)]
Revert r250565 which causes issues for older CPUs

PR: conf/178504
Requested by: many

11 years ago - pctrie really only requires two byte alignment so that there is a single
Jeff Roberson [Sun, 12 May 2013 20:44:28 +0000 (20:44 +0000)]
 - pctrie really only requires two byte alignment so that there is a single
   bit available for a flag in the pointer.  However, it felt more correct
   to enforce natural alignment of the key pointer.  Unfortunately on
   32bit architectures 64bit integers are not always naturally aligned.
   Change the assert to enforce only 32bit alignment of the 64bit key for
   now to fix the build.  A more correct fix would be to properly sort
   the struct buf fields which definitely suffer from bloat due to padding.

11 years agoRefactor vm_page_alloc()'s interactions with vm_reserv_alloc_page() and
Alan Cox [Sun, 12 May 2013 16:50:18 +0000 (16:50 +0000)]
Refactor vm_page_alloc()'s interactions with vm_reserv_alloc_page() and
vm_page_insert() so that (1) vm_radix_lookup_le() is never called while the
free page queues lock is held and (2) vm_radix_lookup_le() is called at most
once.  This change reduces the average time that the free page queues lock
is held by vm_page_alloc() as well as vm_page_alloc()'s average overall
running time.

Sponsored by: EMC / Isilon Storage Division

11 years agoFix several typos
Eitan Adler [Sun, 12 May 2013 16:43:26 +0000 (16:43 +0000)]
Fix several typos

PR: kern/176054
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 3 days

11 years agohead -n doesn't take negative arguments on FreeBSD, so instead use sed '$d'
Mark Johnston [Sun, 12 May 2013 16:29:09 +0000 (16:29 +0000)]
head -n doesn't take negative arguments on FreeBSD, so instead use sed '$d'
to remove the last line of a file.

11 years agoBring back part of r249367 by adding DTrace's temporal option, which allows
Mark Johnston [Sun, 12 May 2013 16:26:33 +0000 (16:26 +0000)]
Bring back part of r249367 by adding DTrace's temporal option, which allows
users to guarantee that the output of DTrace scripts will be time-ordered.
This option is enabled by adding the line

  #pragma D option temporal

to the beginning of a script, or by adding '-x temporal' to the arguments of
dtrace(1).

This change fixes a bug in the original port of the temporal option. This
bug was causing some assertions to fail, so they had been disabled; in this
revision the assertions are working properly and are enabled.

The DTrace version number has been bumped from 1.9.0 to 1.9.1 to reflect
the language change that's being introduced.

This change corresponds to part of illumos-gate commit e5803b76927480:
  3021 option for time-ordered output from dtrace(1M)

Reviewed by: pfg
Obtained from: illumos
MFC after: 1 month

11 years agoFix typo in UPDATING
Eitan Adler [Sun, 12 May 2013 16:07:23 +0000 (16:07 +0000)]
Fix typo in UPDATING

Submitted by: Rainer Hurling <rhurlin@gwdg.de>

11 years agofdescfs: Supply a real value for d_type in readdir.
Jilles Tjoelker [Sun, 12 May 2013 15:44:49 +0000 (15:44 +0000)]
fdescfs: Supply a real value for d_type in readdir.

All the fdescfs nodes (except . and ..) appear as character devices to
stat(), so DT_CHR is correct.

11 years agoAdd support for "d" floating-point suffix, as defined by draft N1312
Pedro F. Giffuni [Sun, 12 May 2013 15:29:35 +0000 (15:29 +0000)]
Add support for "d" floating-point suffix, as defined by draft N1312
of TR 24732. Emit pedantic warning if the feature is being used.

Should solve GCC bug 39027.

Obtained from: OpenBSD
MFC after: 2 weeks

11 years agoMake newsyslog compress logs with xz instead of bzip2 to save space.
Eitan Adler [Sun, 12 May 2013 15:23:59 +0000 (15:23 +0000)]
Make newsyslog compress logs with xz instead of bzip2 to save space.

PR: conf/178504
Submitted by: ak
Reviewed by: smh

11 years agoRevert r250394, which disabled snmp_hast due to libl dependency issue --
Mikolaj Golub [Sun, 12 May 2013 13:42:49 +0000 (13:42 +0000)]
Revert r250394, which disabled snmp_hast due to libl dependency issue --
the dependency has been removed in r250503.

11 years agoSuppress error printing for "PREVENT ALLOW MEDIUM REMOVAL" on da open.
Alexander Motin [Sun, 12 May 2013 09:33:33 +0000 (09:33 +0000)]
Suppress error printing for "PREVENT ALLOW MEDIUM REMOVAL" on da open.
Change at r250208 exposed more errors here, hidden before.  The same flag
is used in cd driver.

11 years agoTypo.
Sergey Kandaurov [Sun, 12 May 2013 05:54:58 +0000 (05:54 +0000)]
Typo.

11 years agoAdd the letter 'x' to the font iso05-8x16.fnt
Eitan Adler [Sun, 12 May 2013 04:34:55 +0000 (04:34 +0000)]
Add the letter 'x' to the font iso05-8x16.fnt

PR: 169797
Submitted by: Takefu <takefu@airport.fm>
MFC after: 3 days

11 years ago - Add a new general purpose path-compressed radix trie which can be used
Jeff Roberson [Sun, 12 May 2013 04:05:01 +0000 (04:05 +0000)]
 - Add a new general purpose path-compressed radix trie which can be used
   with any structure containing a uint64_t index.  The tree code
   auto-generates type safe wrappers.
 - Eliminate the buf splay and replace it with pctrie.  This is not only
   significantly faster with large files but also allows for the possibility
   of shared locking.

Reviewed by:    alc, attilio
Sponsored by:   EMC / Isilon Storage Division

11 years agoUpdate the gcc43 changelog.
Pedro F. Giffuni [Sun, 12 May 2013 03:36:28 +0000 (03:36 +0000)]
Update the gcc43 changelog.

The issue solved in r250392 actually originated upstream and was
fixed in upstream gcc43 branch in 2006/10/24 (under GPLv2).

Register it in the appropriate ChangeLog for reference.

MFC after: 3 days

11 years agoSome filesystems (NFS in particular) do not fill out the d_type field when
Mark Johnston [Sun, 12 May 2013 01:58:04 +0000 (01:58 +0000)]
Some filesystems (NFS in particular) do not fill out the d_type field when
returning directory entries through readdir(3). In this case we need to
obtain the file type ourselves; otherwise newsyslog -t will not be able to
find archived log files and will fail to both delete old log files and to
do interval-based rotations properly.

Reported by: jilles
Reviewed by: jilles
MFC after: 2 weeks

11 years agoTidy up some CVS workarounds.
Peter Wemm [Sun, 12 May 2013 01:53:47 +0000 (01:53 +0000)]
Tidy up some CVS workarounds.

11 years agoTurns out that there really isn't an RTC chip on this board, at all.
Warner Losh [Sun, 12 May 2013 01:29:18 +0000 (01:29 +0000)]
Turns out that there really isn't an RTC chip on this board, at all.

11 years agoComment.
Devin Teske [Sun, 12 May 2013 00:50:18 +0000 (00:50 +0000)]
Comment.

11 years agoFix i18n violations in the package management module. A few words like
Devin Teske [Sun, 12 May 2013 00:46:18 +0000 (00:46 +0000)]
Fix i18n violations in the package management module. A few words like
`packages', `installed', and `selected' were not internationalized.

11 years agoRemove duplicated string.
Devin Teske [Sun, 12 May 2013 00:44:40 +0000 (00:44 +0000)]
Remove duplicated string.

11 years agoComments.
Devin Teske [Sun, 12 May 2013 00:40:49 +0000 (00:40 +0000)]
Comments.

11 years agoWhitespace.
Devin Teske [Sun, 12 May 2013 00:39:25 +0000 (00:39 +0000)]
Whitespace.

11 years agoUnconditionally install 210.backup-aliases as many MTAs other than
Eitan Adler [Sat, 11 May 2013 23:55:43 +0000 (23:55 +0000)]
Unconditionally install 210.backup-aliases as many MTAs other than
sendmail support the use of /etc/aliases.

PR: conf/176098
Submitted by: ak
MFC after: 2 weeks

11 years agoIntel's 320-series and 510-series SSDs advertise 512-byte sectors
Eitan Adler [Sat, 11 May 2013 23:13:49 +0000 (23:13 +0000)]
Intel's 320-series and 510-series SSDs advertise 512-byte sectors
sizes for both logical and physical. Add ADA_Q_4K quirks
for both.

PR: kern/178040
Submitted by: Jeremy Chadwick <jdc@koitsu.org>

11 years agoDon't use the old stack-walking code with
Tim Kientzle [Sat, 11 May 2013 22:32:43 +0000 (22:32 +0000)]
Don't use the old stack-walking code with
EABI ARM kernels or clang-compiled ARM kernels.

This fixes a crash seen in clang-compiled ARM
kernels that include WITNESS.

This code could be easily modified to walk the stack
for current clang-generated code (including EABI)
but Andrew Turner has raised concerns that the
stack frame currently emitted by clang isn't actually
required by EABI so such a change might cause problems
down the road.

In case anyone wants to experiment, the change
to support current clang-compiled kernels
involves simply setting FR_RFP=0 and FR_SCP=1.

11 years agoAdd simple testcases for fcntl(F_DUP2FD_CLOEXEC).
Jilles Tjoelker [Sat, 11 May 2013 22:13:24 +0000 (22:13 +0000)]
Add simple testcases for fcntl(F_DUP2FD_CLOEXEC).

11 years agoTeach wpa_supplicant to properly compute wireless signal strength.
Eitan Adler [Sat, 11 May 2013 20:55:14 +0000 (20:55 +0000)]
Teach wpa_supplicant to properly compute wireless signal strength.

PR: bin/170631
Submitted by: Daan Vreeken <Daan@vitsch.nl>
Reviewed by: adrian

11 years agosh: Remove linked list of stack marks.
Jilles Tjoelker [Sat, 11 May 2013 20:51:00 +0000 (20:51 +0000)]
sh: Remove linked list of stack marks.

The linked list of stack marks may cause problems if the allocation stack is
used between an exception and a higher-level popstackmark(), as it may then
touch a stack mark that is local to a function which has returned.

Also, the adjustment compares to a pointer passed to realloc(), which is
undefined behaviour.

Instead of adjusting stack marks when reallocating stack blocks, ensure that
such an adjustment is never necessary by fixing a small piece of memory in
place at a stack mark. This also simplifies the code.

To avoid the problems reported in bin/175922, it remains necessary to call
setstackmark() after popstackmark() if the stack mark remains in use.

11 years agoAdd IFF_MONITOR support to gre(4).
Hiroki Sato [Sat, 11 May 2013 19:05:38 +0000 (19:05 +0000)]
Add IFF_MONITOR support to gre(4).

Tested by: Chip Marshall
MFC after: 1 week

11 years agoReturn meaningful error code from pf_state_key_attach() and
Gleb Smirnoff [Sat, 11 May 2013 18:06:51 +0000 (18:06 +0000)]
Return meaningful error code from pf_state_key_attach() and
pf_state_insert().

11 years agoBetter debug message.
Gleb Smirnoff [Sat, 11 May 2013 18:03:36 +0000 (18:03 +0000)]
Better debug message.

11 years agoTo reduce the amount of arithmetic performed in the various radix tree
Alan Cox [Sat, 11 May 2013 18:01:41 +0000 (18:01 +0000)]
To reduce the amount of arithmetic performed in the various radix tree
functions, reverse the numbering scheme for the levels.  The highest
numbered level in the tree now appears near the root instead of the leaves.

Sponsored by: EMC / Isilon Storage Division

11 years agoFix DIOCADDSTATE operation.
Gleb Smirnoff [Sat, 11 May 2013 17:58:26 +0000 (17:58 +0000)]
Fix DIOCADDSTATE operation.

11 years agoInvalid creatorid is always EINVAL, not only when we are in verbose mode.
Gleb Smirnoff [Sat, 11 May 2013 17:57:52 +0000 (17:57 +0000)]
Invalid creatorid is always EINVAL, not only when we are in verbose mode.

11 years agoAdd simple testcases for fcntl(F_DUPFD_CLOEXEC).
Jilles Tjoelker [Sat, 11 May 2013 16:31:41 +0000 (16:31 +0000)]
Add simple testcases for fcntl(F_DUPFD_CLOEXEC).

11 years agoAdd missing argument to fcntl(F_DUPFD) in regression test.
Jilles Tjoelker [Sat, 11 May 2013 15:45:44 +0000 (15:45 +0000)]
Add missing argument to fcntl(F_DUPFD) in regression test.

11 years agoAdd some missing DPADD.
Antoine Brodin [Sat, 11 May 2013 13:46:05 +0000 (13:46 +0000)]
Add some missing DPADD.

11 years agoAdd compile_et to kerberos bootstrap tools.
Antoine Brodin [Sat, 11 May 2013 13:44:11 +0000 (13:44 +0000)]
Add compile_et to kerberos bootstrap tools.
This makes it possible to build a regular world on a host without kerberos.

PR: conf/178421
Submitted by: Garrett Cooper
MFC after: 1 month

11 years agoThe M_VESA_MODE_MAX is latest valid mode - not the first invalid.
Eitan Adler [Sat, 11 May 2013 13:32:38 +0000 (13:32 +0000)]
The M_VESA_MODE_MAX is latest valid mode - not the first invalid.
Permit its use in vidcontrol -i

PR: bin/119483
Submitted by: Dan Lukes <dan@obluda.cz>
Arrival-Date: Wed Jan 09 10:30:01 UTC 2008
Reviewed by: ed
MFC after: 3 days

11 years agoDisable sending Early R_OK on SiI3726/SiI3826 port multipliers.
Alexander Motin [Sat, 11 May 2013 13:21:31 +0000 (13:21 +0000)]
Disable sending Early R_OK on SiI3726/SiI3826 port multipliers.
With "cached read" HDD testing and multiple ports busy on a SATA
host controller, 3726/3826 PMP will very rarely drop a deferred
R_OK that was intended for the host. Symptom will be all 5 drives
under test will timeout, get reset, and recover.

Submitted by: Rich Futyma <rich.futyma@sanmina.com>
MFC after: 2 weeks

11 years ago- Fix nullfs vnode reference leak in nullfs_reclaim_lowervp(). The
Konstantin Belousov [Sat, 11 May 2013 11:17:44 +0000 (11:17 +0000)]
- Fix nullfs vnode reference leak in nullfs_reclaim_lowervp().  The
  null_hashget() obtains the reference on the nullfs vnode, which must
  be dropped.

- Fix a wart which existed from the introduction of the nullfs
  caching, do not unlock lower vnode in the nullfs_reclaim_lowervp().
  It should be innocent, but now it is also formally safe.  Inform the
  nullfs_reclaim() about this using the NULLV_NOUNLOCK flag set on
  nullfs inode.

- Add a callback to the upper filesystems for the lower vnode
  unlinking. When inactivating a nullfs vnode, check if the lower
  vnode was unlinked, indicated by nullfs flag NULLV_DROP or VV_NOSYNC
  on the lower vnode, and reclaim upper vnode if so.  This allows
  nullfs to purge cached vnodes for the unlinked lower vnode, avoiding
  excessive caching.

Reported by: G??ran L??wkrantz <goran.lowkrantz@ismobile.com>
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

11 years agoRate limit the number of remotely triggered ARP log messages
Gleb Smirnoff [Sat, 11 May 2013 10:51:32 +0000 (10:51 +0000)]
Rate limit the number of remotely triggered ARP log messages
to 1 log message per second.

11 years agoGet rid of libl dependency. We needed it only to provide yywrap. But
Mikolaj Golub [Sat, 11 May 2013 09:51:44 +0000 (09:51 +0000)]
Get rid of libl dependency.  We needed it only to provide yywrap.  But
yywrap is not necessary when parsing a single hast.conf file.

Suggested by: kib
Reviewed by: pjd

11 years agoFix several standard extended feature bits.
Rui Paulo [Sat, 11 May 2013 01:31:51 +0000 (01:31 +0000)]
Fix several standard extended feature bits.

Submitted by: Oliver Pinter <oliver.pntr at gmail.com>

11 years agoAdding a detach method to p4tcc driver.
Hiren Panchasara [Fri, 10 May 2013 22:43:27 +0000 (22:43 +0000)]
Adding a detach method to p4tcc driver.

PR: 118739
Submitted by: Dan Lukes <dan@obluda.cz> (earlier version)
Reviewed by: jhb
Approved by: sbruno (mentor)
MFC after: 1 week

11 years ago REST IN PEACE
Xin LI [Fri, 10 May 2013 20:02:15 +0000 (20:02 +0000)]
  REST IN PEACE
     Alexander Botero-Lowry

Born June 2, 1986 in Austin, Texas
Died August 24, 2012 in San Francisco, California

Thank you for your contributions, you will be
greatly missed.

11 years agoMake dd's signal handler async safe.
Eitan Adler [Fri, 10 May 2013 18:43:36 +0000 (18:43 +0000)]
Make dd's signal handler async safe.

PR: bin/75258
Submitted by: "Oleg V. Nauman" <oleg@reis.zp.ua>
Arrival Date: Sun Dec 19 14:50:21 GMT 2004
Reviewed by: mjg, jhb
Reviewed by: jilles (earlier version)
MFC after: 1 week

11 years agoHonor the net.inet6.ip6.v6only sysctl variable and the IPV6_V6ONLY
Michael Tuexen [Fri, 10 May 2013 18:09:38 +0000 (18:09 +0000)]
Honor the net.inet6.ip6.v6only sysctl variable and the IPV6_V6ONLY
socket option for SCTP sockets in the same way as for UDP or TCP
sockets.

MFC after: 2 weeks

11 years agoPermit relative paths with mergemaster -m
Eitan Adler [Fri, 10 May 2013 17:42:13 +0000 (17:42 +0000)]
Permit relative paths with mergemaster -m

Reviewed by: dim, brooks
MFC after: 3 days

11 years agoAdd option to lockf to avoid creating a file if it does not exist.
Eitan Adler [Fri, 10 May 2013 17:30:29 +0000 (17:30 +0000)]
Add option to lockf to avoid creating a file if it does not exist.

PR: bin/170775
Submitted by: Matthew Story <matthewstory@gmail.com>
Reviewed by: scottl
MFC after: 1 week

11 years agoFxi a bunch of typos.
Eitan Adler [Fri, 10 May 2013 16:41:26 +0000 (16:41 +0000)]
Fxi a bunch of typos.

PR: misc/174625
Submitted by: Jeremy Chadwick <jdc@koitsu.org>

11 years agoAdd the letter 'q' to the font iso05-8x16.fnt
Eitan Adler [Fri, 10 May 2013 16:30:39 +0000 (16:30 +0000)]
Add the letter 'q' to the font iso05-8x16.fnt

PR: 72585
PR: 169797
Submitted by: Takefu <takefu@airport.fm>
Submitted by: Satoshi KImura <satosi.kimura@nifty.ne.jp>

11 years agoBring /etc/protocols up to date.
Eitan Adler [Fri, 10 May 2013 13:57:44 +0000 (13:57 +0000)]
Bring /etc/protocols up to date.

PR: conf/175397
Submitted by: ak

11 years agoBump .Dd for recent content change.
Eitan Adler [Fri, 10 May 2013 12:49:16 +0000 (12:49 +0000)]
Bump .Dd for recent content change.

Reported by: delphij

11 years agoMake sure the holding descriptor and link pointer are both freed during
Adrian Chadd [Fri, 10 May 2013 10:06:45 +0000 (10:06 +0000)]
Make sure the holding descriptor and link pointer are both freed during
a non-loss reset.

When the drain functions are called, the holding descriptor and link pointers
are NULLed out.

But when the processq function is called during a non-loss reset, this
doesn't occur.  So the next time a DMA occurs, it's chained to a descriptor
that no longer exists and the hardware gets angry.

Tested:

* AR5416, STA mode; use sysctl dev.ath.X.forcebstuck=1 to force a non-loss
  reset.

TODO:

* Further AR9380 testing just to check that the behaviour for the EDMA
  chips is sane.

PR: kern/178477

11 years agoCheck the return value of sbuf_finish().
Jaakko Heinonen [Fri, 10 May 2013 09:58:32 +0000 (09:58 +0000)]
Check the return value of sbuf_finish().

MFC after: 1 week

11 years agoFix a VAP BSS node reference in the HT code to actually take a reference
Adrian Chadd [Fri, 10 May 2013 09:37:58 +0000 (09:37 +0000)]
Fix a VAP BSS node reference in the HT code to actually take a reference
before using said node.

The "blessed" way here is to take a node reference before referencing
anything inside the node, otherwise the node can be freed between
the time the pointer is copied/dereferenced and the time the node contents
are used.

This mirrors fixes that I've done elsewhere in the net80211/driver
stack.

PR: kern/178470

11 years agoanother minor bugfix in the memory allocator, this time in the free routine.
Luigi Rizzo [Fri, 10 May 2013 08:46:10 +0000 (08:46 +0000)]
another minor bugfix in the memory allocator, this time in the free routine.

11 years agoMake the read/write routines default to the newer DS1337 part, but keep
Warner Losh [Fri, 10 May 2013 06:28:01 +0000 (06:28 +0000)]
Make the read/write routines default to the newer DS1337 part, but keep
the supported bits board specific.

11 years agoMove 'compatible' line out of the common am335x.dtsi and into
Tim Kientzle [Fri, 10 May 2013 05:34:08 +0000 (05:34 +0000)]
Move 'compatible' line out of the common am335x.dtsi and into
the beaglebone-specific .dts file.

Add a new .dts for the BeagleBone Black with more memory,
slightly different pinmux initialization, and with mmchs1
configured (though the latter doesn't quite work yet).

11 years agoAs requested, move this back to opt-in and list my boards.
Warner Losh [Fri, 10 May 2013 04:49:40 +0000 (04:49 +0000)]
As requested, move this back to opt-in and list my boards.

11 years agoRemove the commented out code I just committed. If we need it, I'll
Warner Losh [Fri, 10 May 2013 04:30:14 +0000 (04:30 +0000)]
Remove the commented out code I just committed. If we need it, I'll
bring it back uncommented our, or rewrite it.

11 years agoImplement 'split -d' which allows a numeric suffix instead of an
Eitan Adler [Fri, 10 May 2013 04:23:03 +0000 (04:23 +0000)]
Implement 'split -d' which allows a numeric suffix instead of an
alphabetic one.

PR: bin/116209
Submitted by: Marcin Gryszkalis <mg@fork.pl> (adapted from)
Reviewed by: will
MFC after: 1 week

11 years agoStyle(9) changes fo xargs.c
Eitan Adler [Fri, 10 May 2013 03:49:05 +0000 (03:49 +0000)]
Style(9) changes fo xargs.c

11 years agoAdd support for 'dmesg -c' which clears the dmesg buffer after it has
Eitan Adler [Fri, 10 May 2013 03:42:48 +0000 (03:42 +0000)]
Add support for 'dmesg -c' which clears the dmesg buffer after it has
been printed.  This provides compatibility with other *nix systems
(including Linux).

While here use stdbool booleans for 'all'.

PR: bin/178295
Submitted by: Levent Serinol <lserinol@gmail.com>
Reviewed by: will

11 years agoAdd commented out OCTEON_VENDOR_GEFES
Warner Losh [Fri, 10 May 2013 03:05:44 +0000 (03:05 +0000)]
Add commented out OCTEON_VENDOR_GEFES

11 years agoAdd support from GE Intelligent Platform Cavium Octeon boards. Add
Warner Losh [Fri, 10 May 2013 03:04:45 +0000 (03:04 +0000)]
Add support from GE Intelligent Platform Cavium Octeon boards. Add
options OCTEON_VENDOR_GEFES to enable support for these boards, to
match changes that GE publishes to the Octeon Simple Executive. Since
board types overlap with other boards, it is unlikely that we will
properly boot on other Octeon boards with OCTEON_VENDOR_GEFES enabled.
Tested extensively on the WANIC 6354, but I retained support for all
the other models. Some features need changes in the base kernel, and
those are in progress.

11 years agoSupport array-type of stats in bhyve.
Neel Natu [Fri, 10 May 2013 02:59:49 +0000 (02:59 +0000)]
Support array-type of stats in bhyve.

An array-type stat in vmm.ko is defined as follows:
VMM_STAT_ARRAY(IPIS_SENT, VM_MAXCPU, "ipis sent to vcpu");

It is incremented as follows:
vmm_stat_array_incr(vm, vcpuid, IPIS_SENT, array_index, 1);

And output of 'bhyvectl --get-stats' looks like:
ipis sent to vcpu[0]     3114
ipis sent to vcpu[1]     0

Reviewed by: grehan
Obtained from: NetApp

11 years agoBoth my EBH5200 and GE WANIC 6354 have a RTC as well. It looks from
Warner Losh [Fri, 10 May 2013 02:57:46 +0000 (02:57 +0000)]
Both my EBH5200 and GE WANIC 6354 have a RTC as well. It looks from
the Linux tree that they always include this chip in their FDT, so
make support for the ds1337 opt-out rather than opt-in. Now my boards
boot with the correct time.

11 years agoRetire write-only PCB_GS32BIT pcb flag on amd64.
Dmitry Chagin [Thu, 9 May 2013 21:42:43 +0000 (21:42 +0000)]
Retire write-only PCB_GS32BIT pcb flag on amd64.

11 years agoFix two typos
Eitan Adler [Thu, 9 May 2013 21:29:16 +0000 (21:29 +0000)]
Fix two typos

Reviewed by: jilles

11 years agoposix_spawn_file_actions_adddup2(3): Document difference with dup2().
Jilles Tjoelker [Thu, 9 May 2013 21:29:13 +0000 (21:29 +0000)]
posix_spawn_file_actions_adddup2(3): Document difference with dup2().

The ability to clear a file descriptor's close-on-exec flag via
posix_spawn_file_actions_adddup2() is in fact proposed in Austin Group issue
#411.

MFC after: 1 week

11 years agoMFp4 CH=227440:
Bjoern A. Zeeb [Thu, 9 May 2013 20:13:43 +0000 (20:13 +0000)]
MFp4 CH=227440:

  Convert the structures to C99 style initialisation, which makes it
  a lot easier to check that all of them are set and to generate a
  derived template from them.

Sponsored by: DARPA, AFRL
MFC after: 2 weeks

11 years agoAdd some missing arge MDIO hints.
Adrian Chadd [Thu, 9 May 2013 19:37:00 +0000 (19:37 +0000)]
Add some missing arge MDIO hints.

Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>

11 years agoRevision 233677 broke certain machines. Specifically, if the firmware/BIOS
John Baldwin [Thu, 9 May 2013 19:24:50 +0000 (19:24 +0000)]
Revision 233677 broke certain machines.  Specifically, if the firmware/BIOS
assigned conflicting ranges to BARs then leaving the BARs alone could
result in one device stealing mmio accesses intended to go to a second
device.  Prior to 233677 the PCI bus driver attempted to handle this case
by clearing the BAR to 0 depending on BARs based at 0 not decoding (which
is not guaranteed to be true).  Now when a conflicting BAR is detected the
following steps are taken:

 1) If hw.pci.realloc_bars (a new tunable) is enabled (default is enabled),
    then ignore the current BAR setting from the firmware and attempt to
    allocate a fresh resource range for the BAR.

 2) If 1) failed (or was disabled), disable decoding for the relevant
    BAR type (e.g. disable mem decoding for a memory BAR) and emit a
    warning if booting verbose.

Tested by: Alex Keda <admin@lissyara.su>
MFC after: 1 week