]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoPerform IPv6 DAD only in ifn_start.
hrs [Sun, 29 Jan 2012 08:33:34 +0000 (08:33 +0000)]
Perform IPv6 DAD only in ifn_start.

12 years agoalways exclude data bufs regardless of debug settings
kmacy [Sun, 29 Jan 2012 00:19:19 +0000 (00:19 +0000)]
always exclude data bufs regardless of debug settings

12 years agoupdate .Dd
kmacy [Sat, 28 Jan 2012 23:30:39 +0000 (23:30 +0000)]
update .Dd

12 years agoAs it turns out r227960 may still be insufficient with PREEMPTION
marius [Sat, 28 Jan 2012 22:42:33 +0000 (22:42 +0000)]
As it turns out r227960 may still be insufficient with PREEMPTION
so try harder to get the CDMA sync interrupt delivered and also in
a more efficient way:
- wrap the whole process of sending and receiving the CDMA sync
  interrupt in a critical section so we don't get preempted,
- send the CDMA sync interrupt to the CPU that is actually waiting
  for it to happen so we don't take a detour via another CPU,
- instead of waiting for up to 15 seconds for the interrupt to
  trigger try the whole process for up to 15 times using a one
  second timeout (the code was also changed to just ignore belated
  interrupts of a previous tries should they appear).

According to testing done by Peter Jeremy with the debugging also
added as part of this commit the first two changes apparently are
sufficient to now properly get the CDMA sync interrupts delivered
at the first try though.

12 years agoOops, commit a missing implementation change.
adrian [Sat, 28 Jan 2012 22:24:59 +0000 (22:24 +0000)]
Oops, commit a missing implementation change.

Whilst I'm here, add a comment about what would happen in this function
if hypothetically you had a radar pattern matching detector written.

12 years agoFully disable interrupts while we fiddle with the FP context in the
marius [Sat, 28 Jan 2012 22:22:05 +0000 (22:22 +0000)]
Fully disable interrupts while we fiddle with the FP context in the
VIS-based block copy/zero implementations. While with 4BSD it's
sufficient to just disable the tick interrupts, with ULE+PREEMPTION
it's otherwise also possible that these are preempted via IPIs.

12 years agoChange the prototype so the radar enable can fail.
adrian [Sat, 28 Jan 2012 21:44:42 +0000 (21:44 +0000)]
Change the prototype so the radar enable can fail.

12 years agoTwo changes from my DFS work:
adrian [Sat, 28 Jan 2012 21:37:33 +0000 (21:37 +0000)]
Two changes from my DFS work:

* Grab the net80211com lock when calling ieee80211_dfs_notify_radar().
* Use the tsf extend function to turn the 64 bit base TSF into a per-
  frame 64 bit TSF.  This will improve radiotap logging (which will
  now have a (more) correct per-frame TSF, rather then the single TSF64
  value read at the beginning of ath_rx_proc().

12 years agomsdos was renamed to msdosfs in 2001 by r77577.
scf [Sat, 28 Jan 2012 21:21:05 +0000 (21:21 +0000)]
msdos was renamed to msdosfs in 2001 by r77577.

MFC after: 5 days

12 years agoSince April 2, 2006, Indiana has observed DST.
scf [Sat, 28 Jan 2012 21:06:45 +0000 (21:06 +0000)]
Since April 2, 2006, Indiana has observed DST.

MFC after: 5 days

12 years agoMake tip exit if the device disappears, for instance when unplugging
phk [Sat, 28 Jan 2012 20:45:47 +0000 (20:45 +0000)]
Make tip exit if the device disappears, for instance when unplugging
or resetting USB serial devices.

Somebody[tm] should rewrite tip(1) to use two thread instead of two
processes or maybe even use that new-fangled "select(2)" or positively
futuristic "poll(2)" system call.

12 years agoFix decoding of escape sequences in format strings:
tijl [Sat, 28 Jan 2012 18:49:04 +0000 (18:49 +0000)]
Fix decoding of escape sequences in format strings:
- Zero-terminate the resulting string by letting the for-loop copy the
  terminating zero.
- Exit the for-loop after handling a backslash at the end of the format
  string to fix a buffer overrun.
- Remove some unnecessary comments and blank lines. [1]

Requested by: bde [1]
PR: bin/144722
Approved by: kib (mentor)

12 years agoMove descriptions of file caching commands out of the file locking section.
tijl [Sat, 28 Jan 2012 18:35:10 +0000 (18:35 +0000)]
Move descriptions of file caching commands out of the file locking section.

Approved by: kib (mentor)

12 years agoadd tunable for developers working on areas outside of ZFS
kmacy [Sat, 28 Jan 2012 17:41:42 +0000 (17:41 +0000)]
add tunable for developers working on areas outside of ZFS
to further reduce core size by excluding ARC metadata buffers
from core dumps

12 years agoalphabetically sort optional flags and add documentation for VM_ALLOC_NODUMP
kmacy [Sat, 28 Jan 2012 17:27:58 +0000 (17:27 +0000)]
alphabetically sort optional flags and add documentation for VM_ALLOC_NODUMP

12 years agodocument M_NODUMP flag
kmacy [Sat, 28 Jan 2012 17:21:12 +0000 (17:21 +0000)]
document M_NODUMP flag

12 years agoo Preserve argv[0] to use it later in usage().
maxim [Sat, 28 Jan 2012 15:29:43 +0000 (15:29 +0000)]
o Preserve argv[0] to use it later in usage().

PR: bin/164570
Submitted by: Klaus Aehlig
MFC after: 1 week

12 years agoAvoid to check the same cache line/variable from all the locking
attilio [Sat, 28 Jan 2012 14:00:21 +0000 (14:00 +0000)]
Avoid to check the same cache line/variable from all the locking
primitives by breaking stop_scheduler into a per-thread variable.
Also, store the new td_stopsched very close to td_*locks members as
they will be accessed mostly in the same codepaths as td_stopsched and
this results in avoiding a further cache-line pollution, possibly.

STOP_SCHEDULER() was pondered to use a new 'thread' argument, in order to
take advantage of already cached curthread, but in the end there should
not really be a performance benefit, while introducing a KPI breakage.

In collabouration with: flo
Reviewed by: avg
MFC after: 3 months (or never)
X-MFC: r228424

12 years agoRemove trailing whitespace.
jh [Sat, 28 Jan 2012 13:41:34 +0000 (13:41 +0000)]
Remove trailing whitespace.

12 years agoFix HBR enabling condition. cchs is from 0 to 7, not from 1 to 8.
mav [Sat, 28 Jan 2012 09:24:57 +0000 (09:24 +0000)]
Fix HBR enabling condition. cchs is from 0 to 7, not from 1 to 8.

12 years agoRemove the notify match from a couple devd apple events, the events don't
jhibbits [Sat, 28 Jan 2012 02:52:22 +0000 (02:52 +0000)]
Remove the notify match from a couple devd apple events, the events don't
include notify tags.

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

12 years agopmc_*_initialize may return NULL if the CPU is not supported, so check
emaste [Sat, 28 Jan 2012 01:38:48 +0000 (01:38 +0000)]
pmc_*_initialize may return NULL if the CPU is not supported, so check
that md is not null before dereferencing it.

PR: kern/156540

12 years agoSet SVN text/plain property for some shell scripts that
pfg [Sat, 28 Jan 2012 00:17:17 +0000 (00:17 +0000)]
Set SVN text/plain property for some shell scripts that
happen to have a .exe extension.

While here fix the shebang of a shell script that
was looking for /bin/bash.

Reviewed by: gnn
Approved by: jhb (mentor)
MFC after: 2 weeks

12 years agoCommit file missed in r230633.
marius [Fri, 27 Jan 2012 23:25:24 +0000 (23:25 +0000)]
Commit file missed in r230633.

12 years agoNow that we have a working OF_printf() since r230631 and a OF_panic()
marius [Fri, 27 Jan 2012 23:21:54 +0000 (23:21 +0000)]
Now that we have a working OF_printf() since r230631 and a OF_panic()
helper since r230632, use these for output and panicing during the
early cycles and move cninit() until after the static per-CPU data
has been set up. This solves a couple of issue regarding the non-
availability of the static per-CPU data:
- panic() not working and only making things worse when called,
- having to supply a special DELAY() implementation to the low-level
  console drivers,
- curthread accesses of mutex(9) usage in low-level console drivers
  that aren't conditional due to compiler optimizations (basically,
  this is the problem described in r227537 but in this case for
  keyboards attached via uart(4)). [1]

PR: 164123 [1]

12 years ago- Now that we have a working OF_printf() since r230631, use it for
marius [Fri, 27 Jan 2012 22:35:53 +0000 (22:35 +0000)]
- Now that we have a working OF_printf() since r230631, use it for
  implementing a simple OF_panic() that may be used during the early
  cycles when panic() isn't available, yet.
- Mark cpu_{exit,shutdown}() as __dead2 as appropriate.

12 years agoImplement OF_printf() using kvprintf() directly, avoiding to use a
marius [Fri, 27 Jan 2012 22:29:29 +0000 (22:29 +0000)]
Implement OF_printf() using kvprintf() directly, avoiding to use a
buffer and allowing to handle newlines properly

12 years agoFor machines where the kernel address space is unrestricted increase
marius [Fri, 27 Jan 2012 22:25:46 +0000 (22:25 +0000)]
For machines where the kernel address space is unrestricted increase
VM_KMEM_SIZE_SCALE to 2, awaiting more insight from alc@. As it turns
out, the VM apparently has problems with machines that have large holes
in the physical address space, causing the kmem_suballoc() call in
kmeminit() to fail with a VM_KMEM_SIZE_SCALE of 1. Using a value of 2
allows these, namely Blade 1500 with 2GB of RAM, to boot.

PR: 164227

12 years agoadd KM_NODEBUG needed by ARC buffer core dump exclusion change
kmacy [Fri, 27 Jan 2012 22:24:03 +0000 (22:24 +0000)]
add KM_NODEBUG needed by ARC buffer core dump exclusion change

12 years agoMark cpu_{halt,reset}() as __dead2 as appropriate.
marius [Fri, 27 Jan 2012 22:04:43 +0000 (22:04 +0000)]
Mark cpu_{halt,reset}() as __dead2 as appropriate.

12 years agoUsing ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEW
marius [Fri, 27 Jan 2012 21:52:59 +0000 (21:52 +0000)]
Using ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEW
and CMD controllers for reasons unknown so disable it.

PR: 164226

12 years agoSome laptops have weak power controllers that cannot tolerate multiple
imp [Fri, 27 Jan 2012 21:49:02 +0000 (21:49 +0000)]
Some laptops have weak power controllers that cannot tolerate multiple
cards powering up at once.  Work around the easy case (multiple cards
inserted on boot) with a short sleep and a long comment.  This
improves reliability on those laptops with power hungry cards.

12 years agoexclude kmem_alloc'ed ARC data buffers from kernel minidumps on amd64
kmacy [Fri, 27 Jan 2012 20:18:31 +0000 (20:18 +0000)]
exclude kmem_alloc'ed ARC data buffers from kernel minidumps on amd64
excluding other allocations including UMA now entails the addition of
a single flag to kmem_alloc or uma zone create

Reviewed by: alc, avg
MFC after: 2 weeks

12 years agoWhen the buildkernel stage 2.3 (build tools) runs, the PATH is still set
dim [Fri, 27 Jan 2012 18:29:03 +0000 (18:29 +0000)]
When the buildkernel stage 2.3 (build tools) runs, the PATH is still set
to the default from the top-level Makefile.  Therefore, invocations of
lex and yacc (used during building of aicasm) will use the executables
in /usr/bin, not those optionally built during the previous buildworld
or kernel-toolchain.  This makes kernel builds from older FreeBSD
releases more difficult than necessary.

Fix this by setting PATH to ${BPATH}:${PATH} in stage 2.3, so the
bootstrap tools directories are searched before the regular ones.

Silence from: svn-src-{all,head}
MFC after: 1 week

12 years agoOn state changes from RUN to anything else the AGGR sessions are
bschmidt [Fri, 27 Jan 2012 17:39:02 +0000 (17:39 +0000)]
On state changes from RUN to anything else the AGGR sessions are
cleared/dropped leading to qid2tap[n] being NULL as there no longer
is a tap. Now, if there have been lots of frames queued the firmware
processes and returns those after the tap is gone.

Tested by: osa
MFC after: 1 week

12 years agoo in6_ifinfo() does not do any kvm(3) operations, so
maxim [Fri, 27 Jan 2012 17:16:44 +0000 (17:16 +0000)]
o in6_ifinfo() does not do any kvm(3) operations, so
do not guard it by WITH_KVM ifdef.  This allows to build
ifmcstat(8) without kvm(3) support.

PR: bin/164353
Submitted by: Ivan Rozhuk
MFC after: 2 weeks

12 years agoa variable was erroneously declared as 32 bit instead of 64.
luigi [Fri, 27 Jan 2012 13:26:25 +0000 (13:26 +0000)]
a variable was erroneously declared as 32 bit instead of 64.

MFC after: 3 days

12 years agoRemove a left-over reference to make.conf(5) which was used as a place to
pluknet [Fri, 27 Jan 2012 13:26:19 +0000 (13:26 +0000)]
Remove a left-over reference to make.conf(5) which was used as a place to
store the VM_STACK compile option to enable MAP_STACK support in its
earliest stage of development.

Found by: mux

12 years agoRewrite option parsing in mdconfig(8). This makes it more user-friendly
trasz [Fri, 27 Jan 2012 11:48:44 +0000 (11:48 +0000)]
Rewrite option parsing in mdconfig(8).  This makes it more user-friendly
by removing the ordering requirements and adding more descriptive error
messages; it also makes it more readable and maintainable.

Sponsored by: The FreeBSD Foundation

12 years agoReturn proper error message if recording device is not specified.
mav [Fri, 27 Jan 2012 09:15:55 +0000 (09:15 +0000)]
Return proper error message if recording device is not specified.

MFC after: 1 week

12 years agoFix size check, that prevents getting negative after casting
glebius [Fri, 27 Jan 2012 08:58:58 +0000 (08:58 +0000)]
Fix size check, that prevents getting negative after casting
to a signed type

Reviewed by: bde

12 years agoDo not mention SIOCSIFADDR.
glebius [Fri, 27 Jan 2012 08:46:32 +0000 (08:46 +0000)]
Do not mention SIOCSIFADDR.

