]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agofix a bug in the computation of the userspace offset for a give netmap buffer.
luigi [Mon, 15 Apr 2013 11:49:16 +0000 (11:49 +0000)]
fix a bug in the computation of the userspace offset for a give netmap buffer.

Submitted by: Hugh Nhan

11 years agoAlthough we perform path compression to reduce the height of the trie and
alc [Mon, 15 Apr 2013 06:12:00 +0000 (06:12 +0000)]
Although we perform path compression to reduce the height of the trie and
the number of interior nodes, we have previously created a level zero
interior node at the root of every non-empty trie, even when that node is
not strictly necessary, i.e., it has only one child.  This change is the
second (and final) step in eliminating those unnecessary level zero interior
nodes.  Specifically, it updates the deletion and insertion functions so
that they do not require a level zero interior node at the root of the trie.
For a "buildworld" workload, this change results in a 16.8% reduction in the
number of interior nodes allocated and a similar reduction in the average
execution time for lookup functions.  For example, the average execution
time for a call to vm_radix_lookup_ge() is reduced by 22.9%.

Reviewed by: attilio, jeff (an earlier version)
Sponsored by: EMC / Isilon Storage Division

11 years agoUse arc4random() instead of random().
delphij [Mon, 15 Apr 2013 05:39:21 +0000 (05:39 +0000)]
Use arc4random() instead of random().

MFC after: 2 weeks

11 years agoMFV r249496,249498. The most visible change is that we no longer shuts
delphij [Mon, 15 Apr 2013 05:31:59 +0000 (05:31 +0000)]
MFV r249496,249498.  The most visible change is that we no longer shuts
down the connection when stdin closes, by default.  This matches Hobbit's
original netcat and GNU netcat.

Old behavior can be restored with the new -N flag.

MFC after: 2 weeks

11 years agoFixing a typo.
hiren [Mon, 15 Apr 2013 03:02:55 +0000 (03:02 +0000)]
Fixing a typo.

Submitted by: Benedikt Steinbusch (benedikt.steinbusch@googlemail.com)
Approved by: sbruno (mentor)

11 years agoRun configtest before restarting so that the system is not
bdrewery [Sun, 14 Apr 2013 21:11:19 +0000 (21:11 +0000)]
Run configtest before restarting so that the system is not
left without a running sshd.

Approved by: des
MFC after: 1 week

11 years agoSimilarly to proc_getargv() and proc_getenvv(), export proc_getauxv()
trociny [Sun, 14 Apr 2013 20:03:48 +0000 (20:03 +0000)]
Similarly to proc_getargv() and proc_getenvv(), export proc_getauxv()
to be able to reuse the code.

MFC after: 3 weeks

11 years agoRe-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(),
trociny [Sun, 14 Apr 2013 20:01:36 +0000 (20:01 +0000)]
Re-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(),
and kern_proc_vmmap_out() functions to output process kinfo structures
to sbuf, to make the code reusable.

The functions are going to be used in the coredump routine to store
procstat info in the core program header notes.

Reviewed by: kib
MFC after: 3 weeks

11 years agoRe-factor coredump routines. For each type of notes an output
trociny [Sun, 14 Apr 2013 19:59:38 +0000 (19:59 +0000)]
Re-factor coredump routines.  For each type of notes an output
function is provided, which is used either to calculate the note size
or output it to sbuf.  On the first pass the notes are registered in a
list and the resulting size is found, on the second pass the list is
traversed outputing notes to sbuf.  For the sbuf a drain routine is
provided that writes data to a core file.

The main goal of the change is to make coredump to write notes
directly to the core file, without preliminary preparing them all in a
memory buffer.  Storing notes in memory is not a problem for the
current, rather small, set of notes we write to the core, but it may
becomes an issue when we start to store procstat notes.

Reviewed by: jhb (initial version), kib
Discussed with: jhb, kib
MFC after: 3 weeks

11 years agoPrint MB and GB instead of MiB and GiB mislabeled as MB and GB.
imp [Sun, 14 Apr 2013 19:21:43 +0000 (19:21 +0000)]
Print MB and GB instead of MiB and GiB mislabeled as MB and GB.
SD cards are sold in GB not GiB, this will result in less confusion.
Also, cache parent device pointer to save a few cycles for loops.

11 years agoInstall a symlink
kientzle [Sun, 14 Apr 2013 19:13:51 +0000 (19:13 +0000)]
Install a symlink
  /usr/lib/include ==> /usr/include

This fixes -print-file-name=include in clang (and is
arguably a better way to fix the same issue in GCC than
the change I made in r231336).

MFC after: 1 week

11 years agoRemove some more pieces of multilevel freeze mechanism, missed in r249466.
mav [Sun, 14 Apr 2013 18:09:08 +0000 (18:09 +0000)]
Remove some more pieces of multilevel freeze mechanism, missed in r249466.

11 years agoAdd fdallocn function and use it when passing fds over unix socket.
mjg [Sun, 14 Apr 2013 17:08:34 +0000 (17:08 +0000)]
Add fdallocn function and use it when passing fds over unix socket.

This gets rid of "unp_externalize fdalloc failed" panic.

Reviewed by: pjd
MFC after: 1 week

11 years agoBackport upstream r684 (OPENPAM_DEBUG enables debugging macros but does
des [Sun, 14 Apr 2013 16:49:27 +0000 (16:49 +0000)]
Backport upstream r684 (OPENPAM_DEBUG enables debugging macros but does
not turn debugging on by default) and add OPENPAM_DEBUG to CFLAGS.

11 years agoupdate information about debugging sysctl...
jmg [Sun, 14 Apr 2013 16:20:25 +0000 (16:20 +0000)]
update information about debugging sysctl...

MFC after: 1 week

11 years agoUsnure that PCI bus BIS_GET_DMA_TAG() method sees the actual PCI
kib [Sun, 14 Apr 2013 14:02:34 +0000 (14:02 +0000)]
Usnure that PCI bus BIS_GET_DMA_TAG() method sees the actual PCI
device which makes the request for dma tag, instead of some descendant
of the PCI device, by creating a pass-through trampoline for vga_pci
and ata_pci buses.

Sponsored by: The FreeBSD Foundation
Suggested by: jhb
Discussed with: jhb, mav
MFC after: 1 week

11 years agoSilence "received disconnect" in the common case.
des [Sun, 14 Apr 2013 13:06:07 +0000 (13:06 +0000)]
Silence "received disconnect" in the common case.

11 years agoAdd one more obsolete file.
antoine [Sun, 14 Apr 2013 12:20:13 +0000 (12:20 +0000)]
Add one more obsolete file.

11 years agolibc: Fix typo in French translation.
jilles [Sun, 14 Apr 2013 11:44:47 +0000 (11:44 +0000)]
libc: Fix typo in French translation.

PR: kern/177704
Submitted by: martymac
MFC after: 1 week

11 years agoRemove owner field from struct cam_ed, unused at least since FreeBSD 7.
mav [Sun, 14 Apr 2013 10:14:26 +0000 (10:14 +0000)]
Remove owner field from struct cam_ed, unused at least since FreeBSD 7.

11 years agoMFprojects/camlock r248982:
mav [Sun, 14 Apr 2013 09:55:48 +0000 (09:55 +0000)]
MFprojects/camlock r248982:
Stop abusing xpt_periph in random plases that really have no periph related
to CCB, for example, bus scanning.  NULL value is fine in such cases and it
is correctly logged in debug messages as "noperiph".  If at some point we
need some real XPT periphs (alike to pmpX now), quite likely they will be
per-bus, and not a single global instance as xpt_periph now.

11 years agoMFprojects/camlock r248890, r248897, r248898, r248900, r248903, r248905,
mav [Sun, 14 Apr 2013 09:28:14 +0000 (09:28 +0000)]
MFprojects/camlock r248890, r248897, r248898, r248900, r248903, r248905,
r248917, r248918, r248978, r249001, r249014, r249030:

Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

Suggested by: gibbs

11 years agoFix typo from previous commit.
joel [Sun, 14 Apr 2013 08:49:35 +0000 (08:49 +0000)]
Fix typo from previous commit.

Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>

11 years agoLSD first synthesised 16/11/38, not 7/4/43.
joel [Sun, 14 Apr 2013 08:47:01 +0000 (08:47 +0000)]
LSD first synthesised 16/11/38, not 7/4/43.

Submitted by: James J. Lippard
Obtained from: OpenBSD

11 years agoCorrect spelling is "Christiaan Huygens".
joel [Sun, 14 Apr 2013 08:40:24 +0000 (08:40 +0000)]
Correct spelling is "Christiaan Huygens".

Submitted by: James J. Lippard
Obtained from: OpenBSD

11 years agoFixing a clang warning indicating uninitialized variable usage.
hiren [Sun, 14 Apr 2013 02:42:40 +0000 (02:42 +0000)]
Fixing a clang warning indicating uninitialized variable usage.

PR: kern/177164
Approved by: sbruno (mentor)

11 years agoImprove/correct a comment. We now support a lot more cpu types.
hiren [Sun, 14 Apr 2013 02:26:12 +0000 (02:26 +0000)]
Improve/correct a comment. We now support a lot more cpu types.

PR: kern/177496
Approved by: sbruno (mentor)

11 years agoClean up.
des [Sun, 14 Apr 2013 00:59:56 +0000 (00:59 +0000)]
Clean up.

11 years agoInclude ldns's b{32,64}_{ntop,pton}().
des [Sat, 13 Apr 2013 22:45:41 +0000 (22:45 +0000)]
Include ldns's b{32,64}_{ntop,pton}().

11 years agoClean up the ntop / pton code. Part of a patch which has been submitted
des [Sat, 13 Apr 2013 22:44:48 +0000 (22:44 +0000)]
Clean up the ntop / pton code.  Part of a patch which has been submitted
upstream but not yet adopted.

11 years agoCreate sysctl node 'hw.vmm.vmx' and populate it with oids that expose the VMX
neel [Sat, 13 Apr 2013 21:41:51 +0000 (21:41 +0000)]
Create sysctl node 'hw.vmm.vmx' and populate it with oids that expose the VMX
hardware capabilities.

Obtained from: NetApp

11 years agoFix undefined behaviour in several gpio_pin_setflags() routines (under
dim [Sat, 13 Apr 2013 21:21:13 +0000 (21:21 +0000)]
Fix undefined behaviour in several gpio_pin_setflags() routines (under
sys/arm and sys/mips), squelching the clang 3.3 warnings about this.

Noticed by: tinderbox and many irate spectators
Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
PR: kern/177759
MFC after: 3 days

11 years agomove the error report to a lower log level... Now you can see when it
jmg [Sat, 13 Apr 2013 19:02:58 +0000 (19:02 +0000)]
move the error report to a lower log level...  Now you can see when it
returns an error without getting every single io that went through it..

MFC after: 1 week

11 years agoFix the name of the pcb member in the comments.
kib [Sat, 13 Apr 2013 15:20:33 +0000 (15:20 +0000)]
Fix the name of the pcb member in the comments.

Submitted by: Oliver Pinter <oliver.pntr@gmail.com>
MFC after: 3 days

11 years agoMFprojects/camlock r248894:
mav [Sat, 13 Apr 2013 14:03:44 +0000 (14:03 +0000)]
MFprojects/camlock r248894:
Use full freeze while PMP does hard reset. This is only cosmetical change.

11 years agoFix changes made in r249408.
jchandra [Sat, 13 Apr 2013 07:23:37 +0000 (07:23 +0000)]
Fix changes made in r249408.

In some cases, kern_envp is set by the architecture code and env_pos does
not contain the length of the static kernel environment. In these cases
r249408 causes the kernel to discard the environment.

Fix this by updating the check for empty static env to *kern_envp != '\0'

Reported by: np@

11 years agoUse the MAKEDEV_CHECKNAME flag to check for an invalid device name and return
neel [Sat, 13 Apr 2013 05:11:21 +0000 (05:11 +0000)]
Use the MAKEDEV_CHECKNAME flag to check for an invalid device name and return
an error instead of panicking.

Obtained from: NetApp

11 years agoUnbreak tinderbox build after r249420.
jkim [Fri, 12 Apr 2013 23:10:56 +0000 (23:10 +0000)]
Unbreak tinderbox build after r249420.

11 years agoUse the CONNECT method to proxy HTTPS connections through HTTP proxies.
des [Fri, 12 Apr 2013 22:05:15 +0000 (22:05 +0000)]
Use the CONNECT method to proxy HTTPS connections through HTTP proxies.

PR: bin/80176
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>

11 years agoFix build.
pluknet [Fri, 12 Apr 2013 21:29:37 +0000 (21:29 +0000)]
Fix build.
- pass a format string to printf
- catch up with constifying uz_name

MFC after: 3 days

11 years agoCosmetic change: make a comment reference Sandy Bridge *Xeon*
rstone [Fri, 12 Apr 2013 20:43:14 +0000 (20:43 +0000)]
Cosmetic change: make a comment reference Sandy Bridge *Xeon*

Reviewed by: sbruno
MFC after: 1 week

11 years agoAlthough we perform path compression to reduce the height of the trie and
alc [Fri, 12 Apr 2013 20:21:28 +0000 (20:21 +0000)]
Although we perform path compression to reduce the height of the trie and
the number of interior nodes, we always create a level zero interior node at
the root of every non-empty trie, even when that node is not strictly
necessary, i.e., it has only one child.  This change is the first step in
eliminating those unnecessary level zero interior nodes.  Specifically, it
updates all of the lookup functions so that they do not require a level zero
interior node at the root.

Reviewed by: attilio, jeff (an earlier version)
Sponsored by: EMC / Isilon Storage Division

11 years agoDtrace: resolve const types from fbt and other fixes.
pfg [Fri, 12 Apr 2013 20:10:27 +0000 (20:10 +0000)]
Dtrace: resolve const types from fbt and other fixes.

Merge change from illumos:

3519 DTrace fails to resolve const types from fbt
3520 dtrace internal error -- token type 316 is not a valid D
     compilation token
3521 clean up dtrace unit tests

Illumos Revision: e98f46c

Reference:
https://www.illumos.org/issues/3519
https://www.illumos.org/issues/3520
https://www.illumos.org/issues/3521

Tested by: Fabian Keil
Obtained from: Illumos
MFC after: 1 month

11 years agolibthr: Remove _thr_rtld_fini(), unused since r245630.
jilles [Fri, 12 Apr 2013 19:47:32 +0000 (19:47 +0000)]
libthr: Remove _thr_rtld_fini(), unused since r245630.

11 years agoUpgrade our copy of llvm/clang to trunk r178860, in preparation of the
dim [Fri, 12 Apr 2013 17:57:40 +0000 (17:57 +0000)]
Upgrade our copy of llvm/clang to trunk r178860, in preparation of the
upcoming 3.3 release (branching and freezing expected in a few weeks).

Preliminary release notes can be found at the usual location:
<http://llvm.org/docs/ReleaseNotes.html>

An MFC is planned once the actual 3.3 release is finished.

11 years agoRemove the NVME_IDENTIFY_CONTROLLER and NVME_IDENTIFY_NAMESPACE IOCTLs and replace
jimharris [Fri, 12 Apr 2013 17:56:47 +0000 (17:56 +0000)]
Remove the NVME_IDENTIFY_CONTROLLER and NVME_IDENTIFY_NAMESPACE IOCTLs and replace
them with the NVMe passthrough equivalent.

Sponsored by: Intel

11 years agoAdd support for passthrough NVMe commands.
jimharris [Fri, 12 Apr 2013 17:52:17 +0000 (17:52 +0000)]
Add support for passthrough NVMe commands.

This includes a new IOCTL to support a generic method for nvmecontrol(8) to pass
IDENTIFY, GET_LOG_PAGE, GET_FEATURES and other commands to the controller, rather than
separate IOCTLs for each.

Sponsored by: Intel

11 years agoMove the busdma mapping functions to nvme_qpair.c.
jimharris [Fri, 12 Apr 2013 17:48:45 +0000 (17:48 +0000)]
Move the busdma mapping functions to nvme_qpair.c.

This removes nvme_uio.c completely.

Sponsored by: Intel

11 years agoRemove the NVMe-specific physio and associated routines.
jimharris [Fri, 12 Apr 2013 17:44:55 +0000 (17:44 +0000)]
Remove the NVMe-specific physio and associated routines.

These were added early on for benchmarking purposes to avoid the mapped I/O
penalties incurred in kern_physio.  Now that FreeBSD (including kern_physio)
supports unmapped I/O, the need for these NVMe-specific routines no longer exists.

Sponsored by: Intel

11 years agoAdd a mutex to each namespace, for general locking operations on the namespace.
jimharris [Fri, 12 Apr 2013 17:41:24 +0000 (17:41 +0000)]
Add a mutex to each namespace, for general locking operations on the namespace.

Sponsored by: Intel

11 years agoRename the controller's fail_req_lock, so that it can be used for other
jimharris [Fri, 12 Apr 2013 17:36:48 +0000 (17:36 +0000)]
Rename the controller's fail_req_lock, so that it can be used for other
locking operations on the controller.

Sponsored by: Intel

11 years agoDo not panic when a busdma mapping operation fails.
jimharris [Fri, 12 Apr 2013 17:34:49 +0000 (17:34 +0000)]
Do not panic when a busdma mapping operation fails.

Instead, print an error message and fail the associated command with
DATA_TRANSFER_ERROR NVMe completion status.

Sponsored by: Intel

11 years agoMove MIPS_MAX_TLB_ENTRIES definition from cpuregs.h to tlb.c
jchandra [Fri, 12 Apr 2013 17:22:12 +0000 (17:22 +0000)]
Move MIPS_MAX_TLB_ENTRIES definition from cpuregs.h to tlb.c

Having MIPS_MAX_TLB_ENTRIES defined to 128 is misleading, since it used
to be 64 in older releases of MIPS architecture (where it could be read
from Config1) and can be much more than 128 for the newer processors.

For now, move the definition to the only file using it (mips/mips/tlb.c)
and define MIPS_MAX_TLB_ENTRIES depending on the MIPS cpu defined. Also
add few checks so that we do not write beyond the end of the tlb_state
array.

This fixes a kernel data corruption seen in Netlogic XLP, which was casued
by tlb_save() writing beyond the end of tlb_state array when breaking into
debugger.

11 years agoAdd some more dates and relationships.
gavin [Fri, 12 Apr 2013 17:01:07 +0000 (17:01 +0000)]
Add some more dates and relationships.

Submitted by: jkoshy, gj, dfr

11 years agoFix usage for soreceive(9) - uio must always be non-NULL.
trasz [Fri, 12 Apr 2013 16:36:18 +0000 (16:36 +0000)]
Fix usage for soreceive(9) - uio must always be non-NULL.

MFC after: 1 week

11 years agoReflect removing of the counter_u64_subtract() function in the macro.
ae [Fri, 12 Apr 2013 16:29:15 +0000 (16:29 +0000)]
Reflect removing of the counter_u64_subtract() function in the macro.

11 years agoRemove ctl(4) from GENERIC. Also remove 'options CTL_DISABLE'
trasz [Fri, 12 Apr 2013 16:25:03 +0000 (16:25 +0000)]
Remove ctl(4) from GENERIC.  Also remove 'options CTL_DISABLE'
and kern.cam.ctl.disable tunable; those were introduced as a workaround
to make it possible to boot GENERIC on low memory machines.

With ctl(4) being built as a module and automatically loaded by ctladm(8),
this makes CTL work out of the box.

Reviewed by: ken
Sponsored by: FreeBSD Foundation

11 years agoFix incorrect KASSERTs in xlpge
jchandra [Fri, 12 Apr 2013 16:03:22 +0000 (16:03 +0000)]
Fix incorrect KASSERTs in xlpge

Fix for crash in Netlogic XLP network accelerator driver when invariants
are enabled - use correct the condition for KASSERT.

11 years agoFix kenv behavior when there is no static environment
jchandra [Fri, 12 Apr 2013 15:58:53 +0000 (15:58 +0000)]
Fix kenv behavior when there is no static environment

In case where there are no static kernel environment entries, the
function init_dynamic_kenv() adds an incorrect entry at position 0 of
the dynamic kernel environment. This in turn causes kenv(1) to print
and empty list even though there are dynamic entries added later.

Fix this by checking env_pos in init_dynamic_kenv() and adding dynamic
entries only if there are static entries.

11 years agosh: Don't modify exit status when break/continue/return passes !.
jilles [Fri, 12 Apr 2013 15:19:35 +0000 (15:19 +0000)]
sh: Don't modify exit status when break/continue/return passes !.

This matches what would happen if  ! P  were to be replaced with
if P; then false; else true; fi.

Example:
  f() { ! return 0; }; f

11 years ago- Do not bail out if stat(2) fails with ENOENT in the spool directory. This
gahr [Fri, 12 Apr 2013 14:32:16 +0000 (14:32 +0000)]
- Do not bail out if stat(2) fails with ENOENT in the spool directory. This
  happens if another atrm process removes a job while we're scanning through
  the directory.
- While at it, optimize a bit the directory scanning, so that we quit looping
  as soon as all jobs specified in argv have been dealt with.

Approved by: cognet

11 years ago- Switch order of setting real uid and gid. If we set uid first, then we
gahr [Fri, 12 Apr 2013 14:19:44 +0000 (14:19 +0000)]
- Switch order of setting real uid and gid. If we set uid first, then we
  don't have enough privileges to set gid.

  This looks like a long standing bug, just recently revealed by r241852.

Approved by: cognet

11 years agoisa_if.h is indirectly included.
bz [Fri, 12 Apr 2013 13:56:21 +0000 (13:56 +0000)]
isa_if.h is indirectly included.
Depend on it to unbreak pc98 builds.

11 years agoAttempt to clean up spacing and long lines.
glebius [Fri, 12 Apr 2013 08:52:19 +0000 (08:52 +0000)]
Attempt to clean up spacing and long lines.

11 years agoUpdate with several early mentor/mentee relationships and dates commit
gavin [Fri, 12 Apr 2013 08:39:18 +0000 (08:39 +0000)]
Update with several early mentor/mentee relationships and dates commit
bits were granted.  Relationships have been provided by the mentees,
dates have been sourced from either the mentees or the CVS mailing list
archives.

Obtained from: mux, wilko, msmith, peter, schweikh
Obtained from: gallatin, dfr, murray, jkoshy

11 years agoFree memory after deleting an address policy entry.
ae [Fri, 12 Apr 2013 07:59:54 +0000 (07:59 +0000)]
Free memory after deleting an address policy entry.

MFC after: 1 week

11 years agoFix a few typos.
delphij [Fri, 12 Apr 2013 02:01:17 +0000 (02:01 +0000)]
Fix a few typos.

Reviewed by: gjb
MFC after: 3 days

11 years agoIf vmm.ko could not be initialized correctly then prevent the creation of
neel [Fri, 12 Apr 2013 01:16:52 +0000 (01:16 +0000)]
If vmm.ko could not be initialized correctly then prevent the creation of
virtual machines subsequently.

Submitted by: Chris Torek

11 years agoIf doing buildworld -DWITH_BMAKE make sure bmake does the build.
sjg [Fri, 12 Apr 2013 00:34:19 +0000 (00:34 +0000)]
If doing buildworld -DWITH_BMAKE make sure bmake does the build.

11 years agoAdd pciids of the T5 based cards. The ones that I haven't tested with
np [Thu, 11 Apr 2013 23:40:05 +0000 (23:40 +0000)]
Add pciids of the T5 based cards.  The ones that I haven't tested with
cxgbe(4) are disabled for now.  This will change.

MFC after: 2 weeks

11 years agoCosmetic change (s/wrwc/wcwr/;s/WRWC/WCWR/).
np [Thu, 11 Apr 2013 22:49:29 +0000 (22:49 +0000)]
Cosmetic change (s/wrwc/wcwr/;s/WRWC/WCWR/).

MFC after: 3 days.

11 years agoAuto-reduce the holdoff timers that are greater than the maximum value
np [Thu, 11 Apr 2013 22:46:39 +0000 (22:46 +0000)]
Auto-reduce the holdoff timers that are greater than the maximum value
allowed by the hardware.

MFC after: 3 days

11 years agoGenerate a LINT for powerpc and for powerpc64.
bz [Thu, 11 Apr 2013 22:18:20 +0000 (22:18 +0000)]
Generate a LINT for powerpc and for powerpc64.

Discussed with: nwhitehorn

11 years agoAlways enable TXOK interrupts when setting up TX queues for EDMA NICs.
adrian [Thu, 11 Apr 2013 22:02:35 +0000 (22:02 +0000)]
Always enable TXOK interrupts when setting up TX queues for EDMA NICs.

11 years agocxgbe/tom: Slight simplification of code that calculates options2.
np [Thu, 11 Apr 2013 21:36:01 +0000 (21:36 +0000)]
cxgbe/tom: Slight simplification of code that calculates options2.

MFC after: 3 days

11 years agoFix bugs in the elapsed time calculation in ctlstat_standard()
ken [Thu, 11 Apr 2013 21:18:04 +0000 (21:18 +0000)]
Fix bugs in the elapsed time calculation in ctlstat_standard()
pointed out by bde:

- Casting to long double isn't needed.
- The division isn't needed, multiplication can be used.
  "When 1 nanosecond is in a floating point literal, the whole
  expression is automatically promoted correctly."
- non-KNF indentation (1 tab) for the newly split line
- different non-KNF indentation (5 spaces) for the previously split
  line
- exessive parentheses around the division operation
- bogus blank line which splits up the etime initialization
- general verboseness from the above.

Submitted by: bde
MFC after: 3 days

11 years agoGet rid of a couple of stray \n's.
np [Thu, 11 Apr 2013 21:17:49 +0000 (21:17 +0000)]
Get rid of a couple of stray \n's.

MFC after: 3 days.

11 years agoThere is no need for elaborate queries and error checking when trying to
np [Thu, 11 Apr 2013 21:15:35 +0000 (21:15 +0000)]
There is no need for elaborate queries and error checking when trying to
set FW4MSG_ENCAP.

MFC after: 3 days

11 years agoSpelling correction
emaste [Thu, 11 Apr 2013 20:15:37 +0000 (20:15 +0000)]
Spelling correction

11 years agoDocument sbuf_start_section() and sbuf_end_section() functions.
trociny [Thu, 11 Apr 2013 19:51:53 +0000 (19:51 +0000)]
Document sbuf_start_section() and sbuf_end_section() functions.

MFC after: 1 month

11 years agoAdd sbuf_start_section and sbuf_end_section to the libsbuf symbol map.
trociny [Thu, 11 Apr 2013 19:50:10 +0000 (19:50 +0000)]
Add sbuf_start_section and sbuf_end_section to the libsbuf symbol map.

MFC after: 1 month

11 years agoAdd sbuf_start_section() and sbuf_end_section() functions, which can
trociny [Thu, 11 Apr 2013 19:49:18 +0000 (19:49 +0000)]
Add sbuf_start_section() and sbuf_end_section() functions, which can
be used for automatic section alignment.

Discussed with: kib
Reviewed by: kib
MFC after: 1 month

11 years ago- Explain clearly why a different firmware is being installed (if/when
np [Thu, 11 Apr 2013 19:39:40 +0000 (19:39 +0000)]
- Explain clearly why a different firmware is being installed (if/when
  it is being installed).  Improve other error messages while here.

- Select special FPGA specific configuration profile when appropriate.

MFC after: 3 days

11 years agoMinor spelling and grammar fixes.
joel [Thu, 11 Apr 2013 19:05:24 +0000 (19:05 +0000)]
Minor spelling and grammar fixes.

11 years agoRemove contractions.
joel [Thu, 11 Apr 2013 18:46:41 +0000 (18:46 +0000)]
Remove contractions.

11 years agoFix tcp_output() so that tcpcb is updated in the same manner when an
glebius [Thu, 11 Apr 2013 18:23:56 +0000 (18:23 +0000)]
Fix tcp_output() so that tcpcb is updated in the same manner when an
mbuf allocation fails, as in a case when ip_output() returns error.

To achieve that, move large block of code that updates tcpcb below
the out: label.

This fixes a panic, that requires the following sequence to happen:

1) The SYN was sent to the network, tp->snd_nxt = iss + 1, tp->snd_una = iss
2) The retransmit timeout happened for the SYN we had sent,
   tcp_timer_rexmt() sets tp->snd_nxt = tp->snd_una, and calls tcp_output().
   In tcp_output m_get() fails.
3) Later on the SYN|ACK for the SYN sent in step 1) came,
   tcp_input sets tp->snd_una += 1, which leads to
   tp->snd_una > tp->snd_nxt inconsistency, that later panics in
   socket buffer code.

