]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r297991: Extract virtual port address from RQSTYPE_RPT_ID_ACQ.
mav [Tue, 3 May 2016 08:05:31 +0000 (08:05 +0000)]
MFC r297991: Extract virtual port address from RQSTYPE_RPT_ID_ACQ.

This should close the race between request arriving on new target mode
virtual port and its scanner thread finally fetch its address for request
routing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297915: Filter Port Database Changed notifications.
mav [Tue, 3 May 2016 08:04:34 +0000 (08:04 +0000)]
MFC r297915: Filter Port Database Changed notifications.

For some reason firmware sends Port Database Changed notifications in case
of explicit login requests from the driver when target port is unavailabe.
Those notifications don't give driver any new information, but only cause
infinite scan loop.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297912: Respect NVRAM topology settings on 24xx and above chips.
mav [Tue, 3 May 2016 08:03:51 +0000 (08:03 +0000)]
MFC r297912: Respect NVRAM topology settings on 24xx and above chips.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297867: Make all CT Pass-Through (name server requests) asynchronous.
mav [Tue, 3 May 2016 08:03:07 +0000 (08:03 +0000)]
MFC r297867: Make all CT Pass-Through (name server requests) asynchronous.

Previously we had to do it synchronously because we could not drop the lock
due to potential scratch memory use conflicts.  Previous commits fixed that
collision, so here it goes -- slower and less reliable external requests
are executed asynchronously without spinning in tight loop and with more
safe timeout handling.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297859: Switch isp_getpdb() to synchronous IOCB DMA area.
mav [Tue, 3 May 2016 08:02:00 +0000 (08:02 +0000)]
MFC r297859: Switch isp_getpdb() to synchronous IOCB DMA area.

While technically it is not IOCB, it is synchronous and can be called from
different places, so calling FC_SCRATCH_ACQUIRE() here is inconvenient.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297858: Allocate separate DMA area for synchronous IOCB execution.
mav [Tue, 3 May 2016 08:00:54 +0000 (08:00 +0000)]
MFC r297858: Allocate separate DMA area for synchronous IOCB execution.

Usually IOCBs should be put on queue for asynchronous processing and should
not require additional DMA memory.  But there are some cases like aborts and
resets that for external reasons has to be synchronous.  Give those cases
separate 2*64 byte DMA area to decouple them from other DMA scratch area
users, using it for asynchronous requests.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297856: Reimplement ISP_TSK_MGMT IOCTL via asynchronous request.
mav [Tue, 3 May 2016 07:59:42 +0000 (07:59 +0000)]
MFC r297856: Reimplement ISP_TSK_MGMT IOCTL via asynchronous request.

I am not sure this code is not completely dead, but it used DMA scratch
are without good reason and asked to be refactored.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297854: Add couple missing memory barriers.
mav [Tue, 3 May 2016 07:58:51 +0000 (07:58 +0000)]
MFC r297854: Add couple missing memory barriers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297817: Polish debugging IOCB dumping.
mav [Tue, 3 May 2016 07:58:11 +0000 (07:58 +0000)]
MFC r297817: Polish debugging IOCB dumping.

Add few more missing cases, unify byte order.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297751: Register symbolic port/node names in FC name server.
mav [Tue, 3 May 2016 07:57:26 +0000 (07:57 +0000)]
MFC r297751: Register symbolic port/node names in FC name server.

This is cosmetics that simplifies identification of new ports on FC switch.

It would be good to use target name from CTL here instead of hostname, but
it is not passed here through CAM now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297741: Reduce code duplication when executing Passthrough IOCB.
mav [Tue, 3 May 2016 07:56:42 +0000 (07:56 +0000)]
MFC r297741: Reduce code duplication when executing Passthrough IOCB.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297522: Pass through some new block device features.
mav [Tue, 3 May 2016 07:52:06 +0000 (07:52 +0000)]
MFC r297522: Pass through some new block device features.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297921: Add hint.ahci.X.quirks tunable for some odd cases.
mav [Tue, 3 May 2016 07:50:58 +0000 (07:50 +0000)]
MFC r297921: Add hint.ahci.X.quirks tunable for some odd cases.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297963: Remove watchdog timer stop check.
mav [Tue, 3 May 2016 07:49:40 +0000 (07:49 +0000)]
MFC r297963: Remove watchdog timer stop check.

There are bunch of reports that this check fails at least on Nuvoton
NCT6776 chips.  I don't see why this check needed there, and Linux does
not have it either.  So far this check only made watchdogd unstopable.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297243: Polish wbwd(4) driver and add more supported chips.
mav [Tue, 3 May 2016 07:48:52 +0000 (07:48 +0000)]
MFC r297243: Polish wbwd(4) driver and add more supported chips.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298192: MFV r298178:
delphij [Mon, 2 May 2016 05:46:47 +0000 (05:46 +0000)]
MFC r298192: MFV r298178:

