summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* include: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2078-24/+181
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326024
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-20876-35/+1790
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-20244-19/+439
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326022
* evdev: change USB scancode 0x54 from KEY_SLASH to KEY_KPSLASHVladimir Kondratyev2017-11-201-1/+1
| | | | | | | | | | | Submitted by: dumbbell Reviewed by: gonzo, wulf Approved by: gonzo (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12983 Notes: svn path=/head/; revision=326021
* Fix evdev codes for slash and asterisk numpad keys of AT-keyboardsVladimir Kondratyev2017-11-201-2/+2
| | | | | | | | | Reviewed by: gonzo Approved by: gonzo (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=326020
* evdev: Export EVDEV_SUPPORT kernel option through feature facilityVladimir Kondratyev2017-11-201-0/+3
| | | | | | | | | | Suggested by: netchild Reviewed by: gonzo Approved by: gonzo (mentor) MFC after: 1 week Notes: svn path=/head/; revision=326019
* Use chroot(8) when invoking realpath(1) when setting BOOTFILES,Glen Barber2017-11-202-2/+2
| | | | | | | | | otherwise realpath(1) exits due to a nonexistent directory. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326013
* MFV r326007: less v529.Xin LI2017-11-2045-1104/+1733
|\ | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=326010
| * Vendor import of less v529.vendor/less/v529Xin LI2017-11-2053-1250/+1943
| | | | | | | | | | Notes: svn path=/vendor/less/dist/; revision=326007 svn path=/vendor/less/v529/; revision=326008; tag=vendor/less/v529
* | Eliminate 1 XX_VirtToPhys() and 2 XX_PhysToVirt() calls from if_dtsec(4)Justin Hibbits2017-11-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | XX_VirtToPhys(), by way of pmap_kextract(), is an expensive operation. Profiling via dtrace during a series of iperf tests I found 16111 / 30432 stack frames were located in mmu_booke_kextract(), so eliminating this expensive call should improve performance slightly. XX_PhysToVirt() is not as expensive, but redundant calls in this context is wasteful. Notes: svn path=/head/; revision=326004
* | Reduce code duplication for wlan(4) interface creation in network.subr.Andriy Voskoboinyk2017-11-191-15/+7
| | | | | | | | | | | | | | | | Since wlandebug(8) can accept any (original or changed) interface name this part may be simplified a bit. Notes: svn path=/head/; revision=326001
* | wlandebug(8): allow fallback to old behavior + improve name checks.Andriy Voskoboinyk2017-11-191-4/+8
| | | | | | | | | | | | | | | | - Treat passed interface name as original if ifconfig_get_orig_name() fails. - Reject interface name if it does not start from "wlan". Notes: svn path=/head/; revision=326000
* | Remove empty directories.Yoshihiro Takahashi2017-11-190-0/+0
| | | | | | | | Notes: svn path=/head/; revision=325997
* | Fix build.Konstantin Belousov2017-11-191-1/+1
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325995
* | Remove unused header.Xin LI2017-11-191-1/+0
| | | | | | | | Notes: svn path=/head/; revision=325994
* | Remove unused header.Xin LI2017-11-191-1/+0
| | | | | | | | Notes: svn path=/head/; revision=325993
* | aw_nmi: add support for a31/a83t's r_intcKyle Evans2017-11-191-25/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently support the a83t's r_intc in a somewhat hack-ish way; our .dts describes it as nmi_intc, and uses a subset of the actual register space to make it line up with a20/a31 nmi offsets. This breaks with the recent 4.14 update describing r_intc using the full register space, so update aw_nmi to use the correct register offsets with the right compat data in a way that doesn't break our current dts with nmi_intc or upstream with r_intc described. Reviewed by: manu Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D13122 Notes: svn path=/head/; revision=325991
* | Add missing call to services_mkdb to build the services.dbBrad Davis2017-11-191-0/+1
| | | | | | | | | | | | | | Approved by: gjb Notes: svn path=/head/; revision=325990
* | ANSIfy sys/libkernEd Maste2017-11-1919-56/+21
| | | | | | | | | | | | | | | | | | PR: 223641 Submitted by: ota@j.email.ne.jp MFC after: 1 week Notes: svn path=/head/; revision=325988
* | dts: arm64: allwinner: Remove unused dts for pine64Emmanuel Vadot2017-11-187-1185/+0
| | | | | | | | | | | | | | | | Latest u-boot port provide the dts for pine64, remove our custom and outdated dts for this board. Notes: svn path=/head/; revision=325987
* | Remove unneeded special case for .OBJDIR=.CURDIR.Bryan Drewery2017-11-181-7/+0
| | | | | | | | | | | | | | | | | | The else statement is already handling this by ensuring a safe .OBJDIR is used. Sponsored by: Dell Notes: svn path=/head/; revision=325986
* | if_awg: drain tx buffers and clear rx buffers when stoppingEmmanuel Vadot2017-11-181-0/+36
| | | | | | | | | | | | | | | | | | | | | | Stale packets should not be transmitted when the interface comes up after being down. Count the successfully transmitted ones for statistics and drop the rest. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D12539 Notes: svn path=/head/; revision=325985
* | if_awg: avoid hole in the rx ring buffer when mbuf allocation failsEmmanuel Vadot2017-11-181-72/+89
| | | | | | | | | | | | | | | | | | | | | | | | Use a spare dma map when attempting to map a new mbuf on the rx path. If the mbuf allocation fails or the dma map loading for the new mbuf fails just reuse the old mbuf and increase the drop counter. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D12538 Notes: svn path=/head/; revision=325984
* | if_awg: rename tx functions to match other drivers and free mbuf on ↵Emmanuel Vadot2017-11-181-20/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | m_collapse failure - use awg_encap and awg_txeof names to match iflib and other network drivers. - handle m_collapse failure similarly by freeing the mbuf rather than reenqueuing it where it will continue to fail. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13035 Notes: svn path=/head/; revision=325983
* | if_awg: don't process transmitted packets on TX_BUF_UA_INT, only on TX_INTEmmanuel Vadot2017-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | TX_BUF_UA_INT is set when there are no buffers to transmit and can happen before hw.awg.tx_interval segments have been transmitted. To reduce load, tx cleanup should be done in hw.awg.tx_interval intervals. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13034 Notes: svn path=/head/; revision=325982
* | if_awg: replace multiple calls to if_setdrvflagbits with one call in awg_txintrEmmanuel Vadot2017-11-181-3/+8
| | | | | | | | | | | | | | | | | | | | Small optimization Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13033 Notes: svn path=/head/; revision=325981
* | if_awg: only increment IFCOUNTER_OPACKETS when the last segment of a frame ↵Emmanuel Vadot2017-11-181-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | has been successfully transmitted A packet may be built from multiple segments, don't increase the count for each segment Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13032 Notes: svn path=/head/; revision=325980
* | if_awg: store mbuf and dma mapping in the last segment of a tx frame instead ↵Emmanuel Vadot2017-11-181-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the first According to the datasheet, TX_DESC_CTL is cleared when whole frame is transmitted or all data in the current descriptor's buffer are transmitted. When the mbuf and mapping are stored in the first segment and in a scenario where a tx completion interrupt arrives for a frame and only the start of the next frame was transmitted, at the time of interrupt processing the mbuf and mapping will be freed when processing the first segment of the next frame but the other untrasmitted segments still need to use them. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13031 Notes: svn path=/head/; revision=325979
* | if_awg: mark the first tx descriptor as ready only after all the other tx ↵Emmanuel Vadot2017-11-181-41/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptors are set up In a multi segment frame, if the first tx descriptor is marked with TX_DESC_CTL but not all tx descriptors for the other segments in the frame are set up, the TX DMA may transmit an incomplete frame. To prevent this, set TX_DESC_CTL for the first tx descriptor only when done with all the other segments. Also, don't bother cleaning transmitted tx descriptors since TX_DESC_CTL is cleared for them by the hardware and they will be reprogrammed before TX_DESC_CTL is reenabled for them. Submitted by: Guy Yur <guyyur@gmail.com> Differential Revision: https://reviews.freebsd.org/D13030 Notes: svn path=/head/; revision=325978
* | if_awg: only request completion interrupt on the last descriptor of a tx frameEmmanuel Vadot2017-11-181-3/+12
| | | | | | | | | | | | | | | | | | | | | | The hardware will not issue a completion interrupt for a descriptor with TX_INT_CTL set if it doesn't also have TX_LAST_DESC set. Submitted by: Guy Yur <guyyur_gmail.com> Differential Revision: https://reviews.freebsd.org/D13029 Notes: svn path=/head/; revision=325977
* | Remove duplicate static function prototype to fix compilation ofHans Petter Selasky2017-11-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | mlx5_fs_tree.c after r325638 when using GCC. Found by: kib @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=325976
* | Evaluate options after including src-env.conf and before Makefile.sys.inc.Bryan Drewery2017-11-181-0/+2
| | | | | | | | | | | | | | | | | | | | Fixes top-level breakage in r325974. Pointyhat to: bdrewery Sponsored by: Dell Notes: svn path=/head/; revision=325975
* | Fix top-level targets with read-only OBJDIR.Bryan Drewery2017-11-182-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This also makes it so that top-level build targets do not immediately create the OBJDIR. Only sub-make targets will do so. This avoids creating object directories for targets like 'make check-old' or creating unneeded MACHINE.MACHINE_ARCH directories during 'make tinderbox'. Reported by: npn, lifanov Tested by: npn, Mark Millard Sponsored by: Dell Notes: svn path=/head/; revision=325974
* | Move top-level AUTO_OBJ logic to Makefile.sys.inc.Bryan Drewery2017-11-182-28/+40
| | | | | | | | | | | | | | Sponsored by: Dell Notes: svn path=/head/; revision=325973
* | Include Makefile.sys.inc if possible for top-level only.Bryan Drewery2017-11-181-0/+3
| | | | | | | | | | | | | | | | | | | | This will allow disabling some things like AUTO_OBJ early if not needed for the directory/targets, without putting special logic into share/mk/*.sys.mk. Sponsored by: Dell Notes: svn path=/head/; revision=325972
* | Fix PORTS_MODULES+'make reinstallkernel' trying to run bogus 'make redeinstall'.Bryan Drewery2017-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | Also fix 'make installkernel' running 'make deinstall' twice. PR: 201779 MFC after: 2 weeks Sponsored by: Dell Notes: svn path=/head/; revision=325971
* | Fix 'make -n' for {reinstall,distribute}kernel.Bryan Drewery2017-11-181-4/+4
| | | | | | | | | | | | | | | | PR: 201779 Sponsored by: Dell Notes: svn path=/head/; revision=325970
* | dts: Allwinner: Remove our last custom DTSEmmanuel Vadot2017-11-1811-1609/+3
| | | | | | | | | | | | | | | | All Allwinner boards should use the upstream DTS so remove our remaining custom ones. Notes: svn path=/head/; revision=325969
* | Update our copy of DTS from the ones from Linux 4.14Emmanuel Vadot2017-11-18582-2046/+14886
|\ \ | | | | | | | | | Notes: svn path=/head/; revision=325968
| * | Update our copies of the Device Tree Source to Linux 4.14vendor/device-tree/4.14Emmanuel Vadot2017-11-131378-5078/+31128
| | | | | | | | | | | | | | | Notes: svn path=/vendor/device-tree/dist/; revision=325773 svn path=/vendor/device-tree/4.14/; revision=325774; tag=vendor/device-tree/4.14
* | | Remove unused Casper configurations files.Mariusz Zaborski2017-11-188-20/+7
| | | | | | | | | | | | | | | | | | | | | This is a reaming of Casper daemon. Notes: svn path=/head/; revision=325967
* | | spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-18363-114/+842
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* | | Increase rtld initial memory pool size from 32kB to 128kB.Edward Tomasz Napierala2017-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old value was probably fine back in 1998, when that code was imported (although the comments still mention VAX, which was quite obsolete by then); now, however, it's too small to handle our libc, which results in some additional calls to munmap/mmap later on. Asking for more virtual address space is virtually free, and syscalls are not, thus the change. It was suggested by kib@ that this might be a symptom of a deeper problem. It doesn't only affect libc, though - the change also improves rtld memory management for eg KDE libraries. I guess it's just a natural bloat. MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D12834 Notes: svn path=/head/; revision=325965
* | | Remove leftover in lagg(4) manpage forgotten in r271733Bjoern Heidotting2017-11-181-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D13061 Notes: svn path=/head/; revision=325964
* | | locks: fix compilation issues without SMP or KDTRACE_HOOKSMateusz Guzik2017-11-172-4/+5
| | | | | | | | | | | | Notes: svn path=/head/; revision=325963
* | | Add comment for accidentally committed unrelated change in r325960.Andrey V. Elsukov2017-11-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not invoke IPv4 NAT handler for non IPv4 packets. Libalias expects a packet is IPv4. And in case when it is IPv6, it just translates them as IPv4. This leads to corruption and in some cases to panics. In particular a panic can happen when value of ip6_plen modified to something that leads to IP fragmentation, but actual packet length does not match the IP length. Packets that are not IPv4 will be dropped by NAT rule. Reported by: Viktor Dukhovni <freebsd at dukhovni dot org> MFC after: 1 week Notes: svn path=/head/; revision=325962
* | | cxgbe(4): Add core Vdd to the sysctl MIB.Navdeep Parhar2017-11-172-1/+9
| | | | | | | | | | | | | | | | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=325961
* | | Unconditionally enable support for O_IPSEC opcode.Andrey V. Elsukov2017-11-172-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPsec support can be loaded as kernel module, thus do not depend from kernel option IPSEC and always build O_IPSEC opcode implementation as enabled. Obtained from: Yandex LLC MFC after: 1 week Sponsored by: Yandex LLC Notes: svn path=/head/; revision=325960
* | | Add assertion in probedone() that we're holding the device lock.Alan Somers2017-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: ken Reviewed by: asomers MFC after: 3 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=325959
* | | lockmgr: remove the ADAPTIVE_LOCKMGRS optionMateusz Guzik2017-11-173-194/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code was never enabled and is very heavy weight. A revamped adaptive spinning may show up at a later time. Discussed with: kib Notes: svn path=/head/; revision=325958