Commit graph

21238 commits

Author SHA1 Message Date
Dmitry Chagin
82fa7c3b83 linux(4): Add compat.linux32.emulate_i386 knob.
Historically 32-bit Linuxulator under amd64 emulated the real i386
behavior. Since 3d8dd983 the old i386 Linux world can't be used under
amd64 Linuxulator as it don't know anything about amd64 machine (which
is returned now by newuname() syscall). So, add a knob to allow to swith
the behavior and use i386 Linux binaries on amd64.
Set knob to the new behavior as I think this is common to the modern
Linux distros.

Reviewed by:		Pau Amma (doc), emaste
Differential revision:	https://reviews.freebsd.org/D34708
MFC after:		2 weeks

(cherry picked from commit d5dc757e84)
2022-06-17 22:33:47 +03:00
Dmitry Chagin
5833253dad linux(4): Get rid of Linuxulator kernel build options.
Stop confusing people, retire COMPAT_LINUX and COMPAT_LINUX32 kernel
build options. Since we have 32 and 64 bit Linux emulators, we can't build both
emulators together into the kernel. I don't think it matters, Linux emulation
depends on loadable modules (via rc).

Cut LINPROCFS and LINSYSFS for consistency.

PR:                     215061
Reviewed by:            bcr (manpages), trasz
Differential Revision:  https://reviews.freebsd.org/D30751
MFC after:              2 weeks

(cherry picked from commit e013e36939)
2022-06-17 22:30:22 +03:00
Ed Maste
f918bec0d4 syscons: note incompatibility with UEFI
PR:		264226
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 20b2b464eb)
2022-06-16 08:49:54 -04:00
Ed Maste
8fc8553600 Regen src.conf.5 for recent MFCs 2022-06-13 20:34:43 -04:00
PauAmma
6586828a23 firewire.4: Fix typo
While there, replace dead wiki URL with dev handbook one and fix markup.

Reviewed by:	gbe
Differential Revision:	https://reviews.freebsd.org/D35252

(cherry picked from commit eabfcbbfe1)
2022-06-10 12:08:02 -04:00
Fernando Apesteguía
137b82499a build(7): fix references to svn(1) and svnlite(1)
Replace them with references to Git.

PR:	254937
Reported by:	m.bueker@berlin.de
Approved by:	0mp (mentor)
Differential Revision:	https://reviews.freebsd.org/D29949

(cherry picked from commit e444a4c677)
2022-06-10 12:20:33 -03:00
Gordon Bergling
5c2b244c40 make.conf: Fix a typo in the example file
- s/architechture/architecture/

(cherry picked from commit 6300e58ab2)
2022-06-10 14:30:44 +02:00
Bjoern A. Zeeb
1631e83489 iwlwifi: Update man pages with card list
Add list of supported names to iwlwifi.4 and an extended list with
PCI IDs and firmware prefix to iwlwififw.4.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	imp
Differential Revision: https://reviews.freebsd.org/D35227

(cherry picked from commit f553999651)
2022-06-08 16:11:18 +00:00
Bjoern A. Zeeb
4ecb23602e rtw88: update man page for loader tunable for >4GB of main memory
Mention the loader tunable from 6a50157090
that needs to be set for system with more than 4GB of physical memory.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 0881eb9665)
2022-06-03 15:51:52 +00:00
Bjoern A. Zeeb
b7d358ded2 rtw88: add man pages and hook up to build
Add man pages for rtw88 and rtw88fw.  Install a copy of the firmware
license file and hook up the driver and firmware modules to the build.

Sponsored by:	The FreeBSD Foundation
Relnotes:	yes

(cherry picked from commit 20eeed6844)
2022-06-03 15:51:16 +00:00
Vladimir Kondratyev
2c9bb9c618 LinuxKPI: Implement kthread_worker related functions
Kthread worker is a single thread workqueue which can be used in cases
where specific kthread association is necessary, for example, when it
should have RT priority or be assigned to certain cgroup.

This change implements Linux v4.9 interface which mostly hides kthread
internals from users thus allowing to use ordinary taskqueue(9) KPI.
As kthread worker prohibits enqueueing of already pending or canceling
tasks some minimal changes to taskqueue(9) were done.
taskqueue_enqueue_flags() was added to taskqueue KPI which accepts extra
flags parameter. It contains one or more of the following flags:

TASKQUEUE_FAIL_IF_PENDING - taskqueue_enqueue_flags() fails if the task
    is already scheduled to execution. EEXIST is returned and the
    ta_pending counter value remains unchanged.
TASKQUEUE_FAIL_IF_CANCELING - taskqueue_enqueue_flags() fails if the
    task is in the canceling state and ECANCELED is returned.

Required by:	drm-kmod 5.10

MFC after:	1 week
Reviewed by:	hselasky, Pau Amma (docs)
Differential Revision:	https://reviews.freebsd.org/D35051

(cherry picked from commit b6f87b78b5)
2022-06-02 00:50:14 +03:00
Cy Schubert
1d34de61de src.libnames: Replace redundant += with =
The += for unique assignments is equivalent to =. Make these confusing
assignments simply assignments.

Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D35242

(cherry picked from commit e343ebbfbe)
2022-05-25 20:42:53 -07:00
Ed Maste
936d52c10e Hide -fuse-ld= not supported message for non-build targets
In some build configurations a warning about (an absolute path for)
-fuse-ld= not being supported by GCC was emitted during cleandir or
other non-build make targets.

For these non-build targets COMPILER_TYPE is set to "none" but we
treated the .else case for COMPILER_TYPE==clang as implying gcc.
Check instead for COMPILER_TYPE==gcc.

PR:		263913
Reported by:	pstef
Reviewed by:	pstef
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 4143e4fb19)
2022-05-25 20:28:21 -04:00
John Baldwin
5f684c7cb8 Deprecate the 'devclass' argument from *DRIVER_MODULE() macros.
This argument is useless for the vast majority of drivers.  For now,
use __VA_ARGS__ wrapper macros so that that the *DRIVER_MODULE()
macros accept both the old version (with a devclass) and the new
version (which omits the argument and stores NULL in the
driver_module_data structure).  This provides an API compatiblity
shim that can be merged to older stable branches.

Once all drivers relevant to 14.0 (both in and out of tree) have been
updated, the API compat shims can be dropped.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D34963

(cherry picked from commit 2a99dd30df)
(cherry picked from commit 0fdf5bc531)
(cherry picked from commit b7d4192598)
2022-05-17 14:17:18 -07:00
Ed Maste
d7620b6ec9 Add deprecation notices to ISA sound cards
ISA sound cards (and ISA itself) are long obsolete.  NYCBUG dmesgd has
no entries for any of these devices after 2005.

Mail to -current and -stable revealed some nostalgic interest, but
no offers to test or requests to pospone the deprecation.

Add deprecation notices to device attach routines and man pages for:

snd_ad1816  Analog Devices AD1816 SoundPort
snd_ess     Ensoniq ESS
snd_gusc    Gravis UltraSound (MAX and newer AFAIK)
snd_mss     Microsoft Sound System
snd_sbc     Creative Sound Blaster

Reviewed by:	cy, mav
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34604

(cherry picked from commit e39ec8933b)
2022-05-16 09:51:23 -04:00
Eugene Grosbein
5c332527d1 ng_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp
New sysctl allows to mark transmitted PPPoE LCP Control
ethernet frames with needed 3-bit Priority Code Point (PCP) value.
Confirming driver like if_vlan(4) uses the value to fill
IEEE 802.1p class of service field.

This is similar to Cisco IOS "control-packets vlan cos priority"
command.

It helps to avoid premature disconnection of user sessions
due to control frame drops (LCP Echo etc.)
if network infrastructure has a botteleck at a switch
or the xdsl DSLAM.

See also:
https://sourceforge.net/p/mpd/discussion/44692/thread/c7abe70e3a/

Tested by:	Klaus Fokuhl at SourceForge

(cherry picked from commit 2e547442ab)
(cherry picked from commit 28903f396a)
2022-05-16 09:31:56 +07:00
Henri Hennebert
d6a32773ea rtsx: Number of tweaks for RTS5260.
MFC after:	2 weeks

(cherry picked from commit 8290c14420)
2022-05-10 20:56:53 -04:00
John Baldwin
05b766ab84 Disable -Wreturn-type on GCC.
GCC is more pedantic than clang about warning when a function doesn't
handle undefined enum values (see GCC bug 87950).  Clang's warning
gives a more pragmatic coverage and should find any real bugs, so
disable the warning for GCC rather than adding __unreachable
annotations to appease GCC.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D34147

(cherry picked from commit 2f6a842484)
2022-05-10 17:11:44 -07:00
John Baldwin
5cf638d004 Disable -Woverflow errors for i386 for GCC 9.
GCC 9 warns about floating point constants overflowing for i386.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D26201

(cherry picked from commit 93d6fa53c9)
2022-05-10 14:01:02 -07:00
Alex Richardson
cbbdacf4dc Add missing dep patterns for .pieo
While adding sanitizer support, I noticed that all other extensions were
handled but .pieo was missing.

Reviewed By:	emaste, imp
MFC after:	1 week

Differential Revision: https://reviews.freebsd.org/D31040

(cherry picked from commit 2d78130185)
2022-05-07 12:57:07 +01:00
Ed Maste
2103ecdad8 Update UNIFIED_OBJDIR descriptions
src.conf(5) previously stated they would be removed before FreeBSD 12.0,
but that did not happen.  Change it to "a future version of FreeBSD."

Also pick up LOADER_KBOOT change (enabled on x86) in src.conf regen.

Reported by:	jhb
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit b7f53cdcf8)
2022-05-06 21:11:37 -04:00
Konstantin Belousov
3bf38618ee unr(9): allow to avoid internal locking
(cherry picked from commit e59b940dcb)
2022-05-05 01:33:05 +03:00
Ed Maste
94f2607bc9 Add a number of five letter words to the dictionary
(And a four letter root of one of them.)

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D34299

(cherry picked from commit e49b6ead41)
2022-05-03 14:20:44 -04:00
Mark Johnston
c9b2150669 man3: Add links for some bitstring(3) routines
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 15a28c0020)
2022-05-02 09:31:08 -04:00
John Baldwin
d826802c44 bsd.compat.mk: A few cosmetic fixes.
- Add a missing ')' to a warning.

- Consistently use {} when expanding variables.

- Remove a spurious blank line.

Reviewed by:	imp, emaste
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D34172

(cherry picked from commit ffe74ab77f)
2022-04-29 16:07:24 -07:00
John Baldwin
fdc72c5330 Bump Dd for crypto_clonereq.
Fixes:		74d3f1b63d OCF: Add crypto_clonereq().
(cherry picked from commit 822fa6758b)
2022-04-29 15:51:31 -07:00
John Baldwin
6a13905b5a OCF: Add crypto_clonereq().
This function clones an existing crypto request, but associates the
new request with a specified session.  The intended use case is for
drivers to be able to fall back to software by cloning a request and
dispatch it to an internally allocated software session.

Reviewed by:	markj
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D33607

(cherry picked from commit 74d3f1b63d)
2022-04-29 15:41:27 -07:00
John Baldwin
ec79933e61 Add an internal libiscsiutil library.
Move some of the code duplicated between ctld(8) and iscsid(8) into a
libiscsiutil library.

Sharing the low-level PDU code did require having a
'struct connection' base class with a method table to permit separate
initiator vs target behavior (e.g. in handling proxy PDUs).

Reviewed by:	mav, emaste
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D33544

(cherry picked from commit 6378393308)
2022-04-29 14:13:00 -07:00
Ed Maste
364a69a529 capsicum: briefly describe capabilities in man page
Provide a very brief introduction to capabilities, using a couple of
sentences from David Chisnall's mailing list response[1] to a question
about Linux capabilities and Capsicum.

Mailing list subject (in case the archive URL changes) was
Re: Linux capabilities to Capsicum

[1] https://lists.freebsd.org/archives/freebsd-hackers/2022-April/001032.html

Reviewed by:	oshogbo
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34945

(cherry picked from commit 1f568792c6)
2022-04-25 20:54:38 -04:00
Gordon Bergling
9d62e335f7 tslog(4): Fix a typo in the manual page
- s/schedulling/scheduling/

(cherry picked from commit cebd29c950)
2022-04-23 08:55:04 +02:00
Mitchell Horne
678b669673 mem(4): Improve ioctl section formatting
Add the missing .El which fixes the indentation of the memory range
definitions and operation. Add subsection headings to further clarify
this section. Do the same for the RETURN VALUES section, and mention
explicitly that MEM_EXTRACT_PADDR always returns zero.

Reviewed by:	markj, 0mp, Pau Amma <pauamma@gundo.com>
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D34574

(cherry picked from commit 071b78ce8f)
2022-04-11 11:04:08 -03:00
Mateusz Piotrowski
014485c72f cpufreq.4: Use Xr for drivers with manuals
While here, do not use Pa for drivers.

MFC after:	1 week

(cherry picked from commit 963a032b8d)
2022-04-11 12:15:56 +02:00
Mateusz Piotrowski
08f852a3c6 Cross-reference cd(4) and cd9660(5)
MFC after:	3 days

(cherry picked from commit 70068a3e1d)
2022-04-11 12:15:56 +02:00
Gordon Bergling
fdf79fe5dc tty(4): Add a HISTORY section to the manual page
Note that a console typewriter device /dev/tty
and asynchronous communication interfaces /dev/tty[0-5]
first appeared in Version 1 AT&T UNIX.

Obtained from:	OpenBSD

(cherry picked from commit b988af5b43)
2022-04-10 07:52:37 +02:00
Gordon Bergling
d1ab59795b crypto(9): Fix a typo in the manual page
- s/faciliate/facilitate/

(cherry picked from commit 8e8d2a722e)
2022-04-09 08:11:05 +02:00
Gordon Bergling
ea163ea87c usd: Fix two typos
- s/commmand/command/

(cherry picked from commit f223450b5d)
2022-04-09 08:09:53 +02:00
Gordon Bergling
f28f9eb62a htu21(4): Correct a typo in the manual page
- s/measurment/measurement/

(cherry picked from commit 0d40cd1524)
2022-04-09 08:09:39 +02:00
Gordon Bergling
fc992713ef own(9): Fix a typo in a function name in the manual page
- s/own_commmand_wait/own_command_wait/

(cherry picked from commit a95850f10a)
2022-04-09 08:05:26 +02:00
Gordon Bergling
26e9d30bdd pass(4): Fix a typo in the manual page
- s/modfied/modified/

(cherry picked from commit 3dcfd6c266)
2022-04-09 07:48:06 +02:00
Ed Maste
802da293bd smbfs: caution against use in the manpage
It supports only the obsolete SMBv1 protocol, is known to be buggy, and
likely has security vulnerabilities.  It will either be updated or
removed in the future, but for now at least describe the current state
in the man page.

PR:		263043
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 7c140ef034)
2022-04-08 20:55:30 -04:00
Cy Schubert
79d3b2813a share/mk heimdal: Remove unnecessary trailing backslash
Remove the trailing backslash from the last list item. This is a NOP and
never bothered anything because the next line was a blank line. Remove
it for correctness sake.

(cherry picked from commit db2d56ca01)
2022-04-07 14:18:04 -07:00
Mateusz Piotrowski
25acd1d3d6 locking.9: Reference lockstat(1) from this manual page
MFC after:	3 days

(cherry picked from commit fd126a732c)
2022-04-04 19:49:55 +02:00
Mateusz Piotrowski
e4ed6079d7 uefi.8: Document i386 and riscv EFI bootloader names
Based on tools/boot/install-boot.sh.

MFC after:	2 weeks

(cherry picked from commit 12912d0e0c)
2022-04-04 19:49:55 +02:00
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