1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
Commit Graph

21195 Commits

Author SHA1 Message Date
Warner Losh
6292dace82 bsd-family-tree: macOS 11 and macOS 12
Sponsored by:		Netflix

(cherry picked from commit 4fc5a607fd)
2022-03-31 22:27:36 -06:00
Warner Losh
137ef89271 bsd-family-tree: Dragonfly 6.2.1 release
Sponsored by:		Netflix

(cherry picked from commit d2cc7bff4d)
2022-03-31 22:27:36 -06:00
Warner Losh
b54988faf9 bsd-family-tree: Add OpenBSD 7.0
Sponsored by:		Netflix

(cherry picked from commit 754cf44d99)
2022-03-31 22:27:36 -06:00
Warner Losh
af0b54d42a bsd-family-tree: Add FreeBSD 12.3
FreeBSD 12.3 wasn't added when it was released. Add it now.

Sponsored by:		Netflix

(cherry picked from commit 58e6bbc5ac)
2022-03-31 21:33:55 -06:00
Warner Losh
b811e00246 bsd-family-tree: Add 2.8BSD relationship to Research 7th edition
In the 2BSD line, the 2.8BSD tapes were the first ones to include a
kernel, both source and a bootable tape. This was an AT&T V7 kernel,
with a number of bug fixes; new features in use at Berkeley; performance
enhancements that were circulating to V7 in the licensee community; and
build system changes. Based on the TUHS archives, it contains none of
the V32 changes, however.

In addition to the source code analysis, Mike Karels relates the story
of how his group lost a customizes to V6 on a PDP-11/40 due to a disk
crash. Since V7 just came out and Bill Jolitz had just brought that up
elsewhere, they replaced their customized V6 with a V7 system, and that
base would eventually become 2.8BSD. (Quarter Century of Unix)

Given both lines of evidence, add a direct line from V7 Unix to 2.8BSD.

Also confirmed that the V6 line to 1BSD and 2BSD was appropriate. 1BSD
and 2BSD included ashell(1) and ex(1). ashell(1) was derived from v6
hell. ex(1) was an enhanced v6 ed.  2.8BSD included process control and
user-land utilities from 4.1BSD

Discussed with:		Clem Cole, Diomidis Spinellis (dds)
Differential Revision:	https://reviews.freebsd.org/D30883

(cherry picked from commit 520a2401a6)
2022-03-31 21:33:55 -06:00
Warner Losh
79afe55982 bsd-family-tree: add DragonFly 6.0.0
Tagged on May 8, 2021.

Sponsored by:		Netflix

(cherry picked from commit 779b70a226)
2022-03-31 21:33:55 -06:00
Warner Losh
127f5e8969 bsd-family-tree: Add NetBSD 9.2
NetBSD 9.2 was released on May 12, 2021

Submitted by:		Martin Husemann
Sponsored by:		Netflix

(cherry picked from commit 71a071be1c)
2022-03-31 21:33:55 -06:00
Maxim Konovalov
04324346c9 Releases history update
Add DragonFly 5.8.1, OpenBSD 6.7, FreeBSD 11.4, DragonFly 5.8.2,
DragonFly 5.8.3, OpenBSD 6.8, NetBSD 9.1, FreeBSD 13.0, OpenBSD 6.9.

(cherry picked from commit f0c914baac)
2022-03-31 21:33:55 -06:00
Kornel Duleba
817556add3 Extend device_get_property API
In order to support various types of data stored in device
tree properties or ACPI _DSD packages, create a new enum so
the caller can specify the expected type of a property they
want to read, according to the binding. The bus logic will use
that information to process the underlying data.

For example in DT all integer properties are stored in BE format.
In order to get constant results across different platforms we
need to convert its endianness to match the host.

Another example are ACPI_TYPE_INTEGER properties stored
as uint64_t. Before this patch the ACPI logic would refuse
to read them if the provided buffer was smaller than 8 bytes.
Now this can be handled by using DEVICE_PROP_UINT32 type.

Modify the existing consumers of this API to reflect the changes
and update the man pages accordingly.