Update file to 5.26.

Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@298920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298888: typo
jamie [Sun, 1 May 2016 16:49:32 +0000 (16:49 +0000)]
MFC r298888: typo

Submitted by: Jimmy Olgeni

git-svn-id: svn://svn.freebsd.org/base/stable/10@298889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r295471:
jamie [Sat, 30 Apr 2016 15:06:18 +0000 (15:06 +0000)]
MFC r295471:

  Add new rc.conf parameter "jail_reverse_stop"

  When a user defines "jail_list" in rc.conf the jails are started in the
  order defined. Currently the jails are not are stopped in reverse order
  which may break dependencies between jails/services and prevent a clean
  shutdown. The new parameter "jail_reverse_stop" will shutdown jails in
  "jail_list" in reverse order when set to "YES".

  Please note that this does not affect manual invocation of the jail rc
  script. If a user runs the command

    # service jail stop jail1 jail2 jail3

  the jails will be stopped in exactly the order specified regardless of
  jail_reverse_stop being defined in rc.conf.

MFC r295568:

  Document the new jail_reverse_stop parameter

  While here clean up the documentation for jail_list

PR: 196152
Submitted by: feld

git-svn-id: svn://svn.freebsd.org/base/stable/10@298852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298525:
wblock [Sat, 30 Apr 2016 14:47:45 +0000 (14:47 +0000)]
MFC r298525:

Add a single example of adding a user that roughly corresponds with the
adduser example in the Handbook.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298850 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298735
arybchik [Sat, 30 Apr 2016 06:35:20 +0000 (06:35 +0000)]
MFC r298735

sfxge(4): do not use RxQ index as label

Labels are limitted by 32 on EF10. It is not sufficient on powerful hosts.
Since only one RxQ is running over each EvQ, zero label may be used.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
PR:             208267
Differential Revision:  https://reviews.freebsd.org/D6121

git-svn-id: svn://svn.freebsd.org/base/stable/10@298836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298584:
jamie [Sat, 30 Apr 2016 04:02:32 +0000 (04:02 +0000)]
MFC r298584:

  Note the existence of module-specific jail paramters, starting with the
  linux.* parameters when linux emulation is loaded.

MFC r298585:

  Encapsulate SYSV IPC objects in jails.  Define per-module parameters
  sysvmsg, sysvsem, and sysvshm, with the following bahavior:

  inherit: allow full access to the IPC primitives.  This is the same as
  the current setup with allow.sysvipc is on.  Jails and the base system
  can see (and moduly) each other's objects, which is generally considered
  a bad thing (though may be useful in some circumstances).

  disable: all no access, same as the current setup with allow.sysvipc off.

  new: A jail may see use the IPC objects that it has created.  It also
  gets its own IPC key namespace, so different jails may have their own
  objects using the same key value.  The parent jail (or base system) can
  see the jail's IPC objects, but not its keys.

PR: 48471

git-svn-id: svn://svn.freebsd.org/base/stable/10@298835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297367:
jamie [Sat, 30 Apr 2016 04:01:22 +0000 (04:01 +0000)]
MFC r297367:

  Move the various per-type arrays of OSD data into a single structure array.

MFC r297422:

  Add osd_reserve() and osd_set_reserved(), which allow M_WAITOK allocation
  of an OSD array.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298565:
jamie [Sat, 30 Apr 2016 03:19:07 +0000 (03:19 +0000)]
MFC r298565:

  Add a new jail OSD method, PR_METHOD_REMOVE.  It's called when a jail is
  removed from the user perspective, i.e. when the last pr_uref goes away,
  even though the jail mail still exist in the dying state.  It will also
  be called if either PR_METHOD_CREATE or PR_METHOD_SET fail.

MFC r298683:

  Delay removing the last jail reference in prison_proc_free, and instead
  put it off into the pr_task.  This is similar to prison_free, and in fact
  uses the same task even though they do something slightly different.

MFC r298566:

  Pass the current/new jail to PR_METHOD_CHECK, which pushes the call
  until after the jail is found or created.  This requires unlocking the
  jail for the call and re-locking it afterward, but that works because
  nothing in the jail has been changed yet, and other processes won't
  change the important fields as long as allprison_lock remains held.

  Keep better track of name vs namelc in kern_jail_set.  Name should
  always be the hierarchical name (relative to the caller), and namelc
  the last component.

MFC r298668:

  Use crcopysafe in jail_attach.

PR: 48471

git-svn-id: svn://svn.freebsd.org/base/stable/10@298833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298564:
jamie [Sat, 30 Apr 2016 03:05:36 +0000 (03:05 +0000)]
MFC r298564:

  Remove the PR_REMOVE flag, which was meant as a temporary marker for
  a jail that might be seen mid-removal.  It hasn't been doing the right
  thing since at least the ability to resurrect dying jails, and such
  resurrection also makes it unnecessary.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298832 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298664
kp [Fri, 29 Apr 2016 20:19:41 +0000 (20:19 +0000)]
MFC r298664

