]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoMake sure that arraysz is initialized to a value larger than zero.
Jaakko Heinonen [Tue, 17 Jul 2012 09:34:52 +0000 (09:34 +0000)]
Make sure that arraysz is initialized to a value larger than zero.
arraysz could get initialized to zero on ZFS because ZFS reports
directory sizes differently compared to UFS.

PR: bin/169493
Tested by: swills
MFC after: 2 weeks

12 years agoRemove trailing whitespace.
Jaakko Heinonen [Tue, 17 Jul 2012 09:31:05 +0000 (09:31 +0000)]
Remove trailing whitespace.

MFC after: 2 weeks

12 years agoMove unmask IRQ function call up to nexus device level.
Oleksandr Tymoshenko [Tue, 17 Jul 2012 03:18:12 +0000 (03:18 +0000)]
Move unmask IRQ function call up to nexus device level.

FDT-enabled targets were broken after r238043 that relies
on device up the hierarchy to properly setup interrupt.
nexus device for ARM platforms did job only partially:
setting handler but not unmasking interrupt. Unmasking
was performed by platform code.

Reviewed by: andrew@

12 years agoCorrect vm_page_alloc_contig()'s implementation of VM_ALLOC_NODUMP.
Alan Cox [Tue, 17 Jul 2012 02:36:59 +0000 (02:36 +0000)]
Correct vm_page_alloc_contig()'s implementation of VM_ALLOC_NODUMP.

12 years agoPut parenthesis around sizeof args.
Kevin Lo [Tue, 17 Jul 2012 02:05:39 +0000 (02:05 +0000)]
Put parenthesis around sizeof args.

12 years agoIn ipfw(8), make the text about dynamic rules consistent.
Isabell Long [Mon, 16 Jul 2012 22:15:30 +0000 (22:15 +0000)]
In ipfw(8), make the text about dynamic rules consistent.

PR: docs/120539
Approved by: gabor (mentor)
MFC after: 5 days

12 years agoSimply error handling by moving the allocation of np down to where it is
Christian Brueffer [Mon, 16 Jul 2012 22:07:29 +0000 (22:07 +0000)]
Simply error handling by moving the allocation of np down to where it is
actually used.  While here, improve style a little.

Submitted by: mjg
MFC after: 2 weeks

12 years agoMetaflush on/off values don't need quotes.
Mikolaj Golub [Mon, 16 Jul 2012 20:43:28 +0000 (20:43 +0000)]
Metaflush on/off values don't need quotes.

Reviewed by: pjd
MFC after: 3 days

12 years agoAdd support for walltimestamp in DTrace.
George V. Neville-Neil [Mon, 16 Jul 2012 20:17:19 +0000 (20:17 +0000)]
Add support for walltimestamp in DTrace.

Submitted by: Fabian Keil
MFC after: 2 weeks

12 years agoVarious improvements to vm_contig_grow_cache(). Most notably, even when
Alan Cox [Mon, 16 Jul 2012 18:13:43 +0000 (18:13 +0000)]
Various improvements to vm_contig_grow_cache().  Most notably, even when
it can't sleep, it can still move clean pages from the inactive queue to
the cache.  Also, when a page is cached, there is no need to restart the
scan.  The "next" page pointer held by vm_contig_launder() is still
valid.  Finally, add a comment summarizing what vm_contig_grow_cache()
does based upon the value of "tries".

MFC after: 3 weeks

12 years agoAdd a script that traces NFS attribute cache accesses.
George V. Neville-Neil [Mon, 16 Jul 2012 17:48:43 +0000 (17:48 +0000)]
Add a script that traces NFS attribute cache accesses.

Submitted by: rwatson
MFC after: 2 weeks

12 years agoThe resize GEOM event has no references, thus cannot be canceled.
Edward Tomasz Napierala [Mon, 16 Jul 2012 17:41:38 +0000 (17:41 +0000)]
The resize GEOM event has no references, thus cannot be canceled.

12 years agoAdd back spare fields reused in r238213. According to Attilio, the rule
Edward Tomasz Napierala [Mon, 16 Jul 2012 16:50:28 +0000 (16:50 +0000)]
Add back spare fields reused in r238213.  According to Attilio, the rule
is to use reuse spares only when MFC-ing, not in CURRENT.

12 years agoAdd new USB device ID.
Hans Petter Selasky [Mon, 16 Jul 2012 10:12:07 +0000 (10:12 +0000)]
Add new USB device ID.

PR: usb/169789
Submitted by: Ruslan Bukin
MFC after: 1 week

12 years ago- Add support for displaying process stack memory regions.
Gabor Pali [Mon, 16 Jul 2012 09:38:19 +0000 (09:38 +0000)]
- Add support for displaying process stack memory regions.

Approved by: rwatson
MFC after: 3 days

12 years agoAdd new USB device ID.
Hans Petter Selasky [Mon, 16 Jul 2012 09:35:47 +0000 (09:35 +0000)]
Add new USB device ID.

PR: usb/169789
MFC after: 1 week

12 years agoIf ip_output() returns EMSGSIZE to tcp_output(), then the latter calls
Gleb Smirnoff [Mon, 16 Jul 2012 07:08:34 +0000 (07:08 +0000)]
If ip_output() returns EMSGSIZE to tcp_output(), then the latter calls
tcp_mtudisc(), which in its turn may call tcp_output(). Under certain
conditions (must admit they are very special) an infinite recursion can
happen.

To avoid recursion we can pass struct route to ip_output() and obtain
correct mtu. This allows us not to use tcp_mtudisc() but call tcp_mss_update()
directly.

PR: kern/155585
Submitted by: Andrey Zonov <andrey zonov.org> (original version of patch)

12 years agoAllow netstat to be build if INET is not defined in the kernel.
Michael Tuexen [Mon, 16 Jul 2012 06:43:04 +0000 (06:43 +0000)]
Allow netstat to be build if INET is not defined in the kernel.
Thanks to Garrett Cooper for reporting the issue.

MFC after: 3 days
X-MFC: 238501

12 years agoCorrect an off-by-one error in vm_reserv_alloc_contig() that resulted in
Alan Cox [Sun, 15 Jul 2012 21:46:19 +0000 (21:46 +0000)]
Correct an off-by-one error in vm_reserv_alloc_contig() that resulted in
the last reservation of a multi-reservation allocation not being
initialized.

12 years agoUse libc's strndup() instead of Dtrace's reimplementation.
Pedro F. Giffuni [Sun, 15 Jul 2012 21:20:31 +0000 (21:20 +0000)]
Use libc's strndup() instead of Dtrace's reimplementation.

Corresponds partially to OpenSolaris change:
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6901783 strndup would be nice

MFC after: 2 weeks

12 years agostty: Mark usage() __dead2.
Jilles Tjoelker [Sun, 15 Jul 2012 21:12:22 +0000 (21:12 +0000)]
stty: Mark usage() __dead2.

This reduces code size a little and should fix a scan-build warning.

12 years agoHandle RX Keymiss events.
Adrian Chadd [Sun, 15 Jul 2012 20:51:41 +0000 (20:51 +0000)]
Handle RX Keymiss events.

The AR9003 series NICs implement a separate RX error to signal that a
Keycache miss occured.  The earlier NICs would not set the key index
valid bit.

I'll dig into the difference between "no key index bit set" and "keycache
miss".

12 years agoLog the number of handled decsriptors and valid descriptors when
Adrian Chadd [Sun, 15 Jul 2012 20:48:21 +0000 (20:48 +0000)]
Log the number of handled decsriptors and valid descriptors when
hitting RXEOL.

12 years agolibc: Remove some unused strings from getaddrinfo().
Jilles Tjoelker [Sun, 15 Jul 2012 20:39:21 +0000 (20:39 +0000)]
libc: Remove some unused strings from getaddrinfo().

12 years agoFix a bug with memguard(9) on 32-bit architectures without a
Matthew D Fleming [Sun, 15 Jul 2012 20:29:48 +0000 (20:29 +0000)]
Fix a bug with memguard(9) on 32-bit architectures without a
VM_KMEM_MAX_SIZE.

The code was not taking into account the size of the kernel_map, which
the kmem_map is allocated from, so it could produce a sub-map size too
large to fit.  The simplest solution is to ignore VM_KMEM_MAX entirely
and base the memguard map's size off the kernel_map's size, since this
is always relevant and always smaller.

Found by: Justin Hibbits

12 years agoChanges which improve compilation if neither INET nor INET6 is defined.
Michael Tuexen [Sun, 15 Jul 2012 20:16:17 +0000 (20:16 +0000)]
Changes which improve compilation if neither INET nor INET6 is defined.

MFC after: 3 days

12 years agoUse M_NOWAIT while holding the pf giant lock.
Gleb Smirnoff [Sun, 15 Jul 2012 19:10:00 +0000 (19:10 +0000)]
Use M_NOWAIT while holding the pf giant lock.

12 years agoAdd new USB device ID.
Hans Petter Selasky [Sun, 15 Jul 2012 18:12:09 +0000 (18:12 +0000)]
Add new USB device ID.

PR: usb/169789
MFC after: 1 week

12 years agoPermit changing MTU in 6to4 relay.
Alexander V. Chernikov [Sun, 15 Jul 2012 17:44:27 +0000 (17:44 +0000)]
Permit changing MTU in 6to4 relay.