Reviewed by: mw
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33457

(cherry picked from commit b344de4d0d)
2022-03-30 00:24:29 +02:00
Bartlomiej Grzesik
45b49a0f96 device: add device_get_property and device_has_property
Generialize bus specific property accessors. Those functions allow driver code
to access device specific information.

Currently there is only support for FDT and ACPI buses.

Reviewed by: manu, mw
Sponsored by: Semihalf
Differential revision: https://reviews.freebsd.org/D31597

(cherry picked from commit 3f9a00e3b5)

acpi: Fix error code returned in acpi_bus_get_prop

ACPI implementation of device_get_property would return "-1" when
property was found, but it's type wasn't supported.
This causes device_has_property to return false in that scenario, which
arguably could be considered as incorrect.

Fix that by returning "0" in that case.

Reviewed by: bz, mw
Tested by: mw
MFC after: 2 weeks
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D33103

(cherry picked from commit d9ed1dcc5c)
2022-03-30 00:24:26 +02:00
Alexander V. Chernikov
453b4f8193 u3g: Add support Quectel EM12-G modem.
Submitted by:	<tda.77793 at gmail.com>
PR:		260218
MFC after:	2 weeks

(cherry picked from commit 217481a333)
2022-03-28 08:54:30 +00:00
Bjoern A. Zeeb
8ed3b807ca iwlwifi: update man pages
Update man pages given auto-loading is now enabled by default and
no user configuration is needed to load the driver.
Also note that the iwlwifi driver will appear the first time in 13.1-R.

Sponsored by:	The FreeBSD Foundation
Relnotes:	yes

(cherry picked from commit abf6e1a49e)
2022-03-27 18:08:16 +00:00
Ed Maste
6cebc086b4 snd_hda.4: correct typos
MFC after:	1 week

(cherry picked from commit 24cf089ab4)
2022-03-24 22:30:19 -04:00
Roger Pau Monné
41a0aef504 vt/vga: ignore ACPI_FADT_NO_VGA unless running virtualized
There's too many broken hardware out there that wrongly has the
ACPI_FADT_NO_VGA bit set. Ignore it unless running as a virtualized
guest, as then the expectation would be that the hypervisor does
provide correct ACPI tables.

Reviewed by: emaste, 0mp, eugen
Sponsored by: Citrix Systems R&D
PR: 230172

(cherry picked from commit 0518832011)
2022-03-23 14:44:30 +01:00
Mateusz Piotrowski
951da8807d nullfs.5: Add an example fstab(5) entry
Some other file system manual pages like msdosfs(5) feature similar
examples as well.

MFC after:	1 week

(cherry picked from commit 7d62b5df83)
2022-03-22 23:26:35 +01:00
Mateusz Piotrowski
7a88058a0e hier: Document /usr/freebsd-dist
/usr/freebsd-dist is used used by various programs as the location for
FreeBSD distribution files. In-tree programs following this convention
are bsdinstall(8) and release(7).

Reviewed by:	Pau Amma <pauamma@gundo.com>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34552

(cherry picked from commit 11a6c85d7f)
2022-03-22 23:26:35 +01:00
Mateusz Piotrowski
be6b6b8bf2 uefi.8: Fix style
MFC after:	3 days

(cherry picked from commit 20f0dabb71)
2022-03-22 23:26:34 +01:00
Mateusz Piotrowski
c8b537e135 rc.subr.8: Format notes consistently
MFC after:	3 days

(cherry picked from commit fa1dab788d)
2022-03-22 23:26:34 +01:00
Ed Maste
812638797d Update deprecation notice in snd_maestro, snd_ds1
These drivers are broken and have been scheduled for removal since 2012.
They will finally be removed before FreeBSD 14.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 1d7f6de5cf)
2022-03-21 20:45:16 -04:00
Vincenzo Maffione
ddb842e2ad netmap: add a tunable for the maximum number of VALE switches
The new dev.netmap.max_bridges sysctl tunable can be set in
loader.conf(5) to change the default maximum number of VALE
switches that can be created. Current defaults is 8.

MFC after:	2 weeks

(cherry picked from commit dd6ab49a9a)
2022-03-20 09:00:50 +00:00
Mark Johnston
2d7f27a4fb opencrypto: Add a routine to copy a crypto buffer cursor
This was useful in converting armv8crypto to use buffer cursors.  There
are some cases where one wants to make two passes over data, and this
provides a way to "reset" a cursor.

Reviewed by:	jhb

(cherry picked from commit 09bfa5cf16)
2022-03-18 11:31:33 -04:00
Mateusz Piotrowski
b85d0d603c tslog.4: Document TSLOG
Based on commit messages and Colin Percival's presentation
from BSDCan 2018 [1].

[1]: https://papers.freebsd.org/2018/bsdcan/percival-Profiling_the_FreeBSD_kernel_boot.files/percival-Profiling_the_FreeBSD_kernel_boot.pdf

Reviewed by:	cperciva, debdrup
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34430

(cherry picked from commit 5675bb5829)
2022-03-11 11:05:48 +01:00
Antranig Vartanian
065edb739e Add support for jail.conf.d
Using /etc/jail.{jailname}.conf is nice, however it makes /etc/ very
messy if you have many jails.  This patch allows one to move these
config files out of the way into /etc/jail.conf.d/{jailname}.conf.

Note that the same caveat as /etc/jail.*.conf applies: the jail service
will not autodiscover all of these for starting 'all' jails.  This is
considered future work, since the behavior matches.

(cherry picked from commit 7955efd574)
2022-03-09 15:21:49 -06:00
Mateusz Piotrowski
e92efc3ccd stats.7: Fix a typo
MFC after:	3 days

(cherry picked from commit 5d3007c1a2)
2022-03-08 20:56:38 +01:00
Ed Maste
e717dd3fb6 vt(4): note that VGA palette configuration is not supported
PR:		261311
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34431

(cherry picked from commit b126b79b27)
2022-03-07 11:25:21 -05:00
Mateusz Piotrowski
e614f7a55a rc.conf: Fix a typo
Reported by:	Pau Amma <pauamma@gundo.com>
MFC after:	3 days
MFC with:	8719e8a951

(cherry picked from commit 9062598e74)
2022-03-06 21:22:15 +01:00
Mateusz Piotrowski
e8baa00242 rc.conf: Document zfskeys
Fixes:		33ff39796f Add zfskeys rc.d script for auto-loading encryption keys
MFC after:	3 days
Reviewed by:	allanjude
Sponsored by:	Modirum
Sponsored by:	Klara, Inc
Differential Revision:	https://reviews.freebsd.org/D34427

(cherry picked from commit 8719e8a951)
2022-03-06 21:21:48 +01:00
Doug Moore
63cc3d693d bitset.9: add description of BIT_ISSET
Extracted from abandoned review https://reviews.freebsd.org/D33701.

(cherry picked from commit 145c65fc57)

cpuset.9: add description of CPU_ISSET

(cherry picked from commit eaf3c3af9c)
2022-03-04 20:45:51 +01:00
Eric van Gyzen
6aac8c3904 Allow downstream projects to easily add private and internal libs
Allow projects based on the FreeBSD tree to append to _PRIVATELIBS
and _INTERNALLIBS by simply maintaining their own lists of
LOCAL_PRIVATELIBS and LOCAL_INTERNALLIBS, respectively.

Reviewed by:	bdrewery
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D33901

(cherry picked from commit d7f944a046)
2022-03-02 15:56:30 -06:00
Ed Maste
f1b015cda4 src.libnames.mk: add a comment explaining libssp_nonshared
libssp_nonshared is a special case for (only) i386 and power*.  Add a
comment explaining why, based on the original commit message that added
it.

MFC after:	1 week
Fixes:		0f61170882 ("libssp_nonshared: use only on i386 and ppc")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 9aa786cbb5)
2022-02-28 19:23:27 -05:00
Navdeep Parhar
512eb6235f cxgbe(4): separate sysctls for user-requested and in-use FEC.
Recent firmwares have more leeway in FEC selection and there is a need
to track the FECs requested by the driver separately from the FEC in use
on the link. The existing dev.<port>.<inst>.fec sysctl can read both but
its behavior depends on the link state and it is sometimes hard to find
out what was requested when the link is up.

Split the fec sysctl into two (requested_fec and link_fec) to get access
to both pieces of information regardless of the link state.

Sponsored by:	Chelsio Communications

(cherry picked from commit f6a2e1100f)
2022-02-27 22:43:59 -08:00
Alfredo Dal'Ava Junior
310623908c keymap: Add extra Alt Gr mapping for Brazillian Portuguese ABNT2 keyboards
This adds missing Alt Gr mappings for the keys "q", "w", "e" an "c" to
conform with ABNT2 standard.

PR:	256416
Submitted by:	Neebz <vpguyrhpjltta@logicstreak.com>
Reviewed by:	emaste
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D33801

(cherry picked from commit 07625bc4b3)
2022-02-25 21:21:50 -03:00
Mateusz Piotrowski
62947ebdf7 freebsd-update.conf.5: Sort options
Reported by:	pauamma_gundo.com
MFC after:	1 week

(cherry picked from commit bf8e978583)
2022-02-24 14:48:01 +01:00
Mateusz Piotrowski
639326b97a freebsd-update.conf.5: Address style issues
- Do not set Os to FreeBSD explicitly. We don't do it in other manual
  pages.
- Remove macros from the -width specifier.
- Use Xr instead of Cm to refer to the freebsd-update command.
- Address some mandoc lint warnings and use \(em instead of --.
- Wordsmith some paragraphs.
- Add a missing El macro.

MFC after:	1 week

(cherry picked from commit b80bb8b197)
2022-02-24 14:47:44 +01:00
Mateusz Piotrowski
8a3c868ab4 freebsd-update.8: Document CreateBootEnv
Also, add bectl(8) to section "See Also". [1]

PR:		261716
Reviewed by:	debdrup, pauamma_gundo.com
MFC after:	1 week
Fixes:		f28f138905 freebsd-update: create a ZFS boot environment on install
Differential Revision:	https://reviews.freebsd.org/D34169
Co-authored-by:	Tobias Rehbein <tobias.rehbein@web.de> [1]

(cherry picked from commit 6d17f2d043)
2022-02-24 14:46:24 +01:00
Michal Krawczyk
b94392fc6d ena: fix man page typos and update contact section
Verified spelling in the README and fixed the typos.

Also updated the contact section by removing Artur and adding Dawid
Gorecki who is now the second ENA FreeBSD driver developer.

Submitted by: Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit 95161adfcb)
2022-02-24 13:53:44 +01:00
Marcin Wojtas
5922f5218f ena: merge ena-com v2.5.0 upgrade
Merge commit '2530eb1fa01bf28fbcfcdda58bd41e055dcb2e4a'

Adjust the driver to the upgraded ena-com part twofold:

First update is related to the driver's NUMA awareness.

Allocate I/O queue memory in NUMA domain local to the CPU bound to the
given queue, improving data access time. Since this can result in
performance hit for unaware users, this is done only when RSS
option is enabled, for other cases the driver relies on kernel to
allocate memory by itself.

Information about first CPU bound is saved in adapter structure, so
the binding persists after bringing the interface down and up again.

If there are more buckets than interface queues, the driver will try to
bind different interfaces to different CPUs using round-robin algorithm
(but it will not bind queues to CPUs which do not have any RSS buckets
associated with them). This is done to better utilize hardware
resources by spreading the load.

Add (read-only) per-queue sysctls in order to provide the following
information:
- queueN.domain: NUMA domain associated with the queue
- queueN.cpu:    CPU affinity of the queue

The second change is for the CSUM_OFFLOAD constant, as ENA platform
file has removed its definition. To align to that change, it has been
added to the ena_datapath.h file.

Submitted by: Artur Rojek <ar@semihalf.com>
Submitted by: Dawid Gorecki <dgr@semihalf.com>
Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit eb4c4f4a2e)
2022-02-24 13:53:43 +01:00
Hans Petter Selasky
6bf4f9268f uma: Add UMA_ZONE_UNMANAGED
Allow a zone to opt out of cache size management.  In particular,
uma_reclaim() and uma_reclaim_domain() will not reclaim any memory from
the zone, nor will uma_timeout() purge cached items if the zone is idle.
This effectively means that the zone consumer has control over when
items are reclaimed from the cache.  In particular, uma_zone_reclaim()
will still reclaim cached items from an unmanaged zone.

Reviewed by:	hselasky, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34142

(cherry picked from commit 389a3fa693)
2022-02-24 10:59:28 +01:00
Glen Barber
9134a39850 13.1: update stable/13 to -PRERELEASE to start the release cycle
Approved by:	re (implicit)
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2022-02-23 23:21:49 -05:00
Henri Hennebert
3e5cd5dfd4 rtsx: Add RTS5260 support and replace bootverbose with sysctl.
Tested by:	mav
MFC after:	4 days
Differential Revision:	https://reviews.freebsd.org/D34246

(cherry picked from commit 577130e56e)
2022-02-22 19:39:53 -05:00
Edward Tomasz Napierala
37671ee46d linux: Make compat.linux.preserve_vstatus default to 1
From a user point of view, this makes ^T work out of the box.

Reviewed By:	debdrup (man page)
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D33842

(cherry picked from commit b896bdb86d)
2022-02-14 19:35:25 +00:00
Edward Tomasz Napierala
f89309617e linux: More man page tweaks
Mention debootstrap(8) and improve the wording.

Reviewed By:	debdrup, emaste, Pau Amma
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D33772

(cherry picked from commit 595532a766)
2022-02-14 19:35:10 +00:00
Edward Tomasz Napierala
5ed9dc8deb linux(4): man page tweaks
Advertise rc.conf method as the right way to enable it, mention
file system mapping... and change some wording.

Reviewed By:	emaste, debdrup, Pau Amma
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D33720

(cherry picked from commit bd8077ee84)
2022-02-14 19:34:42 +00:00
Edward Tomasz Napierala
af267ea849 hier(7): add some new Xrs, remove some unrelated ones
Reviewed By:	debdrup, imp, 0mp
Differential Revision:	https://reviews.freebsd.org/D33386

(cherry picked from commit 57976b7af3)
2022-02-14 19:32:22 +00:00
Edward Tomasz Napierala
83c732fa3b intro(3): Fix formatting
This makes the left column narrower, leaving more space for the text.

Reviewed By:	debdrup, 0mp
Differential Revision:	https://reviews.freebsd.org/D33385

(cherry picked from commit e522571b79)
2022-02-14 19:29:59 +00:00
Edward Tomasz Napierala
3efd090e43 development(7): Use a more common architecture for examples
(cherry picked from commit e03813c3e1)
2022-02-14 19:29:29 +00:00
Edward Tomasz Napierala
45fb3e74d2 procfs: Document as deprecated
Update the procfs(5) man page to clarify that it's deprecated.

Reviewed By:	bcr, 0mp (earlier version)
Sponsored By:	EPSRC
Differential Revision: https://reviews.freebsd.org/D22275

(cherry picked from commit 70774c637b)
2022-02-14 19:28:47 +00:00
Edward Tomasz Napierala
e0effca499 Install the linux(4) man page also for aarch64
Previously it was only installed on i386 and amd64.

Reviewed By:	emaste, gbe (manpages)
Sponsored By:	EPSRC
Differential Revision: https://reviews.freebsd.org/D30546

(cherry picked from commit dd869341b1)
2022-02-14 00:06:39 +00:00
David E. O'Brien
1d3faa4dcb Document when zfree(9) was added to FreeBSD.
(cherry picked from commit 74ca6a22f9)
2022-02-16 20:12:18 -08:00
Ed Maste
1fa9903bee vt.4: clarify that a KMS driver switches to graphics mode
PR:		261909
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 004b0aa869)
2022-02-16 20:03:53 -05:00