aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Define ELF_ST_VISIBILITY().Konstantin Belousov2017-02-091-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=313493
* [net80211] don't bother doing fragmentation if the driver supports ↵Adrian Chadd2017-02-091-5/+13
| | | | | | | | | | | fragmentation offload. Tested: * ath10k, which does its own fragmentation in firmware. Notes: svn path=/head/; revision=313492
* [ath_hal] implement NULL methods for ah_setQuiet for AR5210, AR5211.Adrian Chadd2017-02-096-0/+20
| | | | | | | | | | Tested: * "crap, I didn't bring my cardbus collection and T400 with me" compile tested. Notes: svn path=/head/; revision=313491
* [ath] initial station side quiet IE support.Adrian Chadd2017-02-092-1/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements hardware assisted quiet IE support. Quiet time is an optional interval on DFS channels (but doesn't have to be DFS only channels! sigh) where the station and AP can be quiet in order to allow for channel utilisation measurements. Typically that's stuff like radar detection, spectral scan, other-BSS frame sniffing, checking how busy the air is, etc. The hardware implements it as one of the generic timers, which is supplied a period, offset from the trigger period and duration to stay quiet. The AP can announce quiet time configurations which change, and so this code also tracks that. Implementation details: * track the current quiet time IE * compare the new one against the previous one - if only the TBTT counter changes, don't update things * If tbttcount=1 then program it into the hardware - that is when it is easiest to program the correct starting offset (one TBTT + configured offset). * .. later on check to see if it can be done on any tbttcount * If the IE goes away then remove the quiet timer and clear the config * Upon reset, state change, new beacon - clear quiet time IE and just let it resync from the next beacon. History: This was work done initially by sibridgetech.com in 2011/2012/2013 as part of some FreeBSD wifi DFS contracting work they had for a third party. They implemented the net80211 quiet time IE pieces and had some test code for the station side which didn't entirely use the timers correctly. I figured out how to use the timers correctly without stopping/starting the transmit DMA engine each time. When done correctly, the timer just needs to be programmed once and left alone until the next configuration change. So, thanks to Himali Patel and Parthiv Shah for their work way back then. I finally figured it out and finished it! TODO: * Now, I'd rather net80211 did the quiet time IE tracking and parsing, pushing configurations into the driver is needed. I'll look at doing that in a subsequent update. * This doesn't handle multiple quiet time IEs, which will currently just mess things up. I'll look into supporting that in the future (at least by only obeying "one" of them, and then ignoring subsequent IEs in a beacon/probe frame.) * This also implements the STA side and not the AP side - the AP side will come later, and involves taking various other intervals into account (eg the beacon offset for multi-VAP modes, the SWBA time, etc, etc) as well as obtaining the configuration when a beacon is configured/generated rather than "hearing" an IE. * .. investigate supporting quiet IE in mesh, tdma, ibss modes * .. investigate supporting quiet IE for non-DFS channels (so this can be done for say, 2GHz channels.) * Chances are i should commit NULL methods for the ar5210, ar5211 HALs.. Tested: * AR9380, STA mode - announcing quiet, removing quiet, changing quite time config, whilst doing iperf testing; * AR9380, AP mode. Notes: svn path=/head/; revision=313490
* Fix setting birthtime in ZFSAlan Somers2017-02-092-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c * In zfs_freebsd_setattr, if the caller wants to set the birthtime, set the bits that zfs_settattr expects * In zfs_setattr, if XAT_CREATETIME is set, set xoa_createtime, expected by zfs_xvattr_set. The two levels of indirection seem excessive, but it minimizes diffs vs OpenZFS. * In zfs_setattr, check for overflow of va_birthtime (from delphij) * Remove red herring in zfs_getattr sys/cddl/contrib/opensolaris/uts/common/sys/vnode.h * Un-booby-trap some macros New tests are under review at https://github.com/pjd/pjdfstest/pull/6 Reviewed by: avg MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9353 Notes: svn path=/head/; revision=313483
* Cleanup on usr.sbin/arp/arp.cRenato Botelho2017-02-091-17/+15
| | | | | | | | | | | | | | | | | | | | * 'blackhole' and 'reject' are mutually exclusive, replace printf() by errx() when both are selected. * 'trail' option is no longer supported since first import of arp from 4.4BSD. XXX message was added 13 years ago in r128192. I believe it's time to remove it. * Use warnx() to print some informative messages instead of printf() * Replace strncmp() by strcmp() when validating parameters and exit when invalid parameter is found Reviewed by: allanjude, vangyzen, cem Approved by: allanjude MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D9504 Notes: svn path=/head/; revision=313477
* Add support for the Intel 82572EI back to em(4), it seems it was droppedAndrew Turner2017-02-091-0/+1
| | | | | | | | | | | when oving to iflib. Reviewed by: sbruno Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D9511 Notes: svn path=/head/; revision=313476
* ufs: Use UFS_MAXNAMLEN constantConrad Meyer2017-02-096-10/+11
| | | | | | | | | | | | | | (like NFS, EXT2FS, SVR4, IBCS2) instead of redefining the MAXNAMLEN constant. No functional change. Reviewed by: kib@, markj@ Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9500 Notes: svn path=/head/; revision=313475
* Add I2C device hints for Onion OmegaAllan Jude2017-02-091-0/+7
| | | | | | | | | | | | | | This allows you to control up to 8 relay expansions from FreeBSD https://github.com/freebsd/freebsd-wifi-build/wiki/Onion-Omega#controlling-the-relay-expansion Reviewed by: adrian, mizhka MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D9503 Notes: svn path=/head/; revision=313474
* rwlock: fix r313454Mateusz Guzik2017-02-091-1/+1
| | | | | | | | | | The runlock slow path would update wrong variable before restarting the loop, in effect corrupting the state. Reported by: pho Notes: svn path=/head/; revision=313472
* locks: tidy up unlock fallback pathsMateusz Guzik2017-02-093-23/+30
| | | | | | | | | | | Update comments to note these functions are reachable if lockstat is enabled. Check if the lock has any bits set before attempting unlock, which saves an unnecessary atomic operation. Notes: svn path=/head/; revision=313467
* Set GDMA1 Frames Destination Port to Port 0 (CPU)Stanislav Galabov2017-02-093-46/+52
| | | | | | | | | | | | | | Some U-Boot versions do not initialize MT7620's Frame Engine. Then it is not possible to receive packets from the network. Setting GDMA1 Frames Destination Port to Port 0 (CPU) in GDM Forwarding Configuration register solves this issue. Submitted by: Hiroki Mori (yamori813@yahoo.co.jp) Reviewed by: adrian mizhka (previous version) Differential Revision: https://reviews.freebsd.org/D9301 Notes: svn path=/head/; revision=313465
* [net80211] quiet IE handling improvementsAdrian Chadd2017-02-095-15/+115
| | | | | | | | | | | | | | | | | | | | | | * on the station side, only call the quiet time IE method if we have a quiet IE - otherwise call the NULL method once, and then don't waste time calling NULL * on the beacon generation side - force a beacon regeneration each time quiet time is enabled/disabled. Without this, enabling/disabling quiet time IE would cause the beacon contents to be corrupted since none of the "move contents around" logic (like for CSA and TIM handling) is implemented. This changes the size of ieee80211_node so it requires a kernel recompile, but no userland recompile. Tested: * AR9380, AP mode, enabling/disabling quiet time IE * AR9380, STA mode, with upcoming driver changes. Notes: svn path=/head/; revision=313462
* Don't decrypt a core if a vmcore file already exists by default.Konrad Witaszczyk2017-02-082-25/+49
| | | | | | | | | Allow to change this behaviour using the -f flag. Approved by: pjd (mentor) Notes: svn path=/head/; revision=313459
* lld: Allow arbitrary code alignment in .eh_frameEd Maste2017-02-081-3/+2
| | | | | | | | | | | | | According to the specification, CIE code alignment factor is an arbitrary unsigned LEB128 encoded value. PR: 216908 Reported by: Wolfgang Meyer Obtained from: Upstream LLD r277105 MFC after: 1 week Notes: svn path=/head/; revision=313458
* Fix style(9)Renato Botelho2017-02-081-46/+44
| | | | | | | | | | | Reviewed by: vangyzen, allanjude, cem Approved by: allanjude MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D9494 Notes: svn path=/head/; revision=313457
* sx: implement slock/sunlock fast pathMateusz Guzik2017-02-081-57/+101
| | | | | | | See r313454. Notes: svn path=/head/; revision=313455
* rwlock: implemenet rlock/runlock fast pathMateusz Guzik2017-02-081-76/+129
| | | | | | | | | | | | This improves singlethreaded throughput on my test machine from ~247 mln ops/s to ~328 mln. It is mostly about avoiding the setup cost of lockstat. Reviewed by: jhb (previous version) Notes: svn path=/head/; revision=313454
* Implement LOCKSTAT_OOL_PROFILE_ENABLEDMateusz Guzik2017-02-082-6/+9
| | | | | | | | For use in uninlined locking primitives to decide whether lockstat or profiling needs to be taken care of. Notes: svn path=/head/; revision=313453
* loader: possible NULL pointer dereference in bcache.cToomas Soome2017-02-081-6/+5
| | | | | | | | | | | | | | Coverity detected the possible NULL pointer dereference case. Also updated comment as was suggested in illumos review. CID: 1371008 Reported by: Coverity Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D9496 Notes: svn path=/head/; revision=313451
* Trim trailing whitespace (mostly introduced in r313407).John Baldwin2017-02-082-3/+3
| | | | | | | Sponsored by: DARPA / AFRL Notes: svn path=/head/; revision=313449
* bsdinstall: Make sure chroot filesystems are umounted after useRenato Botelho2017-02-081-3/+4
| | | | | | | | | | | | | | | | * DISTDIR_IS_UNIONFS is set every time BSDINSTALL_DISTDIR is mounted inside BSDINSTALL_CHROOT. Use this flag to decide if it needs to be umounted * BSDINSTALL_CHROOT/dev is mounted when 'bsdinstall mount' is called, there is no need to mount it again when user goes to shell after installation Reviewed by: allanjude Obtained from: pfSense MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D8573 Notes: svn path=/head/; revision=313448
* Ensure the idle thread's loop services interrupts in a timely way whenJonathan T. Looney2017-02-082-0/+11
| | | | | | | | | | | | | | | | | | | | using the ACPI C1/mwait sleep method. Previously, the mwait instruction would return when an interrupt was pending; however, the idle loop did not actually enable interrupts when this occurred. This led to a situation where the idle loop could quickly spin through the C1/mwait sleep method a number of times when an interrupt was pending. (Eventually, the situation corrected itself when something other than an interrupt triggered the idle loop to either enable interrupts or schedule another thread.) Reviewed by: kib, imp (earlier version) Input from: jhb MFC after: 1 week Sponsored by: Netflix Notes: svn path=/head/; revision=313447
* loader: possible NULL pointer dereference in efipart.cToomas Soome2017-02-081-1/+3
| | | | | | | | | | | | | | | | | Fix bugs found by Coverity in efipart.c. The Issue is that efi_devpath_last_node() can return NULL pointer, and therefore we should check for it. In real life we really do not expect to see it to happen, so we will just error out from the test. CID: 1371004 Reported by: Coverity Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D9490 Notes: svn path=/head/; revision=313442
* Merge content from ^/projects/netbsd-tests-upstream-01-2017 into ^/headEnji Cooper2017-02-08212-2177/+11264
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary end-goal of this drop is ease future merges with NetBSD and collaborate further with the NetBSD project. The goal was (largely, not completely as some items are still oustanding in the NetBSD GNATS system) achieved by doing the following: - Pushing as many changes required to port contrib/netbsd-tests back to NetBSD as possible, then pull the upstream applied changes back in to FreeBSD. - Diff reduce with upstream where possible by: -- Improving libnetbsd header, etc compat glue. -- Using _SED variables to modify test scripts on the fly for items that could not be upstreamed to NetBSD. As a bonus for this work, this change also introduces testcases for uniq(1). Many thanks to Christos for working with me to get many of the changes back into the NetBSD project. In collaboration with: Christos Zoulas <christos@netbsd.org> MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313439
| * MFhead@r313433Enji Cooper2017-02-0823-87/+123463
| |\ | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313434
| * \ MFhead@r313404Enji Cooper2017-02-074-6/+6
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313406
| * | | Remove placeholder compat header for stdio.hEnji Cooper2017-02-071-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the end, dealing with fparseln was more bikeshed worthy than I anticipated, and polling stdio.h with libutil.h caused me more grief than necessary. Keeping the compat header around for no reason other than include_next'ing the stdio.h header in FreeBSD makes no sense. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313405
| * | | Oops... put the atf_tc_expect_fail in the testcase definition, not theEnji Cooper2017-02-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | test suite definition Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313402
| * | | Expect the t_precision long double checks to fail on FreeBSD/i386Enji Cooper2017-02-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some potential issues with the test (as brd@ has pointed out elsewhere) with precision, etc not being set before the test, but as always, more research is required. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313400
| * | | MFhead@r313398Enji Cooper2017-02-0724-211/+308
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313399
| * | | | Add #else case in run(..) to fix test on non-{amd64,arm64,mips} afterEnji Cooper2017-02-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recent refactoring to the test Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313382
| * | | | MFhead@r313380Enji Cooper2017-02-075-25/+32
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313381
| * | | | | Expect :hsearch_r_nonexistent to fail on FreeBSDEnji Cooper2017-02-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The docs and the behavior mismatch; as noted in the bug, the behavior for hsearch_r matches Linux, whereas the docs seem to match NetBSD requirements wise. PR: 216872 Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313375
| * | | | | Uncomment more of the hsearch_r testcasesEnji Cooper2017-02-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call hdestroy/hdestroy_r on FreeBSD instead of hdestroy(1?)(_r). All but hdestroy_r_nonexistent pass as-is. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313372
| * | | | | MFhead@r313360Enji Cooper2017-02-07188-13611/+16966
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313361
| * \ \ \ \ \ MFhead@r313266Enji Cooper2017-02-0523-490/+600
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313267
| * \ \ \ \ \ \ Merge in changes from ^/vendor/NetBSD/tests/dist@r313245Enji Cooper2017-02-047-1057/+2399
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Diff reduce lib/libm/t_pow.c per upstream changes Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313247
| | * | | | | | | Pull in some minor updates to netbsd-tests from upstreamvendor/NetBSD/tests/02.04.2017_10.12Enji Cooper2017-02-047-1053/+2399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/vendor/NetBSD/tests/dist/; revision=313245 svn path=/vendor/NetBSD/tests/02.04.2017_10.12/; revision=313246; tag=vendor/NetBSD/tests/02.04.2017_10.12
| * | | | | | | | MFhead@r313243Enji Cooper2017-02-042435-75270/+54611
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313244
| * | | | | | | | | Add back #else block accidentally removed in r312145Enji Cooper2017-01-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the build with !(amd64|arm64|mips*) Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312376
| * | | | | | | | | Merge ^/vendor/NetBSD/tests/dist@r312370Enji Cooper2017-01-182-6/+224
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312372
| | * | | | | | | | More test updates from upstreamvendor/NetBSD/tests/01.17.2017_21.34Enji Cooper2017-01-182-6/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nothing much to note -- this looks like a good place to stop Notes: svn path=/vendor/NetBSD/tests/dist/; revision=312370 svn path=/vendor/NetBSD/tests/01.17.2017_21.34/; revision=312371; tag=vendor/NetBSD/tests/01.17.2017_21.34
| * | | | | | | | | Reintroduce libutil.h #include for FreeBSD only for fparselnEnji Cooper2017-01-162-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312313
| * | | | | | | | | Remove util.h (libutil.h) pollution from stdio.h compat headerEnji Cooper2017-01-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introducing libutil.h causes grief later because hexdump(3) in FreeBSD and contrib/netbsd-tests/lib/libc/db/h_hash.c conflict. I'm working adapting h_hash.c, but for now, unbreak the build in the easiest way possible. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312312
| * | | | | | | | | Clarify #includes for hexdump vs sbuf_hexdumpEnji Cooper2017-01-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312310
| * | | | | | | | | MFhead@r312305Enji Cooper2017-01-16111-582/+1620
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312306
| * | | | | | | | | | Remove explicit pthread_np.h #include, per change in libnetbsd@r312303Enji Cooper2017-01-161-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312304
* | | | | | | | | | | Clean up trailing and leading whitespace for variables to make itEnji Cooper2017-02-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | consistent with the rest of the file and style.Makefile(9) a bit more MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313438
* | | | | | | | | | | Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describesEnji Cooper2017-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sbuf_hexdump(9)'s behavior MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313437