msdosfs: Prevent buffer overflow when expanding win95 names

In win2unixfn() we expand Windows 95 style long names. In some cases that
requires moving the data in the nbp->nb_buf buffer backwards to make room. That
code failed to check for overflows, leading to a stack overflow in win2unixfn().

We now check for this event, and mark the entire conversion as failed in that
case. This means we present the 8 character, dos style, name instead.

PR: 204643
Differential Revision:      https://reviews.freebsd.org/D6015

git-svn-id: svn://svn.freebsd.org/base/stable/10@298799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297696 and r298424:
hselasky [Fri, 29 Apr 2016 11:37:06 +0000 (11:37 +0000)]
MFC r297696 and r298424:
Add new USB quirks.

Submitted by: AJ <aleksanderlothe@live.com>
PR: 208623
Submitted by: Naram Qashat <cyberbotx@cyberbotx.com>
PR: 208642

git-svn-id: svn://svn.freebsd.org/base/stable/10@298781 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298458:
hselasky [Fri, 29 Apr 2016 11:29:52 +0000 (11:29 +0000)]
MFC r298458:
Add missing set of the current VNET when inputting IP packets in IPoIB.

This fixes a kernel panic when using IPoIB with VIMAGE and infiniband.

PR: 208957
Sponsored by: Mellanox Technologies
Tested by: Justin Clift <justin@postgresql.org>

git-svn-id: svn://svn.freebsd.org/base/stable/10@298779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297968:
hselasky [Fri, 29 Apr 2016 11:18:48 +0000 (11:18 +0000)]
MFC r297968:
Remove some unused fields.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@298778 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297967:
hselasky [Fri, 29 Apr 2016 11:14:02 +0000 (11:14 +0000)]
MFC r297967:
Ensure the received IP header gets 32-bits aligned.

The FreeBSD's TCP/IP stack assumes that the IP-header is 32-bits aligned
when decoding it. Else unaligned 32-bit memory access can happen, which
not all processor architectures support.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@298775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297966:
hselasky [Fri, 29 Apr 2016 11:06:24 +0000 (11:06 +0000)]
MFC r297966:
Add missing port_up checks.

When downing a mlxen network adapter we need to check the port_up variable
to ensure we don't continue to transmit data or restart timers which can
reside in freed memory.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@298773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298640:
pfg [Fri, 29 Apr 2016 03:12:14 +0000 (03:12 +0000)]
MFC r298640:
ed(1): switch two statements so we check the index before dereferencing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298551, r298679, r298680:
pfg [Fri, 29 Apr 2016 03:04:56 +0000 (03:04 +0000)]
MFC r298551, r298679, r298680:
fsck_ffs: use uint32_t for closedisk().

fs_ncg is of type uint32_t, and we were indexing it with an int.
Fixed this using an unsigned type.

Reviewed by: mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/10@298764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298530:
pfg [Fri, 29 Apr 2016 02:56:03 +0000 (02:56 +0000)]
MFC r298530:
patch(1): avoid signed integer overflow when debugging.

Integer i is used to index p_end of type LINENUM (actually long).
Match the types.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298562:
jamie [Thu, 28 Apr 2016 01:40:47 +0000 (01:40 +0000)]
MFC r298562:

  Make jail(8) interpret escape codes in fstab the same as getfsent(3).

PR: 208663

git-svn-id: svn://svn.freebsd.org/base/stable/10@298729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298516:
jamie [Thu, 28 Apr 2016 01:31:07 +0000 (01:31 +0000)]
MFC r298516:

  Don't remove the /var/run/jail_name.id file if a jail fails to start.
  This messes up ezjail (and possibly others), when attempting to start
  a jail that already exists.

PR: 208806
Reviewed by: tj

git-svn-id: svn://svn.freebsd.org/base/stable/10@298728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298521;
pfg [Thu, 28 Apr 2016 01:11:25 +0000 (01:11 +0000)]
MFC r298521;
regex: prevent two improbable signed integer overflows.

In matcher() we used an integer to index nsub of type size_t.
In print() we used an integer to index nstates of type sopno,
typedef'd long.
In both cases the indexes never take negative values.

Match the types to avoid any error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298518:
pfg [Thu, 28 Apr 2016 01:05:40 +0000 (01:05 +0000)]
MFC r298518:
ext2_htree_release(): prevent signed integer overflow in a loop.

h_levels_num, as most data structs in ext2fs, is unsigned so
the index that addresses it has to be unsigned as well.

To get to overflow here we would probably be considering a
degenerate case though.

MFC after: 5 days

git-svn-id: svn://svn.freebsd.org/base/stable/10@298725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297932,298295:
jhb [Wed, 27 Apr 2016 23:04:42 +0000 (23:04 +0000)]
MFC 297932,298295:
Improvements for PCI passthru devices.

297932:
Handle PBA that shares a page with MSI-X table for passthrough devices.

