aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* bhyve/snapshot: drop mkdir when creating the unix domain socketRobert Wing2023-01-261-0/+2
| | | | | | | | | | | | | | | | Add /var/run/bhyve/ to BSD.var.dist so we don't have to call mkdir when creating the unix domain socket for a given bhyve vm. The path to the unix domain socket for a bhyve vm will now be /var/run/bhyve/vmname instead of /var/run/bhyve/checkpoint/vmname Move BHYVE_RUN_DIR from snapshot.c to snapshot.h so it can be shared to bhyvectl(8). Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D28783 (cherry picked from commit 5ce2d4a1c2922821b9940473213c0d75469755fc)
* growfs(7): conditionalize mention of adding dump deviceMike Karels2023-01-261-1/+6
| | | | | | | | | | The growfs_fstab script will add a new swap partition as a dump device as well, but only if dumpdev is set to AUTO. Reviewed by: pauamma Differential Revision: https://reviews.freebsd.org/D38166 (cherry picked from commit 7d189f669836b81dbdeb7bc7178040a43ab9d1fe)
* stand: update mips uboot to uboot reorgWarner Losh2023-01-251-2/+2
| | | | | | | | | | uboot reorg in main happened after the mips support was removed. Go ahead and do the same reorg here. Move the mips files from mips/uboot to uboot/arch/mips. Move mips/uboot/Makefile to uboot/arch/mips/Makefile.inc and cut out the common lines. Split uboot target into uboot and uboot.bin to better fit into reorg. This is a direct commit to stable/13
* pci_info: update to 2022-12-04Baptiste Daroussin2023-01-251-77/+343
| | | | (cherry picked from commit 07d1c4a919c0a7bdbf846e75e730d1c10c72eef6)
* umodem: add quirk to ignore CDC_CM descriptorSteffen Dirkwinkel2023-01-251-0/+2
| | | | | | | | | | | | | Some devices have CDC_CM descriptors that would point us to the wrong interfaces. Add a quirk to ignore those (prefering the CDC_UNION descriptor effectively) Reviewed by: manu MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D37942 (cherry picked from commit 73c3e8b1dee6cd42de32287ea8a57762b961d8ee)
* stand: Initial kboot support on amd64Warner Losh2023-01-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Get amd64 compiling. However, the current kboot supports an old way of enumerating memory and the new way needs to be incorporated as well. The powerpc folks could use either, it seems and newer powerpc platforms need some changes for kboot to work anyway. This commit includes the linker script, trampoline code to start the new kernel, Linux system calls and the necessary configuration glue needed to build the binaries. This includes a quick hack to get multiboot support, but we need to really share these defines. The multiiboot2.h is the minimum needed to build. We have multiboot information in three places now, so a refactoring is in order. This should be considered, at best, preliminary and experimental for anybody wishing to try it out. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35100 (cherry picked from commit 7df08a14e3fda5d0e7f3aef523ffcc7b3fae248d)
* stand/uboot: reorgWarner Losh2023-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | | Build uboot ubldr and friends like we build efi binaries o move everything to be under stand/uboot o md code goes in arch/$ARCH o move everything over from the library - Had to rename console.c, disk.c and module.c due to conflicts o update version to 1.5 to reflect the new way of building This results in a more consistent build system and should represent no functional change, apart from powerpc version getting new help file. Also, moved to exlcuding uboot on powerpc64le by using BROKEN_OPTION instead of the incidental exclusion we had before due to Makefile reorgs. Sponsored by: Netflix Feedback by: stevek, jrtc27 Differential Revision: https://reviews.freebsd.org/D33362 (cherry picked from commit 9dc70af83e5992e543542adbf5a6edeb38f187f6)
* netlink: connect netlink(4), rtnetlink(4), genetlinl(4) to buildLi-Wen Hsu2023-01-241-0/+3
| | | | | | | MFC after: 2 months (after 7366c0a49c9a60d3eea7520d7ae4bc2b3ab172f3) (cherry picked from commit 82e4a85de50b6e0acd6dc443e80919ad09e88365)
* src.opts.mk: Disable all of LLVM if C++ support is disabled.John Baldwin2023-01-241-0/+3
| | | | | | | Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36891 (cherry picked from commit f53dc31bb3ef387338a7678581e8c7d587da8d2c)
* wg.4: Update first appeared release to 13.2.John Baldwin2023-01-241-2/+2
| | | | | | MFC after: 3 days (cherry picked from commit 001830ea7aaf2f7de7afe85741f9662d9571e1ee)
* netlink: allow creating sockets with SOCK_DGRAM.Alexander V. Chernikov2023-01-232-3/+3
| | | | | | | | | | | | Some existing applications setup Netlink socket with SOCK_DGRAM instead of SOCK_RAW. Update the manpage to clarify that the default way of creating the socket should be with SOCK_RAW. Update the code to support both SOCK_RAW and SOCK_DGRAM. Reviewed By: pauamma Differential Revision: https://reviews.freebsd.org/D38075 (cherry picked from commit 0079d177ab69168df5e103128a2b15bd8e74d4eb)
* netlink: add snl(3) manpage to the buildAlexander V. Chernikov2023-01-231-0/+1
| | | | (cherry picked from commit 7f2109f240c2cdb916ca0047422ccfb2a697cee7)
* netlink: fix typo in netlink(4)Alexander V. Chernikov2023-01-231-1/+1
| | | | | | Reported by: Ihor Antonov <ihor@antonovs.family> (cherry picked from commit a8633361ab71fda3860f6b4ed1a602f9b52b36b8)
* netlink: improve RTM_GETADDR handling.Alexander V. Chernikov2023-01-231-2/+15
| | | | | | | | | | | | | * Allow filtering by ifa_family & ifa_index. * Add common RTM_<NEW|DEL|GET>ADDR parser * Add tests verifying RTM_GETADDR filtering behaviour & output * Factor out common netlink socket test methods into NetlinkTestTemplate * Add NLMSG_DONE message handler Reviewed By: pauamma Differential Revision: https://reviews.freebsd.org/D37970 (cherry picked from commit c1871a3372e382bfcd46452d1d8d4f06561508cc)
* netlink: add snl(3) - simple netlink libraryAlexander V. Chernikov2023-01-231-0/+303
| | | | | | | Reviewed by: bapt, pauamma Differential Revision: https://reviews.freebsd.org/D37736 (cherry picked from commit f2c8381fce9b87695ea448591e4412cbed38aa77)
* netlink: improve interface handlingAlexander V. Chernikov2023-01-231-0/+2
| | | | | | | | | | | | | | | | | | * Separate interface creation from interface modification code * Support setting some interface attributes (ifdescr, mtu, up/down, promisc) * Improve interaction with the cloners requiring to parse/write custom interface attributes * Add bitmask-based way of checking if the attribute is present in the message * Don't use multipart RTM_GETLINK replies when searching for the specific interface names * Use ENODEV instead of ENOENT in case of failed RTM_GETLINK search * Add python netlink test helpers * Add some netlink interface tests Differential Revision: https://reviews.freebsd.org/D37668 (cherry picked from commit 80f03e63d67ede8fedbed4bd6bf6b12ec2ab2cfb)
* netlink: suppress sending NLMSG_ERROR if NLMSG_DONE is already sentAlexander V. Chernikov2023-01-231-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Netlink has a confirmation/error reporting mechanism for the sent messages. Kernel explicitly acks each messages if requested (NLM_F_ACK) or if message processing results in an error. Similarly, for multipart messages - typically dumps, where each message represents a single object like an interface or a route - another message, NLMSG_DONE is used to indicate the end of dump and the resulting status. As a result, successfull dump ends with both NLMSG_DONE and NLMSG_ERROR messages. RFC 3549 does not say anything specific about such case. Linux adopted an optimisation which suppresses NLMSG_ERROR message when NLMSG_DONE is already sent. Certain libraries/applications like libnl depends on such behavior. Suppress sending NLMSG_ERROR if NLMSG_DONE is already sent, by setting newly-added 'suppress_ack' flag in the writer and checking this flag when generating ack. This change restores libnl compatibility. Before: ``` ~ nl-link-list Error: Unable to allocate link cache: Message sequence number mismatch ```` After: ``` ~ nl-link-list vtnet0 ether 52:54:00:14:e3:19 <broadcast,multicast,up,running> lo0 ieee1394 <loopback,multicast,up,running> ``` Reviewed by: bapt,pauamma Tested by: bapt Differential Revision: https://reviews.freebsd.org/D37565 (cherry picked from commit f4d3aa74908496f1f5815caca94ebd86944b17cb)
* netlink: add netlink user documentation.Alexander V. Chernikov2023-01-233-0/+1010
| | | | | | | | | | | | Add netlink(4) as a "frontend" manpage describing netlink in general. Add rtnelink(4) describing supported commands and attributes in NETLINK_ROUTE family. Add genetlink(4) describing generic netlink API. Reviewed by: pauamma Differential Revision: https://reviews.freebsd.org/D37011 (cherry picked from commit 7366c0a49c9a60d3eea7520d7ae4bc2b3ab172f3)
* atomic.9: Remove the stated dependency on types.hMark Johnston2023-01-231-2/+1
| | | | | | | | | | | All machine/atomic.h necessarily include sys/atomic_common.h, which brings in types.h. Reviewed by: imp, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38040 (cherry picked from commit ccffe71ad4d9ac01f6bb4efa625ffcaf9fae739f)
* device_get_property: add a HANDLE caseBjoern A. Zeeb2023-01-181-1/+4
| | | | | | | | | | | This will resolve a reference and return the appropriate handle, a node on the simplebus or an ACPI_HANDLE for ACPI. For now we do not try to further abstract the return type. Reviewed by: mw Differential Revision: https://reviews.freebsd.org/D36793 (cherry picked from commit 99e6980fcf5e12654c3e89b97b774de807d740a4)
* testing: move atf-pytest-wrapper to /usr/libexecAlexander V. Chernikov2023-01-131-1/+1
| | | | | | | | | | | | | Move pytest wrapper to the collection of the other atf wrappers in libexec. It solves the problem of combining bits & pieces from bsd.test.mk and bgs.prog.mk to address "test binary, but not the suite binary". Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D35604 MFC after: 2 weeks (cherry picked from commit 924226fba12cc9a228c73b956e1b7fa24c60b055)
* testing: Add basic atf support to pytest.Alexander V. Chernikov2023-01-131-0/+47
| | | | | | | | | | | | | | | | | | | | | | Implementation consists of the pytest plugin implementing ATF format and a simple C++ wrapper, which reorders the provided arguments from ATF format to the format understandable by pytest. Each test has this wrapper specified after the shebang. When kyua executes the test, wrapper calls pytest, which loads atf plugin, does the work and returns the result. Additionally, a separate python "package", `/usr/tests/atf_python` has been added to collect code that may be useful across different tests. Current limitations: * Opaque metadata passing via X-Name properties. Require some fixtures to write * `-s srcdir` parameter passed by the runner is ignored. * No `atf-c-api(3)` or similar - relying on pytest framework & existing python libraries * No support for `atf_tc_<get|has>_config_var()` & `atf_tc_set_md_var()`. Can be probably implemented with env variables & autoload fixtures Differential Revision: https://reviews.freebsd.org/D31084 Reviewed by: kp, ngie (cherry picked from commit 8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64)
* growfs(7): clarify assumptions and limitationsMike Karels2023-01-131-3/+11
| | | | | | | | | | | Document that the growfs(7) script works only if the root file system is in the last partition and free space immediately follows it. Don't imply that /usr can be a separate partition, as that would likely mean that root is not last. Reported by: marklmi at yahoo dot com (cherry picked from commit 8664e266d6a4573d1875ee8f4ce0cdb091171780)
* growfs(7): document addition of swap partition and growfs_fstab scriptMike Karels2023-01-132-11/+72
| | | | | | | | | | | | | Add documentation of the growfs script's new ability to add a swap partition, expanding on the previous functionality as well. Add the growfs_fstab helper script, which runs separately. Add a description of how to expand a file system a second time if swap had been added. While here, fix a typo. Reviewed by: pauamma Differential Revision: https://reviews.freebsd.org/D37465 (cherry picked from commit 4e240e55d8186b44fe1bcda09b90ca7ffe65a58b)
* iwlwifi.4: typo fixedMaxim Konovalov2023-01-111-1/+1
| | | | | PR: 266554 (cherry picked from commit 7e58c8aa8245192176ac12961272bcb19dfaeb91)
* hms(4): Disable vendor usage page button supportVladimir Kondratyev2023-01-071-0/+2
| | | | | | | | | for all devices except Kensington Slimblade Trackball as it brokes some other devices like Contour Rollermouse Red Add a quirk for it as well. (cherry picked from commit 0661cf74e6e5dbd585c4a5a3e621d915bb6787d3)
* ums(4): Disable vendor usage page button supportVladimir Kondratyev2023-01-071-0/+2
| | | | | | | | | for all devices except Kensington Slimblade Trackball as it brokes some other devices like Contour Rollermouse Red Add a quirk for it as well. (cherry picked from commit ab4f740bc59e3ba2948bcc4e03bd6125b1dae36f)
* bsd-family-tree: macOS 13 addedSergey A. Osokin2022-12-251-1/+3
| | | | (cherry picked from commit bb1f0401d6bd5630bbb5e67d607d5551178933a1)
* bsd-family-tree: FreeBSD 12.4 addedMaxim Konovalov2022-12-251-7/+10
| | | | (cherry picked from commit f4a176fbaf76902a9b1c46e6c752e1f33eaebd8d)
* bcm5974: wsp(4) driver version with HID attachment.Vladimir Kondratyev2022-12-242-0/+86
| | | | (cherry picked from commit 5aa839c9e2c373275091b8bf529c1311d0b84d76)
* ietp(4): Driver for Elantech I2C touchpadVladimir Kondratyev2022-12-242-0/+82
| | | | (cherry picked from commit d5add41d4d8713d48cfb8f8a228660c8b95ff676)
* Add deprecation notices to ce,cp sync serial driversEd Maste2022-12-222-2/+14
| | | | | | | | | | | | | And the related sconfig utility. Sync serial (e.g. E1/T1) interfaces are obsolete, and nobody responded to several inquires on the mailing lists about use of these drivers. Relnotes: Yes MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23928 (cherry picked from commit 20dfe27b2d031c4000f5be94fd1db8872167a537)
* sizeof(7): miscellaneous editsKonstantin Belousov2022-12-201-9/+31
| | | | (cherry picked from commit 9e0d976d95fa4468ac423bc872bda0e93fa4bc18)
* sizeof(7): remove "All rights reserved"Jan Schaumann2022-12-201-1/+0
| | | | (cherry picked from commit 57bee0817f777721a3e253c77f266c7e851a589d)
* Add sizeof(7) manual pageJan Schaumann2022-12-202-0/+288
| | | | | | PR: 268310 (cherry picked from commit 0b75997f4c5a15f02e6d5eee981a1b752dd0fd59)
* man9: Add MLINKS for dpcpu macrosMark Johnston2022-12-151-0/+9
| | | | | | MFC after: 1 week (cherry picked from commit b1ef176eb52877b06541ba5019c7d2a3c78fbdc3)
* protocols.5: Update the description of /etc/protocolsGordon Bergling2022-12-101-5/+16
| | | | | | | | | | | The reference to the "DARPA Internet" seems not quite up to date in 2022, so move that to the HISTORY section. Mention RFC 2780 and RFC 5237. Obtained from: NetBSD (cherry picked from commit 899edecdbe92f678c3c96572c8877cdbc6763e9a)
* ddb(4): document some missing commandsMitchell Horne2022-12-051-0/+48
| | | | | | | | | | | | This is not exhaustive, just what I collected while working on mac_ddb(4). Reviewed by: pauamma, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation (in part) Differential Revision: https://reviews.freebsd.org/D37333 (cherry picked from commit 831979ae0fb91a2ff674b7b1ab7d2c252a17e27d)
* ddb(4): misc updatesMitchell Horne2022-12-051-81/+65
| | | | | | | | | | | | | | | | | - Describe optional 'addr' argument to many show commands - Remove obsolete commands (show cbstat) - 'show jails' was renamed to 'show prison' - Remove superfluous commentary about sleepqueues - Fix an xref to gdb(4) - Fix issues reported by mandoc -Tlint - Plus a couple other inaccuracies/inconsistencies Reviewed by: pauamma, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation (in part) Differential Revision: https://reviews.freebsd.org/D37332 (cherry picked from commit 94f6ee56e316be5648054e15f58dde9bd2c1c2c6)
* ddb(4): improve wordingWarner Losh2022-12-051-15/+13
| | | | | | | | | Incorporate feedback overlooked in revew by wblock@ Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D4860 (cherry picked from commit dc5a0d6d6d0c4ad88d032762f036876fb64eb0d5)
* hier(7): remove text describing /usr/src layoutMitchell Horne2022-12-051-125/+4
| | | | | | | | | | | | | | | | It poses a maintenance burden, since much of the information is duplicated in the src tree's README.md file. Readers who are interested enough in learning about the structure of the src tree can download it, or browse the README online. Have hier(7) just point them there instead. PR: 261349 Discussed with: freebsd-arch@, freebsd-doc@ lists Reviewed by: imp, emaste MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37135 (cherry picked from commit f0e4e021103c13ff3da4cdf1f9395754d069cbfb)
* development(7): redirect users from hier(7)Mitchell Horne2022-12-051-3/+4
| | | | | | | | | | | | | The layout of the source tree is now only described in README.md. Retain the cross-reference to hier(7) in SEE ALSO; it is still useful to readers. Reviewed by: imp, emaste MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37136 (cherry picked from commit 6028a56562bf912a86ffcb7521a58e4165937e6e)
* Add support for adding default routes for other FIBsAndrew Fengler2022-12-021-1/+10
| | | | | | | | | | | | | Make rc.d/routing read defaultrouter_fibN and ipv6_defaultrouter_fibN, and set it as the default gateway for FIB N, where N is from 1 to (net.fibs - 1) This allows adding gateways for multiple FIBs in the same format as the main gateway. (FIB 0) Reviewed by: olivier, rgrimes, bcr (man page) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D22706 (cherry picked from commit 30659d1dcbcc92016833f0956461314ed501ac83)
* Update resolv.conf(5) "not necessary" language.Pau Amma2022-11-301-7/+9
| | | | | | | | | | | | | | | | | | | | | While there, fix mandoc -T lint warnings. PR: 262492 Differential Revision: https://reviews.freebsd.org/D37449 MFC after: 1 week Reviewed by: gjb Approved by: gjb (mentor) (cherry picked from commit e8261bba4e18ab95fe958e195b07a66df1b8d855) Clarify what's normally not required. Reported by: karels Reviewed by: carlavilla, karels (informally) Approved by: carlavilla (mentor), gjb (mentor, implicitly) Differential Revision: https://reviews.freebsd.org/D37483 (cherry picked from commit 06703946d0be0baaf0f2a88f85e2dd5354e861da)
* linuxkpi: drm-kmod debugfs supportJake Freeland2022-11-292-0/+96
| | | | | | | | | | | | | | This diff extends LinuxKPI to support simple attribute files in debugfs. These simple attributes are an essential component for compiling drm-kmod with CONFIG_DEBUG_FS enabled. This will allow for easier graphics driver debugging using Intel's igt-gpu-tools. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D35883 Sponsored by: Google, Inc. (GSoC 2022) (cherry picked from commit f697b9432d9c7aa4c5ab5f5445ef5dc1bd40ce00)
* Remove disused /cdrom toplevel dir from hier(7).Pau Amma2022-11-271-12/+8
| | | | | | | | | | | | | While here, fix igor and mandoc -T lint low-hanging fruit in hier(7) Reviewed by: danfe (D37473), gjb (mentor) Approved by: gjb (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D37472 Differential Revision: https://reviews.freebsd.org/D37473 (cherry picked from commit 720e0e0ff1d3d47bd8a5a7bb23353e4b5da71048) (cherry picked from commit 88be8b8e54797db2fc0c3134890d1918aea2c087)
* tcp_rack: Add a manual pageGordon Bergling2022-11-214-3/+165
| | | | | | | | | | | - add a manual page for tcp_rack(4) - link it in the tcp(4) and tcp_bbr(4) man pages - hook it up to build in the Makefile Reviewed by: pauamma Differential Revision: https://reviews.freebsd.org/D37209 (cherry picked from commit bdbc05bea995d73465def1ab31bb3b2b37b37a93)
* ascii.7: Add full names of the control character setGordon Bergling2022-11-151-1/+39
| | | | | | | | | Extent the manual page by the full names of the control character set. Obtained from: NetBSD (cherry picked from commit b6d1ac7f01f35ff3c44f65d197414f92356e932b)
* netgdb(4): update list of required kernel optionsMitchell Horne2022-11-141-5/+8
| | | | | | | | | | | | | The man page claims that netgdb will be enabled automatically with the presence of the DDB, GDB, and INET options. Based on the logic in conf/files, this is not the case. Update the manpage to list all of the options required to include netgdb. Reviewed by: pauamma, markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D37330 (cherry picked from commit d5f3e80f5a0b64ccde9ab6856766fc565e795393)
* netdump(4): document all kernel options requiredMitchell Horne2022-11-141-2/+4
| | | | | | | | | | This means INET and DEBUGNET in addition to NETDUMP. Reviewed by: pauamma, markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D37331 (cherry picked from commit b0832b5074840bce6f52842888b8c5279528fefa)