]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r257530
brooks [Mon, 4 Nov 2013 23:36:49 +0000 (23:36 +0000)]
MFC r257530

Reimplement r257525 such that it work with the historic FreeBSD make
implementation.  This fixes the toolchain and kernel-toolchain targets
when building from older FreeBSD versions where make is fmake.

Sponsored by: DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC r257505:
bdrewery [Mon, 4 Nov 2013 13:01:29 +0000 (13:01 +0000)]
MFC r257505:

  Add -f support to 'pkg bootstrap' and 'pkg add' to force installation
  of pkg(8) even if already installed.

  This is useful if you somehow messup pkg(8) and need to reinstall from
  remote with it already being registered in the pkg(8) /var/db/pkg database.

  Also add some sanity checks to 'pkg add'.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r257307:
yongari [Mon, 4 Nov 2013 08:46:50 +0000 (08:46 +0000)]
MFC r257307:
  Fix regression introduced in r235816.
  r235816 triggered kernel panic or hang after warm boot.
  Don't blindly restore BCE_EMAC_MODE media configuration in
  bce_reset().  If driver is about to shutdown it will invoke
  bce_reset() which in turn results in restoring BCE_EMAC_MODE
  media configuration.  This operation seems to confuse controller
  firmware.
Approved by: re (glebius)

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

10 years agoMFC r257306:
yongari [Mon, 4 Nov 2013 05:58:59 +0000 (05:58 +0000)]
MFC r257306:
  Add preliminary support for RTL8168EP.
Approved by: re (delphij)

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

10 years agoMFC r257305:
yongari [Mon, 4 Nov 2013 05:56:02 +0000 (05:56 +0000)]
MFC r257305:
  Add preliminary support for RTL8168G, RTL8168GU and RTL8411B.
  RTL8168GU has two variants(GMII and MII) but it uses the same chip
  revision id.  Driver checks PCI device id of controller and
  sets internal capability flag(i.e. jumbo frame and link speed down
  in WOL).
Approved by: re (delphij)

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

10 years agoMFC r257304:
yongari [Mon, 4 Nov 2013 05:52:33 +0000 (05:52 +0000)]
MFC r257304:
  Add support for new Gigabit PHY of RealTek.
  I don't have a copy of data sheet so I'm not sure exact PHY model
  name. Vendor's web page indicates RTL8251 is latest PHY so I used
  the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B.
Approved by: re (delphij)

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

10 years agoMFC r256828:
yongari [Mon, 4 Nov 2013 05:48:12 +0000 (05:48 +0000)]
MFC r256828:
  Add preliminary support for RTL8106E PCIe FastEthernet.
Approved by: re (delphij)

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

10 years agor256827:
yongari [Mon, 4 Nov 2013 05:43:32 +0000 (05:43 +0000)]
r256827:
  Correct MAC revision bits. Previously it always cleared bit 20 and
  bit 21.
Approved by: re (delphij)

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

10 years agoUpdate stable/10 to BETA3 as part of the 10.0-RELEASE cycle.
gjb [Sun, 3 Nov 2013 17:19:17 +0000 (17:19 +0000)]
Update stable/10 to BETA3 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257214:
kib [Sun, 3 Nov 2013 16:04:36 +0000 (16:04 +0000)]
MFC r257214:
Inform about the kdb re-entry.

Approved by: re (gjb)

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

10 years agoMFC r257216:
kib [Sun, 3 Nov 2013 16:03:19 +0000 (16:03 +0000)]
MFC r257216:
Several small fixes for the amd64 minidump code.

Approved by: re (gjb)

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

10 years agoMFC r257378,r257400,r257402,r257440:
bdrewery [Sun, 3 Nov 2013 13:06:43 +0000 (13:06 +0000)]
MFC r257378,r257400,r257402,r257440:

  Add a pkg(7) manpage for bootstrap

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257344,r257403:
bdrewery [Sun, 3 Nov 2013 13:00:12 +0000 (13:00 +0000)]
MFC r257344,r257403:

  Move /etc/keys to /usr/share/keys where users are less likely to modify them.

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257377:
bdrewery [Sun, 3 Nov 2013 12:58:14 +0000 (12:58 +0000)]
MFC r257377:

  Add a 'pkg bootstrap' command which will bootstrap pkg(8) without
  forwarding any command to it after installation.

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257350:
delphij [Sun, 3 Nov 2013 07:31:54 +0000 (07:31 +0000)]
MFC r257350:

In r257079, SRCDIR is pointed to ${.CURDIR} when not set.  However,
Makefile.inc1 is being called in sub-make's where make(1) would,
by default, implicitly chdir(2) to ${.OBJDIR} before executing any
targets.  This would make some targets, like delete-old, when trying
to derive various variables introduced by change r256921 using
``make -f Makefile.inc1'' that also rely on SRCDIR to fail.

This changeset adds an explicit cd ${.CURDIR} before these unwrapped
make calls, making them in line with the other ones that are already
being wrapped with the explicit chdir's.

Approved by: re (hrs)

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

10 years agoMFC r257379:
trasz [Sat, 2 Nov 2013 02:38:32 +0000 (02:38 +0000)]
MFC r257379:

Rename '-h' option to '-p', and use "portal" instead of "host" or "address",
in order to be consistent with iSCSI terminology.  Besides, calling the
option '-h' was just wrong.

