]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agolibc: Remove some unused strings from getaddrinfo().
jilles [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
mdf [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.
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.
glebius [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.
hselasky [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.
melifaro [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.
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 [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.
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.
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 [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
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
kib [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
kib [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 [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 [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 [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.
imp [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
rpaulo [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
imp [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.
imp [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.
imp [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.
kan [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)
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
pfg [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
alc [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).
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).
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
alc [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
kib [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 [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
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 agoRevert r237927 and remove accidentially added kernel part
mm [Sat, 14 Jul 2012 08:54:42 +0000 (08:54 +0000)]
Revert r237927 and remove accidentially added kernel part
This belongs to vendor-sys/illumos

12 years agoMerge in some other features from the legacy RX path:
adrian [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 [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.
imp [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
imp [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 [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 [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
imp [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
dteske [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.
mjacob [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 [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 [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 [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 [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.
dteske [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 [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:
dim [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 [Fri, 13 Jul 2012 21:27:18 +0000 (21:27 +0000)]
Add HISTORY section.

12 years agoMFP4 214344:
brooks [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 [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
jhb [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
jhb [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
mm [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
avg [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
mm [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
kevlo [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
imp [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
alc [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.
jkim [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.
jkim [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.
jkim [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
imp [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.
imp [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.
eadler [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.
imp [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
imp [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 [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.
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.
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
mm [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
imp [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
imp [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.
jkim [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:
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.
jkim [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
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

12 years agoRe-merge a couple of changes from NetBSD's libedit.
pfg [Wed, 11 Jul 2012 22:20:19 +0000 (22:20 +0000)]
Re-merge a couple of changes from NetBSD's libedit.

bin/sh has been taught about el_gets setting the count to -1
on error, so now we can partially revert r238173 to reduce
differences with NetBSD's implementation.

Unfortunately NetBSD's libedit handling of EINTR (Revision
1.44 in read.c + SIGWINCH fixes) still causes trouble in
bin/sh and other utilities and has to be avoided.

MFC after: 1 month

12 years agoMerge libedit adjustment from NetBSD.
pfg [Wed, 11 Jul 2012 22:17:58 +0000 (22:17 +0000)]
Merge libedit adjustment from NetBSD.

On recent versions of NetBSD's libedit, el_gets
now sets el_len to -1 on error so we can
distinguish between a NULL string and an error.

This fixes sh from exiting with newer versions
of libedit now allowing EINTR to return.

Obtained from: NetBSD
Reviewed by: jilles
MFC after: 3 weeks

12 years agoMake the SoC stuff a little more modular, and start to move away from
imp [Wed, 11 Jul 2012 20:17:14 +0000 (20:17 +0000)]
Make the SoC stuff a little more modular, and start to move away from
having the CPU device that's a child of atmelarm that does stuff.

o Create a linker_set for the support fucntions for the SoCs.
o Rename soc_data to soc_info.
o Move the delay and reset function pointers to new soc_data struct
o Create elements for all known SoCs
o Add lookup of the SoC we found, and print a warning if it isn't one
  we know about.

12 years agoAdd a test program, written by Stephan Uphoff, which demonstrates the
kib [Wed, 11 Jul 2012 19:12:10 +0000 (19:12 +0000)]
Add a test program, written by Stephan Uphoff, which demonstrates the
deadlock due to i/o performed over the buffers backed by file mappings.

MFC after: 2 weeks
Approved by: ups

12 years agosys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless...
sbruno [Wed, 11 Jul 2012 19:08:23 +0000 (19:08 +0000)]
sys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless the file also includes opt_mfi.h.

Submitted by: Andrew Boyer aboyer@averesystems.com
MFC after: 2 weeks

12 years agoFix build for kernels with dtrace hooks.
kib [Wed, 11 Jul 2012 18:50:50 +0000 (18:50 +0000)]
Fix build for kernels with dtrace hooks.

MFC after: 1 month

12 years agoWhen an MFI command fails, the driver needs to set bio->bio_resid so that
sbruno [Wed, 11 Jul 2012 18:16:54 +0000 (18:16 +0000)]
When an MFI command fails, the driver needs to set bio->bio_resid so that
the upper levels notice.  Otherwise we see commands silently failing leading
to data corruption.  This mirrors dadone()

Submitted by: Andrew Boyer aboyer@averesystems.com
Reviewed by: scottl@freebsd.org
MFC after: 2 weeks

12 years agoat91pit->at91_pit for consistnecy with other drivers.
imp [Wed, 11 Jul 2012 17:11:54 +0000 (17:11 +0000)]
at91pit->at91_pit for consistnecy with other drivers.

12 years agoat91$DEV->at91_$DEV to match other Atmel drivers. Also, export
imp [Wed, 11 Jul 2012 17:11:07 +0000 (17:11 +0000)]
at91$DEV->at91_$DEV to match other Atmel drivers.  Also, export
at91_rst_cpu_reset.

12 years agoImport ACPICA 20120711.
jkim [Wed, 11 Jul 2012 16:51:47 +0000 (16:51 +0000)]
Import ACPICA 20120711.

12 years agoInitial commit of an I/O provider for DTrace on FreeBSD.
gnn [Wed, 11 Jul 2012 16:27:02 +0000 (16:27 +0000)]
Initial commit of an I/O provider for DTrace on FreeBSD.

These probes are most useful when looking into the structures
they provide, which are listed in io.d.  For example:

dtrace -n 'io:genunix::start { printf("%d\n", args[0]->bio_bcount); }'

Note that the I/O systems in FreeBSD and Solaris/Illumos are sufficiently
different that there is not a 1:1 mapping from scripts that work
with one to the other.
MFC after: 1 month

12 years agoCast a bus address to a uintmax_t for a debug printf to fix the build on
jhb [Wed, 11 Jul 2012 15:04:20 +0000 (15:04 +0000)]
Cast a bus address to a uintmax_t for a debug printf to fix the build on
arm.

12 years agoMap ATH_KTR_* to 0 when ATH_DEBUG is not defined. This effectively NOPs
jhb [Wed, 11 Jul 2012 12:10:13 +0000 (12:10 +0000)]
Map ATH_KTR_* to 0 when ATH_DEBUG is not defined.  This effectively NOPs
out their use in that case.

12 years ago- fix description of SECURITY_FREEZE_LOCK (1)
brueffer [Wed, 11 Jul 2012 08:24:30 +0000 (08:24 +0000)]
- fix description of SECURITY_FREEZE_LOCK (1)
- add missing underscores to SECURITY_DISABLE_PASSWORD

PR: 169763 (1)
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: mav
MFC after: 1 week

12 years agoMerge from r234532:
hrs [Wed, 11 Jul 2012 02:57:32 +0000 (02:57 +0000)]
Merge from r234532:

- Fix an ifname matching issue which prevented "ifconfig wlan0 create" from
  working.
- Return non-zero status when unit < 0.

Spotted by: dhw

12 years agoVarious VirtIO improvements
grehan [Wed, 11 Jul 2012 02:57:19 +0000 (02:57 +0000)]
Various VirtIO improvements

      PCI:
        - Properly handle interrupt fallback from MSIX to MSI to legacy.
          The host may not have sufficient resources to support MSIX,
          so we must be able to fallback to legacy interrupts.
        - Add interface to get the (sub) vendor and device IDs.
        - Rename flags to VTPCI_FLAG_* like other VirtIO drivers.
      Block:
        - No longer allocate vtblk_requests from separate UMA zone.
          malloc(9) from M_DEVBUF is sufficient. Assert segment counts
          at allocation.
        - More verbose error and debug messages.
      Network:
        - Remove stray write once variable.
      Virtqueue:
        - Shuffle code around in preparation of converting the mb()s to
          the appropriate atomic(9) operations.
        - Only walk the descriptor chain when freeing if INVARIANTS is
          defined since the result is only KASSERT()ed.

Submitted by: Bryan Venteicher (bryanv@daemoninthecloset.org)

12 years agoDocument the object type movements, related to swp_pager_copy(),
attilio [Wed, 11 Jul 2012 01:04:59 +0000 (01:04 +0000)]
Document the object type movements, related to swp_pager_copy(),
in vm_object_collapse() and vm_object_split().

In collabouration with: alc
MFC after: 3 days

12 years agoRemove some more unused code.
imp [Tue, 10 Jul 2012 23:11:52 +0000 (23:11 +0000)]
Remove some more unused code.

12 years agoAvoid recursion on the pvh global lock in the aim oea pmap.
alc [Tue, 10 Jul 2012 22:10:21 +0000 (22:10 +0000)]
Avoid recursion on the pvh global lock in the aim oea pmap.

Correct the return type of the pmap_ts_referenced() implementations.

Reported by: jhibbits [1]
Tested by: andreast

12 years agoChange a duplicated check to clarify that we really want to set a
brueffer [Tue, 10 Jul 2012 21:02:59 +0000 (21:02 +0000)]
Change a duplicated check to clarify that we really want to set a
reasonable default timeout.

PR: 163135
Submitted by: Sascha Wildner <saw@online.de>
Suggested by: bp
Reviewed by: bp

12 years agoSimplify error case
emaste [Tue, 10 Jul 2012 20:59:35 +0000 (20:59 +0000)]
Simplify error case

Submitted by: thompsa@

12 years agoGo ahead and disable the interrupts for the DBGU the boot loader may
imp [Tue, 10 Jul 2012 19:48:42 +0000 (19:48 +0000)]
Go ahead and disable the interrupts for the DBGU the boot loader may
have left enabled after we detect the CPU, and remove the multiplely
copied code from the SoC modules.