]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoAdd clang patch for r271282
emaste [Mon, 8 Sep 2014 18:48:54 +0000 (18:48 +0000)]
Add clang patch for r271282

Note that r271282 contains only the src change from Clang rev 200797.
This patch file includes two follow-on changes to the test case, which
do not apply to the copy in the FreeBSD tree.

Upstream Clang revisions:

200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

200798:

    Simplify testcase from r200797 some more.

200805:

    Further simplify r200797 and add an explanatory comment.

PR: 193347
MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoMerge Clang debug info crash fix rev 200797:
emaste [Mon, 8 Sep 2014 18:43:33 +0000 (18:43 +0000)]
Merge Clang debug info crash fix rev 200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

PR: 193347
MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoAvoid rs(1) hitting LINE_MAX with custom trees that have large dependencies.
bdrewery [Mon, 8 Sep 2014 17:01:30 +0000 (17:01 +0000)]
Avoid rs(1) hitting LINE_MAX with custom trees that have large dependencies.

9 years agoRevert r271257 after several issues were pointed out. An updated patch
des [Mon, 8 Sep 2014 12:26:52 +0000 (12:26 +0000)]
Revert r271257 after several issues were pointed out.  An updated patch
will be committed at a later date.

9 years agoBunch of microoptimizations to reduce dereferences and cache collisions.
mav [Mon, 8 Sep 2014 12:11:49 +0000 (12:11 +0000)]
Bunch of microoptimizations to reduce dereferences and cache collisions.

9 years agoMake it possible to use empty user name ("-U ''") for mount_smbfs(8).
trasz [Mon, 8 Sep 2014 11:01:57 +0000 (11:01 +0000)]
Make it possible to use empty user name ("-U ''") for mount_smbfs(8).
It's just like "-U guest", except that it actually works, at least
with Samba 4, which seems to return authentication failure for "-U guest".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake mount_smbfs(8) preserve the "automounted" mount flag.
trasz [Mon, 8 Sep 2014 10:57:43 +0000 (10:57 +0000)]
Make mount_smbfs(8) preserve the "automounted" mount flag.

The issue here is that we have to pass this flag as a string,
in iov, because it doesn't fit in mntflags, which is an int.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoUse the correct idiom for default values, and ensure that the script
des [Mon, 8 Sep 2014 09:33:43 +0000 (09:33 +0000)]
Use the correct idiom for default values, and ensure that the script
works correctly if the user overrides them.

PR: 193255
Submitted by: hrs@
MFC after: 3 days

9 years agoFail rather than segfault if neither PAM_TTY nor PAM_RHOST is set.
des [Mon, 8 Sep 2014 09:19:01 +0000 (09:19 +0000)]
Fail rather than segfault if neither PAM_TTY nor PAM_RHOST is set.

PR: 83099
MFC after: 3 days

9 years agoFix support for IPv6 nameservers.
des [Mon, 8 Sep 2014 09:16:07 +0000 (09:16 +0000)]
Fix support for IPv6 nameservers.

PR: 188931
Submitted by: Takefu <takefu@airport.fm>
MFC after: 3 days

9 years ago- Make hhook_run_socket() vnet-aware instead of adding CURVNET_SET() around
hrs [Mon, 8 Sep 2014 09:04:22 +0000 (09:04 +0000)]
- Make hhook_run_socket() vnet-aware instead of adding CURVNET_SET() around
  the function calls.
- Fix a memory leak and stats in the case that hhook_run_socket() fails
  in soalloc().

PR: 193265

9 years agopause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active
dumbbell [Mon, 8 Sep 2014 08:44:50 +0000 (08:44 +0000)]
pause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active

This fixes a panic in the i915 driver when one uses debug.kdb.enter=1
under vt(4).

PR: 193269
Reported by: emaste@
Submitted by: avg@
MFC after: 3 days

9 years agoUse __DECONST to avoid compiler warnings (and thus build failures)
bz [Mon, 8 Sep 2014 08:12:09 +0000 (08:12 +0000)]
Use __DECONST to avoid compiler warnings (and thus build failures)
with gcc on sparc64, mips, and powerpc after r271173.

9 years agovt(4): Change the terminal and buffer sizes, even without a font
dumbbell [Mon, 8 Sep 2014 07:37:03 +0000 (07:37 +0000)]
vt(4): Change the terminal and buffer sizes, even without a font