For reference, this bug fixed in DragonflyBSD repo:

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ff9b7d322dc5a26f7173aa8c38ecb79da80e419

Reviewed by: andre
Tested by: pho
Sponsored by: Nginx, Inc.
PR: kern/177456
Submitted by: HouYeFei&XiBoLiu <lglion718 163.com>

11 years agoRemove kernel options from the SYNOPSIS. They are already documented in the
joel [Thu, 11 Apr 2013 18:02:42 +0000 (18:02 +0000)]
Remove kernel options from the SYNOPSIS. They are already documented in the
geom(4) manual page SYNOPSIS.

11 years agocxgbe(4): Ensure that the MOD_LOAD handler runs before either t4nex or
np [Thu, 11 Apr 2013 17:50:50 +0000 (17:50 +0000)]
cxgbe(4): Ensure that the MOD_LOAD handler runs before either t4nex or
t5nex attach to their devices.

MFC after: 3 days

11 years ago- Add entries for alc and akoszek, alredy referenced elsewhere
gavin [Thu, 11 Apr 2013 17:16:08 +0000 (17:16 +0000)]
- Add entries for alc and akoszek, alredy referenced elsewhere
- Add phk -> mux relationship, confirmed by mux@
- Add scottl -> sbruno relationship
- Move four ex-committers to the alumni section
- Sort.

11 years agoSet and display the IP fragment bit correctly when dealing with
np [Thu, 11 Apr 2013 16:50:58 +0000 (16:50 +0000)]
Set and display the IP fragment bit correctly when dealing with
the filter mode.

MFC after: 3 days.

11 years agoDTrace: option for time-ordered output
pfg [Thu, 11 Apr 2013 16:24:36 +0000 (16:24 +0000)]
DTrace: option for time-ordered output

Merge changes from illumos:

3021 option for time-ordered output from dtrace(1M)
3022 DTrace: keys should not affect the sort order when sorting by value
3023 it should be possible to dereference dynamic variables
3024 D integer narrowing needs some work
3025 register leak in D code generation
3026 libdtrace should set LD_NOLAZYLOAD=1 to help the pid provider

This brings yet another feature implemented in upstream DTrace.
A complete description is available here:
http://dtrace.org/blogs/ahl/2012/07/28/my-new-dtrace-favorite/

This change bumps the DT_VERS_* number to 1.9.1 in
accordance to what is done in illumos.

This change was somewhat complicated because upstream is mixed many
changes in an individual commit and some of the tests don't really
apply to us.

There are also appear to be differences in timestamping with Solaris
so we had to workaround some assertions making sure no regression
happened.

Special thanks to Fabian Keil for changes and testing.

