]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoUpdate firmware images for Qlogic 24xx/25xx from 5.5.0 to 7.3.0.
mav [Tue, 20 Oct 2015 12:27:59 +0000 (12:27 +0000)]
Update firmware images for Qlogic 24xx/25xx from 5.5.0 to 7.3.0.

This also removes separate "_multi" images, since this funcationality is
now in base, and there is simply no new images without it for years.

8 years agoAdd missing dash to copyright clause.
hselasky [Tue, 20 Oct 2015 11:42:00 +0000 (11:42 +0000)]
Add missing dash to copyright clause.

Sponsored by: Mellanox Technologies

8 years agoAdd missing FreeBSD RCS keyword and SVN properties.
hselasky [Tue, 20 Oct 2015 11:40:04 +0000 (11:40 +0000)]
Add missing FreeBSD RCS keyword and SVN properties.

Sponsored by: Mellanox Technologies

8 years agoo NetBSD 7.0, OpenBSD 5.8, FreeBSD 10.2, OS X 10.11 added.
pluknet [Tue, 20 Oct 2015 11:37:16 +0000 (11:37 +0000)]
o NetBSD 7.0, OpenBSD 5.8, FreeBSD 10.2, OS X 10.11 added.

8 years agoZero mbox[0] for INIT_FIRMWARE to fix version 7.3 firmware.
mav [Tue, 20 Oct 2015 10:16:03 +0000 (10:16 +0000)]
Zero mbox[0] for INIT_FIRMWARE to fix version 7.3 firmware.

While there, add new fields to isp_icb_2400_t structure.

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Tue, 20 Oct 2015 09:13:35 +0000 (09:13 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Remove redundant NBLONG macro and use BIT_WORD()
  and BIT_MASK() instead.
- Correctly define BIT_MASK() according to Linux and
  update all users of this macro.
- Add missing GENMASK() macro.
- Remove all comments deriving from Linux.

Sponsored by: Mellanox Technologies

8 years agoDecode more firmware attributes.
mav [Tue, 20 Oct 2015 08:29:30 +0000 (08:29 +0000)]
Decode more firmware attributes.

8 years agoFollow the advice of the misplaced comment and don't access the map struct
ian [Tue, 20 Oct 2015 03:27:59 +0000 (03:27 +0000)]
Follow the advice of the misplaced comment and don't access the map struct
after freeing it.  Remove the comment whose uselessness has been revealed.

8 years agoFix printf format to allow for bus_size_t not being u_long on all platforms.
ian [Tue, 20 Oct 2015 03:25:17 +0000 (03:25 +0000)]
Fix printf format to allow for bus_size_t not being u_long on all platforms.

8 years agoNTB: Clean up safely if attach fails early
cem [Tue, 20 Oct 2015 01:54:52 +0000 (01:54 +0000)]
NTB: Clean up safely if attach fails early

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: MFV 9891417d: Increase transport MTU to 64k from 16k
cem [Tue, 20 Oct 2015 01:54:43 +0000 (01:54 +0000)]
NTB: MFV 9891417d: Increase transport MTU to 64k from 16k

Benchmarking showed a significant performance increase with the MTU size
to 64k instead of 16k.  Change the driver default to 64k.

Authored by: Dave Jiang
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoif_ntb: Fix typo in qp_link_work to match Linux
cem [Tue, 20 Oct 2015 01:54:34 +0000 (01:54 +0000)]
if_ntb: Fix typo in qp_link_work to match Linux

Throw away the result of the peer SPAD read.  The peer will write our
local SPAD and we need to keep the locally read SPAD value to check if
the remote side is up.

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: MFV 42fefc86: Add parameters for Intel SNB B2B addresses
cem [Tue, 20 Oct 2015 01:54:25 +0000 (01:54 +0000)]
NTB: MFV 42fefc86: Add parameters for Intel SNB B2B addresses

Add module parameters for the addresses to be used in B2B topology.

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoif_ntb: MFV 2849b5d7: Reset transport QP link stats on down
cem [Tue, 20 Oct 2015 01:54:16 +0000 (01:54 +0000)]
if_ntb: MFV 2849b5d7: Reset transport QP link stats on down

Reset the link stats when the link goes down.  In particular, the TX and
RX index and count must be reset, or else the TX side will be sending
packets to the RX side where the RX side is not expecting them.  Reset
all the stats, to be consistent.

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Change Atom (BWD/SoC) pci_id name to match others
cem [Tue, 20 Oct 2015 01:54:08 +0000 (01:54 +0000)]
NTB: Change Atom (BWD/SoC) pci_id name to match others

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: MFV 5ae0beb6: Enable link for Intel root port mode in probe
cem [Tue, 20 Oct 2015 01:46:14 +0000 (01:46 +0000)]
NTB: MFV 5ae0beb6: Enable link for Intel root port mode in probe

We skip actually bringing up Rootport/Transparent configurations, so
most of this doesn't apply.  Original Linux commit log:

Link training should be enabled in the driver probe for root port mode.
We should not have to wait for transport to be loaded for this to
happen.  Otherwise the ntb device will not show up on the transparent
bridge side of the link.

Authored by: Dave Jiang
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: enum-ify some HW constants
cem [Tue, 20 Oct 2015 01:46:05 +0000 (01:46 +0000)]
NTB: enum-ify some HW constants

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Pull copy of soc_link_is_err out of recover_soc_link
cem [Tue, 20 Oct 2015 01:45:57 +0000 (01:45 +0000)]
NTB: Pull copy of soc_link_is_err out of recover_soc_link

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Drop some dead softc members
cem [Tue, 20 Oct 2015 01:45:48 +0000 (01:45 +0000)]
NTB: Drop some dead softc members

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Replace last reg_ofs with self_reg
cem [Tue, 20 Oct 2015 01:45:38 +0000 (01:45 +0000)]
NTB: Replace last reg_ofs with self_reg

Diff reduce with Linux driver.  No functional change.

Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoReplace all of the duplicated logic for recursing into a subdir with one
bdrewery [Mon, 19 Oct 2015 23:34:35 +0000 (23:34 +0000)]
Replace all of the duplicated logic for recursing into a subdir with one
implementation.  It is duplicated at run-time but is more easily
maintainable now.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd missing .PHONY for parallel subdir target.
bdrewery [Mon, 19 Oct 2015 22:27:32 +0000 (22:27 +0000)]
Add missing .PHONY for parallel subdir target.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agogetconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG.
bapt [Mon, 19 Oct 2015 21:06:30 +0000 (21:06 +0000)]
getconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG.

Submitted by: Sascha Wildner <saw@online.de>
Obtained from: DragonflyBSD
MFC after: 3 days

8 years agoAdd tests for the copyin(9) handling of illegal buffers.
kib [Mon, 19 Oct 2015 20:22:17 +0000 (20:22 +0000)]
Add tests for the copyin(9) handling of illegal buffers.

Reviewed by: emaste, ngie
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D3925

8 years agoSet the correct values in the arm aux control register, based on chip type.
ian [Mon, 19 Oct 2015 19:18:02 +0000 (19:18 +0000)]
Set the correct values in the arm aux control register, based on chip type.

The bits in the aux control register vary based on the processor type.  In
the past we've always just set the 'smp' and "broadcast tlb/cache ops' bits,
which worked fine for the first few SoCs we supported.  Now that we support
most of the cortex-a series processors, it's important to get the right bits
set based on the processor type.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>

8 years agoDon't check if `val` is NULL before calling free; free(3) already
ngie [Mon, 19 Oct 2015 18:45:14 +0000 (18:45 +0000)]
Don't check if `val` is NULL before calling free; free(3) already
handles this

MFC after: 1 week
PR: 203649
Submitted by: Thomas Schmitt <scdbackup@gmx.net>
Coverity CID: 1305659
Sponsored by: EMC / Isilon Storage Division

8 years agoInitialize `quiet` to false so `pw groupnext` again prints out the next gid
ngie [Mon, 19 Oct 2015 18:29:32 +0000 (18:29 +0000)]
Initialize `quiet` to false so `pw groupnext` again prints out the next gid
by default

Reported by: Florian Degner <f.degner@gmx.de>
MFC after: 1 week
PR: 203876
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Add ntb_db_vector_mask() missed in r289546
cem [Mon, 19 Oct 2015 18:06:35 +0000 (18:06 +0000)]
NTB: Add ntb_db_vector_mask() missed in r289546

This is the last one.

Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Add ntb_db_valid_mask() missed in r289546
cem [Mon, 19 Oct 2015 17:53:20 +0000 (17:53 +0000)]
NTB: Add ntb_db_valid_mask() missed in r289546

Another trivial one.

Pointy-hat: cem
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Add ntb_mw_clear_trans() missed in r289546
cem [Mon, 19 Oct 2015 17:41:22 +0000 (17:41 +0000)]
NTB: Add ntb_mw_clear_trans() missed in r289546

It is just a trivial wrapper around ntb_mw_set_trans().

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoAdd more obsolete files
antoine [Mon, 19 Oct 2015 17:31:51 +0000 (17:31 +0000)]
Add more obsolete files

8 years agoBump the __FreeBSD_version to reflect the recent Linux KPI updates.
hselasky [Mon, 19 Oct 2015 16:25:41 +0000 (16:25 +0000)]
Bump the __FreeBSD_version to reflect the recent Linux KPI updates.

Sponsored by: Mellanox Technologies

8 years agoThe returned value from vm_fault_disable_pagefaults() must be stored
hselasky [Mon, 19 Oct 2015 16:03:08 +0000 (16:03 +0000)]
The returned value from vm_fault_disable_pagefaults() must be stored
and passed to vm_fault_enable_pagefaults(). Else possible recursion on
the state can be lost.

Sponsored by: Mellanox Technologies
Suggested by: kib @

8 years agoAfter starting Unbound, wait for up to five seconds until unbound-control
des [Mon, 19 Oct 2015 15:56:59 +0000 (15:56 +0000)]
After starting Unbound, wait for up to five seconds until unbound-control
indicates that it is up and running.

PR: 184047
MFC after: 3 weeks

8 years agoxen-netfront: use "netfront" in lock description
royger [Mon, 19 Oct 2015 15:34:24 +0000 (15:34 +0000)]
xen-netfront: use "netfront" in lock description

Missed from r289585.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3937
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: fix netfront create_dev error path
royger [Mon, 19 Oct 2015 14:47:37 +0000 (14:47 +0000)]
xen-netfront: fix netfront create_dev error path

The failure path for allocating rx grant refs should not try to free tx
grant refs because tx grant refs were allocated after that. Also fix the
error path for xen_net_read_mac.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3891
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: no need to set if_output
royger [Mon, 19 Oct 2015 14:37:17 +0000 (14:37 +0000)]
xen-netfront: no need to set if_output

This is redundant because ether_ifattach will set that field.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3918
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: remove a bunch of FreeBSD version check
royger [Mon, 19 Oct 2015 14:34:45 +0000 (14:34 +0000)]
xen-netfront: remove a bunch of FreeBSD version check

We're way beyond FreeBSD 7 at this point.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3892
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: remove XN_LOCK_{INIT,DESTROY}
royger [Mon, 19 Oct 2015 14:26:40 +0000 (14:26 +0000)]
xen-netfront: remove XN_LOCK_{INIT,DESTROY}

Multiqueue feature will make the number of queues dynamic, so XN_LOCK_INIT
won't be that useful. Remove the macro and call mtx_init directly.

XN_LOCK_DESTROY is just dead code.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3890
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: clean up netfront stats structure
royger [Mon, 19 Oct 2015 14:22:57 +0000 (14:22 +0000)]
xen-netfront: clean up netfront stats structure

Rename it with netfront_ prefix and purge a bunch of unused fields.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3889
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: purge page flipping support
royger [Mon, 19 Oct 2015 14:20:06 +0000 (14:20 +0000)]
xen-netfront: purge page flipping support

Currently neither Linux nor FreeBSD netback supports page flipping. NetBSD
still supports that. It is not sure how many people actually use page
flipping, but page flipping is supposed to be slower than copying nowadays.
It will also shatter frontend / backend address space.

Overall this feature is more of a burden than a benefit.

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3888
Sponsored by: Citrix Systems R&D

8 years agoxen-netfront: delete all trailing white spaces
royger [Mon, 19 Oct 2015 14:12:15 +0000 (14:12 +0000)]
xen-netfront: delete all trailing white spaces

Submitted by: Wei Liu <wei.liu2@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3886
Sponsored by: Citrix Systems R&D

8 years agoUse 4 levels of page tables when enabling the MMU. This will allow us to
andrew [Mon, 19 Oct 2015 13:20:23 +0000 (13:20 +0000)]
Use 4 levels of page tables when enabling the MMU. This will allow us to
boot on an SoC that places physical memory at an address past where three
levels of page tables can access in an identity mapping.

Submitted by:   Wojciech Macek <wma@semihalf.com>,
                Patrick Wildt <patrick@bitrig.org>
Differential Revision: https://reviews.freebsd.org/D3885 (partial)
Differential Revision: https://reviews.freebsd.org/D3744

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 12:44:41 +0000 (12:44 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Redefine DIV_ROUND_UP as a function macro taking two arguments
  instead of none.
- Implement more Linux kernel functions related to various forms
  of DELAY() and basic mathematical operations.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 12:33:09 +0000 (12:33 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Implement more Linux kernel functions.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 12:26:38 +0000 (12:26 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Define the kref structure identical to the one found in Linux.
- Update clients referring inside the kref structure.
- Implement kref_sub() for FreeBSD.

Reviewed by: np @
Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 12:08:06 +0000 (12:08 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Map more Linux compiler related defines to FreeBSD ones.

Sponsored by: Mellanox Technologies

8 years agoMap two more Linux error return codes to FreeBSD ones.
hselasky [Mon, 19 Oct 2015 12:04:20 +0000 (12:04 +0000)]
Map two more Linux error return codes to FreeBSD ones.

Sponsored by: Mellanox Technologies

8 years agoImplement IS_ERR_OR_NULL() function.
hselasky [Mon, 19 Oct 2015 12:00:52 +0000 (12:00 +0000)]
Implement IS_ERR_OR_NULL() function.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 11:57:33 +0000 (11:57 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Add more list related functions and macros.
- Update the hlist_for_each_entry() macro to take one less argument.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 11:46:48 +0000 (11:46 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Reimplement ktime header file to distinguish more from Linux.
- Add new time header file to handle time related Linux functions.

Sponsored by: Mellanox Technologies

8 years agoFix compile warning.
hselasky [Mon, 19 Oct 2015 11:29:50 +0000 (11:29 +0000)]
Fix compile warning.

Sponsored by: Mellanox Technologies

8 years agoUse __func__ instead of __FUNCTION__.
tuexen [Mon, 19 Oct 2015 11:17:54 +0000 (11:17 +0000)]
Use __func__ instead of __FUNCTION__.

This allows to compile the userland stack without errors using gcc5.
Thanks to saghul for makeing me aware and providing the patch.

MFC after: 1 week

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 11:16:38 +0000 (11:16 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Reimplement math64 header file to distinguish more from Linux.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 11:11:15 +0000 (11:11 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Whitespace fixes.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 11:09:51 +0000 (11:09 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Avoid using PAGE_MASK, because Linux defines it differently.
  Use (PAGE_SIZE - 1) instead.
- Add support for for_each_sg_page() and sg_page_iter_dma_address().

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 10:57:56 +0000 (10:57 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Implement schedule_timeout().

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 10:56:32 +0000 (10:56 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Implement pagefault_disable() and pagefault_enable().

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 10:54:24 +0000 (10:54 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Added support for multiple new Linux functions.
- Properly implement DEFINE_WAIT() and init_waitqueue_head() macros.
- Removed FreeBSD specific __wait_queue_head structure definition.

Sponsored by: Mellanox Technologies

8 years agoMerge LinuxKPI changes from DragonflyBSD:
hselasky [Mon, 19 Oct 2015 10:49:15 +0000 (10:49 +0000)]
Merge LinuxKPI changes from DragonflyBSD:
- Some minor whitespace fixes.
- Added support for two new Linux functions.

Sponsored by: Mellanox Technologies

8 years agoMFV r289561: 6328 Fix cstyle errors in zfs codebase
mav [Mon, 19 Oct 2015 08:25:37 +0000 (08:25 +0000)]
MFV r289561: 6328 Fix cstyle errors in zfs codebase

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: Jorgen Lundman <lundman@lundman.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Paul Dagnelie <pcd@delphix.com>

illumos/illumos-gate@9a686fbc186e8e2a64e9a5094d44c7d6fa0ea167

8 years agoAdd quirk for USB 3.0 PCI device.
hselasky [Mon, 19 Oct 2015 07:21:57 +0000 (07:21 +0000)]
Add quirk for USB 3.0 PCI device.

Submitted by: philipp.maechler@mamo.li
PR: 203650
MFC after: 1 week

8 years agootus(4) - use the local node alloc function so there's space for statistics.
adrian [Mon, 19 Oct 2015 01:21:29 +0000 (01:21 +0000)]
otus(4) - use the local node alloc function so there's space for statistics.

* Use the correct malloc type for node allocation - M_80211_NODE - so
  the default node free method in net80211 will work correctly.
* Fix otus_node_alloc() to suit FreeBSD's net80211.
* .. and actually call otus_node_alloc() so there's space for the
  per-node tx statistics.  Otherwise, well, it will be scribbling over
  random memory.

Tested:

* AR9170, STA mode

8 years agootus(4) - add initial monitor mode; use lowest rate for EAPOL
adrian [Mon, 19 Oct 2015 01:14:26 +0000 (01:14 +0000)]
otus(4) - add initial monitor mode; use lowest rate for EAPOL

The monitor mode stuff is from the openbsd driver, but it doesn't
100% work.  It doesn't seem to get all frames for all BSSes.
However, it's enough to at start debugging things.  That 0xffffffff
write is /I think/ the RX filter, but I am still not 100% sure about
it all.

Then, whilst here, use the lowest rate for EAPOL frames.  This is just
generally a good thing to do.

8 years agoEnable gpiobacklight in BEAGLEBONE config to support LCD capes by
gonzo [Sun, 18 Oct 2015 23:58:05 +0000 (23:58 +0000)]
Enable gpiobacklight in BEAGLEBONE config to support LCD capes by
4DSYSTEMS out of box

8 years agoAdd ThunderX VNIC to arm64/GENERIC kernel
zbb [Sun, 18 Oct 2015 22:13:21 +0000 (22:13 +0000)]
Add ThunderX VNIC to arm64/GENERIC kernel

Add vnic to enabled networking cards and enable SR-IOV by the way.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation

8 years agoIntroduce driver for Cavium's ThunderX MDIO
zbb [Sun, 18 Oct 2015 22:10:08 +0000 (22:10 +0000)]
Introduce driver for Cavium's ThunderX MDIO

This commit adds support for MDIO present in the ThunderX SoC.
From the FDT point of view it is compatible with "octeon-3860-mdio"
however only C22 mode is used.
The code also implements lmac_if interface functions.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation

8 years agoIntroduce initial support for Cavium's ThunderX networking interface
zbb [Sun, 18 Oct 2015 22:02:58 +0000 (22:02 +0000)]
Introduce initial support for Cavium's ThunderX networking interface

- The driver consists of three main componens: PF, VF, BGX
- Requires appropriate entries in DTS and MDIO driver
- Supports only FDT configuration
- Multiple Tx queues and single Rx queue supported
- No RSS, HW checksum and TSO support
- No more than 8 queues per-IF (only one Queue Set per IF)
- HW statistics enabled
- Works in all available MAC modes (1,10,20,40G)
- Style converted to BSD according to style(9)
- The code brings lmac_if interface used by the BGX driver to
  update its logical MACs state.

Obtained from: Semihalf
Sponsored by:  The FreeBSD Foundation

8 years agoRaw import of ThunderX VNIC networking driver components
zbb [Sun, 18 Oct 2015 21:39:15 +0000 (21:39 +0000)]
Raw import of ThunderX VNIC networking driver components

This import brings following components of the Linux driver:
- Thunder BGX (programmable MAC)
- Physical Function driver
- Virtual Function driver
- Headers

Revision:            1.0
Obtained from:       Cavium
License information: Cavium provided these files under BSD license

8 years agoUpdate hostapd/wpa_supplicant to version 2.5.
rpaulo [Sun, 18 Oct 2015 21:38:25 +0000 (21:38 +0000)]
Update hostapd/wpa_supplicant to version 2.5.

Tested by several people on current@/wireless@.

Relnotes: yes

8 years agoOnly decode fdt data which belongs to the GIC controller.
ian [Sun, 18 Oct 2015 20:37:10 +0000 (20:37 +0000)]
Only decode fdt data which belongs to the GIC controller.

The interrupts-extended property is a list of controller-specific
interrupt tuples for more than one controller.  The decode routine of
every PIC gets called in the pre-INTRNG code (nexus doesn't know which
device instance belongs to which fdt node), so the GIC code has to
check each FDT node it is asked to decode to ensure it is the owner.

Because in the pre-INTRNG world there can only be one instance of a GIC,
it's safe to cache the results of a positive lookup in a static variable
to avoid the expensive lookups on subsequent calls.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>
Differential Revision: https://reviews.freebsd.org/D2345

8 years agoInclude "opt_platform.h" early so that the FDT option is visible as needed.
ian [Sun, 18 Oct 2015 20:32:37 +0000 (20:32 +0000)]
Include "opt_platform.h" early so that the FDT option is visible as needed.

8 years agoif_ntb: MFV e26a5843: Move MW/DB management to if_ntb
cem [Sun, 18 Oct 2015 20:20:57 +0000 (20:20 +0000)]
if_ntb: MFV e26a5843: Move MW/DB management to if_ntb

This is the last e26a5843 patch.  The general thrust of the rewrite was
to move more responsibility for Memory Window and Doorbell interrupt
management from the ntb_hw driver to if_ntb.

A number of APIs have been added, removed, or replaced.  The old
DB callback mechanism has been excised.  Instead, callers (if_ntb) are
responsible for configuring MWs and handling their interrupts more
directly.

This adds a tunable, hw.ntb.max_mw_size, allowing users to limit the
size of memory windows used by if_ntb (identical to the Linux modparam
of the same name).

Despite attempts to keep mechanical name changes to separate commits,
some have snuck in here.  At least the driver should be much more
similar to the latest Linux one now -- making porting fixes easier.

Authored by: Allen Hubbe
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoif_ntb: Rename things to match Linux driver
cem [Sun, 18 Oct 2015 20:20:48 +0000 (20:20 +0000)]
if_ntb: Rename things to match Linux driver

No functional change.  Part of the huge rewrite (e26a5843).

Obtained from: Linux (e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoif_ntb: Replace handmade bitset macros with sys/bitset.h
cem [Sun, 18 Oct 2015 20:20:38 +0000 (20:20 +0000)]
if_ntb: Replace handmade bitset macros with sys/bitset.h

No functional change.

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Flesh out the rest of the xeon_setup_b2b_mw changes
cem [Sun, 18 Oct 2015 20:20:29 +0000 (20:20 +0000)]
NTB: Flesh out the rest of the xeon_setup_b2b_mw changes

Move all Xeon secondary register setup to the setup_b2b_mw routine.  We
use subroutines to make it a bit less wordy than the Linux version.

Adds a new tunable, 'hw.ntb.b2b_mw_share'.  By default, it is off
(zero).  If both sides enable it (any non-zero value), the NTB driver
attempts to use only half of a memory window for remote register MMIO
access.

This is still part of the large Linux rewrite (e26a5843).

Authored by: Allen Hubbe
Obtained from: Linux (e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: "Split ntb_hw_intel and ntb_transport drivers"
cem [Sun, 18 Oct 2015 20:20:20 +0000 (20:20 +0000)]
NTB: "Split ntb_hw_intel and ntb_transport drivers"

This Linux commit was more or less a rewrite.  Unfortunately, the commit
log does not give a lot of context for the rewrite.  I have tried to
faithfully follow the changes made upstream, including matching function
names where possible, while churning the FreeBSD driver as little as
possible.

This is the bulk of the rewrite.  There are two groups of changes to
follow in separate commits: fleshing out the rest of the changes to
xeon_setup_b2b_mw(), and some changes to if_ntb.

Yes, this is a big patch (3 files changed, 416 insertions(+), 237
deletions(-)), but the Linux patch was 13 files changed, 2,589
additions(+) and 2,195 deletions(-).

Original Linux commit log:
Change ntb_hw_intel to use the new NTB hardware abstraction layer.

Split ntb_transport into its own driver.  Change it to use the new NTB
hardware abstraction layer.

Authored by: Allen Hubbe
Obtained from: Linux (e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Simplify ntb_map_pci_bars
cem [Sun, 18 Oct 2015 20:20:11 +0000 (20:20 +0000)]
NTB: Simplify ntb_map_pci_bars

Skip using a function pointer for shared error logging.

Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Simplify interrupt handling by merging SoC/Xeon
cem [Sun, 18 Oct 2015 20:20:02 +0000 (20:20 +0000)]
NTB: Simplify interrupt handling by merging SoC/Xeon

Some interrupt-related function names changed to match Linux.

No functional change.  Still part of the huge e26a5843 rewrite in Linux.

Obtained from: Linux (e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Rename some variables/functions to match Linux
cem [Sun, 18 Oct 2015 20:19:53 +0000 (20:19 +0000)]
NTB: Rename some variables/functions to match Linux

No functional change.

Still part of the huge e26a5843 rewrite.  I'm trying to make it less of
a complete rewrite in the FreeBSD version of the driver.  Still, it
helps if our names match Linux.

Obtained from: Linux (e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoNTB: Rename some constants to match Linux
cem [Sun, 18 Oct 2015 20:19:44 +0000 (20:19 +0000)]
NTB: Rename some constants to match Linux

No functional change.

Obtained from: Linux (part of e26a5843) (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division

8 years agoEnable ARM_INTRNG on IMX6 platforms, and make the imx_gpio driver an
ian [Sun, 18 Oct 2015 19:54:11 +0000 (19:54 +0000)]
Enable ARM_INTRNG on IMX6 platforms, and make the imx_gpio driver an
interrupt controller.

The latter is required for INTRNG, because of the hardware erratum
workaround installed by the linux folks into the imx6 FDT data, which remaps
an ethernet interrupt to the gpio device.  In the non-INTRNG world we
intercept the call to map the interrupt and map it back to the ethernet
hardware (because we don't need linux's workaround), but in the INTRNG world
we lose the hookpoint where that remapping was happening, but we gain the
ability to work the way linux does by having the gpio driver dispatch the
interrupt.

8 years agoMFV r289535: 5767 fix several problems with zfs test suite
mav [Sun, 18 Oct 2015 19:05:56 +0000 (19:05 +0000)]
MFV r289535: 5767 fix several problems with zfs test suite

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: John Wren Kennedy <john.kennedy@delphix.com>

illumos/illumos-gate@52244c0958bdf281ca42932b449f644b4decfdc2

In fact, only unrelated part of that commit is applicable:
8. zpool list -v doesn't print spares
It also doesn't correctly identify log devices.

8 years agoRemove geom_uncompress from TP-MR3020 config. Its now using root on USB
sbruno [Sun, 18 Oct 2015 18:41:30 +0000 (18:41 +0000)]
Remove geom_uncompress from TP-MR3020 config.  Its now using root on USB
and there's no need for it now.

8 years agoAdd VM_KMEM_SIZE_SCALE=1 as these systems are going to have super small
sbruno [Sun, 18 Oct 2015 18:40:11 +0000 (18:40 +0000)]
Add VM_KMEM_SIZE_SCALE=1 as these systems are going to have super small
amount of RAM, e.g. 16M or 32M

Reviewed by: adrian

8 years agoEnable ARM_INTRNG on the pandaboard platform.
ian [Sun, 18 Oct 2015 18:39:16 +0000 (18:39 +0000)]
Enable ARM_INTRNG on the pandaboard platform.

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

8 years agoMFV r289530: 5847 libzfs_diff should check zfs_prop_get() return
mav [Sun, 18 Oct 2015 18:32:22 +0000 (18:32 +0000)]
MFV r289530: 5847 libzfs_diff should check zfs_prop_get() return

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Alexander Eremin <a.eremin@nexenta.com>

illumos/illumos-gate@8430278980a48338e04c7dd52b495b7f1551367a

8 years agoImport ARM_INTRNG, the "next generation" interrupt architecture for arm
ian [Sun, 18 Oct 2015 18:26:19 +0000 (18:26 +0000)]
Import ARM_INTRNG, the "next generation" interrupt architecture for arm
and armv6 architecures.  The primary enhancement over the old design is
support for hierarchical interrupt controllers (such as a gpio driver
which can receive interrupts from a root PIC and act as a PIC itself for
clients interested in handling a change of gpio pin state as an
interrupt).  The new code also provides an infrastructure for mapping
interrupts described in metadata in the form of a "controller reference
plus interrupt number" tuple into the simple "0-n" flat numeric space
understood by rman and the bus resource mechanisms.

Use of the new code is enabled by setting the ARM_INTRNG option, and by
making a few simple changes to the platform's support code.  In addition
each existing PIC driver needs changes to be ready for INTRNG; this commit
contains the changes for the arm/gic driver, which most armv6 SoCs use, but
it does not enable the new code yet on any platform.

This project has been many years in the making, starting as a GSoC project
by Jakub Klama (jceel@) in 2012.  That didn't get committed right away and
the source base evolved out from under it to some degree.  In 2014 I rebased
the diffs to then -current and did some enhancements in the area of mapping
interrupt numbers and storing associated fdt data, then the project went
cold again for a while.  Eventually Svata Kraus took that work in progress
and did another big round of work on it, removing most of the remaining
rough edges.  Finally I took that and made one more pass through it, mostly
disabling the "INTR_SOLO" feature for now, pending further design
discussions on how to most efficiently dispatch a pending interrupt through
more than one layer of PIC.  The current code with the INTR_SOLO feature
disabled uses approximate 100 extra cpu cycles for each cascaded PIC the
interrupt has to be passed to, so what's left to do is about efficiency, not
correct operation.

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

8 years agoReduce diff from upstream.
mav [Sun, 18 Oct 2015 18:25:00 +0000 (18:25 +0000)]
Reduce diff from upstream.

Should be no functional change.

8 years agoMFV r289526:
mav [Sun, 18 Oct 2015 18:08:33 +0000 (18:08 +0000)]
MFV r289526:
5561 support root pools on EFI/GPT partitioned disks
5125 update zpool/libzfs to manage bootable whole disk pools (EFI/GPT labeled disks)

Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

illumos/illumos-gate@1a902ef8628b0dffd6df5442354ab59bb8530962

This is NOP changes for FreeBSD.

8 years agoSwitch the default OpenMP runtime for clang to libomp (from the LLVM
dim [Sun, 18 Oct 2015 17:18:19 +0000 (17:18 +0000)]
Switch the default OpenMP runtime for clang to libomp (from the LLVM
project), as libgomp is not supported anyway.  You can use the
devel/llvm-devel port to install a recent copy of the OpenMP runtime.

8 years agoAdd clang patch corresponding to r289523.
dim [Sun, 18 Oct 2015 17:14:45 +0000 (17:14 +0000)]
Add clang patch corresponding to r289523.

8 years agoPull in r248379 from upstream clang trunk (by Jörg Sonnenberger):
dim [Sun, 18 Oct 2015 17:13:41 +0000 (17:13 +0000)]
Pull in r248379 from upstream clang trunk (by Jörg Sonnenberger):

  Refactor library decision for -fopenmp support from Darwin into a
  function for sharing with other platforms.

Pull in r248424 from upstream clang trunk (by Jörg Sonnenberger):

  Push OpenMP linker flags after linker input on Darwin. Don't add any
  libraries if -nostdlib is specified. Test.

Pull in r248426 from upstream clang trunk (by Jörg Sonnenberger):

  Support linking against OpenMP runtime on NetBSD.

Pull in r250657 from upstream clang trunk (by Dimitry Andric):

  Support linking against OpenMP runtime on FreeBSD.

8 years agoRename arm_init_secondary_ic() -> arm_pic_init_secondary(). The latter is
ian [Sun, 18 Oct 2015 16:54:34 +0000 (16:54 +0000)]
Rename arm_init_secondary_ic() -> arm_pic_init_secondary().  The latter is
the name the function will have when the new ARM_INTRNG code is integrated,
and doing this rename first will make it easier to toggle the new interrupt
handling code on/off with a config option for debugging.

8 years agoCorrectly align the stack. The early csu assumed we passed the aux vector
andrew [Sun, 18 Oct 2015 13:23:21 +0000 (13:23 +0000)]
Correctly align the stack. The early csu assumed we passed the aux vector
in through the stack pointer, however this may have been misaligned
causing some userland applications to crash. A workaround was committed in
r284707 where userland would check if the aux vector was passed using the
old or new ABI and adjust the stack if needed. As 4 months have passed it
is time to move to the new ABI, with the expectation the compat code in csu
and the runtime linker to be removed in the future.

Sponsored by: ABT Systems Ltd

8 years agoFix deletion of ifaddr lle entries when deleting prefix from interface in
melifaro [Sun, 18 Oct 2015 12:26:25 +0000 (12:26 +0000)]
Fix deletion of ifaddr lle entries when deleting prefix from interface in
  down state.

Regression appeared in r287789, where the "prefix has no corresponding
  installed route" case was forgotten. Additionally, lltable_delete_addr()
  was called with incorrect byte order (default is network for lltable code).
While here, improve comments on given cases and byte order.

PR: 203573
Submitted by: phk

8 years agoMFC r289498: 6298 zfs_create_008_neg and zpool_create_023_neg need to be
mav [Sun, 18 Oct 2015 11:44:31 +0000 (11:44 +0000)]
MFC r289498: 6298 zfs_create_008_neg and zpool_create_023_neg need to be
updated for large block support.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Joe Stein <joe.stein@delphix.com>

illumos/illumos-gate@e9316f7696401f3e5e263a5939031cb8d5641a88

8 years agoMFV r247180: Update vendor/illumos/dist and vendor-sys/illumos/dist
mav [Sun, 18 Oct 2015 11:36:43 +0000 (11:36 +0000)]
MFV r247180: Update vendor/illumos/dist and vendor-sys/illumos/dist
to illumos-gate 13967:92bec6d87f59

Illumos ZFS issues:
  3557 dumpvp_size is not updated correctly when a dump zvol's size is
       changed
  3558 setting the volsize on a dump device does not return back ENOSPC
  3559 setting a volsize larger than the space available sometimes succeeds

8 years agoMFV r289493: 5745 zfs set allows only one dataset property to be set at a time
mav [Sun, 18 Oct 2015 11:21:08 +0000 (11:21 +0000)]
MFV r289493: 5745 zfs set allows only one dataset property to be set at a time

Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Reviewed by: Richard PALO <richard@NetBSD.org>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Approved by: Rich Lowe <richlowe@richlowe.net>
Author: Chris Williamson <chris.williamson@delphix.com>

illumos/illumos-gate@30925561c223021e91d15899cbe75f80e54d8889

8 years agoOnly marker is guaranteed to be present on the queue after the relock
kib [Sun, 18 Oct 2015 09:33:28 +0000 (09:33 +0000)]
Only marker is guaranteed to be present on the queue after the relock
in vm_pageout_fallback_object_lock() and vm_pageout_page_lock().  The
check for the m->queue == queue assumes that the page does belong to a
queue.

Modify the 'unchanged' calculation bu dereferencing the marker tailq
pointers, which is known to belong to the queue.  Since for a page m
linked to the queue, m->queue must be equal to the queue index, assert
this instead of checking.

In collaboration with: alc
Sponsored by: The FreeBSD Foundation (kib)
MFC after: 2 weeks