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

265623 Commits

Author SHA1 Message Date
Mark Johnston
1ee912e80e build.7: Document LOCAL_MODULES and LOCAL_MODULES_DIR
Reviewed by:	0mp, imp
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit e7a13643b1)
2021-08-17 09:56:13 -04:00
Kevin Bowling
15b57cbfde e1000: rctl/srrctl buffer size init, rfctl fix
Simplify the setup of srrctl.BSIZEPKT on igb class NICs.
Improve the setup of rctl.BSIZE on lem and em class NICs.
Don't try to touch rfctl on lem class NICs.
Manipulate rctl.BSEX correctly on lem and em class NICs.

Approved by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31457

(cherry picked from commit 12e8addd32)
2021-08-16 18:35:04 -07:00
Marius Strobl
5dd1d72e5b e1000: fix build after b761f26492 (orig c1655b0f)
(cherry picked from commit c262e8e87e)
2021-08-16 18:31:43 -07:00
Marius Strobl
b761f26492 e1000: consistently use the hw variables
It's rather confusing when adapter->hw and hw are mixed and matched
within a particular function.
Some of this was missed in cd1cf2fc1d
and r353778 respectively.

(cherry picked from commit c1655b0f89)
2021-08-16 18:29:19 -07:00
Emmanuel Vadot
e6a32ddf3f pkgbase: Add nfsiod to the FreeBSD-nfs package
Missed in 081fb64492

(cherry picked from commit e06b8f1128)
2021-08-16 18:15:47 +02:00
Mina Igalic
1516cd8735 pkgbase: make only vital packages vital, not their sub-packages
make "vital" a replaceable, which defaults to "false" and only set it for
the main clib, utilities and runtime packages, not their sub-packages

PR: 254174
Differential Revision:	https://reviews.freebsd.org/D29224

(cherry picked from commit 1c1ff79795)
2021-08-16 18:15:46 +02:00
Emmanuel Vadot
e99783747e pkgbase: Add an src.conf option for splitting man pages
Man pages can be big in total, add an options to split man pages
in -man packages so we produce smaller packages.
This is useful for small jails or mfsroot produced of pkgbase.
The option is off by default.

Reviewed by:	bapt, Mina Galić <me@igalic.co>
Differential Revision:	https://reviews.freebsd.org/D29169
MFC after:      2 weeks

(cherry picked from commit c7e6cb9e08)
2021-08-16 18:13:51 +02:00
Emmanuel Vadot
920a66c0a3 arm64: Only check for freebsd,dts-version if we are booted in FDT mode.
Reported by:	  andrew

(cherry picked from commit 6bcba8dac9)
2021-08-16 18:07:54 +02:00
Emmanuel Vadot
5c010b3aa7 arm64: Check dtb version against the one we're expecting to find
Do for arm64 what was done for armv7 in e63faa9ba8

(cherry picked from commit 63f344024a)
2021-08-16 18:07:53 +02:00
Mark Johnston
29d2556181 vfs: Avoid a comparison with an uninitialized field in setutimes()
Some filesystems, e.g., devfs, do not populate va_birthtime in their
GETATTR implementations.  To handle this, make sure that va_birthtime is
initialized to the quasi-standard value of { VNOVAL, 0 } before calling
VOP_GETATTR.

Reported by:	KMSAN
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit eca9ac5a32)
2021-08-16 09:01:49 -04:00
Mark Johnston
3c785b12e0 in6: Enter the net epoch in in6_tmpaddrtimer()
We need to do so to safely traverse the ifnet list.

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 8ee0826f75)
2021-08-16 09:01:39 -04:00
Mark Johnston
ed03d05824 amd64: Fix output operand specs for the stmxcsr and vmread intrinsics
This does not appear to affect code generation, at least with the
default toolchain.

Noticed because incorrect output specifications lead to false positives
from KMSAN, as the instrumentation uses them to update shadow state for
output operands.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit e54ae8258d)
2021-08-16 09:01:29 -04:00
Mark Johnston
034eea1ee5 vmm: Make iommu ops tables const
While here, use designated initializers and rename some AMD iommu method
implementations to match the corresponding op names.  No functional
change intended.

Reviewed by:	grehan
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 41335c6b7f)
2021-08-16 09:01:20 -04:00
Mark Johnston
75c0e1a8e0 nd6: Mark several callouts as MPSAFE
The use of Giant here is vestigal and does not provide any useful
synchronization.  Furthermore, non-MPSAFE callouts can cause the
softclock threads to block waiting for long-running newbus operations to
complete.

