aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Declutter rctl(8) by moving kernel build instructions into newlyEdward Tomasz Napierala2017-05-282-0/+75
| | | | | | | | | created rctl(4). MFC after: 2 weeks Notes: svn path=/head/; revision=319076
* Minor tweaks to iscsi(4) and iscsid(8).Edward Tomasz Napierala2017-05-281-7/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=319074
* Random tweaks to cfiscsi(4) man page.Edward Tomasz Napierala2017-05-281-4/+12
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=319073
* Fix INSTALL_AS_USER with external nsswitch databasesEric van Gyzen2017-05-281-9/+1
| | | | | | | | | | | | | | | | | | | The INSTALL_AS_USER option tells "install" to use the current user name as the owner of the installed file. The "install" command executed by the build is statically linked, so it does not load nsswitch modules, such as nss_ldap.so, so it fails when the user is only defined in such a database. Fix it to use the current UID instead of user name. This works for all users. I expect it is also slightly more efficient. Reviewed by: sjg MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10862 Notes: svn path=/head/; revision=319022
* Fix INSTALL_AS_USEREric van Gyzen2017-05-282-25/+27
| | | | | | | | | | | | | Move INSTALL_AS_USER into bsd.init.mk to maximize the chance that it has final authority over fooOWN and fooGRP. Reviewed by: sjg MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10810 Notes: svn path=/head/; revision=319020
* Remove the old man.templateBaptiste Daroussin2017-05-252-9/+1
| | | | | | | | | In FreeBSD we only use mdoc(7) format. A template is available as mdoc.template The usage of man(7) format is discouraged and this file was driving people into the front direction as a template to use. Notes: svn path=/head/; revision=318901
* update to 2017.05.25Baptiste Daroussin2017-05-251-79/+180
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=318900
* Fix several problems with mapping code.Stephen McConnell2017-05-251-3/+3
| | | | | | | | | | Reviewed by: ken, scottl, asomers, ambrisko, mav Approved by: ken, mav MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10861 Notes: svn path=/head/; revision=318896
* Fix several problems with mapping code.Stephen McConnell2017-05-251-5/+44
| | | | | | | | | | Reviewed by: ken, scottl, asomers, ambrisko, mav Approved by: ken, mav MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10878 Notes: svn path=/head/; revision=318895
* In preparation for the removal of the roff toolchain, disconnect theBaptiste Daroussin2017-05-251-5/+0
| | | | | | | | | | | | | | | | | roff documentation from the build. Those documents will be added to the doc tree and distributed as PDF from the documentation website. As they are valuable has history, but do not match current FreeBSD Further more, the ascii format we were using to distribute them is not really accurate for such documents. more details: https://lists.freebsd.org/pipermail/freebsd-arch/2017-May/018211.html Notes: svn path=/head/; revision=318881
* Fix rendering with modern groffBaptiste Daroussin2017-05-251-1/+1
| | | | | | | Reported by: tj Notes: svn path=/head/; revision=318873
* Don't end up manpage titles with a full stop.Edward Tomasz Napierala2017-05-242-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=318816
* Update the "first appeared in" version in several manual pages.Glen Barber2017-05-241-2/+2
| | | | | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318794
* Add BIT_OR2(), BIT_AND2(), BIT_NAND2(), BIT_XOR() and BIT_XOR2().Konstantin Belousov2017-05-241-1/+112
| | | | | | | | Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> MFC after: 2 weeks Notes: svn path=/head/; revision=318781
* Add missing MLINKS for functions decribed in iflibdd(9), iflibdi(9), andKevin Lo2017-05-241-0/+55
| | | | | | | iflibtxrx(9). Notes: svn path=/head/; revision=318769
* Remove duplicate definition of iflib_led_create().Kevin Lo2017-05-241-5/+1
| | | | Notes: svn path=/head/; revision=318766
* Allow cpuset_{get,set}affinity in capabilities modeAllan Jude2017-05-241-1/+11
| | | | | | | | | | | | | bhyve was recently sandboxed with capsicum, and needs to be able to control the CPU sets of its vcpu threads Reviewed by: emaste, oshogbo, rwatson MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D10170 Notes: svn path=/head/; revision=318765
* Remove unneccessary call to mtree, which, when building as an unprivilegedEdward Tomasz Napierala2017-05-231-2/+0
| | | | | | | | | | | | | | | | | | | user (with -DNO_ROOT), resulted in warnings looking like these: share/man/cat8: user (9, 3819, not modified: Operation not permitted) permissions (0755, 0700, modified) The BSD.usr.mk is already taken care of in etc/Makefile. Submitted by: Alex Richardson <alr48@cl.cam.ac.uk> Reviewed by: bdrewery MFC after: 1 month Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D9212 Notes: svn path=/head/; revision=318740
* Commit the 64-bit inode project.Konstantin Belousov2017-05-232-14/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_namlen to 16-bits, and change the required alignment. Increase struct statfs f_mntfromname[] and f_mntonname[] array length MNAMELEN to 1024. ABI breakage is mitigated by providing compatibility using versioned symbols, ingenious use of the existing padding in structures, and by employing other tricks. Unfortunately, not everything can be fixed, especially outside the base system. For instance, third-party APIs which pass struct stat around are broken in backward and forward incompatible ways. Kinfo sysctl MIBs ABI is changed in backward-compatible way, but there is no general mechanism to handle other sysctl MIBS which return structures where the layout has changed. It was considered that the breakage is either in the management interfaces, where we usually allow ABI slip, or is not important. Struct xvnode changed layout, no compat shims are provided. For struct xtty, dev_t tty device member was reduced to uint32_t. It was decided that keeping ABI compat in this case is more useful than reporting 64-bit dev_t, for the sake of pstat. Update note: strictly follow the instructions in UPDATING. Build and install the new kernel with COMPAT_FREEBSD11 option enabled, then reboot, and only then install new world. Credits: The 64-bit inode project, also known as ino64, started life many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick (mckusick) then picked up and updated the patch, and acted as a flag-waver. Feedback, suggestions, and discussions were carried by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles), and Rick Macklem (rmacklem). Kris Moore (kris) performed an initial ports investigation followed by an exp-run by Antoine Brodin (antoine). Essential and all-embracing testing was done by Peter Holm (pho). The heavy lifting of coordinating all these efforts and bringing the project to completion were done by Konstantin Belousov (kib). Sponsored by: The FreeBSD Foundation (emaste, kib) Differential revision: https://reviews.freebsd.org/D10439 Notes: svn path=/head/; revision=318736
* Add support for Amazon Elastic Network Adapter (ENA) NICZbigniew Bodek2017-05-221-0/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENA is a networking interface designed to make good use of modern CPU features and system architectures. The ENA device exposes a lightweight management interface with a minimal set of memory mapped registers and extendable command set through an Admin Queue. The driver supports a range of ENA devices, is link-speed independent (i.e., the same driver is used for 10GbE, 25GbE, 40GbE, etc.), and has a negotiated and extendable feature set. Some ENA devices support SR-IOV. This driver is used for both the SR-IOV Physical Function (PF) and Virtual Function (VF) devices. ENA devices enable high speed and low overhead network traffic processing by providing multiple Tx/Rx queue pairs (the maximum number is advertised by the device via the Admin Queue), a dedicated MSI-X interrupt vector per Tx/Rx queue pair, and CPU cacheline optimized data placement. The ENA driver supports industry standard TCP/IP offload features such as checksum offload and TCP transmit segmentation offload (TSO). Receive-side scaling (RSS) is supported for multi-core scaling. The ENA driver and its corresponding devices implement health monitoring mechanisms such as watchdog, enabling the device and driver to recover in a manner transparent to the application, as well as debug logs. Some of the ENA devices support a working mode called Low-latency Queue (LLQ), which saves several more microseconds. This feature will be implemented for driver in future releases. Submitted by: Michal Krawczyk <mk@semihalf.com> Jakub Palider <jpa@semihalf.com> Jan Medala <jan@semihalf.com> Obtained from: Semihalf Sponsored by: Amazon.com Inc. Differential revision: https://reviews.freebsd.org/D10427 Notes: svn path=/head/; revision=318647
* Add a driver for the Chelsio T6 crypto accelerator engine.John Baldwin2017-05-173-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ccr(4) driver supports use of the crypto accelerator engine on Chelsio T6 NICs in "lookaside" mode via the opencrypto framework. Currently, the driver supports AES-CBC, AES-CTR, AES-GCM, and AES-XTS cipher algorithms as well as the SHA1-HMAC, SHA2-256-HMAC, SHA2-384-HMAC, and SHA2-512-HMAC authentication algorithms. The driver also supports chaining one of AES-CBC, AES-CTR, or AES-XTS with an authentication algorithm for encrypt-then-authenticate operations. Note that this driver is still under active development and testing and may not yet be ready for production use. It does pass the tests in tests/sys/opencrypto with the exception that the AES-GCM implementation in the driver does not yet support requests with a zero byte payload. To use this driver currently, the "uwire" configuration must be used along with explicitly enabling support for lookaside crypto capabilities in the cxgbe(4) driver. These can be done by setting the following tunables before loading the cxgbe(4) driver: hw.cxgbe.config_file=uwire hw.cxgbe.cryptocaps_allowed=-1 MFC after: 1 month Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D10763 Notes: svn path=/head/; revision=318429
* Add tri-mode support (SAS/SATA/PCIe).Stephen McConnell2017-05-171-8/+83
| | | | | | | | | | | | | | | | | | | | This includes NVMe device support and adds support for the following adapters: SAS 3408 SAS 3416 SAS 3508 SAS 3516 SAS 3616 SAS 3708 SAS 3716 Reviewed by: ken, scottl, asomers, mav Approved by: ken, scottl, mav MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10095 Notes: svn path=/head/; revision=318427
* Add sglist_append_sglist().John Baldwin2017-05-162-1/+19
| | | | | | | | | | | | This function permits a range of one scatter/gather list to be appended to another sglist. This can be used to construct a scatter/gather list that reorders or duplicates ranges from one or more existing scatter/gather lists. Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=318388
* Note that the first release of FreeBSD/alpha was 3.2.John Baldwin2017-05-161-2/+2
| | | | | | | | Alpha is explicitly mentioned in the release announcements beginning with 3.2. Notes: svn path=/head/; revision=318386
* Tell bmake (meta mode) to ignore changes to /usr/local/etc/libmap.d/*Simon J. Gerraty2017-05-111-0/+3
| | | | | | | | Differential Revision: D10685 Reviewed by: bdrewery Notes: svn path=/head/; revision=318194
* Improve build(7): add missing "buildkernel" and "installkernel"Edward Tomasz Napierala2017-05-111-5/+9
| | | | | | | | | | | | to the example, change the architectures to something more common, and improve description of defaults for TARGET. Reviewed by: bdrewery, ngie, imp (older revisions) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D10654 Notes: svn path=/head/; revision=318182
* Unconditionally install udp(4) and udplite(4) againEnji Cooper2017-05-111-2/+2
| | | | | | | | | | I added this to the MK_USB != no block in error in r278202. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318177
* SUBDIR_OVERRIDE: Note how to restore historical behavior pre-r289725.Bryan Drewery2017-05-101-0/+5
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318123
* Add a -DNO_LIBS to skip building the libraries phase as well.Bryan Drewery2017-05-091-0/+2
| | | | | | | | | This is useful for cases where -DWORLDFAST is useful. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318122
* Correct "first appeared in" entries for various drivers thatGlen Barber2017-05-095-10/+10
| | | | | | | | | | exist in stable/11. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318109
* Support -DWORLDFAST to skip all build steps up to 'libraries' and 'everything'.Bryan Drewery2017-05-091-0/+10
| | | | | | | | | | | | | This allows for building the world against the already-created host/sysroot environment. It is not overly useful outside of cases of large-impact changes such as a testing a new compiler. It will allow quickly getting back to an error in the target-phases of the build where a new compiler is being used. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318106
* Support skipping 'make obj' tree-walk.Bryan Drewery2017-05-091-0/+4
| | | | | | | | | | This is part of a larger effort for WITH_AUTO_OBJ and a WORLDFAST option. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318105
* PROGS+META_MODE: Avoid rebuilding common sources when recursing.Bryan Drewery2017-05-091-5/+15
| | | | | | | | | | | | | | | This could be seen in lib/libkvm/tests where kvm_test_common.o was a common dependency, but one of the recursed progs had a special CFLAGS+= -I that changed the build command. This would cause all recursed builds to rebuild while fighting over the meta file and object file. Reported by: Mark Millard MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318092
* Fix device paths for USB serial adapters: the formatting stringsEdward Tomasz Napierala2017-05-0917-119/+119
| | | | | | | | | | contain "%u", differently from eg uart(4) which uses "%r". Suggested by: bde@ MFC after: 2 weeks Notes: svn path=/head/; revision=318017
* Fix mistake introduced to uart(4) man page in r317463.Edward Tomasz Napierala2017-05-091-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=318016
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-05-091-0/+11
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317999
* Fix syntax error in parse_path after r316952.Bryan Drewery2017-05-081-2/+2
| | | | | | | | | | | | | | | | | | Also fix bad whitespace in sort_unique after r314809. The parse_path syntax error came up in DIRDEPS_BUILD as the following and emptied out all Makefile.depend files due to it: # python share/mk/meta2deps.py File "share/mk/meta2deps.py", line 538 rdir = os.path.realpath(dir) ^ IndentationError: unexpected indent Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317980
* Add myself (dbaio) as a new ports committerDanilo G. Baio2017-05-081-0/+2
| | | | | | | | Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D10633 Notes: svn path=/head/; revision=317939
* arch(7): correct initial versions for alpha and pc98Ed Maste2017-05-081-2/+2
| | | | | | | Submitted by: imp Notes: svn path=/head/; revision=317938
* Bring VOP_GETPAGES.9 more up-to-dateBenjamin Kaduk2017-05-071-21/+56
| | | | | | | | | | | Attempt to catch up to the KPI changes from r292373, and perform some other tidying while in the area. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D10579 Notes: svn path=/head/; revision=317910
* Build zstandard with threading enabledBaptiste Daroussin2017-05-061-0/+1
| | | | Notes: svn path=/head/; revision=317879
* [etherswitch] add manpages for etherswitch supported devices.Adrian Chadd2017-05-065-1/+214
| | | | | | | | | Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: mizhka Differential Revision: https://reviews.freebsd.org/D10278 Notes: svn path=/head/; revision=317867
* Fix some "don't build" optimizations from r308599 not working due to a typo.Bryan Drewery2017-05-061-1/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317863
* Add basic programmable early warning error injection to the sa(4) driver.Kenneth D. Merry2017-05-051-2/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will help application developers simulate end of tape conditions. To inject an error in sa0: sysctl kern.cam.sa.0.inject_eom=1 This will return the next read or write request queued with 0 bytes written. Any subsequent writes or reads will go along as usual. This will also cause the early warning position flag to get set for the next position query. So, 'mt status' will show the BPEW (Beyond Programmable Early Warning) flag on the first query after an error injection. After that, the position flags will be as they are in the underlying tape drive. Also, update the sa(4) man page to describe tape parameters, which can be set via 'mt param'. sys/cam/scsi/scsi_sa.c: In saregister(), create the inject_eom sysctl variable. In sastart(), check to see whether inject_eom is set. If so, return the read or write with 0 bytes written to indicate EOM. Set the set_pews_status flag so that we fake PEWS status in the next position call for reads, and the next 3 calls for writes. This allows the user to see the BPEW flag one time via 'mt status'. In sagetpos(), check the set_pews_status flag and fake PEWS status and decrement the counter if it is set. share/man/man4/sa.4: Document the inject_eom sysctl variable. Document all of the parameters currently supported via 'mt param'. usr.bin/mt/mt.1: Point the user to the sa(4) man page for more details on supported parameters. MFC after: 3 days Sponsored by: Spectra Logic Notes: svn path=/head/; revision=317848
* Grammar fixes.Konstantin Belousov2017-05-051-4/+4
| | | | | | | | | Noted by: bde Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=317844
* Define the scope and purpose of the page.Konstantin Belousov2017-05-051-0/+6
| | | | | | | | | Submitted by: emaste Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=317843
* Fix some grammar, fix some markup, bump copyright year, provide moreKonstantin Belousov2017-05-051-15/+20
| | | | | | | | | | | exact claims in some cases. Discussed with: bde (most parts) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=317840
* arch(7): add a table of per-arch initial/final FreeBSD versionEd Maste2017-05-051-1/+45
| | | | | | | | | Reviewed by: kib, wblock Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10573 Notes: svn path=/head/; revision=317835
* Provide introduction for the arch(7) manpage.Konstantin Belousov2017-05-041-2/+88
| | | | | | | | | | | | | | | Start with some words about linear address space and its layout, then explain pointers models and ABIs, providing explanation to the structure of the tables. Reviewed by: emaste, imp 'Future-proof' cheri wording by: brooks Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D10596 Notes: svn path=/head/; revision=317809
* Avoid wrapping of the machine-dependent type sizes table, by removingKonstantin Belousov2017-05-041-3/+10
| | | | | | | | | | | | non-informational sizeof() expressions. Add some explanatory and summary sentences. Noted by: bde Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=317790