This changes usage for newly added iscsictl(8), and two newly added
subcommands to ctladm(8).  This breaks POLA between CURRENT and 10,
but since 10.0 has not been released yet, it's still ok to do.

MFC r257380:

Bump .Dd after r257379.

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r256935
brooks [Fri, 1 Nov 2013 21:17:45 +0000 (21:17 +0000)]
MFC r256935

MFP4:
Change 228019 by bz@bz_zenith on 2013/04/23 13:55:30

Add kernel side support for large TLB on BERI/CHERI.
Modelled similar to NLM

Sponsored by: DAPRA/AFRL
Approved by: re (delphij)

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

10 years agoMFC r256912, r256931, r256977
brooks [Fri, 1 Nov 2013 21:15:39 +0000 (21:15 +0000)]
MFC r256912, r256931, r256977

Sync BERI kernel configs with P4:

Switch the majority of device configuration to FDT from hints.

Add BERI_*_BASE configs to reduce duplication in the MDROOT and SDROOT
kernels.

Add NFS and GSSAPI support by default.

Enable ATSE_CFI_HACK in BERI configs, stable MAC addresses are useful.

BERI_SIM.hint is no longer used, remove it.

Sponsored by: DARPA/AFRL
Approved by: re (delphij)

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

10 years agoMFC r256753
brooks [Fri, 1 Nov 2013 20:33:30 +0000 (20:33 +0000)]
MFC r256753

MFP4: 1136252

Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to have
their address range allocated sharable so that atse(4) can find it's
Ethernet address in the expected location.

We intend to remove this hack once the BERI platform has a loader.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256934, r256963, r256972, r257017
brooks [Fri, 1 Nov 2013 20:30:19 +0000 (20:30 +0000)]
MFC r256934, r256963, r256972, r257017

MFP4:
Change 221534 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/01/27
16:05:30

FreeBSD/mips stores page-table entries in a near-identical format
to MIPS TLB entries -- only it overrides certain "reserved" bits
in the MIPS-defined EntryLo register to hold software-defined bits
(swbits) to avoid significantly increasing the page table memory
footprint.  On n32 and n64, these bits were (a) colliding with
MIPS64r2 physical memory extensions and (b) being improperly
cleared.

Attempt to fix both of these problems by pushing swbits further
along 64-bit EntryLo registers into the reserved space, and
improving consistency between C-based and assembly-based clearing
of swbits -- in particular, to use the same definition.  This
should stop swbits from leaking into TLB entries -- while ignored
by most current MIPS hardware, this would cause a problem with
(much) larger physical memory sizes, and also leads to confusing
hardware-level tracing as physical addresses contain unexpected
(and inconsistent) higher bits.

Discussed with: imp, jmallett

Change 1187301 by brooks@brooks_zenith on 2013/10/23 14:40:10
Loop back the initial commit of 221534 to HEAD.  Correct its
implementation for mips32.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256911, r256936
brooks [Fri, 1 Nov 2013 20:28:13 +0000 (20:28 +0000)]
MFC r256911, r256936

MFP4: 223121 (PIC portion), 225861, 227822, 229692 (PIC only), 229693,
230523, 1123614

Implement a driver for Robert Norton's PIC as an FDT interrupt
controller.  Devices whose interrupt-parent property points to a beripic

device will have their interrupt allocation, activation, and setup
operations routed through the IC rather than down the traditional bus
hierarchy.

This driver largely abstracts the underlying CPU away allowing the
PIC to be implemented on CPU's other than BERI.  Due to insufficient
abstractions a small amount of MIPS specific code is currently required
in fdt_mips.c and to implement counters.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r257369:
delphij [Fri, 1 Nov 2013 17:39:59 +0000 (17:39 +0000)]
MFC r257369:

Don't reference pointer before testing whether it is
NULL.

Submitted by: Clement Lecigne <clecigne google com>
Reviewed by: grehan
Approved by: re (kib)

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

10 years agoMFC r257329 (nyan):
gjb [Fri, 1 Nov 2013 16:48:30 +0000 (16:48 +0000)]
MFC r257329 (nyan):
 Fix build, both clang and gcc are required on pc98.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257361:
jlh [Fri, 1 Nov 2013 16:03:38 +0000 (16:03 +0000)]
MFC r257361:
  Fix compatibility function for old daily_status_security_${name}_enable
  variables.

  PR:           conf/183137

MFC r257364:
  Fix indentation.

Approved by: re (gjb)

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

10 years agoMFC r256540, r256544:
gjb [Fri, 1 Nov 2013 15:54:57 +0000 (15:54 +0000)]
MFC r256540, r256544:

 r256540 (dteske):
 Add loader.conf(5) entries to import bootpool after boot when
 using full-disk encryption and ZFS.

 r256544 (dteske):
 Fix loader.conf(5) entries from r256540.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257072:
kib [Fri, 1 Nov 2013 06:33:17 +0000 (06:33 +0000)]
MFC r257072:
Make pci_get_dma_tag() non-static.

Approved by: re (glebius)

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

10 years agoMFC r257071:
kib [Fri, 1 Nov 2013 06:32:16 +0000 (06:32 +0000)]
MFC r257071:
Add some definitions for the bits in root control and status PCIe cap
registers.