This behavior is recommended by RFC 4213 clause 3.2.

Sometimes fragmentation is the least evil.
For example, some Linux IPVS kernels forwards
ICMPv6 checksums to real servers incorrectly.

Reviewed by:      hrs(previous version)
Approved by:      kib(mentor)
MFC after:        1 week

12 years agoSave a bzero() by using M_ZERO.
Christian Brueffer [Sun, 15 Jul 2012 15:50:12 +0000 (15:50 +0000)]
Save a bzero() by using M_ZERO.

Obtained from: Dragonfly BSD (change 4faaf07c3d7ddd120deed007370aaf4d90b72ebb)
MFC after: 2 weeks

12 years agops: Fix memory leak when showing start/lstart for swapped-out process.
Jilles Tjoelker [Sun, 15 Jul 2012 15:22:13 +0000 (15:22 +0000)]
ps: Fix memory leak when showing start/lstart for swapped-out process.

Spotted by: scan-build (uqs)

12 years agoFix typo in a message.
Christian Brueffer [Sun, 15 Jul 2012 14:40:49 +0000 (14:40 +0000)]
Fix typo in a message.

Obtained from: DragonFly BSD (change 7a817ab191e4898404a9037c55850e47d177308c)
MFC after: 3 days

12 years agoJump to the failed label instead of doing cleanup ourselves.
Christian Brueffer [Sun, 15 Jul 2012 11:52:24 +0000 (11:52 +0000)]
Jump to the failed label instead of doing cleanup ourselves.

Obtained from: DragonFly BSD
MFC after: 2 weeks

12 years agosh: Reset pendingsigs before checking pending traps, not after.
Jilles Tjoelker [Sun, 15 Jul 2012 11:18:52 +0000 (11:18 +0000)]
sh: Reset pendingsigs before checking pending traps, not after.

Otherwise, a signal arriving at exactly the right moment might not be
processed until another signal arrived.

12 years ago#ifdef INET and INET6 consistently. This also fixes a bug, where
Michael Tuexen [Sun, 15 Jul 2012 11:04:49 +0000 (11:04 +0000)]
#ifdef INET and INET6 consistently. This also fixes a bug, where
it was done wrong.

MFC after: 3 days

12 years agoPass --enable-new-dtags to the linker invocation by default. If
Konstantin Belousov [Sun, 15 Jul 2012 10:54:10 +0000 (10:54 +0000)]
Pass --enable-new-dtags to the linker invocation by default. If
desired, one can turn off the generation of post-ELF standard dtags by
overriding it with --disable-new-dtags after the default switch.

Immediate effect of the change is that -rpath path is now stored both
in DT_RPATH and DT_RUNPATH tags, which is the right way to provide
rpath for dynamic linker supporting DT_RUNPATH per specification.

Reviewed by: kan
MFC after: 1 month

12 years agoImport the DragonFly BSD commit 4f0bc915b65fcf5a23214f6d221d65c80be68ad4
Konstantin Belousov [Sun, 15 Jul 2012 10:53:48 +0000 (10:53 +0000)]
Import the DragonFly BSD commit 4f0bc915b65fcf5a23214f6d221d65c80be68ad4
by John Marino <draco@marino.st>, with the following (edited) commit
message
Date: Sat, 24 Mar 2012 06:40:50 +0100
Subject: [PATCH 1/1] rtld: Implement DT_RUNPATH and -z nodefaultlib

DT_RUNPATH is incorrectly being considered as an alias of DT_RPATH.  The
purpose of DT_RUNPATH is to have two different types of rpath: one that
can be overridden by the environment variable LD_LIBRARY_PATH and one that
can't.  With the currently implementation, LD_LIBRARY_PATH will always
trump any embedded rpath or runpath tags.

Current path search order by rtld:
==================================
LD_LIBRARY_PATH
DT_RPATH / DT_RUNPATH (always the same)
ldconfig hints file (default: /var/run/ld-elf.so.hints)
/usr/lib

New path search order by rtld:
==============================
DT_RPATH of the calling object if no DT_RUNPATH
DT_RPATH of the main binary if no DT_RUNPATH and binary isn't calling obj
LD_LIBRARY_PATH
DT_RUNPATH
ldconfig hints file
/usr/lib

The new path search matches how the linux runtime loader works.  The other
major added feature is support for linker flag "-z nodefaultlib".  When
this flag is passed to the linker, rtld will skip all references to the
standard library search path ("/usr/lib" in this case but it could handle
more color delimited paths) except in DT_RPATH and DT_RUNPATH.