12 years agoA problem with respect to data read through the buffer cache for both
rmacklem [Fri, 27 Jan 2012 02:46:12 +0000 (02:46 +0000)]
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

Reported by: pjd
Reviewed by: kib
MFC after: 2 weeks

12 years agoMinor cleanups to the csa snd driver.
pfg [Thu, 26 Jan 2012 21:43:11 +0000 (21:43 +0000)]
Minor cleanups to the csa snd driver.

Remove unneeded temporary variable (data) to better match the OSS code.
Remove some unused constants and type definitions.

Tested by: joel
Approved by: jhb (mentor)
MFC after: 3 weeks

12 years agoConsensus between bde and pjd seemed to be that if the function names
ghelmer [Thu, 26 Jan 2012 20:40:22 +0000 (20:40 +0000)]
Consensus between bde and pjd seemed to be that if the function names
are lined up, then any * after a long type should appear after the
type instead of being in front of the function name on the following
line.

12 years agoMake the comments consistent (capitalization, punctuation, and
ghelmer [Thu, 26 Jan 2012 20:35:01 +0000 (20:35 +0000)]
Make the comments consistent (capitalization, punctuation, and
format).

Requested by bde

12 years agoRestore the parenthesis that are necessary around the constant values.
ghelmer [Thu, 26 Jan 2012 20:33:08 +0000 (20:33 +0000)]
Restore the parenthesis that are necessary around the constant values.

Requested by bde.

12 years agoA flowtable entry can continue referencing an llentry indefinitely if the entry is...
kmacy [Thu, 26 Jan 2012 20:02:40 +0000 (20:02 +0000)]
A flowtable entry can continue referencing an llentry indefinitely if the entry is repeatedly
referenced within its timeout window. This change clears the LLE_VALID flag when an llentry
is removed from an interface's hash table and adds an extra check to the flowtable code
for the LLE_VALID flag in llentry to avoid retaining and using a stale reference.

Reviewed by: qingli@
MFC after: 2 weeks

12 years ago- Rewrite paragraphs about preemption.
glebius [Thu, 26 Jan 2012 19:11:08 +0000 (19:11 +0000)]
- Rewrite paragraphs about preemption.
- Avoid word combination "carp interface".

Prodded by: az

12 years agoRemove the blank line between the license and .Dd
ken [Thu, 26 Jan 2012 18:18:47 +0000 (18:18 +0000)]
Remove the blank line between the license and .Dd

Prompted by: brueffer
MFC after: 1 week

12 years agoBring in the LSI-supported version of the mps(4) driver.
ken [Thu, 26 Jan 2012 18:17:21 +0000 (18:17 +0000)]
Bring in the LSI-supported version of the mps(4) driver.

This involves significant changes to the mps(4) driver, but is not a
complete rewrite.

Some of the changes in this version of the driver:
 - Integrated RAID (IR) support.
 - Support for WarpDrive controllers.
 - Support for SCSI protection information (EEDP).
 - Support for TLR (Transport Level Retries), needed for tape drives.
 - Improved error recovery code.
 - ioctl interface compatible with LSI utilities.

mps.4: Update the mps(4) driver man page somewhat for the driver
changes.  The list of supported hardware still needs to be
updated to reflect the full list of supported cards.

conf/files: Add the new driver files.

mps/mpi/*: Updated version of the MPI header files, with a BSD style
copyright.

mps/*: See above for a description of the new driver features.

modules/mps/Makefile:
Add the new mps(4) driver files.

Submitted by: Kashyap Desai <Kashyap.Desai@lsi.com>
Reviewed by: ken
MFC after: 1 week

12 years agoMore mdconfig(8) tests.
trasz [Thu, 26 Jan 2012 18:16:16 +0000 (18:16 +0000)]
More mdconfig(8) tests.

12 years agoAdd CAM infrastructure to allow reporting when a drive's long read capacity
ken [Thu, 26 Jan 2012 18:09:28 +0000 (18:09 +0000)]
Add CAM infrastructure to allow reporting when a drive's long read capacity
data changes.

cam_ccb.h: Add a new advanced information type, CDAI_TYPE_RCAPLONG,
for long read capacity data.

cam_xpt_internal.h:
Add a read capacity data pointer and length to struct cam_ed.

cam_xpt.c: Free the read capacity buffer when a device goes away.
While we're here, make sure we don't leak memory for other
malloced fields in struct cam_ed.

scsi_all.c: Update the scsi_read_capacity_16() to take a uint8_t * and
a length instead of just a pointer to the parameter data
structure.  This will hopefully make this function somewhat
immune to future changes in the parameter data.

scsi_all.h: Add some extra bit definitions to struct
scsi_read_capacity_data_long, and bump up the structure
size to the full size specified by SBC-3.

Change the prototype for scsi_read_capacity_16().

scsi_da.c: Register changes in read capacity data with the transport
layer.  This allows the transport layer to send out an
async notification to interested parties.  Update the
dasetgeom() API.

Use scsi_extract_sense_len() instead of
scsi_extract_sense().

scsi_xpt.c: Add support for the new CDAI_TYPE_RCAPLONG advanced
information type.

Make sure we set the physpath pointer to NULL after freeing
it.  This allows blindly freeing it in the struct cam_ed
destructor.

sys/param.h: Bump __FreeBSD_version from 1000005 to 1000006 to make it
easier for third party drivers to determine that the read
capacity data async notification is available.

camcontrol.c,
mptutil/mpt_cam.c:
Update these for the new scsi_read_capacity_16() argument
structure.

Sponsored by: Spectra Logic

12 years agoStart sentences on a new line, and fix a few other nits.
ken [Thu, 26 Jan 2012 17:28:33 +0000 (17:28 +0000)]
Start sentences on a new line, and fix a few other nits.

Prompted by: gjb
MFC after: 1 week

12 years agoUpdate PCI IDs for ciss controllers that are supported by this driver.
sbruno [Thu, 26 Jan 2012 17:04:17 +0000 (17:04 +0000)]
Update PCI IDs for ciss controllers that are supported by this driver.

Submitted by: scott.benesh@hp.com
Obtained from: Yahoo! Inc and HP
MFC after: 1 week

12 years agoXen netback driver rewrite.
ken [Thu, 26 Jan 2012 16:35:09 +0000 (16:35 +0000)]
Xen netback driver rewrite.

share/man/man4/Makefile,
share/man/man4/xnb.4,
sys/dev/xen/netback/netback.c,
sys/dev/xen/netback/netback_unit_tests.c:

Rewrote the netback driver for xen to attach properly via newbus
and work properly in both HVM and PVM mode (only HVM is tested).
Works with the in-tree FreeBSD netfront driver or the Windows
netfront driver from SuSE.  Has not been extensively tested with
a Linux netfront driver.  Does not implement LRO, TSO, or
polling.  Includes unit tests that may be run through sysctl
after compiling with XNB_DEBUG defined.

sys/dev/xen/blkback/blkback.c,
sys/xen/interface/io/netif.h:

Comment elaboration.

sys/kern/uipc_mbuf.c:

Fix page fault in kernel mode when calling m_print() on a
null mbuf.  Since m_print() is only used for debugging, there
are no performance concerns for extra error checking code.

sys/kern/subr_scanf.c:

Add the "hh" and "ll" width specifiers from C99 to scanf().
A few callers were already using "ll" even though scanf()
was handling it as "l".

Submitted by: Alan Somers <alans@spectralogic.com>
Submitted by: John Suykerbuyk <johns@spectralogic.com>
Sponsored by: Spectra Logic
MFC after: 1 week
Reviewed by: ken

12 years agoPress some more info into the PCM device name:
mav [Thu, 26 Jan 2012 12:09:04 +0000 (12:09 +0000)]
Press some more info into the PCM device name:
 - add "+HP" in case of headphones redirection;
 - add device type for analog devices, if all pins have the same.

As result now it may look like "Analog 5.1+HP/2.0" or "Front Analog Mic".
I hope it will be more useful than long and confusing.

MFC after: 2 months
Sponsored by: iXsystems, Inc.

12 years agoRemove casts from inet6 address testing macros, thus preserving
glebius [Thu, 26 Jan 2012 12:04:19 +0000 (12:04 +0000)]
Remove casts from inet6 address testing macros, thus preserving
qualifier from original argument.

Obtained from: NetBSD, r. 1.67
Submitted by: maxim

12 years agoAlthough aio_nbytes is size_t, later is is signed to
glebius [Thu, 26 Jan 2012 11:59:48 +0000 (11:59 +0000)]
Although aio_nbytes is size_t, later is is signed to
casted types: to ssize_t in filesystem code and to
int in buf code, thus supplying a negative argument
leads to kernel panic later. To fix that check user
supplied argument in the beginning of syscall.

Submitted by: Maxim Dounin <mdounin mdounin.ru>, maxim@

12 years agoList supported ioctl commands instead of old one.
glebius [Thu, 26 Jan 2012 11:08:55 +0000 (11:08 +0000)]
List supported ioctl commands instead of old one.

12 years agoDon't mention no longer supported ioctl commands.
glebius [Thu, 26 Jan 2012 10:53:39 +0000 (10:53 +0000)]
Don't mention no longer supported ioctl commands.

12 years agoRemove a block that contatined some outdated misinformation
glebius [Thu, 26 Jan 2012 10:51:41 +0000 (10:51 +0000)]
Remove a block that contatined some outdated misinformation
on how addresses are configured, as well as obviousness that
Ethernet interface may run arp(4).

12 years agoRemove a commented out old block inherited from inet.4. The
glebius [Thu, 26 Jan 2012 10:48:17 +0000 (10:48 +0000)]
Remove a commented out old block inherited from inet.4. The
text there was so much outdated that it required a complete
rewrite even for inet.4, not mentioning inet6.4. There is
no reason to keep it in the manual page.

12 years ago- Remove no longer supported ioctl cmds.
glebius [Thu, 26 Jan 2012 10:43:40 +0000 (10:43 +0000)]
- Remove no longer supported ioctl cmds.
- Fix name of SIOCSIFADDR.

12 years agoUpdate information on setting and retreiving inet4 addresses.
glebius [Thu, 26 Jan 2012 10:42:25 +0000 (10:42 +0000)]
Update information on setting and retreiving inet4 addresses.

12 years agoFix typo in r230571.
mav [Thu, 26 Jan 2012 10:30:50 +0000 (10:30 +0000)]
Fix typo in r230571.

Submitted by: trasz

12 years agoixgbe changes:
luigi [Thu, 26 Jan 2012 09:55:16 +0000 (09:55 +0000)]
ixgbe changes:
- remove experimental code for disabling CRC
- use the correct constant for conversion between interrupt rate
  and EITR values (the previous values were off by a factor of 2)
- make dev.ix.N.queueM.interrupt_rate a RW sysctl variable.
  Changing individual values affects the queue immediately,
  and propagates to all interfaces at the next reinit.
- add dev.ix.N.queueM.irqs rdonly sysctl, to export the actual
  interrupt counts

Netmap-related changes for ixgbe:
- use the "new" format for TX descriptors in netmap mode.
- pass interrupt mitigation delays to the user process doing poll()
  on a netmap file descriptor.
  On the RX side this means we will not check the ring more than once
  per interrupt. This gives the process a chance to sleep and process
  packets in larger batches, thus reducing CPU usage.
  On the TX side we take this even further: completed transmissions are
  reclaimed every half ring even if the NIC interrupts more often.
  This saves even more CPU without any additional tx delays.

Generic Netmap-related changes:
- align the netmap_kring to cache lines so that there is no false sharing
  (possibly useful for multiqueue NICs and MSIX interrupts, which are
  handled by different cores). It's a minor improvement but it does not
  cost anything.

Reviewed by: Jack Vogel
Approved by: Jack Vogel

12 years agoAdd another bunch of CODEC IDs.
mav [Thu, 26 Jan 2012 09:45:14 +0000 (09:45 +0000)]
Add another bunch of CODEC IDs.

12 years agoAdd some node debugging which has helped me track down which particular
adrian [Thu, 26 Jan 2012 07:03:30 +0000 (07:03 +0000)]
Add some node debugging which has helped me track down which particular
concurrent vap->iv_bss free issues have been occuring.

12 years agoInclude opt_wlan.h before net80211 includes; so IEEE80211_* configuration
adrian [Thu, 26 Jan 2012 05:11:37 +0000 (05:11 +0000)]
Include opt_wlan.h before net80211 includes; so IEEE80211_* configuration
flags are correctly handled.

This is required for this to load when IEEE80211_DEBUG_REFCNT is
defined.

12 years agoRevert r230516, since it doesn't really fix the problem.
rmacklem [Thu, 26 Jan 2012 00:07:34 +0000 (00:07 +0000)]
Revert r230516, since it doesn't really fix the problem.

12 years agoUpdate sbp_targ such that it can actually handle multiple CTIO's during operation
sbruno [Wed, 25 Jan 2012 23:33:50 +0000 (23:33 +0000)]
Update sbp_targ such that it can actually handle multiple CTIO's during operation

PR: kern/119575

12 years agoDon't print a warning when using netstat to print
tuexen [Wed, 25 Jan 2012 21:49:48 +0000 (21:49 +0000)]
Don't print a warning when using netstat to print
SCTP statistics when there is not SCTP in the kernel.
This problem was reported by Sean Mahood.

MFC after: 1 week.

12 years agoOops, fix the loader tunable name added in r230551.
mav [Wed, 25 Jan 2012 20:54:16 +0000 (20:54 +0000)]
Oops, fix the loader tunable name added in r230551.

12 years agoWhen doing vflush(WRITECLOSE), clean vnode pages.
kib [Wed, 25 Jan 2012 20:54:09 +0000 (20:54 +0000)]
When doing vflush(WRITECLOSE), clean vnode pages.

Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is
still a race allowing a process to dirty pages after msync
finished. Remounts rw->ro just left dirty pages in system.

Reviewed by: alc, tegge (long time ago)
Tested by: pho
MFC after: 2 weeks

12 years agoFix remaining calls to cache_enter() in both NFS clients to provide
kib [Wed, 25 Jan 2012 20:48:20 +0000 (20:48 +0000)]
Fix remaining calls to cache_enter() in both NFS clients to provide
appropriate timestamps.  Restore the assertions which verify that
NCF_TS is set when timestamp is asked for.

Reviewed by:  jhb (previous version)
MFC after:    2 weeks

12 years agoRewrite jack presence detection and implement automatic recording source
mav [Wed, 25 Jan 2012 20:46:10 +0000 (20:46 +0000)]
Rewrite jack presence detection and implement automatic recording source
selection in snd_hda(4) driver.

Now driver tracks jack presence detection status for every CODEC pin. For
playback associations, when configured, that information, same as before,
can be used to automatically redirect audio to headphones. Also same as
before, these events are used to track digital display connection status
and fetch ELD. Now in addition to that driver uses that information to
automatically switch recording source of the mixer to the connected input.

When there are devices with no jack detection and with one both connected,
last ones will have the precedence. As result, on most laptops after boot
internal microphone should be automatically selected. But if external one
(for example, headset) connected, it will be selected automatically.
When external mic disconnected, internal one will be selected again.

Automatic recording source selection is enabled by default now to make
recording work out of the box without touching mixer. But it can be
disabled or limited only to attach time using hint.pcm.X.rec.autosrc loader
tunables or dev.pcm.X.rec.autosrc sysctls.

MFC after: 2 months
Sponsored by: iXsystems, Inc.

12 years agoFix CTL flags in the declarations of KERN_PROC_ENV, AUXV and
trociny [Wed, 25 Jan 2012 20:15:58 +0000 (20:15 +0000)]
Fix CTL flags in the declarations of KERN_PROC_ENV, AUXV and
PS_STRINGS sysctls: they are read only.

MFC after: 1 week

12 years agoAdd -P option to allow get and set limits for other processes.
trociny [Wed, 25 Jan 2012 20:14:41 +0000 (20:14 +0000)]
Add -P option to allow get and set limits for other processes.

Submitted by: Andrey Zonov <andrey at zonov.org>
MFC after: 2 weeks

12 years agoAfter the recent changes there is no need in rlimit array any more.
trociny [Wed, 25 Jan 2012 20:13:37 +0000 (20:13 +0000)]
After the recent changes there is no need in rlimit array any more.

Submitted by: Andrey Zonov <andrey at zonov.org>
MFC after: 1 week

12 years agoAdd a timeout on positive name cache entries in the NFS client. That is,
jhb [Wed, 25 Jan 2012 20:05:58 +0000 (20:05 +0000)]
Add a timeout on positive name cache entries in the NFS client.  That is,
we will only trust a positive name cache entry for a specified amount of
time before falling back to a LOOKUP RPC, even if the ctime for the file
handle matches the cached copy in the name cache entry.  The timeout is
configured via a new 'nametimeo' mount option and defaults to 60 seconds.
It may be set to zero to disable positive name caching entirely.

Reviewed by: rmacklem
MFC after: 1 week

12 years agoRemove extra sentence, a leftover from r202845.
stefanf [Wed, 25 Jan 2012 18:49:11 +0000 (18:49 +0000)]
Remove extra sentence, a leftover from r202845.

12 years agoClarify and improve the boot menu with some small changes:
pluknet [Wed, 25 Jan 2012 18:36:01 +0000 (18:36 +0000)]
Clarify and improve the boot menu with some small changes:
- Enter instead of ENTER
- Remove colons
- Line up option values
- Use dots to provide a line to visually connect the menu
  selections with their values
- Replace Enabled/Disabled with off/On
  (bigger inital cap for "On" is a visual indicator)
- Remove confusing "Boot" from selections that don't boot.
- With loader_color=1 in /boot/loader.conf, use reverse video to
  highlight enabled options

PR: misc/160818
Submitted by: Warren Block <wblock wonkity com>
Reviewed by: Devin Teske <devin dot teske fisglobal com>, current@
MFC after: 1 week

12 years agoFix a bug introduced in r230000. We were eliminating all LUNs on a target
ken [Wed, 25 Jan 2012 17:58:47 +0000 (17:58 +0000)]
Fix a bug introduced in r230000.  We were eliminating all LUNs on a target
in response to CAM_DEV_NOT_THERE, instead of just the LUN in question.

This will now just eliminate the specified LUN in response to
CAM_DEV_NOT_THERE.

Reported by: Richard Todd <rmtodd@servalan.servalan.com>
MFC after: 3 days

12 years agoRevert 229667: After some discussion of this change, it seems it is
ghelmer [Wed, 25 Jan 2012 14:50:12 +0000 (14:50 +0000)]
Revert 229667: After some discussion of this change, it seems it is
better to leave the pidfile open where it was. Add a note to the
man page describing pidfile strategies to use if the daemon is to
be run as a user other than root.

12 years agoOrder newly added functions alphabetically.
kib [Wed, 25 Jan 2012 12:43:27 +0000 (12:43 +0000)]
Order newly added functions alphabetically.

Requested by: bde
MFC after: 3 days

12 years agoAllow PASSTHROUGH (AC3) to have more then 2 channels.
mav [Wed, 25 Jan 2012 11:45:50 +0000 (11:45 +0000)]
Allow PASSTHROUGH (AC3) to have more then 2 channels.
8 channels can be used to get more then 6.144Mbps bandwidth.

12 years agoFix comment.
trasz [Wed, 25 Jan 2012 11:28:18 +0000 (11:28 +0000)]
Fix comment.

12 years agoMove mdconfig(8) tests under regression/sbin/, where they belong.
trasz [Wed, 25 Jan 2012 10:11:54 +0000 (10:11 +0000)]
Move mdconfig(8) tests under regression/sbin/, where they belong.

Submitted by: jh@

12 years agoFix word order in hdaa_subvendor_id() to match PCI (where it comes from),
mav [Wed, 25 Jan 2012 09:57:34 +0000 (09:57 +0000)]
Fix word order in hdaa_subvendor_id() to match PCI (where it comes from),
broken at r230130. This should fix applying system-specific patches.

12 years agoRemove unused variable.
pluknet [Wed, 25 Jan 2012 08:53:42 +0000 (08:53 +0000)]
Remove unused variable.

The actual ia6->ia6_lifetime access is hidden in
IFA6_IS_INVALID/IFA6_IS_DEPRECATED macros since a long time ago
(see netinet6/nd6.c, r1.104 of KAME for the reference).

MFC after: 3 days

12 years agoAdd prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
charnier [Wed, 25 Jan 2012 08:42:19 +0000 (08:42 +0000)]
Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.

12 years agoFix a SIGSEGV problem in directory entry renaming.
hrs [Wed, 25 Jan 2012 07:45:15 +0000 (07:45 +0000)]
Fix a SIGSEGV problem in directory entry renaming.

12 years agoMinor indenting divot...
imp [Wed, 25 Jan 2012 04:48:27 +0000 (04:48 +0000)]
Minor indenting divot...

12 years agoSome minor additions to the list of supported devices...
imp [Wed, 25 Jan 2012 04:45:29 +0000 (04:45 +0000)]
Some minor additions to the list of supported devices...

12 years agoExperimental support for booting CHRP-type PowerPC systems from hard disks.
nwhitehorn [Wed, 25 Jan 2012 03:37:39 +0000 (03:37 +0000)]
Experimental support for booting CHRP-type PowerPC systems from hard disks.

12 years agoClean up reinstall option and remove duplicate code
emaste [Wed, 25 Jan 2012 02:15:40 +0000 (02:15 +0000)]
Clean up reinstall option and remove duplicate code

- Move the reinstall logic to be before menus are initialised
  (menus are not needed when reinstalling a zonefile).

- Remove unnecessary re-initialization of path_db.

- Update variable name and error message because we now use the
  zone name relative to /usr/share/zoneinfo, not the full path.

pr: bin/164041
Submitted by: Devin Teske <dteske vicor com>
MFC after: 1 week

12 years agoIf a mount -u is done to either NFS client that switches it
rmacklem [Wed, 25 Jan 2012 00:22:53 +0000 (00:22 +0000)]
If a mount -u is done to either NFS client that switches it
from TCP to UDP and the rsize/wsize/readdirsize is greater
than NFS_MAXDGRAMDATA, it is possible for a thread doing an
I/O RPC to get stuck repeatedly doing retries. This happens
because the RPC will use a resize/wsize/readdirsize that won't
work for UDP and, as such, it will keep failing indefinitely.
This patch returns an error for this case, to avoid the problem.
A discussion on freebsd-fs@ seemed to indicate that returning
an error was preferable to silently ignoring the "udp"/"mntudp"
option.
This problem was discovered while investigating a problem reported
by pjd@ via email.

MFC after: 2 weeks

12 years ago- Fix documentation to note that /etc/hast.conf is the default configuration
pjd [Tue, 24 Jan 2012 23:43:13 +0000 (23:43 +0000)]
- Fix documentation to note that /etc/hast.conf is the default configuration
  file for hastd(8) and hastctl(8) and not hast.conf.
- In copyright statement correct that this file is documentation, not software.
- Bump date.

MFC after: 3 days

12 years agoMerge illumos revisions 13572, 13573, 13574:
mm [Tue, 24 Jan 2012 23:09:54 +0000 (23:09 +0000)]
Merge illumos revisions 13572, 13573, 13574:

Rev. 13572:
disk sync write perf regression when slog is used post oi_148 [1]

Rev. 13573:
crash during reguid causes stale config [2]
allow and unallow missing from zpool history since removal of pyzfs [5]

Rev. 13574:
leaking a vdev when removing an l2cache device [3]
memory leak when adding a file-based l2arc device [4]
leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6]

References:
https://www.illumos.org/issues/1909 [1]
https://www.illumos.org/issues/1949 [2]
https://www.illumos.org/issues/1951 [3]
https://www.illumos.org/issues/1952 [4]
https://www.illumos.org/issues/1953 [5]
https://www.illumos.org/issues/1954 [6]

Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954)
MFC after: 2 weeks