Approved by: re (glebius)

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

10 years agoMFC r257070:
kib [Fri, 1 Nov 2013 06:31:02 +0000 (06:31 +0000)]
MFC r257070:
Move the PCI_DMA_BOUNDARY definition into the pcivar.h.

Approved by: re (glebius)

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

10 years agoMFC r257069:
kib [Fri, 1 Nov 2013 06:29:38 +0000 (06:29 +0000)]
MFC r257069:
Add ddb 'show ioapic' and 'show all ioapics' commands.

Approved by: re (glebius)

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

10 years agoMFC r256670:
kib [Fri, 1 Nov 2013 06:26:37 +0000 (06:26 +0000)]
MFC r256670:
Rewrite RDRAND support:
Remove the excessive memory accesses to temporary buffer.
Streamline the assembly and unify it between i386 and amd64.

Approved by: re (glebius)

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

10 years agoMFC r257154:
trociny [Thu, 31 Oct 2013 20:30:26 +0000 (20:30 +0000)]
MFC r257154:

Merging local and remote bitmaps must be protected by hr_amp lock.

This is believed to fix hastd crashes, which might occur during
synchronization, triggered by the failed assertion:

 Assertion failed: (amp->am_memtab[ext] > 0),
 function activemap_write_complete, file activemap.c, line 351.

Approved by: re (glebius)

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

10 years agoNotional MFC of r257139:
brooks [Thu, 31 Oct 2013 18:11:50 +0000 (18:11 +0000)]
Notional MFC of r257139:

Regerate after r257460 swapped the default to WITH_NMTREE.

Approved by: re (gjb)

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

10 years agoMFC r257138:
brooks [Thu, 31 Oct 2013 18:06:32 +0000 (18:06 +0000)]
MFC r257138:

Switch the default mtree to nmtree our new NetBSD derived mtree.

Exp-runs by: bdrewery (ports/182438)
Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r257268:
brooks [Thu, 31 Oct 2013 17:56:27 +0000 (17:56 +0000)]
MFC r257268:

Enable the --sysroot=/foo option in ld by always building with a sysroot
defined. When not building as a cross linker, the sysroot is set to "/".

Exp-run by: bdrewery (ports/183206)
Approved by: re (gjb)

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

10 years agoMFC r256861:
brooks [Thu, 31 Oct 2013 16:18:36 +0000 (16:18 +0000)]
MFC r256861:

MFP4: 223121 (FDT infrastructure portion)

Implement support for interrupt-parent nodes in simplebus.  The current
implementation requires that device declarations have an interrupt-parent
node and that it point to a device that has registered itself as a
interrupt controller in fdt_ic_list_head and implements the fdt_ic
interface.

Sponsored by:   DARPA/AFRL
Approved by:    re (gjb)

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

10 years agoMFC r256865
brooks [Thu, 31 Oct 2013 16:16:52 +0000 (16:16 +0000)]
MFC r256865

Remove the isf(4) driver.  It was created by accident and is subset of
the cfi(4) driver.  It remained in the tree longer than would be ideal
due to the time required to bring cfi(4) to feature parity.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoNotional MFC of r257057:
brooks [Thu, 31 Oct 2013 14:11:14 +0000 (14:11 +0000)]
Notional MFC of r257057:

Regen documentation post r257449:

Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC.  This allows
bootstrapping a copy of clang without building clang for the base system
which is useful for nanobsd and similar setups.  It's still probably
wrong to conflate what is installed as /usr/bin/cc with the selection
of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
day.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256915
brooks [Thu, 31 Oct 2013 14:07:00 +0000 (14:07 +0000)]
MFC r256915

Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC.  This allows
bootstrapping a copy of clang without building clang for the base system

which is useful for nanobsd and similar setups.  It's still probably
wrong to conflate what is installed as /usr/bin/cc with the selection
of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
day.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256752, r256946
brooks [Thu, 31 Oct 2013 13:54:55 +0000 (13:54 +0000)]
MFC r256752, r256946

MFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801,
221804, 221805, 222004, 222006, 222055, 222820, 11350771135118,
1136259

Add atse(4), a driver for the Altera Triple Speed Ethernet MegaCore.

The current driver support gigabit Ethernet speeds only and works with
the MegaCore only in the internal FIFO configuration in the soon to be
open sourced BERI CPU configuration.

MFP4: 1187103, 222076, 222057, 222051, 221799

Add atsectl, a simple utility to read and update MAC addresses stored in

the default flash location on Altera DE4 boards.  Typically used once
when setting up a board so leaving in tools rather than inflicting on
all users.

To build with world add LOCAL_DIRS=tools/tools/atsectl to the make
command line.

Submitted by: bz
Sponsored by: DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC: r256743, r256744
brooks [Thu, 31 Oct 2013 13:47:39 +0000 (13:47 +0000)]
MFC: r256743, r256744
MFP4:
Change 227594 by brooks@brooks_zenith on 2013/04/11 17:10:14

When we fail, print the error that occurred if we are giving
up or if bootverbose is set.

MFP4 (driver change only):
Change 231100 by brooks@brooks_zenith on 2013/07/12 21:01:31

Add a new option ALTERA_SDCARD_FAST_SIM which checks immediately
for success of I/O operations rather than queuing a task.

Sponsored by:   DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC r257221:
kib [Thu, 31 Oct 2013 10:12:25 +0000 (10:12 +0000)]
MFC r257221:
Fix typo.

Approved by: re (glebius)

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

10 years agoMFC r257092
grehan [Wed, 30 Oct 2013 21:12:27 +0000 (21:12 +0000)]
MFC r257092

  Fix bug in the ioapic emulation for level-triggered interrupts,
  where a pin assertion while a source was masked would result in
  the interrupt being lost, with the symptom being a console hang.
  The condition is now recorded, and the interrupt generated when
  the source is unmasked.

Approved by:  re (glebius)

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

10 years agoMFC r257293.
neel [Wed, 30 Oct 2013 20:42:09 +0000 (20:42 +0000)]
MFC r257293.

Add support for PCI-to-ISA LPC bridge emulation. If the LPC bus is attached
to a virtual machine then we implicitly create COM1 and COM2 ISA devices.

Prior to this change the only way of attaching a COM port to the virtual
machine was by presenting it as a PCI device that is mapped at the legacy
I/O address 0x3F8 or 0x2F8.

There were some issues with the original approach:
- It did not work at all with UEFI because UEFI will reprogram the PCI device
  BARs and remap the COM1/COM2 ports at non-legacy addresses.
- OpenBSD GENERIC kernel does not create a /dev/console because it expects
  the uart device at the legacy 0x3F8/0x2F8 address to be an ISA device.
- It was functional with a FreeBSD guest but caused the console to appear
  on /dev/ttyu2 which was not intuitive.

The uart emulation is now independent of the bus on which it resides. Thus it
is possible to have uart devices on the PCI bus in addition to the legacy
COM1/COM2 devices behind the LPC bus.

The command line option to attach ISA COM1/COM2 ports to a virtual machine is
"-s <bus>,lpc -l com1,stdio".

The command line option to create a PCI-attached uart device is:
"-s <bus>,uart[,stdio]"

The command line option to create PCI-attached COM1/COM2 device is:
"-S <bus>,uart[,stdio]". This style of creating COM ports is deprecated.

Approved by: re (glebius)

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

10 years agoMFC r257206:
hselasky [Wed, 30 Oct 2013 08:05:39 +0000 (08:05 +0000)]
MFC r257206:
Fix a deadlock when trying to power off a USB device. The deadlock
happens because the code in question is trying to modify the parent
USB port registers outside the USB explore thread.

Approved by: re (glebius)

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

10 years agoMFC r256920:
andre [Tue, 29 Oct 2013 21:00:54 +0000 (21:00 +0000)]
MFC r256920:

  The TCP delayed ACK logic isn't aware of LRO passing up large aggregated
  segments thinking it received only one segment. This causes it to enable
  the delay the ACK for 100ms to wait for another segment which may never
  come because all the data was received already.

  Doing delayed ACK for LRO segments is bogus for two reasons: a) it pushes
  us further away from acking every other packet; b) it introduces additional
  delay in responding to the sender.  The latter is especially bad because it
  is in the nature of LRO to aggregated all segments of a burst with no more
  coming until an ACK is sent back.

  Change the delayed ACK logic to detect LRO segments by being larger than
  the MSS for this connection and issuing an immediate ACK for them to keep
  the ACK clock ticking without interruption.

  Reported by:  julian, cperciva
  Tested by:    cperciva
  Reviewed by:  lstewart

Approved by:    re (glebius)

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

10 years agoMFC r256771:
dumbbell [Tue, 29 Oct 2013 19:50:40 +0000 (19:50 +0000)]
MFC r256771:

drm/radeon: radeonkms depends on firmware(9)

Submitted by: tijl@
Approved by: re (kib)

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

10 years agoMFC r257151:
bdrewery [Tue, 29 Oct 2013 18:37:38 +0000 (18:37 +0000)]
MFC r257151:

  Document /var/cache/pkg into hier(7) which pkg(8) uses.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC: r256770,r257142,r257145,r257146,r257147,r257148,
bdrewery [Tue, 29 Oct 2013 18:36:44 +0000 (18:36 +0000)]
MFC: r256770,r257142,r257145,r257146,r257147,r257148,
     r257149,r257150,r257158,r257159,r257164,r257168,
     r257193

  - Support checking signature for pkg bootstrap from remote
    and for 'pkg add ./pkg.txz'

  - Be verbose on where pkg is being bootstrapped from.

  - Add support for reading configuration files from /etc/pkg.
    For now only /etc/pkg/FreeBSD.conf is supported.

  - Add test package signing key fingerprint into /etc/keys/pkg/trusted.

  - Disable fingerprint checking by default for now as the official
    packages are not yet signed.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r257061:
trasz [Tue, 29 Oct 2013 14:07:42 +0000 (14:07 +0000)]
MFC r257061:

Don't spin with mutex hold when there is not enough room in the send socket
buffer.  While here, make the code flow somewhat nicer.

Thanks to mav@ for tracking it down.

Approved by: re (glebius)

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

10 years agoMFC r256624:
melifaro [Tue, 29 Oct 2013 12:53:23 +0000 (12:53 +0000)]
MFC r256624:

Fix long-standing issue with incorrect radix mask calculation.