New path search order by rtld with -z nodefaultlib flag set:
============================================================
DT_RPATH of the calling object if no DT_RUNPATH
DT_RPATH of the main binary if no DT_RUNPATH and binary isn't calling obj
LD_LIBRARY_PATH
DT_RUNPATH
ldconfig hints file (skips all references to /usr/lib)

FreeBSD notes:
- we fixed some bugs which were submitted to DragonFly and merged there
  as commit 1ff8a2bd3eb6e5587174c6a983303ea3a79e0002;
- we added LD_LIBRARY_PATH_RPATH environment variable to switch to
  the previous behaviour of considering DT_RPATH a synonym for DT_RUNPATH;
- the FreeBSD default search path is /lib:/usr/lib and not /usr/lib.

Reviewed by:   kan
MFC after:     1 month
MFC note:      flip the ld_library_path_rpath default value for stable/9

12 years agosh: Remove unused variable in_dowait.
Jilles Tjoelker [Sun, 15 Jul 2012 10:49:16 +0000 (10:49 +0000)]
sh: Remove unused variable in_dowait.

12 years agosh: Add a simple test for the "local" builtin.
Jilles Tjoelker [Sun, 15 Jul 2012 10:22:13 +0000 (10:22 +0000)]
sh: Add a simple test for the "local" builtin.

12 years agosh: Expand assignment-like words specially for export/readonly/local.
Jilles Tjoelker [Sun, 15 Jul 2012 10:19:43 +0000 (10:19 +0000)]
sh: Expand assignment-like words specially for export/readonly/local.

Examples:
  export x=~
now expands the tilde
  local y=$1
is now safe, even if $1 contains IFS characters or metacharacters.

For a word to "look like an assignment", it must start with a name followed
by an equals sign, none of which may be quoted.

The special treatment applies when the first word (potentially after
"command") is "export", "readonly" or "local". There may be quoting
characters but no expansions. If "local" is overridden with a function there
is no special treatment ("export" and "readonly" cannot be overridden with a
function).

If things like
  local arr=(1 2 3)
are ever allowed in the future, they cannot call a "local" function. This
would either be a run-time error or it would call the builtin.

This matches Austin Group bug #351, planned for the next issue of POSIX.1.

PR: bin/166771

12 years agoThese were never used, remove them.
Warner Losh [Sun, 15 Jul 2012 06:08:11 +0000 (06:08 +0000)]
These were never used, remove them.

12 years agoThe JP1082 device doesn't respond to the MII_BMSR command and it turns
Rui Paulo [Sun, 15 Jul 2012 05:49:02 +0000 (05:49 +0000)]
The JP1082 device doesn't respond to the MII_BMSR command and it turns
out that it has an unusable PHY. It still works, although very slowly,
without a PHY, so I implemented non-PHY support in the udav driver.

12 years agoConfigure the peripheral pins for MCI devices. Eliminate the now-unused
Warner Losh [Sun, 15 Jul 2012 05:41:43 +0000 (05:41 +0000)]
Configure the peripheral pins for MCI devices.  Eliminate the now-unused
at91_pio_rm9200.h.

12 years agoForce overwrite of gz file, to make NO_CLEAN builds work.
Warner Losh [Sun, 15 Jul 2012 05:38:43 +0000 (05:38 +0000)]
Force overwrite of gz file, to make NO_CLEAN builds work.

12 years agoUse the pin number rather than the hybrid pin number + name.
Warner Losh [Sun, 15 Jul 2012 05:35:14 +0000 (05:35 +0000)]
Use the pin number rather than the hybrid pin number + name.

12 years agoMake pkg bootstrap program ask for confirmation before proceeding.
Alexander Kabaev [Sun, 15 Jul 2012 04:15:27 +0000 (04:15 +0000)]
Make pkg bootstrap program ask for confirmation before proceeding.

The previous behaviour was to silently download and install the pkg
package, without ever telling user about what it was doing and why.

Discussed with: bapt
Reviewed by: kib

12 years agoProvide the correct notification type (SCTP_SEND_FAILED_EVENT)
Michael Tuexen [Sat, 14 Jul 2012 21:25:14 +0000 (21:25 +0000)]
Provide the correct notification type (SCTP_SEND_FAILED_EVENT)
for unsent messages.

MFC after: 3 days

12 years agoMerge illumos commit 13455:7205f7794835
Pedro F. Giffuni [Sat, 14 Jul 2012 20:24:00 +0000 (20:24 +0000)]
Merge illumos commit 13455:7205f7794835

1458 D compiler fails to generate error on sizeof() an undefined struct

Reference:
https://www.illumos.org/issues/1458

Tested by: Fabian Keil
MFC after: 3 weeks

12 years agoIf vm_contig_grow_cache() is allowed to sleep, then invoke the vm_lowmem
Alan Cox [Sat, 14 Jul 2012 20:14:03 +0000 (20:14 +0000)]
If vm_contig_grow_cache() is allowed to sleep, then invoke the vm_lowmem
handlers.