Illumos Revisions: 13758:23432da34147

Reference:
https://www.illumos.org/issues/3021
https://www.illumos.org/issues/3022
https://www.illumos.org/issues/3023
https://www.illumos.org/issues/3024
https://www.illumos.org/issues/3025
https://www.illumos.org/issues/1694

Tested by: Fabian Keil
Obtained from: Illumos
MFC after: 1 months

11 years agoRemove EOL whitespace.
joel [Thu, 11 Apr 2013 13:05:38 +0000 (13:05 +0000)]
Remove EOL whitespace.

11 years agoRemove unused atomic header
emaste [Thu, 11 Apr 2013 12:49:42 +0000 (12:49 +0000)]
Remove unused atomic header

11 years agofuser(1) requires a filename.
eadler [Thu, 11 Apr 2013 12:24:29 +0000 (12:24 +0000)]
fuser(1) requires a filename.

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

11 years agoFix typo.
glebius [Thu, 11 Apr 2013 10:14:28 +0000 (10:14 +0000)]
Fix typo.

11 years agoFix libzfs to report error instead of returning zero if trying to hold or
mm [Thu, 11 Apr 2013 07:49:16 +0000 (07:49 +0000)]
Fix libzfs to report error instead of returning zero if trying to hold or
release a non-existing snapshot of a existing dataset. In recursive case
error is reported if no snapshots with the requested name have been found.

Problem and proposed solution reported to illumos:
  3699 zfs hold or release of a non-existent snapshot does not output error

MFC after: 8 days

11 years agoMFV r249354:
mm [Thu, 11 Apr 2013 07:40:30 +0000 (07:40 +0000)]
MFV r249354:
Merge bugfixes accepted and integrated by vendor. Underlying problems
have been reported by us and fixed in r240942 and r249196.

Illumos ZFS issues:
  3645 dmu_send_impl: possibilty of pool hold leak
  3692 Panic on zfs receive of a recursive deduplicated stream

MFC after: 8 days

11 years agoInclude types.h for C99 uintXX_t types.
glebius [Thu, 11 Apr 2013 07:30:49 +0000 (07:30 +0000)]
Include types.h for C99 uintXX_t types.

11 years agoDo not sent 120 TEST UNIT READY requests on generic NOT READY statuses.
mav [Thu, 11 Apr 2013 06:34:41 +0000 (06:34 +0000)]
Do not sent 120 TEST UNIT READY requests on generic NOT READY statuses.

Some failing disks tend to return vendor-specific ASC/ASCQ codes with
NOT READY sense key.  It caused extremely long recovery attempts, repeating
these 120 TURs (it takes at least 1 minute) for every I/O request.
Instead of that use default error handling, doing just few retries.

Reviewed by: ken, gibbs
MFC after: 1 month

11 years agoMake the code to check if VMX is enabled more readable by using macros
neel [Thu, 11 Apr 2013 04:29:45 +0000 (04:29 +0000)]
Make the code to check if VMX is enabled more readable by using macros
instead of magic numbers.

Discussed with: Chris Torek