]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoWhitespace nit.
np [Tue, 9 Sep 2014 18:36:00 +0000 (18:36 +0000)]
Whitespace nit.

MFC after: 1 week

9 years agoDon't cross mount boundaries when cleaning tmp files.
bdrewery [Tue, 9 Sep 2014 17:03:58 +0000 (17:03 +0000)]
Don't cross mount boundaries when cleaning tmp files.

Mounting something in /tmp such as a build jail with nullfs mounts for
some directories can result in very surprising results the next day.

MFC after: 2 weeks
Relnotes: yes

9 years agoUse keys_add_int() where appropriate. No functional changes.
trasz [Tue, 9 Sep 2014 16:57:02 +0000 (16:57 +0000)]
Use keys_add_int() where appropriate.  No functional changes.

Sponsored by: The FreeBSD Foundation

9 years agoFix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias
trasz [Tue, 9 Sep 2014 16:45:36 +0000 (16:45 +0000)]
Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias
when the initiator skips security negotiation.  This fixes interoperability
with Xtend SAN initiator.

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

9 years agoAvoid unlocking unlocked mutex in RCTL jail code. Specific test case
trasz [Tue, 9 Sep 2014 16:05:33 +0000 (16:05 +0000)]
Avoid unlocking unlocked mutex in RCTL jail code.  Specific test case
is attached to PR.

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

9 years agoReport that DPO and FUA bits are supported after r271311.
mav [Tue, 9 Sep 2014 15:19:38 +0000 (15:19 +0000)]
Report that DPO and FUA bits are supported after r271311.

9 years agoMinor mdoc nit.
joel [Tue, 9 Sep 2014 14:34:54 +0000 (14:34 +0000)]
Minor mdoc nit.

9 years ago- Add missing "
joel [Tue, 9 Sep 2014 14:31:56 +0000 (14:31 +0000)]
- Add missing "
- Sort sections

9 years agoOops, missed piece of r271311.
mav [Tue, 9 Sep 2014 14:20:55 +0000 (14:20 +0000)]
Oops, missed piece of r271311.

9 years agoRevert r269474. Special keyboard combinations should be handled by separate
ray [Tue, 9 Sep 2014 14:18:56 +0000 (14:18 +0000)]
Revert r269474. Special keyboard combinations should be handled by separate
sysctls.

9 years agoAdd support for Mode Page Policy (0x87) VPD page.
mav [Tue, 9 Sep 2014 14:09:51 +0000 (14:09 +0000)]
Add support for Mode Page Policy (0x87) VPD page.

9 years agoRename new to newval in inline asm code, to avoid clashes with C++ new.
ian [Tue, 9 Sep 2014 13:50:21 +0000 (13:50 +0000)]
Rename new to newval in inline asm code, to avoid clashes with C++ new.
Also rename cmp to cmpval just to keep the asm variable names similar to
the C variable names.

9 years agoImprove cache control support, including DPO/FUA flags and the mode page.
mav [Tue, 9 Sep 2014 11:38:29 +0000 (11:38 +0000)]
Improve cache control support, including DPO/FUA flags and the mode page.

At this moment it works only for files and ZVOLs in device mode since BIOs
have no respective respective cache control flags (DPO/FUA).

MFC after: 1 month
Sponsored by: iXsystems, Inc.

9 years agoMake ZVOL writes in device mode support IO_SYNC flag.
mav [Tue, 9 Sep 2014 11:29:55 +0000 (11:29 +0000)]
Make ZVOL writes in device mode support IO_SYNC flag.

MFC after: 1 month

9 years agoAdd the ability to set `prefer_source' flag to an IPv6 address.
ae [Tue, 9 Sep 2014 10:52:50 +0000 (10:52 +0000)]
Add the ability to set `prefer_source' flag to an IPv6 address.
It affects the IPv6 source address selection algorithm (RFC 6724)
and allows override the last rule ("longest matching prefix") for
choosing among equivalent addresses. The address with `prefer_source'
will be preferred source address.

Obtained from: Yandex LLC
MFC after: 1 month
Sponsored by: Yandex LLC

9 years agoDrop frames that have larger than MCLBYTES.
kevlo [Tue, 9 Sep 2014 05:21:31 +0000 (05:21 +0000)]
Drop frames that have larger than MCLBYTES.

9 years agoAdd basic RSS awareness for the UDPv6 send path.
adrian [Tue, 9 Sep 2014 04:20:53 +0000 (04:20 +0000)]
Add basic RSS awareness for the UDPv6 send path.

This doesn't include the same kind of userland overriding that the IPv4
path has; nor does it yet know about 2-tuple versus 4-tuple hashing.
That'll come later.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoCalculate the RSS hash for outbound UDPv4 frames.
adrian [Tue, 9 Sep 2014 04:19:36 +0000 (04:19 +0000)]
Calculate the RSS hash for outbound UDPv4 frames.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoUpdate the IPv4 input path to handle reassembled frames and incoming frames
adrian [Tue, 9 Sep 2014 04:18:20 +0000 (04:18 +0000)]
Update the IPv4 input path to handle reassembled frames and incoming frames
with no RSS hash.

When doing RSS:

* Create a new IPv4 netisr which expects the frames to have been verified;
  it just directly dispatches to the IPv4 input path.
* Once IPv4 reassembly is done, re-calculate the RSS hash with the new
  IP and L3 header; then reinject it as appropriate.
* Update the IPv4 netisr to be a CPU affinity netisr with the RSS hash
  function (rss_soft_m2cpuid) - this will do a software hash if the
  hardware doesn't provide one.

NICs that don't implement hardware RSS hashing will now benefit from RSS
distribution - it'll inject into the correct destination netisr.

Note: the netisr distribution doesn't work out of the box - netisr doesn't
query RSS for how many CPUs and the affinity setup.  Yes, netisr likely
shouldn't really be doing CPU stuff anymore and should be "some kind of
'thing' that is a workqueue that may or may not have any CPU affinity";
that's for a later commit.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoAdd a callback to be notified about negotiated features.
grehan [Tue, 9 Sep 2014 04:11:54 +0000 (04:11 +0000)]
Add a callback to be notified about negotiated features.

Submitted by: luigi
Obtained from: Vincenzo Maffione, Universita` di Pisa
MFC after: 3 days