12 years agoUse case for selecting the address family (as in other places).
Michael Tuexen [Sat, 14 Jul 2012 20:08:03 +0000 (20:08 +0000)]
Use case for selecting the address family (as in other places).

MFC after: 3 days

12 years agoUse case for selecting the address family (as in other places).
Michael Tuexen [Sat, 14 Jul 2012 19:44:39 +0000 (19:44 +0000)]
Use case for selecting the address family (as in other places).

MFC after: 3 days

12 years agoMove kmem_alloc_{attr,contig}() to vm/vm_kern.c, where similarly named
Alan Cox [Sat, 14 Jul 2012 18:10:44 +0000 (18:10 +0000)]
Move kmem_alloc_{attr,contig}() to vm/vm_kern.c, where similarly named
functions reside.  Correct the comment describing kmem_alloc_contig().

12 years agoAdd support for the XSAVEOPT instruction use. Our XSAVE/XRSTOR usage
Konstantin Belousov [Sat, 14 Jul 2012 15:48:30 +0000 (15:48 +0000)]
Add support for the XSAVEOPT instruction use. Our XSAVE/XRSTOR usage
mostly meets the guidelines set by the Intel SDM:
1. We use XRSTOR and XSAVE from the same CPL using the same linear
   address for the store area
2. Contrary to the recommendations, we cannot zero the FPU save area
   for a new thread, since fork semantic requires the copy of the
   previous state. This advice seemingly contradicts to the advice
   from the item 6.
3. We do use XSAVEOPT in the context switch code only, and the area
   for XSAVEOPT already always contains the data saved by XSAVE.
4. We do not modify the save area between XRSTOR, when the area is
   loaded into FPU context, and XSAVE. We always spit the fpu context
   into save area and start emulation when directly writing into FPU
   context.
5. We do not use segmented addressing to access save area, or rather,
   always address it using %ds basing.
6. XSAVEOPT can be only executed in the area which was previously
   loaded with XRSTOR, since context switch code checks for FPU use by
   outgoing thread before saving, and thread which stopped emulation
   forcibly get context loaded with XRSTOR.
7. The PCB cannot be paged out while FPU emulation is turned off, since
   stack of the executing thread is never swapped out.

The context switch code is patched to issue XSAVEOPT instead of XSAVE
if supported. This approach eliminates one conditional in the context
switch code, which would be needed otherwise.

For user-visible machine context to have proper data, fpugetregs()
checks for unsaved extension blocks and manually copies pristine FPU
state into them, according to the description provided by CPUID leaf
0xd.

MFC after:  1 month

12 years agoFix build breakage when one isn't building with IEEE80211_SUPPORT_SUPERG.
Adrian Chadd [Sat, 14 Jul 2012 12:15:20 +0000 (12:15 +0000)]
Fix build breakage when one isn't building with IEEE80211_SUPPORT_SUPERG.

Noticed by: mav

12 years agoChange language in WITH_BSDCONFIG to match other options, and regen
Niclas Zeising [Sat, 14 Jul 2012 10:17:47 +0000 (10:17 +0000)]
Change language in WITH_BSDCONFIG to match other options, and regen
src.conf(5), which was missed in r238438.

Approved by: joel (mentor)

12 years agoMerge in some other features from the legacy RX path:
Adrian Chadd [Sat, 14 Jul 2012 07:56:47 +0000 (07:56 +0000)]
Merge in some other features from the legacy RX path:

* wrap the RX proc calls in the RX refcount;
* call the DFS checking, fast frames staging and TX rescheduling if
  required.

TODO:

* figure out if I can just make "do TX rescheduling" mean "schedule
  TX taskqueue" ?

12 years agoMdoc and whitespace fixes.
Joel Dahl [Sat, 14 Jul 2012 06:17:17 +0000 (06:17 +0000)]
Mdoc and whitespace fixes.

12 years agoAdd preliminary support for Atmel SAM9260-EK evaluation kit.
Warner Losh [Sat, 14 Jul 2012 06:13:23 +0000 (06:13 +0000)]
Add preliminary support for Atmel SAM9260-EK evaluation kit.
Initially identical to the Ethernut5, but will diverge shortly before
I refactor...

12 years agouboot should be telling us it is an ETHERNUT5 for this board. Tag it
Warner Losh [Sat, 14 Jul 2012 06:00:37 +0000 (06:00 +0000)]
uboot should be telling us it is an ETHERNUT5 for this board.  Tag it
as such.