This fixes a bug where scroll lock would not work for tty #0 when using
vt_vga's textmode. The reason was that this window is created with a
static 256x100 buffer, larger than the real size of 80x25.

Now, in vt_change_font() and vt_compute_drawable_area(), we still
perform operations even of the window has no font loaded (this is the
case in textmode here vw->vw_font == NULL). One of these operation
resizes the buffer accordingly.

In vt_compute_drawable_area(), we take the terminal size as is (ie.
80x25) for the drawable area.

The font argument to vt_set_border() is removed (it was never used) and
the code now uses the computed drawable area instead of re-doing its own
calculation.

Reported by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
Tested by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
MFC after: 3 days

9 years agoImplement htprotmode handling.
adrian [Mon, 8 Sep 2014 07:16:00 +0000 (07:16 +0000)]
Implement htprotmode handling.

This is separate to 11g protection - the default is to RTS protect
11n frames, including A-MPDU frames.

Tested:

* Intel 5100, STA mode

9 years agoTemporarily remove the warning added r270781 - it prints the warning
peter [Mon, 8 Sep 2014 05:14:58 +0000 (05:14 +0000)]
Temporarily remove the warning added r270781 - it prints the warning
regardless of whether the usage is correct or not and this generates a
LOT of noise, even when you have specified a mask.

9 years ago(more) correctly account TX completion status for A-MPDU session frames.
adrian [Mon, 8 Sep 2014 03:16:28 +0000 (03:16 +0000)]
(more) correctly account TX completion status for A-MPDU session frames.

The rules turn out to be:

* for non-aggregation session TX queues - it's either sent or not sent.
* for aggregation session TX queues - if nframes=1, then the status reflects
  the completed transmission.
* however, for nframes > 1, then this is just a status reflecting what
  the initial transmission did.  The compressed BA (immediate or delayed)
  may not have yet been received, so the actual frame status is in the
  compressed BA updates.

Whilst here, I fiddled with debugging and formatting a bit.

There's also RTS attempts (what the atheros chips call "short retries")
which weren't being logged and they aren't yet being used in the rate
control statistics updates.  For now, at least log them.

TODO:

* This still isn't 100% correct! So I have to tinker with this some more.
  (The failures aren't always failures..)
* Extend the rate control API in net80211 so it can take both short and
  long retry counts.

Tested:

* Intel 5100, STA mode

9 years agoBring over some more status codes from the Linux iwlwifi driver.
adrian [Mon, 8 Sep 2014 03:12:42 +0000 (03:12 +0000)]
Bring over some more status codes from the Linux iwlwifi driver.

The (eventual) intention is to create MIB counters for transmitted
frame completion to count how many packets with each status are
transmitted.

Note the difference between A-MPDU and non A-MPDU status.

Obtained from: Linux iwlwifi/dvm driver

9 years agoSilence a bmake(1) warning in the gif(4) module build
gjb [Mon, 8 Sep 2014 02:37:45 +0000 (02:37 +0000)]
Silence a bmake(1) warning in the gif(4) module build
when built with WITHOUT_INET6.

LGTM:  sbruno
Sponsored by: The FreeBSD Foundation

9 years agoOops. vm_map_simplify_entry() is used by mac_proc_vm_revoke_recurse(), so
alc [Mon, 8 Sep 2014 02:25:01 +0000 (02:25 +0000)]
Oops.  vm_map_simplify_entry() is used by mac_proc_vm_revoke_recurse(), so
it can't be static.

9 years agoMake two functions static and eliminate an unused #define.
alc [Mon, 8 Sep 2014 00:19:03 +0000 (00:19 +0000)]
Make two functions static and eliminate an unused #define.

9 years agoInclude src.opts.mk after SHLIBDIR has been defined so libnv is installed to
ngie [Sun, 7 Sep 2014 22:56:57 +0000 (22:56 +0000)]
Include src.opts.mk after SHLIBDIR has been defined so libnv is installed to
/lib , not /usr/lib

MFC after: 3 days
Approved by: rpaulo (mentor)
Submitted by: antoine
Pointyhat to: me
Phabric: D739

9 years agoWhen entering the kernel with the MMU off assume we are running from a
andrew [Sun, 7 Sep 2014 21:46:54 +0000 (21:46 +0000)]
When entering the kernel with the MMU off assume we are running from a
va == pa map.

I'm not sure the code would work if we are not running from the identity
map as the ARM core may attempt to read the next instruction from an
invalid memory location.

9 years agoRemove redundant kern conf entries that are inherited via include
sbruno [Sun, 7 Sep 2014 20:27:48 +0000 (20:27 +0000)]
Remove redundant kern conf entries that are inherited via include

Move cfg to spi1 as that's where it is located from the factory

9 years agoRemove Lvirtaddr and Lphysaddr, these don't appear to be used.
andrew [Sun, 7 Sep 2014 19:33:38 +0000 (19:33 +0000)]
Remove Lvirtaddr and Lphysaddr, these don't appear to be used.

9 years agoGeneralise the va to pa code and use it when starting secondary cores
andrew [Sun, 7 Sep 2014 18:32:42 +0000 (18:32 +0000)]
Generalise the va to pa code and use it when starting secondary cores

Reviewed by: ian@, rpaulo@
Differential Revision: https://reviews.freebsd.org/D736

9 years agoAddress warnings generated by the clang analyzer.
tuexen [Sun, 7 Sep 2014 18:05:37 +0000 (18:05 +0000)]
Address warnings generated by the clang analyzer.

MFC after: 1 week

9 years agoAddress another warnings reported by Patrick Laimbock when compiling
tuexen [Sun, 7 Sep 2014 17:07:19 +0000 (17:07 +0000)]
Address another warnings reported by Patrick Laimbock when compiling
in userspace. While there, improve consistency.

MFC after: 1 week

9 years agoMFV r271225:
delphij [Sun, 7 Sep 2014 13:22:14 +0000 (13:22 +0000)]
MFV r271225:

Iterate through all the children instead of returning error when we hit
the first error.  This makes the error message give more information
rather than just the first device that causes problem.

Illumos issue:
    5118 When verifying or creating a storage pool, error messages only
 show one device

MFC after: 2 weeks

9 years agoMFV r271223:
delphij [Sun, 7 Sep 2014 13:13:42 +0000 (13:13 +0000)]
MFV r271223:

In dnode_sync(), do dnode_increase_indirection() before processing
the dn_next_nblkptr.

Illumos issue:
    5117 space map reallocation can cause corruption

MFC after: 3 days

9 years agoFix typo.
delphij [Sun, 7 Sep 2014 11:57:08 +0000 (11:57 +0000)]
Fix typo.

Submitted by: Dmitry Morozovsky <marck rinet ru>
MFC after: 3 days

9 years agoUse union sctp_sockstore instead of struct sockaddr_storage. This
tuexen [Sun, 7 Sep 2014 09:06:26 +0000 (09:06 +0000)]
Use union sctp_sockstore instead of struct sockaddr_storage. This
eliminiates some warnings when building in userland.
Thanks to Patrick Laimbock for reporting this issue.
Remove also some unnecessary casts.
There should be no functional change.

MFC after: 1 week

9 years agoCreate a common i.MX53 config and use it with the two existing i.MX53
andrew [Sun, 7 Sep 2014 08:16:27 +0000 (08:16 +0000)]
Create a common i.MX53 config and use it with the two existing i.MX53
boards.

This is just intended to split the common config entries out, further
cleanup is expected.

Reviewed by: ian@, rpaulo@ (earlier version)
Differential Revision: https://reviews.freebsd.org/D731

9 years agoUse SYSCTL_PROC instead of SYSCTL_VNET_PROC.
tuexen [Sun, 7 Sep 2014 07:49:49 +0000 (07:49 +0000)]
Use SYSCTL_PROC instead of SYSCTL_VNET_PROC.
Suggested by: glebius@
MFC after: 1 week

9 years agoUpdate mixer description for FastTrackPro.
hselasky [Sun, 7 Sep 2014 07:23:33 +0000 (07:23 +0000)]
Update mixer description for FastTrackPro.

MFC after: 3 days

9 years agostyle(9)
glebius [Sun, 7 Sep 2014 05:47:48 +0000 (05:47 +0000)]
style(9)

9 years agoFix for r271182.
glebius [Sun, 7 Sep 2014 05:44:14 +0000 (05:44 +0000)]
Fix for r271182.

Submitted by: mjg
Pointy hat to: me, submitter and everyone who urged me to commit

9 years agoImplement local sfbuf_map and sfbuf_unmap for MIPS32.
adrian [Sat, 6 Sep 2014 22:38:32 +0000 (22:38 +0000)]
Implement local sfbuf_map and sfbuf_unmap for MIPS32.

The pre-rework behaviour was not to keep the cached mappings around after
the sfbuf was used but instead to recycle said mappings.

PR: kern/193400

9 years agoFix a leak of an address, if the address is scheduled for removal
tuexen [Sat, 6 Sep 2014 20:03:24 +0000 (20:03 +0000)]
Fix a leak of an address, if the address is scheduled for removal
and the stack is torn down.
Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the
issue.

MFC after: 1 week

9 years agoAdd a define for index of IA32_XSS MSR, which is, per SDM rev. 50, an
kib [Sat, 6 Sep 2014 19:47:37 +0000 (19:47 +0000)]
Add a define for index of IA32_XSS MSR, which is, per SDM rev. 50, an
analog of XCR0 for ring 0 FPU state, used by XSAVES and XRSTORS.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoSave one register read (AHCI_IS) for AHCI controllers with only one port.
mav [Sat, 6 Sep 2014 19:43:48 +0000 (19:43 +0000)]
Save one register read (AHCI_IS) for AHCI controllers with only one port.

For controllers with only one port (like PCIe or M.2 SSDs) interrupt can
come from only one source, and skipping read saves few percents of CPU time.

MFC after: 1 month
H/W donated by: I/O Switch

9 years agoSDM rev. 50 defines the use of the next 8 bytes in the xstate header.
kib [Sat, 6 Sep 2014 19:39:12 +0000 (19:39 +0000)]
SDM rev. 50 defines the use of the next 8 bytes in the xstate header.
It is the compaction bitmask, with the highest bit defining if compact
format of the xsave area is used at all.

Adjust the definition of struct xstate_hdr, provide define for bit 63.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoFix the handling of sysctl variables when used with VIMAGE.
tuexen [Sat, 6 Sep 2014 19:12:14 +0000 (19:12 +0000)]
Fix the handling of sysctl variables when used with VIMAGE.
While there do some cleanup of the code.

MFC after: 1 week

9 years agoWhen registering an association between a device and an xref phandle, create
ian [Sat, 6 Sep 2014 18:43:17 +0000 (18:43 +0000)]
When registering an association between a device and an xref phandle, create
an entry in the xref list if one doesn't already exist for the given handle.

On a system that uses phandle properties, the init-time scan of the tree
which builds the xref list will pre-create entries for every xref handle
that exists in the data.  On systems where the xref and node handles are
synonymous there is no phandle property in referenced nodes, and the xref
list will initialize to an empty state.  In the latter case, we still need
to be able to associate a device_t with an xref handle, so we create list
entries on the fly as needed.  Since the node and xref handles are
synonymous, we have all the info needed to create a list entry at device
registration time.

The downside to this change is that it basically allows on the fly creation
of xref handles as synonyms of node handles, and the association of a
device_t with them.  Whether this is a bug or a feature is in the eye of
the beholder, I guess.

9 years agoRestore order of interrupt setup. Minor problems can result by
imp [Sat, 6 Sep 2014 18:20:50 +0000 (18:20 +0000)]
Restore order of interrupt setup. Minor problems can result by
setting up the interrupts too early:

Reviewed by: mav@
Sponsored by: Netflix

9 years agoo Remove __unused attribute on variables which actually used
br [Sat, 6 Sep 2014 18:08:21 +0000 (18:08 +0000)]
o Remove __unused attribute on variables which actually used
o Unmagic 'configuration done' bit
o Move probe() to place before attach() for better navigation
o Use bus_read_n instead of bus_space_read_n functions

Pointed out by: andrew
Sponsored by: DARPA, AFRL

9 years agoRevert rr271190, it was based on a misunderstanding. The problem of
ian [Sat, 6 Sep 2014 17:50:59 +0000 (17:50 +0000)]
Revert rr271190, it was based on a misunderstanding.  The problem of
non-existant device<->xref info needs to be handled by creating the info,
which will come in a subsequent commit.

9 years agoFixthe spelling of ehci
andrew [Sat, 6 Sep 2014 17:33:41 +0000 (17:33 +0000)]
Fixthe spelling of ehci

9 years agoAdd more bits for the XSAVE features from CPUID 0xd, sub-function 1
kib [Sat, 6 Sep 2014 15:45:45 +0000 (15:45 +0000)]
Add more bits for the XSAVE features from CPUID 0xd, sub-function 1
%eax report.

Print the XSAVE features 0xd/1 in the boot banner.  The printcpuinfo()
is executed late enough so that XSAVE is already enabled.

There is no known to me off the shelf hardware that implements any
feature bits except XSAVEOPT, the list is taken from SDM rev. 50.  The
banner printing will allow us to note the hardware arrival.

Sponsored by:     The FreeBSD Foundation
MFC after:     1 week

9 years agoFix typo in comments.
mav [Sat, 6 Sep 2014 15:37:55 +0000 (15:37 +0000)]
Fix typo in comments.

Submitted by: Benedict Reuschling <bcr@FreeBSD.org>
MFC after: 6 days

9 years agoCreate a separate structure for per-CPU state saved across suspend and
jhb [Sat, 6 Sep 2014 15:23:28 +0000 (15:23 +0000)]
Create a separate structure for per-CPU state saved across suspend and
resume that is a superset of a pcb.  Move the FPU state out of the pcb and
into this new structure.  As part of this, move the FPU resume code on
amd64 into a C function.  This allows resumectx() to still operate only on
a pcb and more closely mirrors the i386 code.

Reviewed by: kib (earlier version)

9 years agoAdd OF_xref_from_node_strict() which returns -1 if there is no xref handle
ian [Sat, 6 Sep 2014 15:11:35 +0000 (15:11 +0000)]
Add OF_xref_from_node_strict() which returns -1 if there is no xref handle
for the node.  The default routine returns the untranslated handle, which
is sometimes useful, but sometimes you really need to know there's no
entry in the xref<->node<->device translation table.

9 years agoAllow us to use the virtual timer. It is currently disabled, but should
andrew [Sat, 6 Sep 2014 13:21:07 +0000 (13:21 +0000)]
Allow us to use the virtual timer. It is currently disabled, but should
be usable as the default timer in place of the physical timer.

We are guaranteed to have access to the virtual timer, but when running
under a hypervisor may not have access to the physical.

Differential Revision: https://reviews.freebsd.org/D588

9 years agomdoc: remove superfluous paragraph macro.
joel [Sat, 6 Sep 2014 11:19:12 +0000 (11:19 +0000)]
mdoc: remove superfluous paragraph macro.

9 years agoAvoid ctld(8) crash on getaddrinfo(3) failure.
trasz [Sat, 6 Sep 2014 09:03:13 +0000 (09:03 +0000)]
Avoid ctld(8) crash on getaddrinfo(3) failure.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoAdd FPGA Manager driver. This driver allows to program FPGA core
br [Sat, 6 Sep 2014 08:48:57 +0000 (08:48 +0000)]
Add FPGA Manager driver. This driver allows to program FPGA core
from FreeBSD userspace running on ARM core.

Sponsored by: DARPA, AFRL

9 years agoPlug unnecessary fp assignments in kern_fcntl.
mjg [Fri, 5 Sep 2014 23:56:25 +0000 (23:56 +0000)]
Plug unnecessary fp assignments in kern_fcntl.

No functional changes.

9 years agoSet vnet context before accessing V_socket_hhh[].
glebius [Fri, 5 Sep 2014 19:50:18 +0000 (19:50 +0000)]
Set vnet context before accessing V_socket_hhh[].

Submitted by: "Hiroo Ono (小野寛生)" <hiroo.ono+freebsd gmail.com>

9 years agoAdd the virtual timer irq to the list of interrupts we enable on secondary
andrew [Fri, 5 Sep 2014 19:00:30 +0000 (19:00 +0000)]
Add the virtual timer irq to the list of interrupts we enable on secondary
cores.

9 years agovt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode
dumbbell [Fri, 5 Sep 2014 18:11:39 +0000 (18:11 +0000)]
vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode

MFC after: 3 days

9 years agoAdd the fp{get,set}{mask,round} functions to the public symbols in the map.
andrew [Fri, 5 Sep 2014 18:11:36 +0000 (18:11 +0000)]
Add the fp{get,set}{mask,round} functions to the public symbols in the map.
These are only exported for armv6hf as the soft-float ABIs have these in
the softfloat Symbol.map file.

9 years agoCorrect patch paths (remove contrib/llvm/)
emaste [Fri, 5 Sep 2014 18:07:15 +0000 (18:07 +0000)]
Correct patch paths (remove contrib/llvm/)

The example in contrib/llvm/patches/README.TXT fails otherwise.

Sponsored by: DARPA, AFRL

9 years agoGarbage collect NFSMINOFF() from the NFS stack; this unused macro replicates
rwatson [Fri, 5 Sep 2014 17:05:51 +0000 (17:05 +0000)]
Garbage collect NFSMINOFF() from the NFS stack; this unused macro replicates
mbuf-initialisation logic that is best left to centralised mbuf utility
code rather than scattered around the kernel.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division

9 years agoClarify a diagnostic printf() in the mbuf code: M_EXT doesn't necessarily
rwatson [Fri, 5 Sep 2014 16:46:28 +0000 (16:46 +0000)]
Clarify a diagnostic printf() in the mbuf code: M_EXT doesn't necessarily
imply a cluster is attached; it could also refer to some other sort of
external storage (e.g., an sf_buf).

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd support for gdb's memory searching capabilities to our in-kernel gdb
benno [Fri, 5 Sep 2014 16:40:47 +0000 (16:40 +0000)]
Add support for gdb's memory searching capabilities to our in-kernel gdb
server.

Submitted by: Daniel O'Connor <daniel.oconnor@isilon.com>
Reviewed by: jhb
Sponsored by: EMC Isilon Storage Division

9 years agoDocument initiator-portal netmask support.
trasz [Fri, 5 Sep 2014 14:58:24 +0000 (14:58 +0000)]
Document initiator-portal netmask support.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoTurn two errors, which are possible to trigger only by bugs,
trasz [Fri, 5 Sep 2014 14:48:06 +0000 (14:48 +0000)]
Turn two errors, which are possible to trigger only by bugs,
into assertions.

Discussed with: mav@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoRevert r271159, Mis-patched the tree.
kevlo [Fri, 5 Sep 2014 14:35:34 +0000 (14:35 +0000)]
Revert r271159, Mis-patched the tree.

Pointed out by: kib

9 years agoMake it possible to quote names in autofs maps using double quotes.
trasz [Fri, 5 Sep 2014 14:32:09 +0000 (14:32 +0000)]
Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR: 192968
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoInvert AHCI_Q_NOBSYRES quirk meaning, waiting for readiness by default.
mav [Fri, 5 Sep 2014 13:45:14 +0000 (13:45 +0000)]
Invert AHCI_Q_NOBSYRES quirk meaning, waiting for readiness by default.

I gave up to update list of Marvell chips that require this quirk.
The final nail was growing number of PCIe/M.2 SSDs where Marvell chips
have PCI IDs of different vendors.

MFC after: 1 week
H/W donated by: I/O Switch

9 years agoThe USB LED driver for the Dream Cheeky WebMail Notifier.
kevlo [Fri, 5 Sep 2014 11:25:58 +0000 (11:25 +0000)]
The USB LED driver for the Dream Cheeky WebMail Notifier.

Reviewed by: hselasky

9 years agoFix typo.
trasz [Fri, 5 Sep 2014 11:10:44 +0000 (11:10 +0000)]
Fix typo.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoAdd IDs for Intel Patsburg USB 2.0 controller.
mav [Fri, 5 Sep 2014 07:42:34 +0000 (07:42 +0000)]
Add IDs for Intel Patsburg USB 2.0 controller.

9 years agoRoll back r271012 even more aggressively.
ed [Fri, 5 Sep 2014 05:36:32 +0000 (05:36 +0000)]
Roll back r271012 even more aggressively.

I've looked at the GCC sources and I now understand what's going wrong.
THe C11 keywords are simply nonexistent when using C++ mode. They are
marked as C-only in the parser. This is absolutely impractical for
multiple reasons:

- The C11 keywords do not conflict with C++ naming rules. They all start
  with _[A-Z]. There is no reason to make them C-only.

- It makes it practically impossible for people to use these keywords in
  C header files and expect them to work from within C++ sources.

As I said in my previous commit message: GCC is by far the weirdest
compiler that I've ever used.

9 years agoPartially revert r271012.
ed [Fri, 5 Sep 2014 05:20:52 +0000 (05:20 +0000)]
Partially revert r271012.

Incredibly weird: GCC 4.7/4.9 do support the _Noreturn and _Thread_local
keywords, but not during bootstrapping. GCC is by far the weirdest
compiler that I've ever used.

Reported by: andreast@

9 years agoMerge forgotten .h files from vendor branch.
imp [Fri, 5 Sep 2014 02:21:45 +0000 (02:21 +0000)]
Merge forgotten .h files from vendor branch.

9 years agoBring in forgotten pinfunc.h files from last import.
imp [Fri, 5 Sep 2014 02:20:06 +0000 (02:20 +0000)]
Bring in forgotten pinfunc.h files from last import.

9 years agoApply known workarounds for modern MacBooks.
pfg [Fri, 5 Sep 2014 01:06:45 +0000 (01:06 +0000)]
Apply known workarounds for modern MacBooks.

The legacy USB circuit tends to give trouble on MacBook.
While the original report covered MacBook, extend the fix
preemptively for the newer MacBookPro too.

PR: 191693
Reviewed by: emaste
MFC after: 5 days

9 years agouse a straight buffer instead of an iov w/ 1 segment... The aesni
jmg [Thu, 4 Sep 2014 23:53:51 +0000 (23:53 +0000)]
use a straight buffer instead of an iov w/ 1 segment...  The aesni
driver when it hits a mbuf/iov buffer, it mallocs and copies the data
for processing..  This improves perf by ~8-10% on my machine...

I have thoughts of fixing AES-NI so that it can better handle segmented
buffers, which should help improve IPSEC performance, but that is for
the future...

9 years agoRemove an initialized, but otherwise, unused variable.
kargl [Thu, 4 Sep 2014 23:50:05 +0000 (23:50 +0000)]
Remove an initialized, but otherwise, unused variable.

9 years agoSeparate out PCI attachment from the main AHCI driver. Move checks of
imp [Thu, 4 Sep 2014 22:22:53 +0000 (22:22 +0000)]
Separate out PCI attachment from the main AHCI driver. Move checks of
PCI IDs into quirks, which mostly fit (though you'd get no argument
from me that AHCI_Q_SATA1_UNIT0 is oddly specific). Set these quirks
in the PCI attachment. Make some shared functions public so that PCI
and possibly other bus attachments can use them.

The split isn't perfect yet, but it is functional. The split will be
perfected as other bus attachments for AHCI are written.

Sponsored by: Netflix
Reviewed by: kan, mav
Differential Revision: https://reviews.freebsd.org/D699

9 years agoFix a bug which prevented mount.fstab parameter from being converted
hrs [Thu, 4 Sep 2014 22:00:52 +0000 (22:00 +0000)]
Fix a bug which prevented mount.fstab parameter from being converted
when jail_JID_devfs_enable=NO.

Spotted by: peter

9 years agosh: Allow enabling job control without a tty in non-interactive mode.
jilles [Thu, 4 Sep 2014 21:48:33 +0000 (21:48 +0000)]
sh: Allow enabling job control without a tty in non-interactive mode.

If no tty is available, 'set -m' is still useful to put jobs in their own
process groups.

9 years agoReimport dts files from vendor repo now that it has been properly
imp [Thu, 4 Sep 2014 21:48:33 +0000 (21:48 +0000)]
Reimport dts files from vendor repo now that it has been properly
trimmed.

9 years agoAllow multiple image activators to run on the same execution by changing
sbruno [Thu, 4 Sep 2014 21:31:25 +0000 (21:31 +0000)]
Allow multiple image activators to run on the same execution by changing
imgp->interpreted to a bitmask instead of, functionally, a bool. Each
imgactivator now requires its own flag in interpreted to indicate whether
or not it has already examined argv[0].

Change imgp->interpreted to an unsigned char to add one extra bit for
future use.

With this change, one can execute a shell script from a 64bit host native
make and still get the binmisc image activator to fire for the script
interpreter.  Prior to this, execution would fail.

Phabric: https://reviews.freebsd.org/D696
Reviewed by: jhb@
MFC after: 4 weeks

9 years agoDelete old arm dts tree. This was created by cherry picking from a
imp [Thu, 4 Sep 2014 21:28:25 +0000 (21:28 +0000)]
Delete old arm dts tree. This was created by cherry picking from a
full vendor tree. This worked great until it was time to update, but
now it is time to update. Hit the rest button by removing this branch
and re-adding it by a full copy of whatever is in the vendor tree.

9 years agoProperly trim the vendor tree to include only those files that we want
imp [Thu, 4 Sep 2014 21:26:34 +0000 (21:26 +0000)]
Properly trim the vendor tree to include only those files that we want
merged into FreeBSD. Cherry picking from a full vendor tree was too
hard and lead to undestirable svn results.

Note: We only tim the dts* files, we don't trim the dt-bindings tree,
since having all of them causes no problems and the benefit to
trimming there is far out weighed by the cost of doing the trim each
time.

9 years agoAdd mrsas(4) to GENERIC for i386 and amd64.
markj [Thu, 4 Sep 2014 21:06:33 +0000 (21:06 +0000)]
Add mrsas(4) to GENERIC for i386 and amd64.

Approved by: ambrisko, kadesai
MFC after: 3 days

9 years agoUpdate bindings to latest vendor branch representing 3.17-rc2 level of
imp [Thu, 4 Sep 2014 20:48:16 +0000 (20:48 +0000)]
Update bindings to latest vendor branch representing 3.17-rc2 level of
Linux DTS API.

9 years agoStop setting the iomux device status to disabled, now that we have a driver.
ian [Thu, 4 Sep 2014 19:52:17 +0000 (19:52 +0000)]
Stop setting the iomux device status to disabled, now that we have a driver.

9 years agoSatisfy assertion in m_demote().
glebius [Thu, 4 Sep 2014 19:28:02 +0000 (19:28 +0000)]
Satisfy assertion in m_demote().

Sponsored by: Nginx, Inc.

9 years agoChange a very strange code in m_demote() to simple assertion.
glebius [Thu, 4 Sep 2014 19:27:30 +0000 (19:27 +0000)]
Change a very strange code in m_demote() to simple assertion.

Sponsored by: Nginx, Inc.

9 years agoIn tcp_input(), don't acquire the pcbinfo global write lock for SYN
jhb [Thu, 4 Sep 2014 19:09:08 +0000 (19:09 +0000)]
In tcp_input(), don't acquire the pcbinfo global write lock for SYN
packets targeting a listening socket.  Permit to reduce TCP input
processing starvation in context of high SYN load (e.g. short-lived TCP
connections or SYN flood).

Submitted by: Julien Charbon <jcharbon@verisign.com>
Reviewed by: adrian, hiren, jhb, Mike Bentkofsky

9 years agolibc/locale: Remove a wrong comma.
pfg [Thu, 4 Sep 2014 17:36:21 +0000 (17:36 +0000)]
libc/locale: Remove a wrong comma.

This only had some effect when debugging.

Obtained from: DragonflyBSD
MFC after: 3 days

9 years agoFix debug output that has erroneously been committed with the last update.
se [Thu, 4 Sep 2014 17:19:16 +0000 (17:19 +0000)]
Fix debug output that has erroneously been committed with the last update.

Obtained from: Jan Beich
MFC after: 3 days

9 years agoFixes for tcp_respond() comment.
glebius [Thu, 4 Sep 2014 17:05:57 +0000 (17:05 +0000)]
Fixes for tcp_respond() comment.

9 years agoWrap some long lines.
imp [Thu, 4 Sep 2014 16:40:54 +0000 (16:40 +0000)]
Wrap some long lines.

9 years agoImplement the imx_iomux_get/set_gpr() interface for imx6.
ian [Thu, 4 Sep 2014 15:11:57 +0000 (15:11 +0000)]
Implement the imx_iomux_get/set_gpr() interface for imx6.

9 years agoThe iomux driver is no longer optional, all imx platforms have it as
ian [Thu, 4 Sep 2014 14:59:27 +0000 (14:59 +0000)]
The iomux driver is no longer optional, all imx platforms have it as
standard now, so remove it from kernel configs.

9 years agoImplement the same public interface in imx51 and imx6 iomux; use the common
ian [Thu, 4 Sep 2014 14:57:04 +0000 (14:57 +0000)]
Implement the same public interface in imx51 and imx6 iomux; use the common
header file for both.  Remove some unused code from imx51_iomux.  The iomux
drivers are required, not optional, adjust the files.* entries accordingly.