Reported by:	mav
Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 663428ea17)
2021-08-16 09:01:11 -04:00
Konstantin Belousov
f8cb596152 nfs_write(): do not call ncl_pager_setsize() after clearing TDP2_SBPAGES
(cherry picked from commit bd01a69f48)
2021-08-16 12:23:12 +03:00
Konstantin Belousov
e6ff640738 nfs client: block vnode_pager_setsize() calls from nfscl_loadattrcache in nfs_write
(cherry picked from commit aa8c1f8d84)
2021-08-16 12:23:12 +03:00
Mateusz Piotrowski
f1297ee645 bhyve.8: Fix mandoc -Tlint issues
While here, keep network backends section consistent with other
sections.

MFC after:	2 weeks

(cherry picked from commit 8d9fefe643)
2021-08-16 11:00:54 +02:00
Mateusz Piotrowski
a3dcec67d1 bhyve: Document the format for HD audio backends
- This change is done for consistency with other backend definitions.

MFC after:	2 weeks

(cherry picked from commit 061f37d280)
2021-08-16 11:00:38 +02:00
Mateusz Piotrowski
fe7ce1f3b8 bhyve.8: Improve AHCI backends documentation
- Document the backend format.

MFC after:	2 weeks

(cherry picked from commit d5fcc4b606)
2021-08-16 11:00:27 +02:00
Mateusz Piotrowski
a157ddbcca bhyve.8: Improve documentation of NVME backend
- Document the configuration format.
- Document two additional configuration options: eui64 and dsm.

MFC after:	2 weeks

(cherry picked from commit 6eff58acc7)
2021-08-16 11:00:20 +02:00
Mateusz Piotrowski
5f8dd688e0 bhyve.8: Improve framebuffer backends description
- Use appropriate mdoc macros
- Document that tcp= is a synonym to rfb= (tcp is used in the examples,
  but never mentioned)
- Clarify the IP address specification

MFC after:	2 weeks

(cherry picked from commit 8b97e97548)
2021-08-16 11:00:02 +02:00
Mateusz Piotrowski
34b945ccf6 bhyve.8: Clean up virtio console device backends description
MFC after:	2 weeks

(cherry picked from commit 3f4c771f64)
2021-08-16 10:59:48 +02:00
Mateusz Piotrowski
689d66d30a bhyve.8: Clean up TTY, boot ROM, and pass-through descriptions
MFC after:	2 weeks

(cherry picked from commit 2fda01a1b7)
2021-08-16 10:59:33 +02:00
Mateusz Piotrowski
5789e28b21 bhyve.8: Clean up 9P device backends section
MFC after:	2 weeks

(cherry picked from commit 2d00b57022)
2021-08-16 10:59:10 +02:00
Mateusz Piotrowski
78863cd50b bhyve.8: Clean up SCSI device backends section
MFC after:	2 weeks

(cherry picked from commit 7c5829c942)
2021-08-16 10:58:41 +02:00
Mateusz Piotrowski
c66d332730 bhyve.8: Clean up block storage device backends description
MFC after:	2 weeks

(cherry picked from commit 5232a35f1e)
2021-08-16 10:58:26 +02:00
Mateusz Piotrowski
63b55e8312 bhyve.8: Clean up network backends section
- Reformat the format lists, use appropriate mdoc macros for
  readability.
- Add a missing Oxford comma.

MFC after:	2 weeks

(cherry picked from commit 7fb2272981)
2021-08-16 10:57:50 +02:00
Mateusz Piotrowski
d314e35475 bhyve.8: Improve emulation description of the -s flag
- Set width of the list to the longest key word for readability.
- Separate descriptions of amd_hostbridge and hostbridge emulations.
  Also, wordsmith their descriptions for consistency with other entries.
- Use Cm instead of Li for command modifiers.
- Do not stylize AMD with Li, there's no need to do it.
- Mention COM3 and COM4 in the definition of lpc.
- Fix a typo in the definition of ahci-hd ("hard drive" instead of
  "hard-drive").

MFC after:	2 weeks

(cherry picked from commit 7014cb2393)
2021-08-16 10:57:12 +02:00
Mateusz Piotrowski
7dcc31c9b7 bhyve.8: Clean up the slot description of -s
Also, remove the macros of the nested list which contained slot,
emulation and conf. This decreases the indention of the -s description.
It was necessary to clean up the slot description.

MFC after:	2 weeks

(cherry picked from commit 234d8c470b)
2021-08-16 10:56:50 +02:00
Mateusz Piotrowski
f5329137c9 bhyve.8: Clean-up synopsis of -s
- Document "-s help" separately for readability.
- Use appropriate mdoc macros.

MFC after:	2 weeks

(cherry picked from commit 449f0e48e9)
2021-08-16 10:56:25 +02:00
Mateusz Piotrowski
b473a7a9e2 bhyve.8: Fix indention in the signals table
MFC after:	2 weeks

(cherry picked from commit 3357e9482f)
2021-08-16 10:56:10 +02:00
Mateusz Piotrowski
e08e2c7c18 bhyve.8: Clean up description of -r
There is no need to wrap those flags in Op macros.

MFC after:	2 weeks

(cherry picked from commit b24eea8c7a)
2021-08-16 10:55:56 +02:00
Mateusz Piotrowski
ff8c945e9a bhyve.8: Fix the synopsis of -p
Use appropriate mdoc macros.

MFC after:	2 weeks

(cherry picked from commit 90df54374f)
2021-08-16 10:55:36 +02:00
Mateusz Piotrowski
a6dca2ecb4 bhyve.8: Improve the description of the -m flag
- Stylize the synopsis with proper mdoc macros
- Do some wordsmithing on the description for consistency.

MFC after:	2 weeks

(cherry picked from commit 7e0cb3df68)
2021-08-16 10:29:50 +02:00
Mateusz Piotrowski
1103bc026f bhyve.8: Improve the description and synopsis of -l
- Describe "-l help" separately for readability.
- List all the supported comX devices explicitly
- Use Cm instead of Ar for command modifiers (i.e., literal values a
  user can specify as an argument to the command).
- Explain where to get more information about the possible values of the
  conf argument.

MFC after:	2 weeks

(cherry picked from commit 4c08b978b2)
2021-08-16 10:15:44 +02:00
Mateusz Piotrowski
da4c8aec04 bhyve.8: Sort the options in the OPTIONS section
No content change intended. Just moving the option descriptions around
to follow the order suggested by style(9).

MFC after:	2 weeks

(cherry picked from commit ccb1c87a6a)
2021-08-16 10:15:25 +02:00
Mateusz Piotrowski
12ad3e2b41 bhyve: Improve the option description in the usage message
- Sort options as suggested by style(9)
- Capitalize some words like CPU and HLT
- Add a missing description for the -G flag

MFC after:	2 weeks

(cherry picked from commit b6a572d03f)
2021-08-16 10:14:58 +02:00
Mateusz Piotrowski
661550f32b bhyve: Fix synopsis in the usage message
In particular:
- Sort short options to align with style(9)
- Add two missing flags: -G and -r
- Drop unnecessary angle brackets for consistency
- Rename the "vm" argument to vmname for consistency with the manual
  page

MFC after:	2 weeks

(cherry picked from commit 03c3e5e40d)
2021-08-16 10:13:49 +02:00
Mateusz Piotrowski
312b46348c bhyve.8: Make synopsis more readable
There is no need to squeeze all the possible options into one synopsis
entry. Let "-l help" and "-s help" be listed separately.

While here, keep -s and its arguments on the same line.

MFC after:	2 weeks

(cherry picked from commit bfe40b692d)
2021-08-16 10:13:23 +02:00
Gordon Bergling
71a74e2168 ipfw(8): Fix a typo in an error message
- s/suport/support/

(cherry picked from commit 809ad8170a)
2021-08-16 07:20:31 +02:00
Gordon Bergling
bb15117761 iscontrol(8): Fix a typo in a struct
- s/suport/support/

(cherry picked from commit 1e1fbf3b47)
2021-08-16 07:20:00 +02:00
Kevin Bowling
0d0726a769 e1000: Fix lem/em UDP rx csum offload
Rebase on igb code and unify lem/em implementations.

PR:		257642
Reported by:	Nick Reilly <nreilly@blackberry.com>
Reviewed by:	karels, emaste
Tested by:	Nick Reilly <nreilly@blackberry.com>
Approved by:	grehan
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31449

(cherry picked from commit 015075f383)
2021-08-15 17:56:45 -07:00
Vladimir Kondratyev
f2f52fbfdb psm(4): Probe Synaptics touchpad with active multiplexing mode enabled
if it is only multiplexed device. Also enable syncbit checks for them.
This fixes touchpad recognition on Panasonic Toughbook CF-MX4 laptop.

Reported by:	Tomasz "CeDeROM" CEDRO <tomek_AT_cedro_DOT_info>
PR:		253279
Differential revision:	https://reviews.freebsd.org/D28502

(cherry picked from commit f5998d20ed)
2021-08-16 03:47:18 +03:00
Vladimir Kondratyev
c3bccba63d iichid(4): Perform bus_teardown_intr/bus_setup_intr to disable interrupts
during suspend/resume cycle. Previously used bus_generic_suspend_intr and
bus_generic_resume_intr may cause interrupt storm because of missed
interrupt acknowledges caused by blocking of intr handler.

Reported by:	J.R. Oldroyd <jr_AT_opal_DOT_com>

(cherry picked from commit 82626fef62)
2021-08-16 03:46:18 +03:00
J.R. Oldroyd
094860333a iichid(4): disable interrupt on suspend
Commit message of the identical change in Linux driver says:
"When an I2C HID device is powered off during system sleep, as a result
of removing its power resources (by the ACPI core) the interrupt line
might go low as well.  This results inadvertent interrupts."

This change fixes suspend/resume on Asus S510UQ laptops.

While here add a couple of typo fixes as well as a slight change to the
iichid_attach() code to have the power_on flag set properly.

Submitted by:	J.R. Oldroyd <jr_AT_opal_DOT_com>
Reviewed by:	wulf

(cherry picked from commit 5236888db7)
2021-08-16 03:45:44 +03:00
Rick Macklem
181044a101 nfscl: Set correct lockowner for "oneopenown" mount option
For NFSv4.1/4.2, the client may use either an open, lock or
delegation stateid as the stateid argument for an I/O operation.
RFC 5661 defines an order of preference of delegation, then lock
and finally open stateid for the argument, although NFSv4.1/4.2
servers are expected to handle any stateid type.

For the "oneopenown" mount option, the lock owner was not being
correctly generated and, as such, the I/O operation would use an
open stateid, even when a lock stateid existed.  Although this
did not and should not affect an NFSv4.1/4.2 server's behaviour,
this patch makes the behaviour for "oneopenown" the same as when
the mount option is not specified.

Found during inspection of packet captures.  No failure during
testing against NFSv4.1/4.2 servers of the unpatched code occurred.

(cherry picked from commit 54ff3b3986)
2021-08-15 16:47:20 -07:00
Rick Macklem
a54cdded3d nfscl: Cache an open stateid for the "oneopenown" mount option
For NFSv4.1/4.2, if the "oneopenown" mount option is used,
there is, at most, only one open stateid for each NFS vnode.
When an open stateid for a file is acquired, set a pointer to
the open structure in the NFS vnode.  This pointer can be used to
acquire the open stateid without searching the open linked list
when the following is true:
- No delegations have been issued for the file.  Since delegations
  can outlive an NFS vnode for a file, use the global
  NFSMNTP_DELEGISSUED flag on the mount to determine this.
- No lock stateid has been issued for the file.  To determine
  this, a new NFS vnode flag called NMIGHTBELOCKED is set when a lock
  stateid is issued, which can then be tested.

When this open structure pointer can be used, it avoids the need to
acquire the NFSCLSTATELOCK() and searching the open structure list for
an open.  The NFSCLSTATELOCK() can be highly contended when there are
a lot of opens issued for the NFSv4.1/4.2 mount.

This patch only affects NFSv4.1/4.2 mounts when the "oneopenown"
mount option is used.

(cherry picked from commit efea1bc1fd)
2021-08-15 16:41:18 -07:00
Mateusz Piotrowski
5cdee2441e getprogname.3: Add an example
It shows the difference between getprogname() and argv[0].

Reviewed by:	yuripv
Approved by:	yuripv (src)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D27204

(cherry picked from commit 1ffdcdadf6)
2021-08-15 23:19:09 +02:00
Mateusz Piotrowski
c8faaf3787 ports.7: Document DEBUG_FLAGS and the process of debugging ports
Loosely based on https://wiki.freebsd.org/BenWoods/DebuggingPorts.

Reviewed by:	crees
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D27296

(cherry picked from commit d25f7d324a)
2021-08-15 23:02:08 +02:00
Mateusz Piotrowski
5a1da25da2 grep: Fix an incorrect description of the -C flag
It seems that the number of lines is no longer an optional parameter to
the -C flag. Document it accordingly both in the manual page and the
usage message.

Reviewed by:	yuripv
Approved by:	yuripv
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D28509

(cherry picked from commit be6b8b7a3a)
2021-08-15 23:01:01 +02:00