Usual symptoms are messages like
rn_delete: inconsistent annotation
rn_addmask: mask impossibly already in tree
routing daemon constantly deleting IPv6 default route
or inability to flush/delete particular prefix in ipfw table.

Changes:
* Assume 32 bytes as maximum radix key length
* Remove rn_init()
* Statically allocate rn_ones/rn_zeroes
* Make separate mask tree for each "normal" tree instead of system
global one
* Remove "optimization" on masks reusage and key zeroying
* Change rn_addmask() arguments to accept tree pointer (no users in base)

MFC changes:
* keep rn_init()
* create global mask tree, protected with mutex, for old rn_addmask
users (currently 0 in base)
* Add new rn_addmask_r() function (rn_addmask in head) with additional
argument to accept tree pointer

PR: kern/182851, kern/169206, kern/135476, kern/134531
Found by: Slawa Olhovchenkov <slw@zxy.spb.ru>
Reviewed by: glebius (previous versions)
Sponsored by: Yandex LLC
Approved by: re (glebius)

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

10 years agoMFC r257051:
bdrewery [Tue, 29 Oct 2013 12:25:22 +0000 (12:25 +0000)]
MFC r257051:

  Add support for using "pkg+http://" for the PACKAGESITE.

  pkg 1.2 is adding this support as well. This should help
  lessen the confusion on why the default SRV PACKAGESITE
  does not load in a browser.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r257109:
smh [Tue, 29 Oct 2013 11:36:31 +0000 (11:36 +0000)]
MFC r257109:
Add clang-CC and CC to list of hints allowing clang to identify its operating
mode as c++ instead of defaulting to c for the binary names CC and clang-CC.

This fixes builds that use cmake which automatically sets CXX to
/usr/bin/CC by default.

PR: bin/182442
Approved by: re (glebius)

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

10 years agoMerge r256824 from head:
glebius [Tue, 29 Oct 2013 09:24:39 +0000 (09:24 +0000)]
Merge r256824 from head:
  Provide a working example line for an interface with 1 address running
  with CARP.

  Currently, we've got a problem that interface isn't IFF_UP at the time
  we assign it a redundant address, and the latter gets stuck in INIT state.
  Additional SIOCSIFFLAGS from ifconfig(8) kicks it to a working state.

  A proper fix is kernel side and appeared to be non-trivial, not to be
  checked in before 10.0-RELEASE.

  Submitted by:   Ole Myhre <ole.myhre dataoppdrag.no>

Approved by: re (kib)

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

10 years agoMerge r256537 from head:
glebius [Tue, 29 Oct 2013 09:23:51 +0000 (09:23 +0000)]
Merge r256537 from head:
    Make getutxent(3) more robust against bad utx.log files. Whenever we read
  zeroes, don't stop processing the file, but read until its end or valid
  data.

  In collaboration with: ed

Approved by: re (kib)

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

10 years agoMFC r256848:
kib [Tue, 29 Oct 2013 07:35:19 +0000 (07:35 +0000)]
MFC r256848:
Use plain register read for waiting of the reset completion
notification, to avoid gt_lock recursion.

Approved by: re (glebius)

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

10 years agoMFC r256847:
kib [Tue, 29 Oct 2013 07:33:55 +0000 (07:33 +0000)]
MFC r256847:
Print more useful information about the transfer that trigger the assertion.

Approved by: re (glebius)

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

10 years agoMFC: r256968, r256971, r256978
bapt [Tue, 29 Oct 2013 07:33:53 +0000 (07:33 +0000)]
MFC: r256968, r256971, r256978

Improve SRV records support for the pkg(8) bootstrap:
- order srv records by priorities
- for all entries of the same priority, order randomly respect the weight
- select the port where to fetch from respect the port provided in the SRV
record

Allow to bootstrap by doing pkg add ./a/path/to/a/pkg_package.txz

Approved by: re (glebius)

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

10 years agoMFC r256777-256779,256788:
nwhitehorn [Mon, 28 Oct 2013 23:47:52 +0000 (23:47 +0000)]
MFC r256777-256779,256788:
Add driver for POWER hypervisor interpartition ethernet.

Approved by: re (glebius)

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

10 years agoMFC r257129:
cperciva [Mon, 28 Oct 2013 22:49:11 +0000 (22:49 +0000)]
MFC r257129:
  Remove time and date stamps from svn* binaries, in order to make the
  builds reproducible.

Approved by: re (glebius)

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

10 years agoMFC r257078
grehan [Mon, 28 Oct 2013 22:41:36 +0000 (22:41 +0000)]
MFC r257078
  Fix panic in the tap driver when a tap and vmnet interface were
  created after each other e.g.

   ifconfig tap0
   ifconfig vmnet0
   <panic>

  Appears to be a cut'n'paste error from the tap code to the vmnet
  code where the name string wasn't updated in the call to make_dev().

Approved by:  re (glebius)

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

10 years agoMFC r257007:
delphij [Sat, 26 Oct 2013 19:02:39 +0000 (19:02 +0000)]
MFC r257007:

Update driver to version 10.0.664.0.

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>
Approved by: re (glebius)

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

