aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leaks in route(8).Alexander V. Chernikov2018-03-311-0/+2
| | | | | | | | | Submitted by: Tom Rix (trix_juniper.net) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D9676 Notes: svn path=/head/; revision=331844
* Synchronise with NetBSD's version of EFI handling for El Torito images.Benno Rice2018-03-314-28/+63
| | | | | | | | | | | | | | | When I implemented my EFI support I failed to check if the upstream version of makefs in NetBSD had done the same. Override my version with theirs to make it easier to stay in sync with them in the future. Reviewed by: imp, mav Obtained from: NetBSD MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D14913 Notes: svn path=/head/; revision=331843
* Remove MK_AUTO_OBJ from env passed to PORTS_MODULESJason A. Harmening2018-03-311-1/+2
| | | | | | | | | | | | | | | This fixes a failure to resolve object file paths seen when buildkernel (which sets MK_AUTO_OBJ=yes) and installkernel (which sets MK_AUTO_OBJ=no) are run as separate steps. r329232 partially fixed this scenario by removing MAKEOBJDIR, but it seems the AUTO_OBJ setting also needs to be on the same page for the build and install steps. Reviewed by: bdrewery MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D14143 Notes: svn path=/head/; revision=331836
* Document and enforce assumptions about struct (in6_)ifreq.Brooks Davis2018-03-302-0/+15
| | | | | | | | | | | | | | | | | | - The two types must be type-punnable for shared members of ifr_ifru. This allows compatibility accessors to be shared. - There must be no padding gap between ifr_name and ifr_ifru. This is assumed in tcpdump's use of SIOCGIFFLAGS output which attempts to be broadly portable. This is true for all current architectures, but very large (256-bit) fat-pointers could violate this invariant. Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14910 Notes: svn path=/head/; revision=331831
* Add deprecation notices for Arcnet and FDDI drivers.Brooks Davis2018-03-304-2/+16
| | | | | | | | | | | | We intend to remove support before FreeBSD 12 is branched. Reviewed by: imp, emaste MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14890 Notes: svn path=/head/; revision=331830
* Fall back to ether_ioctl() by default.Brooks Davis2018-03-304-28/+5
| | | | | | | | | | | | | | | | | | | | The common pratice in ethernet device drivers is to fall back to ether_ioctl() to implement generic ioctls not implemented by the driver and to fail if no handler exists. Convert these drivers to follow that practice rather than calling ether_ioctl() for specific cases. vxge(4) aready had the default case, but it was only called on failure to match. Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14895 Notes: svn path=/head/; revision=331829
* Optimise use of Giant in the LinuxKPI.Hans Petter Selasky2018-03-305-37/+20
| | | | | | | | | | | | | | - Make sure Giant is locked when calling PCI device methods. Newbus currently requires this. - Avoid unlocking Giant right before aquiring the sleepqueue lock. This can save a task switch. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331828
* Remove unused structure field in mlx5core.Hans Petter Selasky2018-03-301-1/+0
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331827
* Bump mlx5core driver version.Hans Petter Selasky2018-03-301-2/+4
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331826
* Fix for use after free in mlx5core.Hans Petter Selasky2018-03-301-1/+2
| | | | | | | | | | | Make sure the command completion handler is not called when the device is in internal error state. This can easily trigger use after free situations. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331825
* Make sure Giant is locked when allocating bus resources in mlx5core.Hans Petter Selasky2018-03-301-0/+4
| | | | | | | | | | | | During health care IRQ resources will be reallocated. Newbus requires that Giant is locked before accessing these resources. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331824
* Collect firmware dump when mlx5core is in device error state.Hans Petter Selasky2018-03-301-0/+3
| | | | | | | | | | | | Firmware dump collecting should be triggered in case firmware syndrome with request for reset bit is set. MFC after: 3 days Submitted by: slavash@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331823
* Reorganize health recovery in mlx5core.Hans Petter Selasky2018-03-301-39/+47
| | | | | | | | | | | | | - Move the semaphore locking and unlocking to the same function. - Flags are no longer needed if the reset and crdump will be done in the same function. MFC after: 3 days Submitted by: slavash@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331822
* Prepare for FW dump in error state in mlx5core.Hans Petter Selasky2018-03-302-5/+9
| | | | | | | | | | | | | - Move firmware dump prep and cleanup to init_one() and remove_one() so that the init and cleanup will happen only upon driver reload. - Add some prints to indicate firmware dump. MFC after: 3 days Submitted by: slavash@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331821
* Properly check if crspace is supported in mlx5core.Hans Petter Selasky2018-03-301-6/+12
| | | | | | | | | | | | | The old code checked for MLX5_CR_SPACE_DOMAIN which is irrelevant here. However, if dev->vsec_addr would be 0, an access to wrong offset would happen. MFC after: 3 days Submitted by: slavash@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331820
* Add missing newline character in print in mlx5core.Hans Petter Selasky2018-03-301-1/+1
| | | | | | | | | MFC after: 3 days Submitted by: slavash@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=331819
* Add logic for "families" for GCE images.Glen Barber2018-03-301-0/+6
| | | | | | | | | | | | | | | This allows for GCE consumers to easily detect the latest major version of FreeBSD when using the gcloud command line utility. To ensure snapshot builds do not conflict with release-style builds (ALPHA, BETA, RC, RELEASE), the '-snap' suffix is appended to the GCE image family name. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331806
* Use an accessor function to access ifr_data.Brooks Davis2018-03-3028-91/+139
| | | | | | | | | | | | | | | | This fixes 32-bit compat (no ioctl command defintions are required as struct ifreq is the same size). This is believed to be sufficent to fully support ifconfig on 32-bit systems. Reviewed by: kib Obtained from: CheriBSD MFC after: 1 week Relnotes: yes Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14900 Notes: svn path=/head/; revision=331797
* Remove a comment that suggests checking that a non-pointer is non-NULL.Brooks Davis2018-03-301-4/+0
| | | | | | | | | Reviewed by: melifaro, markj, hrs, ume Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14904 Notes: svn path=/head/; revision=331776
* ocs_fc(4): Fix GCC build (-Wredundant-decls)Conrad Meyer2018-03-301-3/+0
| | | | | | | | | | | | These objects are defined earlier in the same file; an extern declaration after definition is redundant. Broken in r331766 (introduction of ocs_fc(4)). Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331768
* efinet: Do not return only if ReceiveFilter failsEmmanuel Vadot2018-03-301-3/+1
| | | | | | | | | | If the network interface or the uefi implementation do not support the ReceiveFilter interface do not return only and just print a message. U-Boot doesn't support is and likely never will. Also even if this fails it doesn't mean that network in EFI isn't supported. Notes: svn path=/head/; revision=331767
* Bring in the Broadcom/Emulex Fibre Channel driver, ocs_fc(4).Kenneth D. Merry2018-03-3055-0/+69390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ocs_fc(4) driver supports the following hardware: Emulex 16/8G FC GEN 5 HBAS LPe15004 FC Host Bus Adapters LPe160XX FC Host Bus Adapters Emulex 32/16G FC GEN 6 HBAS LPe3100X FC Host Bus Adapters LPe3200X FC Host Bus Adapters The driver supports target and initiator mode, and also supports FC-Tape. Note that the driver only currently works on little endian platforms. It is only included in the module build for amd64 and i386, and in GENERIC on amd64 only. Submitted by: Ram Kishore Vegesna <ram.vegesna@broadcom.com> Reviewed by: mav MFC after: 5 days Relnotes: yes Sponsored by: Broadcom Differential Revision: https://reviews.freebsd.org/D11423 Notes: svn path=/head/; revision=331766
* Fix missing n after \ of Eric Turgeon entryEric Turgeon2018-03-301-1/+1
| | | | | | | Approved by: bapt (mentor) Notes: svn path=/head/; revision=331765
* Adding Eric Turgeon (ericbsd) to calendar.freebsdEric Turgeon2018-03-301-0/+1
| | | | | | | Approved by: bapt (mentor) Notes: svn path=/head/; revision=331764
* Add Eric Turgeon (ericbsd) in committers-ports.dot with mentor/mentee.Eric Turgeon2018-03-301-0/+3
| | | | | | | Approved by: bapt (mentor) Notes: svn path=/head/; revision=331762
* align i386 cpu_reset() with amd64 versionAndriy Gapon2018-03-301-4/+7
| | | | | | | | | Maybe this code could be moved to x86. MFC after: 1 week Notes: svn path=/head/; revision=331761
* Make vm_map_max/min/pmap KBI stable.Konstantin Belousov2018-03-302-0/+30
| | | | | | | | | | | | | | | | There are out of tree consumers of vm_map_min() and vm_map_max(), and I believe there are consumers of vm_map_pmap(), although the later is arguably less in the need of KBI-stable interface. For the consumers benefit, make modules using this KPI not depended on the struct vm_map layout. Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D14902 Notes: svn path=/head/; revision=331760
* makefs: sync fragment and block size with newfsEd Maste2018-03-301-2/+2
| | | | | | | | | | | | | r222319 in newfs raised the default blocksize for UFS/FFS filesystems from 16K to 32K and the default fragment size from 2K to 4K, with a rationale that most disks were now running with 4K sectors. MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=331758
* Correct comment typo in Hyper-VEd Maste2018-03-301-1/+1
| | | | | | | | | PR: 226665 Submitted by: Ryo ONODERA MFC after: 3 days Notes: svn path=/head/; revision=331757
* bhnd(4): Use the new BHND_CAP_BP64 capability flag to exclude DMALandon J. Fuller2018-03-292-3/+11
| | | | | | | translations unsupported by the backplane. Notes: svn path=/head/; revision=331746
* Fix RSS build (broken in r331309).Navdeep Parhar2018-03-291-2/+2
| | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=331745
* bhnd(4): include a subset of the ChipCommon capability flags in bhnd_chipid;Landon J. Fuller2018-03-299-201/+215
| | | | | | | | this provides early access to device capability flags required by bhnd(4) bus and bhndb(4) bridge drivers. Notes: svn path=/head/; revision=331744
* Add libdl to clibs packageKyle Evans2018-03-291-0/+1
| | | | | | | | | | | | libdl is a filter on libc, and pretty lightweight. Add it to the 'clibs' package with libc, effectively tying them together in a pkgbase world. Reviewed by: gjb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D13997 Notes: svn path=/head/; revision=331743
* It is March not May.Brooks Davis2018-03-291-1/+1
| | | | | | | Reported by: jkim Notes: svn path=/head/; revision=331740
* 1. Add additional debug prints.David C Somayajulu2018-03-296-12/+54
| | | | | | | | | 2. Break transmit when IFF_DRV_RUNNING is OFF. 3. set desc_count=0 for default case in switch in ql_rcv_isr() MFC after:5 days Notes: svn path=/head/; revision=331739
* Have TD_LOCKS_DEC() assert that td_locks is positive.Mark Johnston2018-03-291-1/+4
| | | | | | | | | | | | | | This makes it easier to catch lock accounting bugs, since the problem is otherwise only detected upon a return to user mode (or never, for kernel threads). Reviewed by: cem MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D14896 Notes: svn path=/head/; revision=331738
* GC never enabled support for SIOCGADDRROM and SIOCGCHIPID.Brooks Davis2018-03-292-17/+0
| | | | | | | | | | | | | | | When de(4) was imported in 1997 the world was not ready for these ioctls. In over 20 years that hasn't changed so it seems safe to assume their time will never come. Reviewed by: imp, jhb Approved by: CheriBSD MFC after: 1 week Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14889 Notes: svn path=/head/; revision=331737
* Fix the background laundering mechanism after r329882.Mark Johnston2018-03-292-20/+19
| | | | | | | | | | | | | | Rather than using the number of inactive queue scans as a metric for how many clean pages are being freed by the page daemon, have the page daemon keep a running counter of the number of pages it has freed, and have the laundry thread use that when computing the background laundering threshold. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D14884 Notes: svn path=/head/; revision=331732
* Pull in r328738 from upstream lld trunk (by Rafael Espindola):Dimitry Andric2018-03-293-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Strip @VER suffices from the LTO output. This fixes pr36623. The problem is that we have to parse versions out of names before LTO so that LTO can use that information. When we get the LTO produced .o files, we replace the previous symbols with the LTO produced ones, but they still have @ in their names. We could just trim the name directly, but calling parseSymbolVersion to do it is simpler. This is a follow-up to r331366, since we discovered that lld could append version strings to symbols twice, when using Link Time Optimization. MFC after: 3 months X-MFC-With: r327952 Notes: svn path=/head/; revision=331731
* cryptocheck: Add Chacha20 cipher to toolConrad Meyer2018-03-291-0/+3
| | | | Notes: svn path=/head/; revision=331726
* cryptotest: Add chacha20 cipherConrad Meyer2018-03-291-1/+3
| | | | Notes: svn path=/head/; revision=331725
* opencrypto: Integrate Chacha20 algorithm into OCFConrad Meyer2018-03-297-3/+98
| | | | | | | | | | | Mostly this is a thin shim around existing code to integrate with enc_xform and cryptosoft (+ cryptodev). Expand the cryptodev buffer used to match that of Chacha20's native block size as a performance enhancement for chacha20_xform_crypt_multi. Notes: svn path=/head/; revision=331724
* Implement several enhancements to NUMA policies.Jeff Roberson2018-03-2914-177/+432
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new "interleave" allocation policy which stripes pages across domains with a stride or width keeping contiguity within a multi-page region. Move the kernel to the dedicated numbered cpuset #2 making it possible to assign kernel threads and memory policy separately from user. This also eliminates the need for the complicated interrupt binding code. Add a sysctl API for viewing and manipulating domainsets. Refactor some of the cpuset_t manipulation code using the generic bitset type so that it can be used for both. This probably belongs in a dedicated subr file. Attempt to improve the include situation. Reviewed by: kib Discussed with: jhb (cpuset parts) Tested by: pho (before review feedback) Sponsored by: Netflix, Dell/EMC Isilon Differential Revision: https://reviews.freebsd.org/D14839 Notes: svn path=/head/; revision=331723
* timeout.1: Try to improve clarityConrad Meyer2018-03-291-25/+35
| | | | | | | | | | | Minor rewordings, markup fixes or enhancements, and some typo fixes. Add a few sentences clarifying the special zero duration. PR: 227012 Submitted by: Mateusz Piotrowski (0mp@) (earlier version) Notes: svn path=/head/; revision=331720
* stand: Add workaround for HP BIOS issuesKyle Evans2018-03-291-0/+22
| | | | | | | | | | | | | | | | hrs@ and kuriyama@ have found that on some HP BIOS, a system will fail to boot immediately after installation with the claim that it can't work out which disk they are booting from. They tracked it down to a buffer overrun, and found that it could be alleviated by doing a dummy read before-hand. Submitted by: kuriyama MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14341 Notes: svn path=/head/; revision=331718
* Reformat the enum of syscall argument types.John Baldwin2018-03-291-21/+133
| | | | | | | | | | | | List enum values on separate lines to minimize diffs as new types are added. Split the enum values up into groups and use some simple sorting within groups (scalar enums are sorted by size, then base, all other groups are generally sorted alphabetically). No functional change. Notes: svn path=/head/; revision=331716
* Rename ClouduABIFDSFlags to CloudABIFDSFlags.John Baldwin2018-03-292-3/+3
| | | | Notes: svn path=/head/; revision=331715
* Remove infrastructure for token-ring networks.Brooks Davis2018-03-2813-916/+6
| | | | | | | | | | Reviewed by: cem, imp, jhb, jmallett Relnotes: yes Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14875 Notes: svn path=/head/; revision=331714
* MFV r331712:Alexander Motin2018-03-282-14/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 9280 Assertion failure while running removal_with_ganging test with 4K devices illumos/illumos-gate@243952c7eeef020886e3e2e3df99a513df40584a Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org> Author: Matt Ahrens <Matt.Ahrens@delphix.com> Notes: svn path=/head/; revision=331713
| * 9280 Assertion failure while running removal_with_ganging test with 4K devicesAlexander Motin2018-03-282-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | illumos/illumos-gate@243952c7eeef020886e3e2e3df99a513df40584a Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org> Author: Matt Ahrens <Matt.Ahrens@delphix.com> Notes: svn path=/vendor-sys/illumos/dist/; revision=331712