aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update Makefile.depend filesSimon J. Gerraty2019-12-11213-295/+543
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* Add Makefile.depend.optionsSimon J. Gerraty2019-12-1162-0/+458
| | | | | | | | | | | | | | | | | | | | Leaf directories that have dependencies impacted by options need a Makefile.depend.options file to avoid churn in Makefile.depend DIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etc can be set in local.dirdeps-options.mk which can add to those set in Makefile.depend.options See share/mk/dirdeps-options.mk Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22469 Notes: svn path=/head/; revision=355616
* arm linuxulator: add syscalls.conf and Makefile for "make sysent"Ed Maste2019-12-112-0/+36
| | | | | | | Differential Revision: https://reviews.freebsd.org/D7973 Notes: svn path=/head/; revision=355615
* kbdmap: allow INDEX.keymaps to provide the dialog titleEd Maste2019-12-111-5/+12
| | | | | | | | | | | Previously kbdmap had a localized menu heading ("Choose your keyboard layout") but not the dialog title ("Keyboard Menu"). MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355614
* security.7: add caveat about interim sysctl paths from r355436Ed Maste2019-12-111-1/+12
| | | | | | | | | | | | | | | r355436 moved mitigation sysctls to machdep.mitigations but did not rationalize the sense of the invidual knobs. Clarify that the old names remain the canonical way to set these mitigations. Backwards compatibility will be maintained for the original names (e.g. hw.ibrs_disable), but not from the interim names (e.g. machdep.mitigations.ibrs.disable). Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355613
* Extract code common to _vm_map_clip_start and _vm_map_clip_end into aDoug Moore2019-12-111-41/+38
| | | | | | | | | | function, vm_map_entry_clone, that can be invoked by each. Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D22760 Notes: svn path=/head/; revision=355612
* add a sanity check to the system call registration codeAndriy Gapon2019-12-111-3/+6
| | | | | | | | | | | | A system call number should be at least reserved. We do not expect an attempt to register a fixed number system call when nothing at all is known about it. MFC after: 3 weeks Sponsored by: Panzura Notes: svn path=/head/; revision=355611
* Make NOCLEAN an error instead of a warningEd Maste2019-12-111-2/+1
| | | | | | | | | | | The warning was added in r289728 (over four years ago) and at that time NO_CLEAN was already the correct spelling for over a decade. Make NOCLEAN an error as the next step to removing these backward compatibility shims. Notes: svn path=/head/; revision=355609
* uma: pretty print zone flags sysctlRyan Libby2019-12-112-2/+48
| | | | | | | | | | Requested by: jeff Reviewed by: jeff, markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22748 Notes: svn path=/head/; revision=355605
* Add a few missed source files to libllvm, for the MK_LLVM_TARGET_BPF=yesDimitry Andric2019-12-101-0/+2
| | | | | | | | | | | | case. Otherwise, linking of clang and other llvm based executables would complain about missing symbols. Reported by: rstone MFC after: 1 month X-MFC-With: r353358 Notes: svn path=/head/; revision=355602
* Use callout_func_t instead of the deprecated timeout_t.John Baldwin2019-12-1017-23/+23
| | | | | | | | Reviewed by: kib, imp Differential Revision: https://reviews.freebsd.org/D22752 Notes: svn path=/head/; revision=355601
* Add a callout_func_t typedef for functions used with callout_*().John Baldwin2019-12-103-18/+25
| | | | | | | | | | | | | | | | | This typedef is the same as timeout_t except that it is in the callout namespace and header. Use this typedef in various places of the callout implementation that were either using the raw type or timeout_t. While here, add <sys/callout.h> to the manpage. Reviewed by: kib, imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D22751 Notes: svn path=/head/; revision=355600
* Correct the offset of static TLS variables for Initial-Exec on RISC-V.John Baldwin2019-12-101-1/+1
| | | | | | | | | | | | | | | TP points to the start of the TLS block after the tcb, but Obj_Entry.tlsoffset includes the tcb, so subtract the size of the tcb to compute the offset relative to TP. This is identical to the same fixes for powerpc in r339072 and r342671. Reviewed by: James Clarke Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D22661 Notes: svn path=/head/; revision=355599
* Do not attach children of owc_gpiobus until interrupts are working.Ian Lepore2019-12-101-1/+1
| | | | | | | | | | | | The children of the bus need to do IO on the bus to probe for hardware presence. Doing IO means timing the bus states using sbinuptime(), and that requires working timecounters, which are not initialized until after device attachment has completed. PR: 242526 Notes: svn path=/head/; revision=355598
* cxgbe(4): Man page updates to go with r355107.Navdeep Parhar2019-12-101-4/+8
| | | | | | | | MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=355597
* [ig4] Remove unused methods from bus interfaceVladimir Kondratyev2019-12-102-4/+0
| | | | | | | | | | | bus_get/set_resource methods are implemented in child device (iicbus). As their implementation with bus_generic_rl_get/set calls do not recurse up the tree, the versions in ig4 are never called. Suggested by: jhb Notes: svn path=/head/; revision=355596
* cxgbe(4): Simplify the firmware version checks a bit.Navdeep Parhar2019-12-101-9/+4
| | | | | | | | | No functional change. MFC after: 1 week Notes: svn path=/head/; revision=355595
* remove again nonexistent from-* entries from vt INDEX.keymapsEd Maste2019-12-101-96/+0
| | | | | | | | | | | | | | A number of entries of the form "de.kbd.from-cp850" existed in vt's INDEX.keymaps, added in r270114, but these files do not exist. I removed them in r355585 but accidentally re-added them in r355592. Remove them yet again. PR: 235564, 235853 MFC after: 1 week Notes: svn path=/head/; revision=355594
* fsck_ffs: fix some memory leaks found by Coverity.Eric van Gyzen2019-12-101-3/+12
| | | | | | | | | | Reported by: Coverity CID: 1380549 1380550 1380551 MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=355593
* Add Danish translation for vt font and keymap INDEX filesEd Maste2019-12-102-37/+222
| | | | | | | | | | | | Also sort some entries into the correct location, correct MacBook capitalization, etc. PR: 235853 MFC after: 1 week Submitted by: scootergrisen gmail com Notes: svn path=/head/; revision=355592
* Replace two remaining hex values for control codes with their names.Stefan E├čer2019-12-102-2/+2
| | | | | | | | | | These were the only values in the range from 0 to 0x1f that were defined as hex values, all other occurances have been converted before. MFC after: 1 week Notes: svn path=/head/; revision=355591
* sed: process \r, \n, and \tKyle Evans2019-12-103-8/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is both reasonable and a common GNUism that a lot of ported software expects. Universally process \r, \n, and \t into carriage return, newline, and tab respectively. Newline still doesn't function in contexts where it can't (e.g. BRE), but we process it anyways rather than passing UB \n (escaped ordinary) through to the underlying regex engine. Adding a --posix flag to disable these was considered, but sed.1 already declares this version of sed a super-set of POSIX specification and this behavior is the most likely expected when one attempts to use one of these escape sequences in pattern space. This differs from pre-r197362 behavior in that we now honor the three arguably most common escape sequences used with sed(1) and we do so outside of character classes, too. Other escape sequences, like \s and \S, will come later when GNU extensions are added to libregex; sed will likely link against libregex by default, since the GNU extensions tend to be fairly un-intrusive. PR: 229925 Reviewed by: bapt, emaste, pfg Differential Revision: https://reviews.freebsd.org/D22750 Notes: svn path=/head/; revision=355590
* Fix the TAA state machine to do the right thing when the TAAScott Long2019-12-101-2/+1
| | | | | | | | | | | | | | migitation is available in microcode and the operator has set the sysctl to automatic mode. Reported by: Coverity CID: 1408334 MFC after: 3 days Sponsored by: Intel Notes: svn path=/head/; revision=355589
* Fix WITHOUT_CLANG build.Bryan Drewery2019-12-101-5/+4
| | | | | | | | | | | | | | This decouples MK_LLVM_TARGET_ALL from MK_CLANG. It is fine if LLVM_TARGET_* are set even if MK_CLANG is disabled. It never made sense to depend MK_LLVM_TARGET_* to MK_CLANG (which I did in r335706). PR: 240507 Reported by: kevans, swills MFC after: 2 weeks Notes: svn path=/head/; revision=355588
* Add a helper function to the swapout daemon's deactivation code.Mark Johnston2019-12-101-57/+64
| | | | | | | | | | | | | | vm_swapout_object_deactivate_pages() is renamed to vm_swapout_object_deactivate(), and the loop body is moved into the new vm_swapout_object_deactivate_page(). This makes the code a bit easier to follow and is in preparation for some functional changes. Reviewed by: jeff, kib Sponsored by: Netflix, Intel Differential Revision: https://reviews.freebsd.org/D22651 Notes: svn path=/head/; revision=355587
* Introduce vm_page_astate.Mark Johnston2019-12-1024-121/+131
| | | | | | | | | | | | | | | | | This is a 32-bit structure embedded in each vm_page, consisting mostly of page queue state. The use of a structure makes it easy to store a snapshot of a page's queue state in a stack variable and use cmpset loops to update that state without requiring the page lock. This change merely adds the structure and updates references to atomic state fields. No functional change intended. Reviewed by: alc, jeff, kib Sponsored by: Netflix, Intel Differential Revision: https://reviews.freebsd.org/D22650 Notes: svn path=/head/; revision=355586
* remove nonexistent from-* entries from vt INDEX.keymapsEd Maste2019-12-101-83/+0
| | | | | | | | | | | | A number of entries of the form "de.kbd.from-cp850" existed in vt's INDEX.keymaps, added in r270114, but these files do not exist. PR: 235564 Submitted by: scootergrisen gmail com MFC after: 1 week Notes: svn path=/head/; revision=355585
* UFS: implement VOP_INACTIVE()Konstantin Belousov2019-12-103-0/+36
| | | | | | | | | | | | | The checks literally repeat conditions that make ufs_inactive() to take some actions. Reviewed by: jeff Tested by: pho Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D22616 Notes: svn path=/head/; revision=355584
* strip trailing whitespace from font and keymap INDEX filesEd Maste2019-12-103-17/+17
| | | | | | | | | PR: 235853 Submitted by: scootergrisen gmail com MFC after: 1 week Notes: svn path=/head/; revision=355583
* Use ${.ALLSRC:Ninstalldirs-*} instead of assuming order of .ALLSRCAlex Richardson2019-12-101-1/+1
| | | | | | | | | This is a follow-up to https://reviews.freebsd.org/D22382 Suggested By: sjg Notes: svn path=/head/; revision=355582
* Avoid access to stale ip pointer and call UPDATE_POINTERS() afterAndrey V. Elsukov2019-12-101-1/+2
| | | | | | | | | | | | | PULLUP_LEN_LOCKED(). PULLUP_LEN_LOCKED() could update mbuf and thus we need to update related pointers that can be used in next opcodes. Reported by: Maxime Villard <max at m00nbsd net> MFC after: 1 week Notes: svn path=/head/; revision=355581
* cxgbe(4): Use TX_PKTS2 work requests in netmap Tx if it's available.Navdeep Parhar2019-12-103-4/+16
| | | | | | | | | | | TX_PKTS2 is more efficient within the firmware and this improves netmap Tx by a few Mpps in some common scenarios. MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=355580
* cxgbe(4): Update T4/5/6 firmwares to 1.24.11.0.Navdeep Parhar2019-12-1012-33858/+42
| | | | | | | | | | | | | These were obtained from the Chelsio Unified Wire v3.12.0.1 beta release. Note that the firmwares are not uuencoded any more. MFH: 1 month Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=355579
* Add missing language specifier for Hebrew il.kbd descriptionEd Maste2019-12-101-1/+1
| | | | | | | | | PR: 235094 (related) MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355575
* Add ACPI battery subsystem man page.Takanori Watanabe2019-12-102-0/+284
| | | | | | | | PR:242100 Differential Revision: https://reviews.freebsd.org/D22556 Notes: svn path=/head/; revision=355574
* vfs: refactor vhold and vdropMateusz Guzik2019-12-102-91/+118
| | | | | | | No fuctional changes. Notes: svn path=/head/; revision=355573
* Allow baud rates of 1,228,800 and 1,843,200 on CP2101/2/3 usb-serial adapters.Ian Lepore2019-12-092-2/+11
| | | | | | | | | | The datasheets for these chips claim the maximum is 921,600, but testing shows these two higher rates also work (but no rates above 921,600 other than these two work; these represent dividing the base buad clock by 3 and 2 respectively). Notes: svn path=/head/; revision=355572
* Configure headphone redirection for the Dell L780 and X1 Carbon 7th gen.Mark Johnston2019-12-092-2/+6
| | | | | | | | | | | | As we do for many other laptops, put the headphone jack and speakers in the same association by default so that the generic sound device automatically switches between them. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355570
* Use 4 byte stack alignment instead of 8 byte.John Baldwin2019-12-091-4/+4
| | | | | | | | This was an old bug prior to r355373 and mostly harmless as it would waste at most a handful of bytes on the stack. Notes: svn path=/head/; revision=355569
* Correctly check for C++17 and higher when declaring timespec_get()Dimitry Andric2019-12-092-2/+2
| | | | | | | | | | | | | | | | | | Summary: In rS338751, the check to declare `timespec_get()` for C++17 and higher was incorrectly done against a `cplusplus` define, while it should have been `__cplusplus`. Fix this by using `__cplusplus`, and also bump `__FreeBSD_version` so it becomes possible to correctly check for `timespec_get()` in upstream libc++ headers. Reviewed by: brooks, emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D22735 Notes: svn path=/head/; revision=355568
* Copy out aux args after the argument and environment vectors.John Baldwin2019-12-099-52/+106
| | | | | | | | | | | | | | | | | | | | | | Partially revert r354741 and r354754 and go back to allocating a fixed-size chunk of stack space for the auxiliary vector. Keep sv_copyout_auxargs but change it to accept the address at the end of the environment vector as an input stack address and no longer allocate room on the stack. It is now called at the end of copyout_strings after the argv and environment vectors have been copied out. This should fix a regression in r354754 that broke the stack alignment for newer Linux amd64 binaries (and probably broke Linux arm64 as well). Reviewed by: kib Tested on: amd64 (native, linux64 (only linux-base-c7), and i386) Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D22695 Notes: svn path=/head/; revision=355567
* cxgbe/iw_cxgbe: Support 64b length in the memory registration routines.Navdeep Parhar2019-12-091-6/+5
| | | | | | | | | Submitted by: bharat @ chelsio MFC after: 1 week Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=355566
* Switch gpioths(4) from using a callout to a taskqueue for periodic pollingIan Lepore2019-12-091-10/+17
| | | | | | | | | | | of the sensor hardware. Part of the polling process involves signalling the chip then waiting 20 milliseconds. This was being done with DELAY(), which is a pretty rude thing to do in a callout. Now a taskqueue_thread task is scheduled to do the polling, and because sleeping is allowed in the task context, pause_sbt() replaces DELAY() for the 20ms wait. Notes: svn path=/head/; revision=355565
* vi.1: Fix a typoMateusz Piotrowski2019-12-091-2/+2
| | | | | | | | | Reviewed by: bcr Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D22734 Notes: svn path=/head/; revision=355564
* RPI: Fix DMA/SDHCI on the BCM2836 (Raspberry Pi 2)Kyle Evans2019-12-092-3/+25
| | | | | | | | | | | | | | | | r354875 pushed VCBUS <-> ARMC translations to runtime determination, but incorrectly mapped addresses for the BCM2836 -- SOC_BCM2835 and SOC_BCM2836 are actually mutually exclusive, so the BCM2836 config (GENERIC) would have taken the latter path in the header and used 0x3f000000 as peripheral start. Easily fixed -- split out the BCM2836 into its own memmap config and use that instead if SOC_BCM2836 is included. With this, we get back to userland again. Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> Notes: svn path=/head/; revision=355563
* arm64: Use the kenv provided by loaderEmmanuel Vadot2019-12-091-1/+1
| | | | | | | | | | | Otherwise we have an empty kenv a likely cannot boot. Submitted by: kevans MFC after: 1 month X-MFC-With: 355487 Notes: svn path=/head/; revision=355558
* [PPC64] Initial libkvm minidump implementationLeandro Lupori2019-12-094-0/+950
| | | | | | | | | | | | | This change adds PowerPC64 support for minidumps on libkvm. Address translation, page walk, and data retrieval were tested and seem to be working correctly. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D21555 Notes: svn path=/head/; revision=355557
* Enable use of ofwcons for early debugLeandro Lupori2019-12-093-8/+95
| | | | | | | | | | | | | | | | | | | | | | | | | This change enables the use of OpenFirmware Console (ofwcons), even when VGA is available, allowing early kernel messages to be seen, that is important in case of crashes before VGA console initialization. This is specially useful in virtualized environments, where the user/developer doesn't have full control of the virtualization engine (e.g. OpenStack). The old behavior is preserved by default and, in order to use ofwcons, a few tunables that have been introduced need to be set: - hw.ofwfb.disable=1 - disable OFW FrameBuffer device - machdep.ofw.mtx_spin=1 - change PPC OFW mutex to SPIN type, to match kernel console's mutex type - debug.quiesce_ofw=0 - don't call OFW quiesce, needed to keep ofwcons I/O working More details can be found at differential revision D20640. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D20640 Notes: svn path=/head/; revision=355556
* [PPC64] Enable opal console use as a GDB DBGPORTLeandro Lupori2019-12-093-1/+153
| | | | | | | | | | | | | | This change makes it possible to use OPAL console as a GDB debug port. Similar to uart and uart_phyp debug ports, it has to be enabled by setting the hw.uart.dbgport variable to the serial console node of the device tree. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D22649 Notes: svn path=/head/; revision=355555
* Fix: netstat -rsBaptiste Daroussin2019-12-091-0/+3
| | | | | | | | | | | | Routing statistics requires somes symbols that are only loaded when not running live. Load them only in that specific case PR: 242423 Submitted by: olivier MFC after: 3 days Notes: svn path=/head/; revision=355554