10 years agoUpdate stable/10 to BETA2 as part of the 10.0-RELEASE cycle.
gjb [Sat, 26 Oct 2013 15:10:58 +0000 (15:10 +0000)]
Update stable/10 to BETA2 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r256646, r256767, r257038:
cperciva [Sat, 26 Oct 2013 08:34:35 +0000 (08:34 +0000)]
MFC r256646, r256767, r257038:
  When installing updates, install new directories first and remove old
  directories last.

  Allow ~ in file names so libtool droppings in contrib don't break updates.
  It has happened twice now, and is likely to happen again.

  Be more selective when filtering for lib*.so.N files.  These are deleted
  at the end of the upgrade process, after warning users to upgrade any
  3rd party software (e.g., from the ports tree) which might link to the
  libraries being removed.

Approved by: re (gjb)
Errata Notice: FreeBSD-EN-13:04.freebsd-update

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

10 years agoMFC r257079:
gjb [Fri, 25 Oct 2013 21:27:35 +0000 (21:27 +0000)]
MFC r257079:
 Fix build host pollution by avoiding calling 'uname -srp' to
 determine values for 'VERSION'.

Approved by: re (glebius)

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

10 years agoMFC r256926, r257005
grehan [Fri, 25 Oct 2013 18:39:01 +0000 (18:39 +0000)]
MFC r256926, r257005

r256926
  Fix AHCI ATAPI emulation when backed with /dev/cd0

  - remove assumption that the backing file/device had
    512-byte sectors
  - fix incorrect iovec size variable that would result
    in a buffer overrun when an o/s issued an i/o request
    with more s/g elements than the blockif api

r257005
  Export the block size capability to guests.
  - Use #defines for capability bits
  - Export the VTBLK_F_BLK_SIZE capability
  - Fix bug in calculating capacity: it is in
    512-byte units, not the underlying sector size

  This allows virtio-blk to have backing devices
  with non 512-byte sector sizes e.g. /dev/cd0, and
  4K-block harddrives.

Approved by:  re (glebius)

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

10 years agoMFC r256504:
kib [Fri, 25 Oct 2013 16:36:16 +0000 (16:36 +0000)]
MFC r256504:
Add a sysctl kern.disallow_high_osrel which disables executing the
images compiled on the world with higher major version number than the
high version number of the booted kernel.  Default to disable.

Approved by: re (glebius)

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

10 years agoMFC r256502:
kib [Fri, 25 Oct 2013 16:33:24 +0000 (16:33 +0000)]
MFC r256502:
Similar to debug.iosize_max_clamp sysctl, introduce
devfs_iosize_max_clamp sysctl, which allows/disables SSIZE_MAX-sized
i/o requests on the devfs files.

Approved by: re (glebius)

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

10 years agoMFC r256501:
kib [Fri, 25 Oct 2013 16:31:28 +0000 (16:31 +0000)]
MFC r256501:
Remove two instances of ARGSUSED comment, and wrap lines nearby the
code that is to be changed.

Approved by: re (glebius)

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

10 years agoMFC r256925:
tijl [Fri, 25 Oct 2013 13:27:55 +0000 (13:27 +0000)]
MFC r256925:

Add a dummy statement to the beginning of the pthread_cleanup_pop() macro
to allow a call of the macro to be labelled as in:

label:
  pthread_cleanup_pop();

Reviewed by: imp
Approved by: re (glebius)

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

10 years agoMFC r256750:
hselasky [Fri, 25 Oct 2013 10:20:19 +0000 (10:20 +0000)]
MFC r256750:
Improve XHCI stability. When a command timeout happens, the command
should be aborted else the command queue can stop. Refer to section
"4.6.1.2" of the XHCI specification.

Approved by: re (glebius)

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

10 years agoMFC r256889:
smh [Thu, 24 Oct 2013 15:21:20 +0000 (15:21 +0000)]
MFC r256889:

Use the vdev's ashift to calculate the supported min block size passed to
zio_compress_data(..) when compressing l2arc buffers.

This eliminates L2ARC I/O errors, which resulted in very poor performance on
vdev's configured with block size greater than 512b due to compression
assuming a smaller min block size than the vdev supports.

Approved by: re (glebius)

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

10 years agoMFC r256842:
bdrewery [Thu, 24 Oct 2013 11:35:50 +0000 (11:35 +0000)]
MFC r256842:

  Fix 'make delete-old-libs' and 'make check-libs' to delete .debug
  files created by WITH_DEBUG_FILES. Also cleanup .symbols files from
  the period between r244236 when .symbols were supported and r251512
  when they were renamed to .debug.

  Only propose to delete a .debug file if the corresponding library
  itself was deleted already.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r256552:
mav [Thu, 24 Oct 2013 10:33:31 +0000 (10:33 +0000)]
MFC r256552:
Unify periph invalidation and destruction reporting.
Print message containing device model and serial number on invalidation.

Approved by: re (hrs)

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

10 years agoMFC r256533:
mav [Thu, 24 Oct 2013 10:31:02 +0000 (10:31 +0000)]
MFC r256533:
Unhide "Serial Number" lines from bootverbose.  That information may
be useful for system administration to have in hard copy (in logs) if
one of several devices suddenly dies.

Approved by: re (hrs)

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

10 years agoMFC r256500:
hselasky [Thu, 24 Oct 2013 07:43:35 +0000 (07:43 +0000)]
MFC r256500:
Add new USB ID.

PR: usb/182936
Approved by: re (Xin LI)
Obtainedrom:

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

10 years agoMFC r256548:
hselasky [Thu, 24 Oct 2013 07:38:32 +0000 (07:38 +0000)]
MFC r256548:
Correct programming of XXX_MAXP register. This register is 16-bit wide
and not 8-bit. Fix support for isochronous transfers in USB host mode.
Fix a whitespace while at it.

PR: usb/181987
Approved by: re (Xin Li)

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

10 years agoMFC r256833:
delphij [Thu, 24 Oct 2013 05:01:49 +0000 (05:01 +0000)]
MFC r256833:

Drop cm_lock before calling mapper_close, which in turn could call
_citrus_mapper_close again and result in a deadlock otherwise.

This is similar to NetBSD PR/24023 (fixed in their r1.5 of this file).

PR: bin/182994
Submitted by: Fabian Keil <fk fabiankeil de>
Approved by: re (hrs)

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

10 years agoMFC r256450:
bdrewery [Wed, 23 Oct 2013 18:07:07 +0000 (18:07 +0000)]
MFC r256450:

  Rename libbsdyml to libyaml, make private, and bump
  SHLIB_MAJOR to 1.0

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r256687:
brooks [Wed, 23 Oct 2013 17:59:17 +0000 (17:59 +0000)]
MFC r256687:

Upgrade to the latest version of mtree from NetBSD.  This revision
re-removes the printing of size for non-regular files, supports
type-less root (.) entries as seen in a couple ports, and corrects a bug
in -N that caused expanded Subversion $FreeBSD$ strings in comments to
be processed as /etc/group entries.

Includes one trivial portability fix (including <stdint.h> in three
files) that has been committed upstream.

Approved by: re (glebius)

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

10 years agoMFC r256773:
jmg [Wed, 23 Oct 2013 16:55:20 +0000 (16:55 +0000)]
MFC r256773:
Enable the automatic creation of a certificate (if one does not exists)
and enable the usage by sendmail if sendmail is enabled.

Reviewed by:    gshapiro
Approved by: re (gjb)

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

10 years agoRevert r256944, which does not quite get the src/ directory correct.
gjb [Tue, 22 Oct 2013 23:37:54 +0000 (23:37 +0000)]
Revert r256944, which does not quite get the src/ directory correct.

Discussed with: cperciva
Approved by: re (implicit)
Pointyhat: gjb

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

10 years agoMFC r256921:
cperciva [Tue, 22 Oct 2013 21:53:32 +0000 (21:53 +0000)]
MFC r256921:
  Thou shalt not leak build host state into the system being compiled.

Approved by: re (gjb)

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

10 years agoMFC r256775,r256776:
cperciva [Tue, 22 Oct 2013 16:09:44 +0000 (16:09 +0000)]
MFC r256775,r256776:
  Add support for "first boot" rc.d scripts.

  Document this new functionality in rc.conf(5) and rc(8).

  Bump __FreeBSD_version so that ports can make use of this.

Approved by: re (gjb)

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

10 years agoMFC 256716,256835:
hrs [Tue, 22 Oct 2013 06:02:40 +0000 (06:02 +0000)]
MFC 256716,256835:

- Fix jail_parallel_start="YES".
- Fix ip[46].addr when interface parameter is not defined.
- Fix a bug which prevented jails from starting when $jail_conf was used and
  no jail name was specified.
- Display error messages when start/stop fails.

Approved by: re (glebius)

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

10 years agoMFC r256645.
neel [Tue, 22 Oct 2013 00:58:51 +0000 (00:58 +0000)]
MFC r256645.

Add a new capability, VM_CAP_ENABLE_INVPCID, that can be enabled to expose
'invpcid' instruction to the guest. Currently bhyve will try to enable this
capability unconditionally if it is available.

Consolidate code in bhyve to set the capabilities so it is no longer
duplicated in BSP and AP bringup.

Add a sysctl 'vm.pmap.invpcid_works' to display whether the 'invpcid'
instruction is available.

Approved by: re (hrs)

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

10 years agoMFC: 256555
andreast [Mon, 21 Oct 2013 19:11:15 +0000 (19:11 +0000)]
MFC: 256555

Move the resource allocation from the ata_*_probe section to the ata_*_attach
section. This prevents a boot crash on nearly all iMacs and PowerMacs/Books.

The allocation in the probe section was working before because ata_probe was
returning 0 which did not invoke a second DEVICE_PROBE. Now it returns
a BUS_PROBE_DEFAULT which can invoke a second DEVICE_PROBE which results in
a "failed to reserve resource" exit.

PR: powerpc/182978
Approved by: re(gjb)

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

10 years agoMFC r256470:
np [Mon, 21 Oct 2013 06:31:56 +0000 (06:31 +0000)]
MFC r256470:

Update krping to the latest upstream code.  Move all the FreeBSD
specific parts to krping_dev.c, which leaves the other files as
close to their upstream versions as possible.

Approved by: re (glebius)

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

10 years agoMFC 256813:
gibbs [Mon, 21 Oct 2013 04:00:23 +0000 (04:00 +0000)]
MFC 256813:

The Xen userland event channel driver isn't complete.  Disabled it
from the kernel build until it is ready.

sys/conf/files:
Remove the entry for xen/evtchn/evtchn_dev.c so it is not included
in any kernel builds.

Noticed by: smh
Approved by: re (hrs)
------------------------------------------------------------------------

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

10 years agoMFC r256467:
np [Mon, 21 Oct 2013 01:15:05 +0000 (01:15 +0000)]
MFC r256467:

Delete all of the old RDMA code (except krping, which was switched to
use sys/ofed some time back).  This has been sitting around as dead code
in the tree for a very long time.

Approved by: re (hrs)

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

10 years agoMFC r256694, r256713, r256714.
np [Mon, 21 Oct 2013 01:10:37 +0000 (01:10 +0000)]
MFC r256694, r256713, r256714.

r256694:
iw_cxgbe: iWARP driver for Chelsio T4/T5 chips.  This is a straight port
of the iw_cxgb4 found in OFED distributions.

r256713:
iw_cxgbe should have a dependency on t4nex.

r256714:
Fix typo in previous commit.

Approved by: re (hrs)

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

10 years agoFix resource free.
alfred [Sun, 20 Oct 2013 21:21:50 +0000 (21:21 +0000)]
Fix resource free.

The order of releasing resources in mlxen was wrong, which caused
panic on reload of the module.

MFC: 256682

Submitted by: Shahar Klein (shahark at mellanox.com)
Approved by:  re

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

10 years agoMFC r256477:
np [Sun, 20 Oct 2013 16:45:01 +0000 (16:45 +0000)]
MFC r256477:

cxgbe(4): Store the log2 of the # of doorbells per BAR2 page for both
ingress and egress queues, and for both T4 and T5.  These values are
used by the T4/T5 iWARP driver.

Approved by: re (glebius)

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

10 years agoMFC r256459.
np [Sun, 20 Oct 2013 15:24:44 +0000 (15:24 +0000)]
MFC r256459.

cxgbe(4): Update T4 and T5 firmwares to 1.9.12.0

Approved by: re (glebius)

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

10 years agoMFC r256425:
gibbs [Fri, 18 Oct 2013 23:19:27 +0000 (23:19 +0000)]
MFC r256425:

Centralize the detection logic for the Hyper-V hypervisor.

Submitted by: Roger Pau MonnĂ©
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs, grehan
Approved by: re (gjb)

sys/sys/systm.h:
 * Add a new VM_GUEST type, VM_GUEST_HV (HyperV guest).

sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c:
sys/dev/hyperv/vmbus/hv_hv.c:
sys/dev/hyperv/stordisengage/hv_ata_pci_disengage.c:
 * Set vm_guest to VM_GUEST_HV and use that on other HyperV related
   devices instead of cloning the cpuid hypervisor check.
 * Cleanup the vmbus_identify function.
------------------------------------------------------------------------

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

10 years agoMFC: r256425
gibbs [Fri, 18 Oct 2013 22:48:38 +0000 (22:48 +0000)]
MFC: r256425

Centralize the detection logic for the Hyper-V hypervisor.

Submitted by: Roger Pau MonnĂ©
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs, grehan
Approved by: re (gjb)

sys/sys/systm.h:
 * Add a new VM_GUEST type, VM_GUEST_HV (HyperV guest).

sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c:
sys/dev/hyperv/vmbus/hv_hv.c:
sys/dev/hyperv/stordisengage/hv_ata_pci_disengage.c:
 * Set vm_guest to VM_GUEST_HV and use that on other HyperV related
   devices instead of cloning the cpuid hypervisor check.
 * Cleanup the vmbus_identify function.

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

10 years agoMFC r256709:
grehan [Fri, 18 Oct 2013 22:05:17 +0000 (22:05 +0000)]
MFC r256709:

  Eliminate unconditional debug printfs.

  Linux writes to these nominally read-only registers,
  so avoid having bhyve write warning messages to stdout
  when the reg writes can be safely ignored. Change the
  WPRINTF to DPRINTF which is conditional.

Approved by: re (delphij)

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

10 years agoMFC r256709:
grehan [Fri, 18 Oct 2013 21:42:47 +0000 (21:42 +0000)]
MFC r256709:

  Eliminate unconditional debug printfs.

  Linux writes to these nominally read-only registers,
  so avoid having bhyve write warning messages to stdout
  when the reg writes can be safely ignored. Change the
  WPRINTF to DPRINTF which is conditional.

Approved by: re (gjb)

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

10 years agoMFC r256746:
dim [Fri, 18 Oct 2013 17:08:23 +0000 (17:08 +0000)]
MFC r256746:

Remove redundant redeclaration of gdtset in sys/xen/xen-os.h, to silence
a gcc warning.

Approved by: re (glebius)

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

10 years agoMFC r256489:
dteske [Fri, 18 Oct 2013 07:42:50 +0000 (07:42 +0000)]
MFC r256489:
Add executable bit to docsinstall [old] and entropy [new] scripts.

MFC r256541:
Document BSDINSTALL_TMPBOOT environment variable introduced by SVN r256343.

Approved by: re (gjb)

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

10 years agoFix __free_pages() in the linux shim.
alfred [Thu, 17 Oct 2013 14:08:46 +0000 (14:08 +0000)]
Fix __free_pages() in the linux shim.

__free_pages() is actaully supposed to take a "struct page *" not
an address.

MFC: 256546

Approved by: re

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