12 years agoMake sure that 'rs' is pointing to the correct RX status.
Adrian Chadd [Sat, 14 Jul 2012 05:53:03 +0000 (05:53 +0000)]
Make sure that 'rs' is pointing to the correct RX status.

12 years agoEnsure that error is set.
Adrian Chadd [Sat, 14 Jul 2012 05:51:54 +0000 (05:51 +0000)]
Ensure that error is set.

Noticed by: rui

12 years agoCreate common routines for configuring the serial ports and use them
Warner Losh [Sat, 14 Jul 2012 05:46:52 +0000 (05:46 +0000)]
Create common routines for configuring the serial ports and use them
on all the at91rm9200 boards.

12 years agoImport bsdconfig(8) as a replacement for the post-install abilities of
Devin Teske [Sat, 14 Jul 2012 03:16:57 +0000 (03:16 +0000)]
Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org>
Reviewed by: Ron McDowell <rcm@fuzzwad.org>
Approved by: Ed Maste (emaste)

12 years agoThe call to disk_resize causes a panic if DIAGNOSTIC is set.
Matt Jacob [Sat, 14 Jul 2012 02:59:11 +0000 (02:59 +0000)]
The call to disk_resize causes a panic if DIAGNOSTIC is set.
Coping with that while the finest minds of our generation
figure out why.

12 years agoChange the RX EDMA path to first complete the FIFO, then re-populate it
Adrian Chadd [Sat, 14 Jul 2012 02:52:48 +0000 (02:52 +0000)]
Change the RX EDMA path to first complete the FIFO, then re-populate it
with fresh descriptors, before handling the frames.

Wrap it all in the RX locks.

Since the FIFO is very shallow (16 for HP, 128 for LP) it needs to be
drained and replenished very quickly.  Ideally, I'll eventually move this
RX FIFO drain/fill into the interrupt handler, only deferring the actual
frame completion.

12 years agoDon't free the descriptor allocation/map if it doesn't exist.
Adrian Chadd [Sat, 14 Jul 2012 02:47:16 +0000 (02:47 +0000)]
Don't free the descriptor allocation/map if it doesn't exist.

I missed this in my previous commit.

12 years agoCreate an RX queue lock.
Adrian Chadd [Sat, 14 Jul 2012 02:22:17 +0000 (02:22 +0000)]
Create an RX queue lock.

Ideally these locks would go away and there'd be a single driver lock,
like what iwn(4) does.  I'll worry about that later.

12 years agoFix EDMA RX to actually work without panicing the machine.
Adrian Chadd [Sat, 14 Jul 2012 02:07:51 +0000 (02:07 +0000)]
Fix EDMA RX to actually work without panicing the machine.

I was setting up the RX EDMA buffer to be 4096 bytes rather than the
RX data buffer portion.  The hardware was likely getting very confused
and DMAing descriptor portions into places it shouldn't, leading to
memory corruption and occasional panics.

Whilst here, don't bother allocating descriptors for the RX EDMA case.
We don't use those descriptors. Instead, just allocate ath_buf entries.

12 years agoFix domain.
Devin Teske [Sat, 14 Jul 2012 01:45:35 +0000 (01:45 +0000)]
Fix domain.

Approved by: emaste

12 years agosh: Add tests where "export" does not parse differently.
Jilles Tjoelker [Fri, 13 Jul 2012 22:29:02 +0000 (22:29 +0000)]
sh: Add tests where "export" does not parse differently.

It is planned to expand variable assignments as assignments (no word
splitting, different tilde expansion) when they follow a "declaration
utility" (export, readonly or local). However, a quoted character cannot be
part of a "name" so things like \v=~ are not assignments, and the existing
behaviour applies.

12 years agoPull in r159895 from upstream clang trunk:
Dimitry Andric [Fri, 13 Jul 2012 21:48:01 +0000 (21:48 +0000)]
Pull in r159895 from upstream clang trunk:

  When marking virtual functions as used for a class' vtable, mark all functions
  which will appear in the vtable as used, not just those ones which were
  declared within the class itself. Fixes an issue reported as comment#3 in
  PR12763 -- we sometimes assert in codegen if we try to emit a reference to a
  function declaration which we've not marked as referenced. This also matches
  gcc's observed behavior.

This should fix clang assertions when building certain components of the
LibreOffice port.

MFC after: 3 days

12 years agoAdd HISTORY section.
Joel Dahl [Fri, 13 Jul 2012 21:27:18 +0000 (21:27 +0000)]
Add HISTORY section.

12 years agoMFP4 214344:
Brooks Davis [Fri, 13 Jul 2012 20:10:59 +0000 (20:10 +0000)]
MFP4 214344:
Tighten the regular expression that checks for an md /tmp such that
no /tmp mount and an md / isn't improperly matched.

Sponsored by: DARPA/AFRL

