]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoRemove redundant text describing the cleanup routine.
Marcel Moolenaar [Thu, 15 Nov 2012 04:24:17 +0000 (04:24 +0000)]
Remove redundant text describing the cleanup routine.
Upstreamed:
    http://code.google.com/p/kyua/issues/detail?id=43

Submitted by: Garrett Cooper <yanegomi@gmail.com>

11 years agoAdd , (comma) option to print sizes grouped and separated by thousands
Greg Lehey [Thu, 15 Nov 2012 03:39:21 +0000 (03:39 +0000)]
Add , (comma) option to print sizes grouped and separated by thousands
using the non-monetary separator returned by localeconv(3), typically
a comma or period.

MFC after:  14 days

11 years agofix a couple of spelling errors...
John-Mark Gurney [Thu, 15 Nov 2012 03:22:50 +0000 (03:22 +0000)]
fix a couple of spelling errors...

11 years agoMake sure the final descriptor in an aggregate has rate control information.
Adrian Chadd [Thu, 15 Nov 2012 03:00:49 +0000 (03:00 +0000)]
Make sure the final descriptor in an aggregate has rate control information.

This was broken by me when merging the 802.11n aggregate descriptor chain
setup with the default descriptor chain setup, in preparation for supporting
AR9380 NICs.

The corner case here is quite specific - if you queue an aggregate frame
with >1 frames in it, and the last subframe has only one descriptor making
it up, then that descriptor won't have the rate control information
copied into it. Look at what happens inside ar5416FillTxDesc() if
both firstSeg and lastSeg are set to 1.

Then when ar5416ProcTxDesc() goes to fill out ts_rate based on the
transmit index, it looks at the rate control fields in that descriptor
and dutifully sets it to be 0.

It doesn't happen for non-aggregate frames - if they have one descriptor,
the first descriptor already has rate control info.

I removed the call to ath_hal_setuplasttxdesc() when I migrated the
code to use the "new" style aggregate chain routines from the HAL.
But I missed this particular corner case.

This is a bit inefficient with MIPS boards as it involves a few redundant
writes into non-cachable memory.  I'll chase that up when it matters.

Tested:

 * AR9280 STA mode, TCP iperf traffic
 * Rui Paulo <rpaulo@> first reported this and has verified it on
   his AR9160 based AP.

PR: kern/173636

11 years ago - Implement run-time expansion of the KTR buffer via sysctl.
Jeff Roberson [Thu, 15 Nov 2012 00:51:57 +0000 (00:51 +0000)]
 - Implement run-time expansion of the KTR buffer via sysctl.
 - Implement a function to ensure that all preempted threads have switched
   back out at least once.  Use this to make sure there are no stale
   references to the old ktr_buf or the lock profiling buffers before
   updating them.

Reviewed by: marius (sparc64 parts), attilio (earlier patch)
Sponsored by: EMC / Isilon Storage Division

11 years agoFlip the semantic of M_NOWAIT to only require the allocation to not
Konstantin Belousov [Wed, 14 Nov 2012 20:01:40 +0000 (20:01 +0000)]
Flip the semantic of M_NOWAIT to only require the allocation to not
sleep, and perform the page allocations with VM_ALLOC_SYSTEM
class. Previously, the allocation was also allowed to completely drain
the reserve of the free pages, being translated to VM_ALLOC_INTERRUPT
request class for vm_page_alloc() and similar functions.

Allow the caller of malloc* to request the 'deep drain' semantic by
providing M_USE_RESERVE flag, now translated to VM_ALLOC_INTERRUPT
class. Previously, it resulted in less aggressive VM_ALLOC_SYSTEM
allocation class.

Centralize the translation of the M_* malloc(9) flags in the single
inline function malloc2vm_flags().

Discussion started by: "Sears, Steven" <Steven.Sears@netapp.com>
Reviewed by: alc, mdf (previous version)
Tested by: pho (previous version)
MFC after: 2 weeks

11 years agoRemove M_USE_RESERVE from the devfs cdp allocator, which is one of two
Konstantin Belousov [Wed, 14 Nov 2012 19:50:21 +0000 (19:50 +0000)]
Remove M_USE_RESERVE from the devfs cdp allocator, which is one of two
uses of M_USE_RESERVE in the kernel. This allocation is not special.

Reviewed by: alc
Tested by: pho
MFC after: 2 weeks

11 years agoGet rid of some old debug code. It provides checks similar to the one
Davide Italiano [Wed, 14 Nov 2012 19:10:50 +0000 (19:10 +0000)]
Get rid of some old debug code. It provides checks similar to the one
offered by RedZone so there's no need to keep it.

Sponsored by: iXsystems inc.

11 years agoFix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: it
Dimitry Andric [Wed, 14 Nov 2012 18:54:08 +0000 (18:54 +0000)]
Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: it
compared an enum scope_type against a yacc-generated define, so the
condition would always be false.

MFC after: 3 days

11 years agoIn games/fortune/fortune/fortune.c, make 'Debug' the correct type (it is
Dimitry Andric [Wed, 14 Nov 2012 18:52:37 +0000 (18:52 +0000)]
In games/fortune/fortune/fortune.c, make 'Debug' the correct type (it is
*not* a boolean).

MFC after: 3 days

11 years agoFor mkcsmapper, conditionalize gcc-specific compile flags.
Dimitry Andric [Wed, 14 Nov 2012 18:51:12 +0000 (18:51 +0000)]
For mkcsmapper, conditionalize gcc-specific compile flags.

MFC after: 3 days

11 years agoIn crypto/heimdal/lib/sl/slc-lex.l, don't define YY_NO_INPUT, since
Dimitry Andric [Wed, 14 Nov 2012 18:49:03 +0000 (18:49 +0000)]
In crypto/heimdal/lib/sl/slc-lex.l, don't define YY_NO_INPUT, since
%option nounput is already specified.

MFC after: 3 days

11 years agoFix the lookup in the DOTDOT case in the same way as other filesystems do,
Davide Italiano [Wed, 14 Nov 2012 18:43:58 +0000 (18:43 +0000)]
Fix the lookup in the DOTDOT case in the same way as other filesystems do,
i.e. inlining the vn_vget_ino() algorithm.

Sponsored by: iXsystems inc.

11 years agoUse defined() to test macro definitions.
Dmitry Sivachenko [Wed, 14 Nov 2012 17:44:37 +0000 (17:44 +0000)]
Use defined() to test macro definitions.

Approved by: theraven

11 years agoif_afdata lock was converted from mutex to rwlock a long ago, so we can
Andrey V. Elsukov [Wed, 14 Nov 2012 17:36:06 +0000 (17:36 +0000)]
if_afdata lock was converted from mutex to rwlock a long ago, so we can
replace IF_AFDATA_LOCK() macro depending to the access type.

Sponsored by: Yandex LLC
MFC after: 1 week

11 years agoThe function pmap_alloc_direct_page() unconditionally zeroes the returned
Alan Cox [Wed, 14 Nov 2012 17:33:00 +0000 (17:33 +0000)]
The function pmap_alloc_direct_page() unconditionally zeroes the returned
page.  Therefore, it is really inappropriate for use by the function
uma_small_alloc().  The effect of using it was that every page was zeroed
at least once and possibly twice if M_ZERO was passed as a "wait" flag.

11 years agoSCOPE6_LOCK protects V_sid_default, no need to acquire it without
Andrey V. Elsukov [Wed, 14 Nov 2012 17:23:48 +0000 (17:23 +0000)]
SCOPE6_LOCK protects V_sid_default, no need to acquire it without
any access to V_sid_default.

Sponsored by: Yandex LLC
MFC after: 1 week

11 years agozoneid has unsigned type.
Andrey V. Elsukov [Wed, 14 Nov 2012 17:14:03 +0000 (17:14 +0000)]
zoneid has unsigned type.

MFC after: 1 week

11 years agosh: Remove an unused variable.
Jilles Tjoelker [Wed, 14 Nov 2012 14:08:24 +0000 (14:08 +0000)]
sh: Remove an unused variable.

11 years agoMake it clear the L2 ops are filled for any cpu using a PL310 cache, not just
Olivier Houchard [Wed, 14 Nov 2012 12:11:23 +0000 (12:11 +0000)]
Make it clear the L2 ops are filled for any cpu using a PL310 cache, not just
the omap4.

Spotted out by: Giovanni Trematerra <gianni at freebsd DOT org>

11 years agoboot: use packed attribute for edd_params* structures and their substructures
Andriy Gapon [Wed, 14 Nov 2012 11:05:16 +0000 (11:05 +0000)]
boot: use packed attribute for edd_params* structures and their substructures

The sole purpose of this change is to make sure that sizeof produces
"canonical" sizes for these structures.  This is to avoid triggering
bugs in the BIOSes that properly handle only the canonical values of
input length provided to INT 13h AH=48h.
The canonical sizes are: 30 for v2, 66 for v3, etc.
Buggy BIOS code probably looks like:
if (input_length > 30) {   /* > v2 */
assume that input length is 66 /* assume v3 or later */
}

This should fix boot problems at least on Supermicro X8DT6 and possibly
on P410i Smart Array Controller (as found in e.g. HP DL360 G7).

Reported by: gnn, np, rstone
Debugged by: rstone
Discussed with: ae, np, rstone
MFC after: 4 days

11 years agoUse the arrmv7 version for flushID too, as it does something different for SMP.
Olivier Houchard [Wed, 14 Nov 2012 10:59:42 +0000 (10:59 +0000)]
Use the arrmv7 version for flushID too, as it does something different for SMP.

Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>

11 years agoAllow usernames up to 32 chars
Baptiste Daroussin [Wed, 14 Nov 2012 10:58:12 +0000 (10:58 +0000)]
Allow usernames up to 32 chars

PR: kern/161091 [1],
misc/133926 [2]
Submitted by: Stephane Lapie <darksoul@darkbsd.org> [1],
Chris Dillon <cdillon@wolves.k12.mo.us> [2]
Reviewed by: cognet, kib

11 years agoStyle fix
Baptiste Daroussin [Wed, 14 Nov 2012 10:33:12 +0000 (10:33 +0000)]
Style fix

MFC after: 1 day

11 years agoreturn ERANGE if the buffer is too small to contain the login as documented in
Baptiste Daroussin [Wed, 14 Nov 2012 10:32:12 +0000 (10:32 +0000)]
return ERANGE if the buffer is too small to contain the login as documented in
the manpage

Reviewed by: cognet, kib
MFC after: 1 month

11 years agoRemove remnants of classful addressing. These magic transformations
Gleb Smirnoff [Wed, 14 Nov 2012 08:05:21 +0000 (08:05 +0000)]
Remove remnants of classful addressing. These magic transformations
of supplied arguments is not what a modern sysadmin expect.

11 years ago - Fix a truncation bug with softdep journaling that could leak blocks on
Jeff Roberson [Wed, 14 Nov 2012 06:37:43 +0000 (06:37 +0000)]
 - Fix a truncation bug with softdep journaling that could leak blocks on
   crash.  When truncating a file that never made it to disk we use the
   canceled allocation dependencies to hold the journal records until
   the truncation completes.  Previously allocdirect dependencies on
   the id_bufwait list were not considered and their journal space
   could expire before the bitmaps were written.  Cancel them and attach
   them to the freeblks as we do for other allocdirects.
 - Add KTR traces that were used to debug this problem.
 - When adding jsegdeps, always use jwork_insert() so we don't have more
   than one segdep on a given jwork list.

Sponsored by: EMC / Isilon Storage Division

11 years ago - blk_equals() is too strict. If the journal entry defines more frags
Jeff Roberson [Wed, 14 Nov 2012 06:31:47 +0000 (06:31 +0000)]
 - blk_equals() is too strict.  If the journal entry defines more frags
   than we're claiming it should still be considered an exact match.  This
   would previously leak frags that had been extended.
 - If there is a sequence number problem in the journal print the sequence
   numbers we've seen so far for debugging.
 - Clean up the block mask related debuging printfs.  Some are redundant.

MFC after: 1 week

11 years agoMention the IEEE 802.1AX.
Kevin Lo [Wed, 14 Nov 2012 06:23:32 +0000 (06:23 +0000)]
Mention the IEEE 802.1AX.

Reviewed by: thompsa

11 years agoDocument that sendfile(2) can fail with ENOBUFS.
Kevin Lo [Wed, 14 Nov 2012 01:45:10 +0000 (01:45 +0000)]
Document that sendfile(2) can fail with ENOBUFS.

Reviewed by: glebius

11 years agoMove zpool-features manual page from section 5 to section 7
Martin Matuska [Wed, 14 Nov 2012 01:16:29 +0000 (01:16 +0000)]
Move zpool-features manual page from section 5 to section 7
and fix references

Reported by: pluknet
MFC after: 1 week

11 years agoenterpgrp: get rid of pgrp2 variable and use KASSERT directly on pgfind result.
Mateusz Guzik [Tue, 13 Nov 2012 22:01:25 +0000 (22:01 +0000)]
enterpgrp: get rid of pgrp2 variable and use KASSERT directly on pgfind result.

pgrp2 was used only for debugging, but pgrp2 = pgfind(..) was present in compiled code even for kernels without INVARIANTS

Approved by: trasz (mentor)
MFC after: 1 week

11 years agoMerge of vendor import of 242999, tzdata2012j
Edwin Groothuis [Tue, 13 Nov 2012 21:10:50 +0000 (21:10 +0000)]
Merge of vendor import of 242999, tzdata2012j

- Libya went to Standard Time on 10 November 2012

11 years agoFix an apparent typo in the manual section number in .Dt: it should be 5.
Sergey Kandaurov [Tue, 13 Nov 2012 21:08:49 +0000 (21:08 +0000)]
Fix an apparent typo in the manual section number in .Dt: it should be 5.

11 years agoAdd support for CIR1000 - Cirrus Logic V34 to the uart driver
Eitan Adler [Tue, 13 Nov 2012 21:04:35 +0000 (21:04 +0000)]
Add support for CIR1000 - Cirrus Logic V34 to the uart driver

Approved by: cperciva (implicit)
MFC after: 1 week

11 years agoVendor import of tzdata2012j
Edwin Groothuis [Tue, 13 Nov 2012 21:03:32 +0000 (21:03 +0000)]
Vendor import of tzdata2012j

- Libya went to Standard Time on 10 November 2012

Obtained from: ftp://ftp.iana.org/tz/releases/

11 years agoRemove description of deprecated IP fragment checksum support.
Andre Oppermann [Tue, 13 Nov 2012 20:52:17 +0000 (20:52 +0000)]
Remove description of deprecated IP fragment checksum support.
Since SMPng it wasn't really supported anymore and if it worked
then only by chance.  Only very few drivers ever supported it.

Discussed with: yongari
MFC after: 2 weeks

11 years agoUpdates for netgraph node manual pages.
Joel Dahl [Tue, 13 Nov 2012 20:41:36 +0000 (20:41 +0000)]
Updates for netgraph node manual pages.

Discussed with: glebius
Submitted by: Mamontov Roman <mr.xanto@gmail.com>

11 years agoAdd support for CIR1000 - Cirrus Logic V34 to the sio driver
Eitan Adler [Tue, 13 Nov 2012 20:38:55 +0000 (20:38 +0000)]
Add support for CIR1000 - Cirrus Logic V34 to the sio driver

PR: kern/44267
Submitted by: Michail Vidiassov <master@iaas.msu.ru>
Arrival-Date: Sat Oct 19 07:30:00 PDT 2002
Approved by: cperciva (implicit)
MFC after: 1 week

11 years ago- Lowercase a cross reference to make.
Sergey Kandaurov [Tue, 13 Nov 2012 20:07:34 +0000 (20:07 +0000)]
- Lowercase a cross reference to make.
- Sort SEE ALSO cross references.

MFC after: 3 days

11 years agoPlace 'dev.ath.X.debug' back under ATH_DEBUG, rather than ATH_DEBUG_ALQ.
Adrian Chadd [Tue, 13 Nov 2012 19:45:13 +0000 (19:45 +0000)]
Place 'dev.ath.X.debug' back under ATH_DEBUG, rather than ATH_DEBUG_ALQ.

11 years agoAvoid an ambiguous reference to mtx_lock(9).
Sergey Kandaurov [Tue, 13 Nov 2012 19:21:51 +0000 (19:21 +0000)]
Avoid an ambiguous reference to mtx_lock(9).

MFC after: 3 days

11 years agoCorrect rmlock(9) xref and add a missing comma.
Sergey Kandaurov [Tue, 13 Nov 2012 19:03:13 +0000 (19:03 +0000)]
Correct rmlock(9) xref and add a missing comma.

11 years agoRemove unused/obsolete macros.
Attilio Rao [Tue, 13 Nov 2012 18:24:47 +0000 (18:24 +0000)]
Remove unused/obsolete macros.

MFC after: 3 days

11 years agoAdd examples to the ssh-copy-id script.
Eitan Adler [Tue, 13 Nov 2012 13:06:57 +0000 (13:06 +0000)]
Add examples to the ssh-copy-id script.

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

11 years agoDocument wait6() and waitid().
Konstantin Belousov [Tue, 13 Nov 2012 12:56:42 +0000 (12:56 +0000)]
Document wait6() and waitid().

PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month

11 years agoImplement the waitid() SUSv4 function using wait6() system call.
Konstantin Belousov [Tue, 13 Nov 2012 12:55:52 +0000 (12:55 +0000)]
Implement the waitid() SUSv4 function using wait6() system call.

PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month

11 years agoRegen
Konstantin Belousov [Tue, 13 Nov 2012 12:53:41 +0000 (12:53 +0000)]
Regen

11 years agoAdd the wait6(2) system call. It takes POSIX waitid()-like process
Konstantin Belousov [Tue, 13 Nov 2012 12:52:31 +0000 (12:52 +0000)]
Add the wait6(2) system call. It takes POSIX waitid()-like process
designator to select a process which is waited for. The system call
optionally returns siginfo_t which would be otherwise provided to
SIGCHLD handler, as well as extended structure accounting for child
and cumulative grandchild resource usage.

Allow to get the current rusage information for non-exited processes
as well, similar to Solaris.

The explicit WEXITED flag is required to wait for exited processes,
allowing for more fine-grained control of the events the waiter is
interested in.

Fix the handling of siginfo for WNOWAIT option for all wait*(2)
family, by not removing the queued signal state.

PR: standards/170346
Submitted by: "Jukka A. Ukkonen" <jau@iki.fi>
MFC after: 1 month

11 years agoDon't divide by zero.
Edward Tomasz Napierala [Tue, 13 Nov 2012 11:29:08 +0000 (11:29 +0000)]
Don't divide by zero.

Tested by: swills

11 years agoAdd preliminary Octeon PCI console support. Radisys-specific PCI console
Juli Mallett [Tue, 13 Nov 2012 07:39:49 +0000 (07:39 +0000)]
Add preliminary Octeon PCI console support.  Radisys-specific PCI console
support may follow soon (it uses a proprietary memory layout, but operation
looks pretty trivial.)

11 years agoAdd some useful options to consider.
Juli Mallett [Tue, 13 Nov 2012 07:34:46 +0000 (07:34 +0000)]
Add some useful options to consider.

11 years agoFix build for FreeBSD kernel.
Juli Mallett [Tue, 13 Nov 2012 07:33:45 +0000 (07:33 +0000)]
Fix build for FreeBSD kernel.

11 years agoAdd some debugging to try and catch an invalid TX rate (0x0) that is
Adrian Chadd [Tue, 13 Nov 2012 06:28:57 +0000 (06:28 +0000)]
Add some debugging to try and catch an invalid TX rate (0x0) that is
being reported.

11 years agoBe more consistent.
David E. O'Brien [Tue, 13 Nov 2012 06:07:13 +0000 (06:07 +0000)]
Be more consistent.

11 years agoUse uiomove return value instead of returning 0.
Kevin Lo [Tue, 13 Nov 2012 06:03:43 +0000 (06:03 +0000)]
Use uiomove return value instead of returning 0.

11 years agoCheck the return value of uiomove(9).
Kevin Lo [Tue, 13 Nov 2012 05:58:52 +0000 (05:58 +0000)]
Check the return value of uiomove(9).

11 years agoImport new version of libc++ into base.
David Chisnall [Tue, 13 Nov 2012 03:27:43 +0000 (03:27 +0000)]
Import new version of libc++ into base.

11 years agoGarbage collect the explicit "compile-with", they are no longer needed.
David E. O'Brien [Tue, 13 Nov 2012 03:09:26 +0000 (03:09 +0000)]
Garbage collect the explicit "compile-with", they are no longer needed.

11 years agoDo not unwind past a zero PC frame.
Ed Maste [Tue, 13 Nov 2012 03:05:28 +0000 (03:05 +0000)]
Do not unwind past a zero PC frame.

This improves GDB usability when debugging code compiled with
optimization.

Upstream GDB revision f0031b6d3ae9b164b3747986ab898190bd4dcf8c (prior
to GDB's switch to GPLv3), with frame_debug_got_null_frame expanded
inline.

| 2004-12-12  Andrew Cagney  <cagney@gnu.org>
|
| * frame.c (get_prev_frame): When unwinding normal frames, check
| that the PC isn't zero.

Sponsored by: ADARA Networks
MFC After: 1 month

11 years agoReplace the single, global page queues lock with per-queue locks on the
Alan Cox [Tue, 13 Nov 2012 02:50:39 +0000 (02:50 +0000)]
Replace the single, global page queues lock with per-queue locks on the
active and inactive paging queues.

Reviewed by: kib

11 years agoPull new version of libc++ into vendor branch.
David Chisnall [Tue, 13 Nov 2012 02:41:32 +0000 (02:41 +0000)]
Pull new version of libc++ into vendor branch.

11 years agoUse consistent style.
David E. O'Brien [Tue, 13 Nov 2012 01:48:00 +0000 (01:48 +0000)]
Use consistent style.

11 years agoSet optimized_out instead of reporting an error.
Ed Maste [Tue, 13 Nov 2012 01:21:17 +0000 (01:21 +0000)]
Set optimized_out instead of reporting an error.

This provides a better display when debugging code compiled with
optimization on.

GDB git revision e8395b4efd184f745070afb953f451f99e922be7 (prior to GDB's
switch to GPLv3), modified for the interfaces provided by GDB 6.1.1.

2005-02-28  Daniel Jacobowitz  <dan@codesourcery.com>

 * dwarf2loc.c (loclist_read_variable): Set optimized_out
 instead of reporting an error.
 * valprint.c (value_check_printable): New function.
 (common_val_print): New function.  Use value_check_printable.
 (value_print): Use value_check_printable.
 * value.h (common_val_print): Add prototype.
 * c-valprint.c (c_val_print): Use common_val_print.
 * cp-valprint.c (cp_print_value_fields): Likewise.
 (cp_print_hpacc_virtual_table_entries): Likewise.
 * f-valprint.c (f_val_print): Likewise.
 * jv-valprint.c (java_value_print, java_print_value_fields):
 Likewise.
 * scm-valprint.c (scm_value_print): Likewise.
 * stack.c (print_frame_args): Likewise.
 * varobj.c (c_value_of_variable): Likewise.
 * p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
 (pascal_object_print_value_fields): Likewise.  Update call to
 pascal_object_print_static_field.
 (pascal_object_print_static_field): Remove TYPE argument.  Use
 common_val_print.

Sponsored by: ADARA Networks
MFC after: 1 month

11 years agoAdd a callback function to userboot.so to fetch a list of environment
Neel Natu [Mon, 12 Nov 2012 22:38:54 +0000 (22:38 +0000)]
Add a callback function to userboot.so to fetch a list of environment
variables and pass them to the kernel.

Reviewed by: dfr

11 years agoRedo r242889, now using the method from projects/amd64_xen_pv r240747.
Dimitry Andric [Mon, 12 Nov 2012 22:28:32 +0000 (22:28 +0000)]
Redo r242889, now using the method from projects/amd64_xen_pv r240747.

Reminded by: kib
MFC after: 3 days

11 years agoRedo r242842, now actually fixing the warnings, as follows:
Dimitry Andric [Mon, 12 Nov 2012 22:01:29 +0000 (22:01 +0000)]
Redo r242842, now actually fixing the warnings, as follows:
- In sys/ofed/drivers/infiniband/core/cma.c, an enum struct member is
  interpreted as an int, so cast it to an int.
- In sys/ofed/drivers/infiniband/core/ud_header.c, initialize the
  packet_length variable in ib_ud_header_init(), to prevent undefined
  behaviour.
- In sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c, call rdma_notify()
  with the correct enum type and value.
- In sys/ofed/include/linux/pci.h, change the PCI_DEVICE and PCI_VDEVICE
  macros to use C99 struct initializers, so additional members can be
  overridden.

Reviewed by: delphij, Garrett Cooper <yanegomi@gmail.com>
MFC after: 1 week

11 years agoFix a minor warning in sys/i386/xen/clock.c.
Dimitry Andric [Mon, 12 Nov 2012 20:50:11 +0000 (20:50 +0000)]
Fix a minor warning in sys/i386/xen/clock.c.

MFC after: 3 days

11 years agoMerge of vendor import of 242925, tzdata2012i
Edwin Groothuis [Mon, 12 Nov 2012 20:44:59 +0000 (20:44 +0000)]
Merge of vendor import of 242925, tzdata2012i

Update to tzdata2012i:
- Cuba is changing back to Standard Time on 4 November 2012.

11 years agoVendor import of tzdata2012i
Edwin Groothuis [Mon, 12 Nov 2012 20:41:02 +0000 (20:41 +0000)]
Vendor import of tzdata2012i

- Cuba is changing back to Standard Time on 4 November 2012.

Obtained from: ftp://ftp.iana.org/tz/releases/

11 years ago - Fix a bug that has existed since the original softdep implementation.
Jeff Roberson [Mon, 12 Nov 2012 19:53:55 +0000 (19:53 +0000)]
 - Fix a bug that has existed since the original softdep implementation.
   When a background copy of a cg is written we complete any work associated
   with that bmsafemap.  If new work has been added to the non-background
   copy of the buffer it will be completed before the next write happens.
   The solution is to do the rollbacks when we make the copy so only those
   dependencies that were present at the time of writing will be completed
   when the background write completes.  This would've resulted in various
   bitmap related corruptions and panics.  It also would've expired journal
   entries early causing journal replay to miss some records.

MFC after: 2 weeks

11 years agoFix a stack leak in [unused] cycle_menuitem function while we're here
Devin Teske [Mon, 12 Nov 2012 18:38:54 +0000 (18:38 +0000)]
Fix a stack leak in [unused] cycle_menuitem function while we're here
(required misconfiguration and/or missing environment vars to occur).

Reviewed by: peterj, adrian (co-mentor)
Approved by: adrian (co-mentor)

11 years agoUpdate MAX_TASKS to scale a bit based on MAXCPU
Sean Bruno [Mon, 12 Nov 2012 18:09:25 +0000 (18:09 +0000)]
Update MAX_TASKS to scale a bit based on MAXCPU

This alleviates issues on newer Sandy/Ivy Bridge gear that seems to require
boatloads more ACPI resources than before.

Reviewed by: avg@
Obtained from: Yahoo! Inc.
MFC after: 2 weeks

11 years agoClarify where the authorized_key file lives.
Eitan Adler [Mon, 12 Nov 2012 14:16:39 +0000 (14:16 +0000)]
Clarify where the authorized_key file lives.

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

11 years agoAdd new USB IDs.
Hans Petter Selasky [Mon, 12 Nov 2012 07:25:51 +0000 (07:25 +0000)]
Add new USB IDs.

MFC after: 1 week
PR: usb/173503

11 years agoAllow this file to be used in LOCORE sections of the kernel.
Rui Paulo [Mon, 12 Nov 2012 06:15:54 +0000 (06:15 +0000)]
Allow this file to be used in LOCORE sections of the kernel.

11 years agoFix DDB command "show map XXX":
Attilio Rao [Mon, 12 Nov 2012 00:30:40 +0000 (00:30 +0000)]
Fix DDB command "show map XXX":
- Check that an argument is always available, otherwise current map
  printing before to recurse is garbage.
- Spit out a message if an argument is not provided.
- Remove unread nlines variable.
- Use an explicit recursive function, disassociated from the
  DB_SHOW_COMMAND() body, in order to make clear prototype and recursion
  of the above mentioned function.  The code results now much less
  obscure.

Submitted by: gianni

11 years agoTweak comments.
Attilio Rao [Sun, 11 Nov 2012 23:25:47 +0000 (23:25 +0000)]
Tweak comments.

In collabouration with: alc

11 years agoCorrect date of Stanley's encounter with Livingstone.
Greg Lehey [Sun, 11 Nov 2012 22:43:36 +0000 (22:43 +0000)]
Correct date of Stanley's encounter with Livingstone.

Obtained from: Henry Morton Stanley, "How I met Livingstone", http://www.gutenberg.org/dirs/5/1/5/5157/5157-h/5157-h.htm
MFC after: 14 days

11 years agoCorrectly fix the 'scan during STA mode' crash.
Adrian Chadd [Sun, 11 Nov 2012 21:58:18 +0000 (21:58 +0000)]
Correctly fix the 'scan during STA mode' crash.

11 years agoRemove this; i incorrectly committed the wrong (debug) changes in my
Adrian Chadd [Sun, 11 Nov 2012 21:57:18 +0000 (21:57 +0000)]
Remove this; i incorrectly committed the wrong (debug) changes in my
previous commit.

11 years agoPrevent including .zfs snapshot directories in the src.txz
Glen Barber [Sun, 11 Nov 2012 21:52:18 +0000 (21:52 +0000)]
Prevent including .zfs snapshot directories in the src.txz
distribution.  This can happen if the src/ tree checkout is
within its own ZFS dataset, and the 'snapdir' ZFS property
is set to 'visible.'

Approved by: hrs
MFC after: 3 days
X-MFC-To: stable/9 only

11 years agoAdd the standard exit status to the ssh-copy-id man page.
Eitan Adler [Sun, 11 Nov 2012 15:34:58 +0000 (15:34 +0000)]
Add the standard exit status to the ssh-copy-id man page.

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

11 years agosh: Forward-declare struct alias instead of giving up type safety via void *
Jilles Tjoelker [Sun, 11 Nov 2012 15:13:24 +0000 (15:13 +0000)]
sh: Forward-declare struct alias instead of giving up type safety via void *

11 years agoAdd an explanatory comment to lib/libc/gen/isnan.c about the fix to make
Dimitry Andric [Sun, 11 Nov 2012 13:28:04 +0000 (13:28 +0000)]
Add an explanatory comment to lib/libc/gen/isnan.c about the fix to make
static linking with libc and libm work.

Requested by: jilles
MFC after: 1 week
X-MFC-With: 242879

11 years agoFix a typo.
Roman Divacky [Sun, 11 Nov 2012 10:45:21 +0000 (10:45 +0000)]
Fix a typo.

11 years agoChange the XNB_ASSERT from a statement expression to do-while(0) as its
Roman Divacky [Sun, 11 Nov 2012 10:42:34 +0000 (10:42 +0000)]
Change the XNB_ASSERT from a statement expression to do-while(0) as its
result is never used.

11 years agoAdd "pid" to the help menu (sort keys section).
Rui Paulo [Sun, 11 Nov 2012 08:22:58 +0000 (08:22 +0000)]
Add "pid" to the help menu (sort keys section).

11 years agoAdd the PID column to the list of sort keys.
Rui Paulo [Sun, 11 Nov 2012 08:16:33 +0000 (08:16 +0000)]
Add the PID column to the list of sort keys.

11 years agoDon't call av_set_tim() if it's NULL.
Adrian Chadd [Sun, 11 Nov 2012 00:34:10 +0000 (00:34 +0000)]
Don't call av_set_tim() if it's NULL.

This happens during a scan in STA mode; any queued data frames will
be power save queued but as there's no TIM in STA mode, it panics.

This was introduced by me when I disabled my driver-aware power save
handling support.

11 years agoCorrect some rather weird and broken behaviour observed when doing
Adrian Chadd [Sat, 10 Nov 2012 22:37:06 +0000 (22:37 +0000)]
Correct some rather weird and broken behaviour observed when doing
actual traffic with an AR9380/AR9382/AR9485.

The sample rate control stats would show impossibly large numbers for
"successful packets transmitted."  The number was a tad under 2^^64-1.
So after a bit of digging, I found that the sample rate control code
was making 'tries' turn into a negative number.. and this was because
ts_longretry was too small.

The hardware returns "ts_longretry" at the current rate selection,
not overall for that TX descriptor.  So if you setup four TX rate
scenarios and the second one works, ts_longretry is only set for
the number of attempts at that second rate scenario.  The FreeBSD HAL
code does the correction in ath_hal_proctxdesc() - however, this isn't
possible with EDMA.

EDMA TX completion is done separate from the original TX descriptor.
So the real solution is to split out "find ts_rate and ts_longretry"
from "complete TX descriptor".  Until that's done, put a hack in
the EDMA TX path that uses the rate scenario information in the ath_buf.

Tested: AR9380, AR9382, AR9485 STA mode

11 years agoOnly define isnan, isnanf, __isnan and __isnanf in libc.so, not in
Dimitry Andric [Sat, 10 Nov 2012 21:22:10 +0000 (21:22 +0000)]
Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in
libc.a and libc_p.a.  In addition, define isnan in libm.a and libm_p.a,
but not in libm.so.

This makes it possible to statically link executables using both isnan
and isnanf with libc and libm.

Tested by: kargl
MFC after: 1 week

11 years ago- Protect mnt_data and mnt_flags under the mount interlock
Attilio Rao [Sat, 10 Nov 2012 19:32:16 +0000 (19:32 +0000)]
- Protect mnt_data and mnt_flags under the mount interlock
- Move mp->mnt_stat manipulation where all of them happens

Reported by: davide
Discussed with: kib
Tested by: flo
MFC after: 2 months
X-MFC: 241519, 242536,242616, 242727

11 years agoWork around pc98 tinderbox failures in sys/boot/pc98, by making sure a
Dimitry Andric [Sat, 10 Nov 2012 16:08:21 +0000 (16:08 +0000)]
Work around pc98 tinderbox failures in sys/boot/pc98, by making sure a
cross gcc gets built during the cross-tools stage.

MFC after: 1 week
X-MFC-With: 242706

11 years agoFix all the inconsistent nve_os* function declarations and definitions
Dimitry Andric [Sat, 10 Nov 2012 16:02:12 +0000 (16:02 +0000)]
Fix all the inconsistent nve_os* function declarations and definitions
in nve(4).  The OS_API structure defined in os.h expects NV_API_CALL
attributes, effectively regparm(0), on its function pointers, but all
the functions were declared and defined without this attribute.

MFC after: 1 week

11 years agos/ATH_DEBUG/ATH_DEBUG_ALQ
Kevin Lo [Sat, 10 Nov 2012 15:21:39 +0000 (15:21 +0000)]
s/ATH_DEBUG/ATH_DEBUG_ALQ

11 years agoUse ANSI prototype to fix build with clang.
Yoshihiro Takahashi [Sat, 10 Nov 2012 14:58:06 +0000 (14:58 +0000)]
Use ANSI prototype to fix build with clang.

MFC after: 1 week

11 years agoMFi386: r232263
Yoshihiro Takahashi [Sat, 10 Nov 2012 14:56:35 +0000 (14:56 +0000)]
MFi386: r232263

  Fix build mpboot.s with clang.

11 years agoReduce diffs against i386.
Yoshihiro Takahashi [Sat, 10 Nov 2012 13:48:41 +0000 (13:48 +0000)]
Reduce diffs against i386.

11 years agoFix some KASSERTs.
Yoshihiro Takahashi [Sat, 10 Nov 2012 13:41:25 +0000 (13:41 +0000)]
Fix some KASSERTs.
They are missing changes from r208833, r227394 and r227442.