9 years agoImplement IPv4 RSS software hash functions to use during packet ingress
adrian [Tue, 9 Sep 2014 03:10:21 +0000 (03:10 +0000)]
Implement IPv4 RSS software hash functions to use during packet ingress
and egress.

* rss_mbuf_software_hash_v4 - look at the IPv4 mbuf to fetch the IPv4 details
  + direction to calculate a hash.
* rss_proto_software_hash_v4 - hash the given source/destination IPv4 address,
  port and direction.
* rss_soft_m2cpuid - map the given mbuf to an RSS CPU ("bucket" for now)

These functions are intended to be used by the stack to support
the following:

* Not all NICs do RSS hashing, so we should support some way of doing
  a hash in software;
* The NIC / driver may not hash frames the way we want (eg UDP 4-tuple
  hashing when the stack is only doing 2-tuple hashing for UDP); so we
  may need to re-hash frames;
* .. same with IPv4 fragments - they will need to be re-hashed after
  reassembly;
* .. and same with things like IP tunneling and such;
* The transmit path for things like UDP, RAW and ICMP don't currently
  have any RSS information attached to them - so they'll need an
  RSS calculation performed before transmit.

TODO:

* Counters! Everywhere!
* Add a debug mode that software hashes received frames and compares them
  to the hardware hash provided by the hardware to ensure they match.

The IPv6 part of this is missing - I'm going to do some re-juggling of
where various parts of the RSS framework live before I add the IPv6
code (read: the IPv6 code is going to go into netinet6/in6_rss.[ch],
rather than living here.)

Note: This API is still fluid.  Please keep that in mind.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoBe ANSI-C compliant when defining CX_LIMITED_RANGE #pragma
ngie [Tue, 9 Sep 2014 02:58:58 +0000 (02:58 +0000)]
Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragma

This mutes warnings with clang

Approved by: rpaulo (mentor)
Reviewed by: das, kargl (both as part of a larger patch)
Phabric: D742
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd support for receiving and setting flowtype, flowid and RSS bucket
adrian [Tue, 9 Sep 2014 01:45:39 +0000 (01:45 +0000)]
Add support for receiving and setting flowtype, flowid and RSS bucket
information as part of recvmsg().

This is primarily used for debugging/verification of the various
processing paths in the IP, PCB and driver layers.

Unfortunately the current implementation of the control message path
results in a ~10% or so drop in UDP frame throughput when it's used.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoAdd IP_NODEFAULTFLOWID awareness to ip6_output().
adrian [Tue, 9 Sep 2014 00:21:21 +0000 (00:21 +0000)]
Add IP_NODEFAULTFLOWID awareness to ip6_output().

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

9 years agoAdd a flag to ip_output() - IP_NODEFAULTFLOWID - which prevents it from
adrian [Tue, 9 Sep 2014 00:19:02 +0000 (00:19 +0000)]
Add a flag to ip_output() - IP_NODEFAULTFLOWID - which prevents it from
overriding an existing flowid/flowtype field in the outbound mbuf with
the inp_flowid/inp_flowtype details.

The upcoming RSS UDP support calculates a valid RSS value for outbound
mbufs and since it may change per send, it doesn't cache it in the inpcb.
So overriding it here would be wrong.

Differential Revision: https://reviews.freebsd.org/D527
Reviewed by: grehan

9 years agoMerge from NetBSD:
brooks [Mon, 8 Sep 2014 19:26:21 +0000 (19:26 +0000)]
Merge from NetBSD:

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings
gracefully.  (don't abuse 0 to mean compute string length internally)

PR: 193447
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
MFC after: 1 month

9 years agoUse the right constants in comparisons. This is currently a nop, as
brueffer [Mon, 8 Sep 2014 19:24:25 +0000 (19:24 +0000)]
Use the right constants in comparisons.  This is currently a nop, as
MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD.

Reviewed by: Eric Joyner @ Intel
MFC after: 1 week

9 years agoAdd a 'ubenv import' command to import environment variables from the
ian [Mon, 8 Sep 2014 19:19:10 +0000 (19:19 +0000)]
Add a 'ubenv import' command to import environment variables from the
u-boot env into the loader(8) env (which also gets them into the kernel
env).  You can import selected variables or the whole environment.  Each
u-boot var=value becomes uboot.var=value in the loader env.  You can also
use 'ubenv show' to display uboot vars without importing them.

9 years agoInclude the gssapi_krb5 library in KRB5_LDFLAGS.
gjb [Mon, 8 Sep 2014 19:00:13 +0000 (19:00 +0000)]
Include the gssapi_krb5 library in KRB5_LDFLAGS.

PR: 156245
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

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