aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ZFS: add bookmark renamingAndriy Gapon2019-10-036-42/+237
| | | | | | | | | | | | | | | | | | | | | The feature is implemented as an extension of the existing ZFS_IOC_RENAME ioctl. Both the userland and the DSL interfaces support renaming only a single bookmark at a time. As of now, there is no ZCP interface to the new functionality. I am going to add it once the DSL interface passes a test of time. This change picks up support for zfs_ioc_namecheck_t::ENTITY_NAME that was added to ZoL as part of Redacted Send/Receive feature by Paul Dagnelie <pcd@delphix.com>. This is needed to allow a bookmark name in zc_name. Discussed with: mahrens Reviewed by: bcr (man page) Sponsored by: CyberSecure Differential Revision: https://reviews.freebsd.org/D21795 Notes: svn path=/head/; revision=353037
* Remove unnecessary vm/vm_page.h and vm/vm_pager.h includes fromKonstantin Belousov2019-10-031-2/+0
| | | | | | | | | | | tmpfs/tmpfs_vnodes.c. Submitted by: ota@j.email.ne.jp MFC after: 1 week Differential revision: https://reviews.freebsd.org/D21881 Notes: svn path=/head/; revision=353033
* Fix build failure from r353026. Somehow module build allowed this.Gleb Smirnoff2019-10-031-5/+9
| | | | | | | Pointy hat to: glebius Notes: svn path=/head/; revision=353030
* Protect access to seq->xwin[] with the seq mutex.Gleb Smirnoff2019-10-031-1/+4
| | | | | | | MFC after: 5 weeks Notes: svn path=/head/; revision=353027
* - Remove the compile time limit for number of links a ng_bridge nodeGleb Smirnoff2019-10-033-243/+223
| | | | | | | | | | | | | can handle. Instead using an array on node private data, use per-hook private data. - Use NG_NODE_FOREACH_HOOK() to traverse through hooks instead of array. PR: 240787 Submitted by: Lutz Donnerhacke <lutz donnerhacke.de> Differential Revision: https://reviews.freebsd.org/D21803 Notes: svn path=/head/; revision=353026
* Bump .Dd for earlier update (should have been part of r353024).Ian Lepore2019-10-021-1/+1
| | | | Notes: svn path=/head/; revision=353025
* Clarify how the -f option for daemon(8) interacts with other optionsIan Lepore2019-10-021-0/+5
| | | | | | | related to redirecting stdout and stderr. Notes: svn path=/head/; revision=353024
* Fix the EMBEDFS_FORMAT helper variable for riscv64.John Baldwin2019-10-021-1/+1
| | | | | | | | | | | | | | It was defined with the wrong MACHINE_ARCH previously. This permits using an MFS image without defining MD_ROOT_SIZE which has various benefits (one being that the build is able to treat the MFS image as a dependency and properly re-link the kernel with the new image when building with NO_CLEAN). MFC after: 2 weeks Sponsored by: DARPA Notes: svn path=/head/; revision=353023
* Switch EC2 AMIs from using the dual-dhclient script to using the newColin Percival2019-10-021-1/+1
| | | | | | | | | | dual-dhclient-daemon daemon. This makes it possible to stop/restart the dhclients. MFC after: 1 month Notes: svn path=/head/; revision=353022
* simplify path handling in sysctl_try_reclaim_vnodeEd Maste2019-10-021-2/+2
| | | | | | | | | | | | | | | | | MAXPATHLEN / PATH_MAX includes space for the terminating NUL, and namei verifies the presence of the NUL. Thus there is no need to increase the buffer size here. The sysctl passes the string excluding the NUL, so req->newlen equal to PATH_MAX is too long. Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21876 Notes: svn path=/head/; revision=353021
* nvdimm: Fix error path mis-freeConrad Meyer2019-10-021-1/+1
| | | | | | | | | | | | | Regression introduced in r343629 when malloc result was renamed from spa to spa_mapping and the 'spa' name was instead used to iterate a table, but the free() target was not updated. Reviewed by: kib, scottph Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D21871 Notes: svn path=/head/; revision=353020
* Override the TLS model when building mips64 binaries and static librariesKyle Evans2019-10-022-0/+11
| | | | | | | | | | | | | | | | | | | | | GCC uses "dynamic" TLS models when -fpic or -fPIC is explicitly specified on the command line (which is only true for shared libraries). It uses "static" (or "exec") TLS models otherwise. In particular, GCC does _not_ use dynamic TLS models when PIC is implicitly enabled (which it is on MIPS), only if a PIC flag is explicitly provided. llvm uses "dynamic" TLS models if PIC is enabled either via a PIC flag or if it is implicily enabled (as on MIPS64). This means that llvm on MIPS64 always uses "dynamic" TLS models. However, dynamic TLS models do not work for static binaries and libraries as the __tls_get_addr function they invoke is only defined in rtld. Written by: jhb Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D21699 Notes: svn path=/head/; revision=353019
* clang: use -mxgot for 32-bit mipsKyle Evans2019-10-021-0/+5
| | | | | | | | | | | | Various bits in usr.bin/clang/* will fail to compile without -mxgot due to truncated relocations. -mxgot entails a speed penalty, but I suspect we don't care as much about compiler performance in 32-bit mips land. Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D21698 Notes: svn path=/head/; revision=353018
* sparc64: use generic sub-word atomic *cmpsetKyle Evans2019-10-021-0/+69
| | | | | | | | | | Most of this diff is refactoring to reduce duplication between the different acq_ and rel_ variants. Differential Revision: https://reviews.freebsd.org/D21822 Notes: svn path=/head/; revision=353017
* mips: use generic sub-word atomic *cmpsetKyle Evans2019-10-021-68/+74
| | | | | | | | | | Most of this diff is refactoring to reduce duplication between the different acq_ and rel_ variants. Differential Revision: https://reviews.freebsd.org/D21822 Notes: svn path=/head/; revision=353016
* Provide generic sub-word atomic *cmpsetKyle Evans2019-10-021-0/+168
| | | | | | | | | | | | | | | Provide *cmpset_{8,16} as wrappers around atomic_fcmpset_32. Initial users will be mips and sparc64, and perhaps parts of powerpc. This are not for general consumption; machine/atomic.h should include this header as needed to provide atomic_{,f}cmpset_{8,16} and machine/atomic.h should provide acq_ and rel_ variants. Reviewed by: jhibbits, kib Differential Revision: https://reviews.freebsd.org/D21822 Notes: svn path=/head/; revision=353015
* Use OBJT_PHYS VM objects for kernel modules.Mark Johnston2019-10-022-3/+2
| | | | | | | | | | | | | OBJT_DEFAULT incurs some unnecessary overhead given that kernel module pages cannot be paged out. Reviewed by: alc, kib MFC after: 1 week Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D21862 Notes: svn path=/head/; revision=353014
* Harmonize the hptmv blob's build rule with that of other hpt* drivers.Mark Johnston2019-10-021-8/+2
| | | | | | | | | | | No functional change intended. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21866 Notes: svn path=/head/; revision=353013
* Add a comment explaining why the opensolaris_load line in loader.confGlen Barber2019-10-021-0/+2
| | | | | | | | | | | | is explicitly added. Requested by: rgrimes MFC after: 3 days MFC with: r353004 Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=353012
* Revert r352953: Convert pnmatch to single element array in regexec callsAlexander Kabaev2019-10-022-11/+11
| | | | | | | Requested by: cem Notes: svn path=/head/; revision=353011
* Disallow fcntl(F_READAHEAD) when the vnode is not a regular file.Mark Johnston2019-10-021-0/+6
| | | | | | | | | | | | | | | | | | | The mountpoint may not have defined an iosize parameter, so an attempt to configure readahead on a device file can lead to a divide-by-zero crash. The sequential heuristic is not applied to I/O to or from device files, and posix_fadvise(2) returns an error when v_type != VREG, so perform the same check here. Reported by: syzbot+e4b682208761aa5bc53a@syzkaller.appspotmail.com Reviewed by: kib MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21864 Notes: svn path=/head/; revision=353010
* libusb: LIBUSB_DEBUG environment variable override of libusb_set_debugKyle Evans2019-10-021-4/+19
| | | | | | | | | | | | | | | | | | | | | The debug level generally just controls verbosity of libusb for debugging libusb devices/usage. We allow the environment to set the debug level independent of the application, but the application will always override this if it explicitly sets the debug level. Changing the environment is easy, but patching the software to change the debug level isn't necessarily easy or possible. Further, there's this write-only debug_fixed variable that would seem to imply that the debug level should be fixed, but it isn't currently used. Change the logic to use strtol() so we can detect real 0 vs. conversion failure, then honor debug_fixed in libusb_set_debug. Reviewed by: hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D21877 Notes: svn path=/head/; revision=353009
* mips: fcmpset: do not spin on sc failureKyle Evans2019-10-021-12/+18
| | | | | | | | | | | | | | For ll/sc architectures, atomic(9) allows failure modes where *old == val due to write failure and callers should compensate for this. Do not retry on failure, just leave 0 in ret and fail the operation if we couldn't sc it. This lets the caller determine if it should retry or not. Reviewed by: kib Looks ok: imp Differential Revision: https://reviews.freebsd.org/D21836 Notes: svn path=/head/; revision=353008
* Explicitly add opensolaris_load="YES" to loader.conf through theGlen Barber2019-10-021-0/+1
| | | | | | | | | | | | | | | installer when installing the system on a ZFS root filesystem. For arm64, zfs_load="YES" does not add opensolaris.ko as a kld dependency, so add it explicitly to prevent boot-time failures out-of-box. PR: 240478 MFC after: 3 days Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=353004
* Unbreak etcupdate(8) and mergemaster(8) after r352950Kyle Evans2019-10-022-4/+2
| | | | | | | | | | r352950 introduced improper case fall-through for shell scripts. Fix it with a pipe. Reported by: lwhsu, David Wolfskill Notes: svn path=/head/; revision=353002
* Fix build failure for gcc after r352983, due toHans Petter Selasky2019-10-021-1/+0
| | | | | | | | | | not using static variable declared by net/sff8472.h . MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=353001
* Fix build failure for 32-bit platforms after r352991, due toHans Petter Selasky2019-10-021-2/+2
| | | | | | | | | | incorrect printf() formatter string. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=353000
* Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuffEdward Tomasz Napierala2019-10-024-22/+6
| | | | | | | | | | | | it's entirely linux-specific. Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21830 Notes: svn path=/head/; revision=352999
* Bump driver version for mlx5core, mlx5en(4) and mlx5ib(4).Hans Petter Selasky2019-10-023-6/+6
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352998
* Print numeric error_type and module_status in mlx5coreHans Petter Selasky2019-10-021-3/+4
| | | | | | | | | | | in case the strings are not available. Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352997
* Add print to show user a reason for rejecting buffer size change in mlx5en(4).Hans Petter Selasky2019-10-021-10/+16
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352996
* Only update lossy buffers config when manual PFC configuration was doneHans Petter Selasky2019-10-023-2/+7
| | | | | | | | | | | in mlx5en(4). Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352995
* Improve mlx5_fwdump_prep logging in mlx5core.Hans Petter Selasky2019-10-021-4/+7
| | | | | | | | | Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352994
* Randomize the delay when waiting for VSC flag in mlx5core.Hans Petter Selasky2019-10-021-2/+2
| | | | | | | | | | | | The PRM suggests random 0 - 10ms to prevent multiple waiters on the same interval in order to avoid starvation. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352993
* Use size_t for byte_to_write variable when comparing to eeprom_info_out_lenHans Petter Selasky2019-10-021-2/+3
| | | | | | | | | | | which is also size_t in mlx5tool(8). Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352992
* Wait for FW readiness before initializing command interface in mlx5core.Hans Petter Selasky2019-10-022-8/+38
| | | | | | | | | | | | | | | | | | | | Before attempting to initialize the command interface we must wait till the fw_initializing bit is clear. If we fail to meet this condition the hardware will drop our configuration, specifically the descriptors page address. This scenario can happen when the firmware is still executing an FLR flow and did not finish yet so the driver needs to wait for that to finish. Linux commits: 6c780a0267b8 b8a92577f4be. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352991
* Fix regression issue about bad refcounting of unlimited send tagsHans Petter Selasky2019-10-023-36/+26
| | | | | | | | | | | | | in mlx5en(4) after r348254. The unlimited send tags are shared amount multiple connections and are not allocated per send tag allocation request. Only increment the refcount. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352990
* Seal transmit path with regards to using destroyed mutex in mlx5en(4).Hans Petter Selasky2019-10-022-59/+77
| | | | | | | | | | | | | | | | It may happen during link down that the running state may be observed non-zero in the transmit routine, right before the running state is cleared. This may end up using a destroyed mutex. Make all channel mutexes and callouts persistant. Preserve receive and send queue statistics during link toggle. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352989
* Remove unused cpu field from channel structure in mlx5en(4).Hans Petter Selasky2019-10-021-1/+0
| | | | | | | | MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352988
* Remove mkey_be from channel structure in mlx5en(4).Hans Petter Selasky2019-10-022-4/+2
| | | | | | | | | | | Use value from priv structure instead. This saves some space in the channel structure. MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352987
* Return an error from ioctl(MLX5_FW_RESET) if reset was rejected in mlx5core.Hans Petter Selasky2019-10-023-5/+9
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352986
* Add sysctl(8) to get and set forward error correction, FEC, configurationHans Petter Selasky2019-10-026-22/+405
| | | | | | | | | | in mlx5en(4). MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352985
* Add the ability to query the EEPROM information in mlx5tool(8).Hans Petter Selasky2019-10-022-15/+109
| | | | | | | | | Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352984
* Move EEPROM information query from a sysctl in mlx5en(4) to an ioctlHans Petter Selasky2019-10-029-251/+298
| | | | | | | | | | | | in mlx5core. The EEPROM information is not only a property of the mlx5en(4) driver. Submitted by: slavash@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352983
* Add support for buffer parameter manipulations in mlx5en(4).Hans Petter Selasky2019-10-023-1/+118
| | | | | | | | | | | | | | The following sysctls are added: dev.mce.N.conf.qos.cable_length dev.mce.N.conf.qos.buffers_size dev.mce.N.conf.qos.buffers_prio Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352982
* Import Linux code to query/set buffer state in mlx5en(4).Hans Petter Selasky2019-10-027-0/+656
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352981
* Add mlx5e_dbg() compatibility macro.Hans Petter Selasky2019-10-021-0/+2
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352980
* Update definitons for PPTB and PBMC registers layouts in mlx5core.Hans Petter Selasky2019-10-021-18/+10
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352979
* Add definition for the Port Buffer Status Register in mlx5core.Hans Petter Selasky2019-10-021-0/+1
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352978
* Sort the ports registers definitions numerically in mlx5core.Hans Petter Selasky2019-10-021-5/+5
| | | | | | | | | Submitted by: kib@ MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=352977