If the PBA shares a page with the MSI-X table, map the shared page via
/dev/mem and emulate accesses to the portion of the PBA in the shared
page by accessing the mapped page.

298295:
Always emit an error message on passthru configuration errors.

Previously, many errors (such as the PCI device not being attached
to the ppt(4) driver) resulted in bhyve silently exiting without
starting the virtual machine.  Now any errors encountered when
configuring a virtual slot for a PCI passthru device should be noted
on stderr.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297039,297374,297398,297484:
jhb [Wed, 27 Apr 2016 19:12:49 +0000 (19:12 +0000)]
MFC 297039,297374,297398,297484:
Poll the IPI status while waiting constantly instead of delaying
5 microseconds between checks.  This avoids inserting a minimum
latency of 5 microseconds on each IPI.

297039:
Check IPI status more frequently when waiting.

An IPI cannot be sent via the local APIC if a previous IPI is still
being delivered.  Attempts to send an IPI will wait for a pending IPI
to clear.  Prior to r278325 these checks used a spin loop with a
hardcoded maximum count which broke AP startup on some systems.
However, r278325 also enforced a minimum latency of 5 microseconds if an
IPI was still pending which resulted in a measurable performance hit.
This change reduces that minimum latency to 1 microsecond.

297374:
Calibrate the frequency of the of the native_lapic_ipi_wait() loop,
and avoid a delay while waiting for IPI delivery acknowledgement in
xAPIC mode.  This makes the loop exit immediately after the delivery
bit in APIC_ICR register is set, instead of waiting for some
microseconds.

We only need to ensure that some amount of time is allowed for the
LAPIC to react to the command, and we need that the wait time is
finite and reasonable.  For that reasons, it is irrelevant if the CPU
frequency or throttling decrease the speed and make the loop,
calibrated for full CPU speed at boot time, execute somewhat slower.

297398:
Fix several bugs in r297374:
- fix UP build [1]
- do not obliterate initial reading of rdtsc by the loop counter [2]
- restore the meaning of the argument -1 to native_lapic_ipi_wait()
  as wait until LAPIC acknowledge without timeout
- correct formula for calculating loop iteration count for 1us, it was
  inverted, and ensure that even on unlikely slow CPUs at least one
  check for ack is performed.

297484:
Style(9), use tabs for the #define LOOPS line.
Print unsigned values with %u.
Make code slightly more compact by inlining loop limit.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298524:
bcr [Wed, 27 Apr 2016 16:23:16 +0000 (16:23 +0000)]
MFC r298524:

Define which of the username options (-u/-U) to jexec(8) is the default.
Bump Dd.

PR: 207587
Submitted by: dewayne@heuristicsystems.com.au
Sponsored by:   Essen Hackathon 2016

git-svn-id: svn://svn.freebsd.org/base/stable/10@298706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298522:
bcr [Wed, 27 Apr 2016 15:48:47 +0000 (15:48 +0000)]
MFC r298522:

The default value of MINFREE is defined to be 8% in
ufs/ffs/fs.h and not 10%.  The newfs(8) and tunefs(8)
man pages had this change already, but fs(5) did not.
This change makes it consistent again.

Bump Dd.

PR:             204929
Submitted by:   amutu@amutu.com
Sponsored by:   Essen Linuxhotel Hackathon 2016

git-svn-id: svn://svn.freebsd.org/base/stable/10@298705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298695: MFV r298691: ntp 4.2.8p7.
delphij [Wed, 27 Apr 2016 15:24:33 +0000 (15:24 +0000)]
MFC r298695: MFV r298691: ntp 4.2.8p7.

Security: CVE-2016-1547, CVE-2016-1548, CVE-2016-1549, CVE-2016-1550
Security: CVE-2016-1551, CVE-2016-2516, CVE-2016-2517, CVE-2016-2518
Security: CVE-2016-2519
Security: FreeBSD-SA-16:16.ntp
With hat: so

git-svn-id: svn://svn.freebsd.org/base/stable/10@298699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298482:
pfg [Tue, 26 Apr 2016 17:39:54 +0000 (17:39 +0000)]
MFC r298482:
Cleanup redundant parenthesis from existing howmany()/roundup() macro uses.

Requested by: dchagin

git-svn-id: svn://svn.freebsd.org/base/stable/10@298653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297820:
ae [Tue, 26 Apr 2016 11:55:28 +0000 (11:55 +0000)]
MFC r297820:
  Fix the problem, when gpart(8) can't write both bootcode and partcode
  in one command due to wrong file size limit. Do not use bootcode size
  to calculate partsize limit.
  Also add report message about successful partcode writing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297846: [amd64] dtrace_invop handler is to be called only for
avg [Tue, 26 Apr 2016 07:47:01 +0000 (07:47 +0000)]
MFC r297846: [amd64] dtrace_invop handler is to be called only for
kernel exceptions

Fix up r298621.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297846: [amd64] dtrace_invop handler is to be called only for
avg [Tue, 26 Apr 2016 07:40:07 +0000 (07:40 +0000)]
MFC r297846: [amd64] dtrace_invop handler is to be called only for
kernel exceptions

git-svn-id: svn://svn.freebsd.org/base/stable/10@298621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298173:
markj [Mon, 25 Apr 2016 18:13:21 +0000 (18:13 +0000)]
MFC r298173:
Use a loop instead of a goto in sysctl_kern_proc_kstack().

git-svn-id: svn://svn.freebsd.org/base/stable/10@298588 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298176:
wblock [Mon, 25 Apr 2016 12:25:30 +0000 (12:25 +0000)]
MFC r298176:

Add the kern.vt.enable_bell sysctl, which was not documented previously.
Minor additional punctuation and wording changes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297796:
pfg [Mon, 25 Apr 2016 00:51:13 +0000 (00:51 +0000)]
MFC r297796:
ext2fs: replace 0 with NULL for pointers.

While here do late initialization of ebap, similar as was
done in UFS.

Found with devel/coccinelle.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297513: remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat
avg [Sun, 24 Apr 2016 08:39:55 +0000 (08:39 +0000)]
MFC r297513: remove emulation of VFS_HOLD and VFS_RELE from opensolaris compat

git-svn-id: svn://svn.freebsd.org/base/stable/10@298533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298156:
wblock [Sun, 24 Apr 2016 03:15:10 +0000 (03:15 +0000)]
MFC r298156:

Fix markup on "\n" in printf so it renders correctly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297791:
pfg [Sun, 24 Apr 2016 03:11:52 +0000 (03:11 +0000)]
MFC r297791:
UFS: replace 0 with NULL for pointers.

While here also do late initialization of the variables we are
changing.

Found with devel/coccinelle.

Reviewed by: mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/10@298527 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: 298112
bapt [Sat, 23 Apr 2016 10:10:29 +0000 (10:10 +0000)]
MFC: 298112

Directly set the O_CLOEXEC flags via the open(2) attributes

Sponsored by: Essen Hackathon

git-svn-id: svn://svn.freebsd.org/base/stable/10@298510 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC: r298111 r298114
bapt [Sat, 23 Apr 2016 10:06:57 +0000 (10:06 +0000)]
MFC: r298111 r298114

Directly set the O_CLOEXEC flags via the open(2) attributes
  Use the SOCK_CLOEXEC flags in the socket(2) 'type' attribute instead of
calling fcntl(2)

Sponsored by: Essen Hackathon

git-svn-id: svn://svn.freebsd.org/base/stable/10@298509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298101:
kib [Sat, 23 Apr 2016 07:36:13 +0000 (07:36 +0000)]
MFC r298101:
Add x86 CPU features definitions published in the Intel SDM rev. 58.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297282,r297456,r298012,r298013,r298014:
ngie [Sat, 23 Apr 2016 07:09:23 +0000 (07:09 +0000)]
MFC r297282,r297456,r298012,r298013,r298014:

r297282 (by bdrewery):

We don't have a CPPFLAGS, COPTS or CPUFLAGS.

r297456 (by bdrewery):

We don't support DPLIBS.

r298012:

Add DEBUG_FLAGS to PROG_VARS and STRIP to PROG_OVERRIDE_VARS

This will allow the variables [*] to be overridden on a per-PROG basis,
which is useful when controlling "stripping" behavior for some tests
that require debug symbols or to be unstripped

DEBUG_FLAGS (similar to CFLAGS) supports appending, whereas STRIP is
an override

*: Due to how STRIP is defined in bsd.own.mk (in addition to
bsd.lib.mk and bsd.prog.mk), and the fact that bsd.test.mk pulls in
bsd.own.mk first, overriding STRIP doesn't work today.

A follow up commit is pending to "rectify" this after additional
testing is done.

Discussed with: bdrewery

r298013:

Commit documentation change for r298012

Requested by: bdrewery

r298014:

Regenerate the list of bsd.progs.mk supported variables

Prefix with dashes (unordered list) and put one variable on each
line (to avoid future conflicts)

Done via the following one-liner:

> sh -c 'for i in $(make -C tests/sys/aio PROG=foo -VPROG_VARS:O); do printf "\t\t- $i\n"; done'

git-svn-id: svn://svn.freebsd.org/base/stable/10@298503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r288490: Add debug file extension to kldxref(8)
emaste [Fri, 22 Apr 2016 21:43:44 +0000 (21:43 +0000)]
MFC r288490: Add debug file extension to kldxref(8)

  After r288176 [in head] kernel debug files have the extension .debug.
  They also moved [in head] to /usr/lib/debug/boot/kernel by default so
  in the normal case kldxref does not encounter them.  A src.conf(5)
  setting may be used to continue installing them in /boot/kernel
  though, so have kldxref skip .debug files in addition to .symbols
  files.

Merged this change to avoid warnings when a stable/10 kldxref runs
against a head install, perhaps on an upgrade to 11-CURRENT.  The change
to kernel debug files will not be merged to stable/10.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r277205 (imp):
emaste [Fri, 22 Apr 2016 21:38:37 +0000 (21:38 +0000)]
MFC r277205 (imp):

  Reserve and ignore the a new module metadata type MDT_PNP_INFO for
  associating an optional PNP hint table with this module. In the
  future, when these are added, these changes will silently ignore the
  new type they would otherwise warn about. It will always be safe to
  ignore this data. Get this into the builds today for some future
  proofing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r275940 (imp): Bump the largest record we can cope with from 1k to 8k.
emaste [Fri, 22 Apr 2016 21:33:11 +0000 (21:33 +0000)]
MFC r275940 (imp): Bump the largest record we can cope with from 1k to 8k.

Other users of the hints file don't have any real limits, and longer
records will need to be written shortly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297836:
ngie [Fri, 22 Apr 2016 21:32:01 +0000 (21:32 +0000)]
MFC r297836:

Fix appending -O0 to CFLAGS

The previous method would completely nerf CFLAGS once bsd.progs.mk had
recursed into the per-PROG logic and make the CFLAGS for tap testcases
to -O0, instead of appending to CFLAGS for all of the tap testcases.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298024,r298196:
ngie [Fri, 22 Apr 2016 21:30:42 +0000 (21:30 +0000)]
MFC r298024,r298196:

r298024:

Set test_argv to NULL, not 0, if not executing a specific test

r298196:

Minor cosmetic cleanup

- Remove spurious trailing whitespace in licensing header
- Remove unnecessary semi-colon after comment

git-svn-id: svn://svn.freebsd.org/base/stable/10@298490 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298303:
ngie [Fri, 22 Apr 2016 21:26:15 +0000 (21:26 +0000)]
MFC r298303:

Remove trailing whitespace and use `nitems(mib)` instead of `2` when
calling sysctl(3)

git-svn-id: svn://svn.freebsd.org/base/stable/10@298488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297709: zio write issue threads should have lower (numerically
avg [Fri, 22 Apr 2016 12:48:53 +0000 (12:48 +0000)]
MFC r297709: zio write issue threads should have lower (numerically
greater) priority

git-svn-id: svn://svn.freebsd.org/base/stable/10@298469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298043:
kib [Fri, 22 Apr 2016 08:49:50 +0000 (08:49 +0000)]
MFC r298043:
Avoid NULL pointer dereference.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298465 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297685: Add option to specify built-in keymap for kbdmux
emaste [Thu, 21 Apr 2016 19:25:33 +0000 (19:25 +0000)]
MFC r297685: Add option to specify built-in keymap for kbdmux

PR: 153459
Submitted by: swell.k@gmail.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@298430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix compiled-in keymap generation for sc/vt consoles
emaste [Thu, 21 Apr 2016 19:24:36 +0000 (19:24 +0000)]
Fix compiled-in keymap generation for sc/vt consoles

In r298297 kbdcontrol's -P <path> option was MFC'd to stable/10, which
enables this change for a simplified compile-time default keymap build
process.

PR: 193865
MFC of: r296899, r296914, r297363, r298402

git-svn-id: svn://svn.freebsd.org/base/stable/10@298429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 295930:
jhb [Thu, 21 Apr 2016 18:44:53 +0000 (18:44 +0000)]
MFC 295930:
Add support for displaying thread IDs to truss(1).

- Consolidate duplicate code for printing the metadata at the start of
  each line into a shared function.
- Add an -H option which will log the thread ID of the relevant thread
  for each event.

While here, remove some extraneous calls to clock_gettime() in
print_syscall() and print_syscall_ret().  The caller of print_syscall_ret()
always updates the current thread's "after" time before it is called.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 295677,295678:
jhb [Thu, 21 Apr 2016 15:25:17 +0000 (15:25 +0000)]
MFC 295677,295678:
Fetch the current thread and it's syscall state from the trussinfo object
instead of passing some of that state as arguments to print_syscall() and
print_syscallret().  This just makes the calls of these functions shorter
and easier to read.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297527, r297688:
pfg [Thu, 21 Apr 2016 14:57:44 +0000 (14:57 +0000)]
MFC r297527, r297688:
chdone(): Prevent returning uninitialized scalar value.

Instead of attempting to initialize all the possible cases, just
move the check nearer to the case where it makes sense.

CID: 1006486
Reviewed by: ken

git-svn-id: svn://svn.freebsd.org/base/stable/10@298406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298005:
wblock [Thu, 21 Apr 2016 14:25:45 +0000 (14:25 +0000)]
MFC r298005:

Remove a link to the CTM section of the Handbook, which no longer exists.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297942:
pfg [Wed, 20 Apr 2016 00:49:37 +0000 (00:49 +0000)]
MFC 297942:
libgssapi: avoid NULL pointer dereferences.

While here also use NULL instead of zero for pointers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297618:
pfg [Wed, 20 Apr 2016 00:44:13 +0000 (00:44 +0000)]
MFC r297618:
fsck_msdosfs(8): Optimimize memsets

Obtained from: NetBSD (bin/50908)

git-svn-id: svn://svn.freebsd.org/base/stable/10@298313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoBump __FreeBSD_version for kbdcontrol's -P option
emaste [Tue, 19 Apr 2016 21:06:39 +0000 (21:06 +0000)]
Bump __FreeBSD_version for kbdcontrol's -P option

MFC'd in r298297

git-svn-id: svn://svn.freebsd.org/base/stable/10@298299 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r296926: kbdcontrol: add -P path option to add keymap search paths
emaste [Tue, 19 Apr 2016 20:56:02 +0000 (20:56 +0000)]
MFC r296926: kbdcontrol: add -P path option to add keymap search paths

PR: 193865
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@298297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297884
davidcs [Tue, 19 Apr 2016 18:47:34 +0000 (18:47 +0000)]
MFC r297884
Add support for Flash Update

Submitted by:nrapendra.singh@qlogic.com;vaishali.kulkarni@qlogic.com;davidcs@freebsd.org

git-svn-id: svn://svn.freebsd.org/base/stable/10@298282 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297873
davidcs [Tue, 19 Apr 2016 18:33:36 +0000 (18:33 +0000)]
MFC r297873
1. Process tx completions in bxe_periodic_callout_func() and restart
     transmissions if possible.
2. For SIOCSIFFLAGS call bxe_init_locked() only if !BXE_STATE_DISABLED
3. remove code not needed in bxe_init_internal_common()

Submitted by:vaishali.kulkarni@qlogic.com;venkata.bhavaraju@qlogic.com

git-svn-id: svn://svn.freebsd.org/base/stable/10@298281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297521: fix zfs set canmount=off on an unmounted filesystem
avg [Tue, 19 Apr 2016 12:20:28 +0000 (12:20 +0000)]
MFC r297521: fix zfs set canmount=off on an unmounted filesystem

No MFC to stable/9 because of a non-trivial merge conflict and no
way to test the edited code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297520: zfs receive: -u can be ignored sometimes
avg [Tue, 19 Apr 2016 12:14:15 +0000 (12:14 +0000)]
MFC r297520: zfs receive: -u can be ignored sometimes

PR: 204705

git-svn-id: svn://svn.freebsd.org/base/stable/10@298264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r295749:
thomas [Tue, 19 Apr 2016 07:34:31 +0000 (07:34 +0000)]
MFC r295749:

Reorganize the handling all-zeroes terminal block in sparse mode

PR: 189284
(original PR whose fix introduced this bug)

PR: 207092

git-svn-id: svn://svn.freebsd.org/base/stable/10@298258 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r298008
scottl [Sun, 17 Apr 2016 01:38:37 +0000 (01:38 +0000)]
Merge r298008

 Update the devd.conf man page to describe the new CAM/periph system/subsystem.

Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@298135 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r298004:
scottl [Sun, 17 Apr 2016 01:35:57 +0000 (01:35 +0000)]
MFC r298004:

Add a devctl/devd notification conduit for CAM errors that happen at the
periph level.

Due to not merging the changes to ata_res_sbuf(), this version is a little
messy.

Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@298134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r287009, r287120 and r298131:
loos [Sat, 16 Apr 2016 22:02:32 +0000 (22:02 +0000)]
MFC r287009, r287120 and r298131:

Add ALTQ(9) support for the CoDel algorithm.

CoDel is a parameterless queue discipline that handles variable bandwidth
and RTT.

It can be used as the single queue discipline on an interface or as a sub
discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ.

Obtained from: pfSense
Sponsored by: Rubicon Communications (Netgate)

git-svn-id: svn://svn.freebsd.org/base/stable/10@298133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoFix the build.
loos [Sat, 16 Apr 2016 13:41:10 +0000 (13:41 +0000)]
Fix the build.

pointy hat to: loos
Reported by: gjb, Herbert J. Skuhra

git-svn-id: svn://svn.freebsd.org/base/stable/10@298115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoPartial MFC of r297933
scottl [Sat, 16 Apr 2016 05:14:55 +0000 (05:14 +0000)]
Partial MFC of r297933

Add sbuf variants ata_cmd_sbuf()

Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@298100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297925, r297926:
scottl [Sat, 16 Apr 2016 02:47:46 +0000 (02:47 +0000)]
MFC r297925, r297926:

 Add scsi_cdb_sbuf() for handling CDB strings.  Reimplement scsi_cdb_string()
 in terms of it.

 Use scsi_cdb_sbuf() inside of scsi_command_string now that the temporary
 string storage is no longer needed.

Sponsored by: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/10@298093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r284777, r284814, r284863 and r298088:
loos [Sat, 16 Apr 2016 02:11:04 +0000 (02:11 +0000)]
MFC r284777, r284814, r284863 and r298088:

ALTQ FAIRQ discipline import from DragonFLY.

Differential Revision: https://reviews.freebsd.org/D2847
Obtained from: pfSense
Sponsored by: Rubicon Communications (Netgate)

git-svn-id: svn://svn.freebsd.org/base/stable/10@298091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297637:
ngie [Fri, 15 Apr 2016 01:20:14 +0000 (01:20 +0000)]
MFC r297637:

Disable the NetBSD-specific EFAULT requirements test in gettimeofday_err

FreeBSD doesn't specifically list this as a supported error, and in some
configurations/versions of FreeBSD, this test will segfault as the memory
address might be evaluated in userspace, instead of in kernel space like
in NetBSD.

git-svn-id: svn://svn.freebsd.org/base/stable/10@298019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r295012
vangyzen [Thu, 14 Apr 2016 17:14:11 +0000 (17:14 +0000)]
MFC r295012

kqueue EVFILT_PROC: avoid collision between NOTE_CHILD and NOTE_EXIT

NOTE_CHILD and NOTE_EXIT return something in kevent.data: the parent
pid (ppid) for NOTE_CHILD and the exit status for NOTE_EXIT.
Do not let the two events be combined, since one would overwrite
the other's data.

PR: 180385
Submitted by: David A. Bright <david_a_bright@dell.com>
Sponsored by: Dell Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297838
asomers [Thu, 14 Apr 2016 15:24:45 +0000 (15:24 +0000)]
MFC 297838

Fix an intermittent bug in sbin/devd/client_test.stream

In case where the two events were being received in separate reads, the
event buffer was being null-terminated at the wrong offset.

Also, factored out some common code between the tests, and fixed a comment.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC 297678: Enhance uuencode with a -r option to produce raw output.
gahr [Thu, 14 Apr 2016 11:45:52 +0000 (11:45 +0000)]
MFC 297678: Enhance uuencode with a -r option to produce raw output.

This matches with uudecode's -r option to decode raw data without initial and
final framing lines.

$ echo Test | uuencode -mr - | uudecode -mr
Test

Approved by: cognet

git-svn-id: svn://svn.freebsd.org/base/stable/10@297960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297672: Alike to r293708 relax pool check in vdev_geom_open_by_path().
mav [Thu, 14 Apr 2016 09:10:09 +0000 (09:10 +0000)]
MFC r297672: Alike to r293708 relax pool check in vdev_geom_open_by_path().

This made impossible spare disk open by known path, which kind of worked
only because the same fix was applied to vdev_geom_attach_by_guids() in
r293708.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297827:
markj [Thu, 14 Apr 2016 04:54:47 +0000 (04:54 +0000)]
MFC r297827:
libdtrace: Add a missing unlock to an error handler.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297479, r297695:
kevlo [Thu, 14 Apr 2016 01:24:00 +0000 (01:24 +0000)]
MFC r297479, r297695:

Update comment: Linux does set a randomized generation number of an inode
on ext2/3/4.  While here use arc4random() instead of random().

Reviewed by: pfg

git-svn-id: svn://svn.freebsd.org/base/stable/10@297950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297571:
wblock [Wed, 13 Apr 2016 20:12:02 +0000 (20:12 +0000)]
MFC r297571:

Add another real-life example of setting a quirk for a USB gaming
keyboard.  From forum thread: https://forums.freebsd.org/threads/55717/

git-svn-id: svn://svn.freebsd.org/base/stable/10@297934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297476:
brooks [Wed, 13 Apr 2016 16:47:14 +0000 (16:47 +0000)]
MFC r297476:

Add a cross reference to ktrace(2).

Obtained from: CheriBSD (9cb420d6b7f04c1b7d2006180b80932e5d3fe50e)
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@297930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297475:
brooks [Wed, 13 Apr 2016 16:45:17 +0000 (16:45 +0000)]
MFC r297475:

Document KTRFAC_FAULT and KTRFAC_FAULTEND.

Obtained from: CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c)
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@297929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297626:
bdrewery [Wed, 13 Apr 2016 01:54:36 +0000 (01:54 +0000)]
MFC r297626:

  Follow-up r295924: Only sync hash-based db files open for writing when
  closing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297904 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297387: Add some device IDs found on AMD FCH shipsets.
mav [Tue, 12 Apr 2016 07:54:55 +0000 (07:54 +0000)]
MFC r297387: Add some device IDs found on AMD FCH shipsets.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMFC r297386: Add support for AMD FCH watchdog timers.
mav [Tue, 12 Apr 2016 07:54:03 +0000 (07:54 +0000)]
MFC r297386: Add support for AMD FCH watchdog timers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

8 years agoMerge r285713 (by zec@) from head:
glebius [Mon, 11 Apr 2016 17:23:47 +0000 (17:23 +0000)]
Merge r285713 (by zec@) from head:
  Prevent null-pointer dereferencing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297825 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f