12 years agoMinor mdoc, spelling and end of line whitespace fixes.
Joel Dahl [Fri, 13 Jul 2012 15:25:10 +0000 (15:25 +0000)]
Minor mdoc, spelling and end of line whitespace fixes.

12 years agoMake the interval timings for EVFILT_TIMER more accurate. tvtohz() always
John Baldwin [Fri, 13 Jul 2012 13:24:33 +0000 (13:24 +0000)]
Make the interval timings for EVFILT_TIMER more accurate.  tvtohz() always
adds an extra tick to account for the current partial clock tick.  However,
that is not appropriate for a repeating timer when the exact tvtohz() value
should be used for subsequent intervals.  Fix repeating callouts for
EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the
fix used in realitexpire() for interval timers.

While here, update a few comments to note that if the EVFILT_TIMER code
were to move out of kern_event.c, it should move to kern_time.c (where the
interval timer code it mimics lives) rather than kern_timeout.c.

MFC after: 1 month

12 years agoThe etcupdate utility is a tool for managing updates to files that are
John Baldwin [Fri, 13 Jul 2012 13:23:48 +0000 (13:23 +0000)]
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

The primary difference from mergemaster is that etcupdate requires less
manual work.  The primary difference from etcmerge is that etcupdate
updates files in-place similar to mergemaster rather than building a
separate /etc tree.

Requested by: obrien, kib, theraven, joeld (among others)

12 years agoMerge illumos commit 13749:df4cd82e2b60
Martin Matuska [Fri, 13 Jul 2012 12:37:34 +0000 (12:37 +0000)]
Merge illumos commit 13749:df4cd82e2b60

1796 "ZFS HOLD" should not be used when doing "ZFS SEND" froma read-only pool
2871 support for __ZFS_POOL_RESTRICT used by ZFS test suite
2903 zfs destroy -d does not work
2957 zfs destroy -R/r sometimes fails when removing defer-destroyed snapshot

References:
https://www.illumos.org/issues/1796
https://www.illumos.org/issues/2871
https://www.illumos.org/issues/2903
https://www.illumos.org/issues/2957

MFC after: 1 week

12 years agoacpi_cpu: separate a notion of current deepest allowed+available Cx level
Andriy Gapon [Fri, 13 Jul 2012 08:11:55 +0000 (08:11 +0000)]
acpi_cpu: separate a notion of current deepest allowed+available Cx level

... from a user-set persistent limit on the said level.
Allow to set the user-imposed limit below current deepest available level
as the available levels may be dynamically changed by ACPI platform
in both directions.
Allow "Cmax" as an input value for cx_lowest sysctls to mean that there
is not limit and OS can use all available C-states.
Retire global cpu_cx_count as it no longer serves any meaningful
purpose.

Reviewed by: jhb, gianni, sbruno
Tested by: sbruno, Vitaly Magerya <vmagerya@gmail.com>
MFC after: 2 weeks

12 years agoUpdate vendor/illumos to illumos-gate revision 13750:6c5d0718e821
Martin Matuska [Fri, 13 Jul 2012 08:02:58 +0000 (08:02 +0000)]
Update vendor/illumos to illumos-gate revision 13750:6c5d0718e821

Source URL:
ssh://anonhg@hg.illumos.org/illumos-gate

Obtained from: illumos

12 years agoWhitespace nit
Kevin Lo [Fri, 13 Jul 2012 06:46:09 +0000 (06:46 +0000)]
Whitespace nit

12 years agoFor our at91rm9200 boards, register which subtype of SoC is on the
Warner Losh [Fri, 13 Jul 2012 04:22:08 +0000 (04:22 +0000)]
For our at91rm9200 boards, register which subtype of SoC is on the
board.  We'll use this later to control the differences between these
two variants' pins.

12 years agoWring a few cycles out of pmap_enter(). In particular, on a user-space
Alan Cox [Fri, 13 Jul 2012 04:10:41 +0000 (04:10 +0000)]
Wring a few cycles out of pmap_enter().  In particular, on a user-space
pmap, avoid walking the page table twice.

12 years agoFix the previous commit. Obsolete libraries must be added to OLD_LIBS.
Jung-uk Kim [Thu, 12 Jul 2012 23:11:30 +0000 (23:11 +0000)]
Fix the previous commit.  Obsolete libraries must be added to OLD_LIBS.

Pointyhat to: me

12 years agoSort ASM definitions by crypto module for slightly easier maintenance.
Jung-uk Kim [Thu, 12 Jul 2012 21:31:53 +0000 (21:31 +0000)]
Sort ASM definitions by crypto module for slightly easier maintenance.
Specifically, GHASH_ASM belongs to crypto/modes.

12 years agoMerge OpenSSL 1.0.1c.
Jung-uk Kim [Thu, 12 Jul 2012 19:30:53 +0000 (19:30 +0000)]
Merge OpenSSL 1.0.1c.

Approved by: benl (maintainer)

12 years agoThis file is no longer AT91RM9200 specific, but now is generic to all
Warner Losh [Thu, 12 Jul 2012 19:15:38 +0000 (19:15 +0000)]
This file is no longer AT91RM9200 specific, but now is generic to all
Atmel AT91 SoC's we support.  Rename to reflect that.

12 years agoRemember where we found the DBGU and use that for our console.
Warner Losh [Thu, 12 Jul 2012 19:11:37 +0000 (19:11 +0000)]
Remember where we found the DBGU and use that for our console.

12 years agoDocument the behavior of mount with failok specified.
Eitan Adler [Thu, 12 Jul 2012 15:20:20 +0000 (15:20 +0000)]
Document the behavior of mount with failok specified.

PR: docs/163742
Submitted by: gcooper
Discussion by: gcooper
Discussion by: bjk
Approved by: gabor
MFC after: 3 days

12 years agoFix whitespace divot.
Warner Losh [Thu, 12 Jul 2012 13:54:24 +0000 (13:54 +0000)]
Fix whitespace divot.

12 years agoComplete the transition away from newbus to populate the children to
Warner Losh [Thu, 12 Jul 2012 13:45:58 +0000 (13:45 +0000)]
Complete the transition away from newbus to populate the children to
the linker set of CPU modules.  The newbus method, although clever,
had many flaws: it didn't really support multiple SoC, many of the
comments about order were just wrong, and it did a few things far too
late to be useful.  delay and cpu_reset now work much earlier in the
boot process.

12 years agoUpdate for new core team. Looks like this file was not updated two years
Gavin Atkinson [Thu, 12 Jul 2012 12:11:32 +0000 (12:11 +0000)]
Update for new core team.  Looks like this file was not updated two years
ago for the last core team.

MFC after: 3 days

12 years agoAdd and utilize defines for the ATA device register.
Christian Brueffer [Thu, 12 Jul 2012 10:09:34 +0000 (10:09 +0000)]
Add and utilize defines for the ATA device register.

PR: 169764
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav
MFC after: 2 weeks

12 years agoDocument the sysctl/tunable changes in r238379 and r238382.
Christian Brueffer [Thu, 12 Jul 2012 07:34:09 +0000 (07:34 +0000)]
Document the sysctl/tunable changes in r238379 and r238382.

Suggested by: mjacob

12 years agoChange behavior introduced in r237119 to vendor solution
Martin Matuska [Thu, 12 Jul 2012 06:29:54 +0000 (06:29 +0000)]
Change behavior introduced in r237119 to vendor solution

References:
https://www.illumos.org/issues/2883

PR: 167905
Obtained from: illumos (issue #2883)
MFC after: 2 weeks

12 years agoCreate the children devices for the SoC in atmelarm bus node, not in
Warner Losh [Thu, 12 Jul 2012 04:23:11 +0000 (04:23 +0000)]
Create the children devices for the SoC in atmelarm bus node, not in
the identify routine of the CPU.

12 years agoExport the interrupt status vector via soc_data. Set the interrupt
Warner Losh [Thu, 12 Jul 2012 02:58:45 +0000 (02:58 +0000)]
Export the interrupt status vector via soc_data.  Set the interrupt
priorities in the AIC in the atmelarm driver before attaching the
children.  Delete redunant copies of the code.

12 years agoImport OpenSSL 1.0.1c.
Jung-uk Kim [Wed, 11 Jul 2012 23:31:36 +0000 (23:31 +0000)]
Import OpenSSL 1.0.1c.

Approved by: benl (maintainer)

12 years agoApply similar same change as in r238379:
Christian Brueffer [Wed, 11 Jul 2012 23:22:09 +0000 (23:22 +0000)]
Apply similar same change as in r238379:

Renamed the kern.cam.ada.ada_send_ordered sysctl and tunable to
kern.cam.ada.send_ordered, more in line with the other da sysctls/tunables.

Suggested by: kib

12 years agoMerge ACPICA 20120711.
Jung-uk Kim [Wed, 11 Jul 2012 23:18:35 +0000 (23:18 +0000)]
Merge ACPICA 20120711.

12 years agoRenamed the kern.cam.da.da_send_ordered sysctl and tunable to
Christian Brueffer [Wed, 11 Jul 2012 23:00:26 +0000 (23:00 +0000)]
Renamed the kern.cam.da.da_send_ordered sysctl and tunable to
kern.cam.da.send_ordered, more in line with the other da sysctls/tunables.

PR: 169765
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav