summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* iw_cxgbe: Fix panic that occurs when c4iw_ev_handler tries to acquirenp2016-06-011-1/+10
| | | | | | | | comp_handler_lock but c4iw_destroy_cq has already freed the CQ memory (which is where the lock resides). Submitted by: Krishnamraju Eraparaju @ Chelsio Sponsored by: Chelsio Communications
* Microoptimize locking primitives by avoiding unnecessary atomic ops.mjg2016-06-017-16/+34
| | | | | | | | | | Inline version of primitives do an atomic op and if it fails they fallback to actual primitives, which immediately retry the atomic op. The obvious optimisation is to check if the lock is free and only then proceed to do an atomic op. Reviewed by: jhb, vangyzen
* The (i < PROMPTLEN - 1) test added by r300442 in the code for the defaulttruckman2016-06-011-1/+1
| | | | | | | | | | | case of \c in the prompt format string is a no-op. We already passed this test at the top of the loop, and i has not yet been incremented in this path. Change this test to (i < PROMPTLEN - 2). Reported by: Coverity CID: 1008328 Reviewed by: cem MFC after: 1 week
* sed(1): Fix a mismatch and sync with the OpenBSD's commit.pfg2016-06-011-5/+6
| | | | | | | This was causing some strange behaviour. Reported by: olivier Obtained from: OpenBSD (CVS rev. 1.28)
* Revert r289096:gjb2016-06-013-3/+4
| | | | | | | | | | | | | Files listed in 'CONFS' are not properly included in new installations (missing from base.txz), for reasons I still do not fully understand. This reverts the change excluding /etc/ppp/ppp.conf from a new installation. /etc/dma/dma.conf is also affected, but requires a different solution, still being investigated. Reported by: Ben Woods Sponsored by: The FreeBSD Foundation
* libthr: Use formatted PANIC()cem2016-06-013-24/+10
| | | | | | | | | No functional change, although _thread_printf() may be slightly less functional or render some values differently from libc snprintf(3). No ABI change. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D6672
* libthr: _thread_vprintf: Enhance support for %p, %#xcem2016-06-011-1/+8
| | | | | | | | No functional change. No ABI change. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D6672
* libthr: Add vprintf variant of _thread_printf, formatted PANIC()cem2016-06-013-11/+34
| | | | | | | | No ABI change. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D6672
* [ath_hal] add azimuth timestamp payload marking for AR9380 and later chips.adrian2016-06-011-0/+1
|
* urtwn: unbreak CTS-to-self protection mode.avos2016-06-011-4/+2
| | | | | | | | | | Do not set HWRTSEN bit when CTS-to-self is used; CTS2SELF bit triggers CTS frame transmission by itself (and it does not work when HWRTSEN bit is set). Tested with: * RTL8188CUS, HOSTAP mode (11g) * RTL8188EU, STA mode (11g)
* Fix tzsetup not installing /etc/localtime for UTCsmh2016-06-011-2/+3
| | | | | | | | | | | | | | | | | | | If tzsetup UTC is run then it successfully configured the system for UTC including installing /etc/localtime however if the user ran just tzsetup for interactive configuration and select UTC no /etc/localtime was installed which resulted in failures for utilities which require said file. Change set_zone_utc to call install_zoneinfo("UTC") to ensure that /etc/localtime is created for interactive UTC selection. Users who have previously run tzsetup in interactive mode and select UTC can install the missing /etc/localtime by running tzsetup -r. Also correct static miss-match for set_zone_utc. MFC after: 2 weeks Relnotes: Yes Sponsored by: Multiplay
* Enable filemon on all architectures.bdrewery2016-06-011-2/+1
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* urtwn: fix non-ERP BSS detection in HOSTAP mode.avos2016-06-011-9/+12
| | | | | | | Receive all beacons in HOSTAP mode; they will give more information about present non-ERP / legacy BSSs (used to choose protection mode). Tested with RTL8188CUS (HOSTAP, urtwn) + RTL8821AU (HOSTAP, 11b mode).
* sfxge(4): cleanup: remove unused variables in common codearybchik2016-06-013-11/+0
| | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week
* Add support for loadable kernel modules.br2016-06-012-3/+368
| | | | Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
* sfxge(4): cleanup: add missing space after if keywordarybchik2016-06-011-2/+2
| | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 1 week
* Build riscv modules as PIC.br2016-06-011-1/+1
| | | | Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
* Add a riscv define.br2016-06-011-0/+2
| | | | Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
* sfxge(4): set moderation in efx_ev_qcreatearybchik2016-06-016-13/+44
| | | | | | | | | | | | This simplifies setting an initial interrupt moderation value, and avoids most calls to evx_ev_qmoderate from contexts where MCDI is not allowed (MCDI is need for an EVQ timer workaround in a later patch). Submitted by: Andy Moreton <amoreton at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6673
* Don't build some modules on RISC-V.br2016-06-011-2/+3
| | | | Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
* * Enable KDTRACE options as we support DTrace now.br2016-06-011-2/+7
| | | | * Add bpf device to kernel config.
* Reduce the priority of cxgbei(4) driver, so it doesn't get chosentrasz2016-06-011-1/+1
| | | | | | | | | | | | | | by default. This is a workaround for a too simplistic ICL module choosing mechanism. To use it, specify offload in ctl.conf or iscsi.conf. This fixes a problem where "kldload cxgbei" wedges the iSCSI stack, if you don't have a Chelsio card installed, or the endpoints of the iSCSI session are not reachable through addresses configured on that interface. Reviewed by: np@ MFC after: 1 month
* Describe default value for "offload".trasz2016-06-011-0/+2
| | | | MFC after: 1 month
* Don't use fixup for C99 and up, the compiler result is already correct.ache2016-06-014-0/+8
| | | | | | Suggested by: bde MFC after: 1 week
* The pr_destroy field does not allow us to run the teardown code in abz2016-06-0118-74/+38
| | | | | | | | | | | | | | | | | | | | | specific order. VNET_SYSUNINITs however are doing exactly that. Thus remove the VIMAGE conditional field from the domain(9) protosw structure and replace it with VNET_SYSUNINITs. This also allows us to change some order and to make the teardown functions file local static. Also convert divert(4) as it uses the same mechanism ip(4) and ip6(4) use internally. Slightly reshuffle the SI_SUB_* fields in kernel.h and add a new ones, e.g., for pfil consumers (firewalls), partially for this commit and for others to come. Reviewed by: gnn, tuexen (sctp), jhb (kernel.h) Obtained from: projects/vnet MFC after: 2 weeks X-MFC: do not remove pr_destroy Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6652
* hyperv: Rename some cleaned up/almost cleaned up filessephe2016-06-018-15/+14
| | | | | MFC after: 1 week Sponsored by: Microsoft OSTC
* Return real error value instead of hard-coded ENXIO (fix after r300149)zbb2016-06-011-1/+3
| | | | | | | | It is possible to return real error value in case of gic_v3_attach() failure instead of hard-coded ENXIO. Obtained from: Semihalf Sponsored by: Cavium
* Define the id_t type as required by POSIX.ed2016-06-011-5/+10
| | | | | | | It seems that all versions of POSIX that I could find require that <sys/resource.h> defines id_t. Define it together with rlim_t. While there, move these typedefs closer to the top of the header file, right after the includes, which we do in most other header files.
* hyperv/channel: Only cpu0 is supported as channel target cpu on WIN7sephe2016-06-011-3/+7
| | | | | MFC after: 1 week Sponsored by: Microsoft OSTC
* hyperv/vmbus: Redefine event flags.sephe2016-06-016-78/+55
| | | | | | | | | - Nuke unnecessary union. - Avoid convoluted macro indirection. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6671
* sfxge(4): cope with code duplication on SW events compositionarybchik2016-06-013-24/+24
| | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D6666
* Fix missing space in mandoc syntaxallanjude2016-06-011-1/+1
| | | | Reported by: rpokala
* bge: Force chipid to 5720 A0 for 5717 C0 in an early placesephe2016-06-011-3/+4
| | | | | | Discussed with: yongari MFC after: 1 week Sponsored by: Microsoft OSTC
* Don't rely on $ntpd_enable to periodically fetch the latestcy2016-06-011-2/+2
| | | | | | | leapfile. Suggested by: cperciva MFC after: 1 week
* Turn off nfsv4acls for arm/armv6 builds, which has an impactgjb2016-06-011-1/+0
| | | | | | | | | | on performance, especially with SD cards on certain SoCs. Requested by: trasz Discussed with: ian, kientzle MFC after: 3 days Sponsored by: The FreeBSD Foundation
* [ath_hal] implement shared PA handling checks, based on ath9k.adrian2016-06-011-8/+16
| | | | | | | | | | | | | | These are apparently conditional on there being a shared PA/LNA, which at least on AR9462/QCA9535 devices I have isn't a thing. I'm .. not yet sure which devices it /is/ a thing, so I'll come back to that. Tested: * QCA9565 STA + bluetooth Obtained from: Linux ath9k
* Update zfs(8) and zpool-features(7) man pages with new hashing algorithmsallanjude2016-06-012-4/+105
| | | | Sponsored by: ScaleEngine Inc.
* [ath_hal] add MCI bits from ath9k for QCA9565adrian2016-06-011-21/+106
| | | | | | | | | | | | | | | | | | | | | * Add extra debugging - the weights debugging is really useful to ensure things are programmed into the wlan coexistence table. The weights are what traffic priority each of the various modes get (tx, tx-high-priority, rx-beacon, etc) if they're all zero, things work very poorly. * Add in coex init routines from ath9k for AR9462 and QCA9565 1ANT and 2ANT. This control things like beacon stomping, ACK handling, antennas, PA/LNA shared, etc. * Some ancillary bits. TODO: * There's some conditional stuff around MCI_ANT_ARCH_PA_LNA_SHARED() in ath9k which doesn't always enable force-on LNA. That'll have to be examined and merged in as appropriate. Obtained from: linux ath9k
* [ath_hal] add support for QCA9565 for configuring the bluetooth antenna LNA ↵adrian2016-06-011-3/+34
| | | | | | | | | | | | | diversity. Notably, this also sets AR_BTCOEX_WL_LNADIV to FORCE_ON, so LNA diversity is always enabled and under control of the wifi chip. Tested: * QCA9565, STA + bluetooth mode Obtained from: Linux ath9k
* [ath_hal] Allow the BT antenna diversity option to be enabled for QCA9565.adrian2016-06-011-2/+4
| | | | Obtained from: Linux ath9k
* [ath_hal] add QCA9565 bluteooth antenna control.adrian2016-06-011-2/+30
| | | | | | | | | | | | This configures the LNA antenna diversity control, which should be on if wlan owns the LNA for bluetooth coexistence. Otherwise, make sure it's off. I think this is eventually intended to allow 1-antenna bluetooth + wifi setups for QCA9565, but I'm not sure where that's actually configured in ath9k. Obtained from: Linux ath9k
* [ath_hal] add extra debugging for MCI interrupts.adrian2016-06-011-0/+2
|
* mkimg: Indicate that input file pages are unlikely to be reused.markj2016-06-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | mkimg(1) uses a swap file to back input file chunks. When the output file is being written out, blocks of the swap file are mapped and their contents copied. This causes the backing VM pages to enter the active queue, and when the output file is large relative to system memory (as is generally the case), can result in a shortfall of inactive memory. This causes the pagedaemon to aggressively scan the active queue and swap out process memory in an attempt to meet the shortfall. Because mkimg's input files are typically the intermediate result of some build process, there's no need to push them all through the active queue. Use madvise(2) to indicate that the backing pages may be reclaimed in preference to active pages. In the case of the swap file, these pages will be freed as soon as mkimg exits anyway. When using mkimg on a desktop-class system with large amounts of dirty process memory, this change substantially improves mkimg runtime and reduces swap usage. Reviewed by: marcel MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6654
* [ath_hal] add extra MCI definitions used by the later chips (QCA9565/Aphrodite).adrian2016-06-011-0/+21
| | | | Obtained from: Linux ath9k
* WITH_META_MDE: Fix machine/include and x86/include issues.bdrewery2016-05-312-2/+2
| | | | | | | - Fixes 'ln: File exists' errors. - Fixes creating include directories in the source directory as well. Sponsored by: EMC / Isilon Storage Division
* Coverity fixes for r300906asomers2016-05-313-16/+3
| | | | | | | | | | | | | | | lib/libdevdctl/consumer.cc In Consumer::DisconnectFromDevd, don't close the socket if it's already closed. cddl/usr.sbin/zfsd/case_file.cc lib/libdevdctl/consumer.h Delete dead code leftover from before devd(8) gained SOCK_SEQPACKET support Reported by: Coverity CID: 1356155, 1356169 Sponsored by: Spectra Logic Corp
* Define SYSDIR earlier since the defined(FIRMWS) block depends on it.bdrewery2016-05-311-10/+10
| | | | | | It uses it in a dependency, which won't work if it is not yet defined. Sponsored by: EMC / Isilon Storage Division
* Add missed updates for r301079 and r301084.bdrewery2016-05-311-2/+2
|
* WITH_META_MODE: Resolve SYSDIR to avoid changed build commands.bdrewery2016-05-313-3/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* WITH_META_MODE: Require filemon(4) be loaded.bdrewery2016-05-311-0/+3
| | | | | | | | Since META_MODE is being sold and used as a working incremental build, it won't make much sense if filemon data is excluded. There is no way to recover from that in a subsequent build. Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud