Commit Graph

271146 Commits

Author SHA1 Message Date
mjg
15a370501f acpica: clean up empty lines in .c and .h files 2020-09-01 21:32:41 +00:00
mjg
bdd3a637a4 aacraid: clean up empty lines in .c and .h files 2020-09-01 21:32:25 +00:00
mjg
0d822f29e9 aac: clean up empty lines in .c and .h files 2020-09-01 21:32:07 +00:00
mjg
03c216ce76 twe: clean up empty lines in .c and .h files 2020-09-01 21:31:50 +00:00
mjg
a67a9777c6 tws: clean up empty lines in .c and .h files 2020-09-01 21:31:38 +00:00
mjg
078e980aac virtio: clean up empty lines in .c and .h files 2020-09-01 21:31:26 +00:00
mjg
c80579cfd8 iscsi: clean up empty lines in .c and .h files 2020-09-01 21:30:22 +00:00
mjg
dd9dd26f1f vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
mjg
e3ca1efbba syscons: clean up empty lines in .c and .h files 2020-09-01 21:29:44 +00:00
mjg
00fb68ae4d twa: clean up empty lines in .c and .h files 2020-09-01 21:29:23 +00:00
mjg
6133f7fdc7 sfxge: clean up empty lines in .c and .h files 2020-09-01 21:29:01 +00:00
mjg
5fe39035a5 sound: clean up empty lines in .c and .h files 2020-09-01 21:27:34 +00:00
mjg
b003d9cc8f usb: clean up empty lines in .c and .h files 2020-09-01 21:26:44 +00:00
mjg
fa8016f931 security: clean up empty lines in .c and .h files 2020-09-01 21:26:00 +00:00
mjg
eb0c2bedb5 nfs: clean up empty lines in .c and .h files 2020-09-01 21:25:39 +00:00
mjg
e8079a97f7 libkern: clean up empty lines in .c and .h files 2020-09-01 21:25:23 +00:00
mjg
6265a56fda compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
mjg
1cc82773e5 x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
mjg
89db210baf ufs: clean up empty lines in .c and .h files 2020-09-01 21:23:00 +00:00
mjg
0b5477169b xen: clean up empty lines in .c and .h files 2020-09-01 21:21:55 +00:00
mjg
00149c9fa6 mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
mjg
26d17af5f4 riscv: clean up empty lines in .c and .h files 2020-09-01 21:21:03 +00:00
mjg
b90e8540df vm: clean up empty lines in .c and .h files 2020-09-01 21:20:45 +00:00
mjg
c9fc22b6b7 powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mjg
8c3488b27a i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
mjg
e490a9e1b8 net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
mjg
db86a2fd1c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
mjg
ce768ede11 arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
mjg
991d7f4bd4 arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
mjg
40357c09c1 amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
jmg
279e22705c add Xr to device_get_sysctl(9) to make this easier to find 2020-09-01 20:42:48 +00:00
vmaffione
9bece2dae5 iflib: leave only 1 receive descriptor unused
The pidx argument of isc_rxd_flush() indicates which is the last valid
receive descriptor to be used by the NIC. However, current code has
multiple issues:
  - Intel drivers write pidx to their RDT register, which means that
    NICs will only use the descriptors up to pidx-1 (modulo ring size N),
    and won't actually use the one pointed by pidx. This does not break
    reception, but it is anyway confusing and suboptimal (the NIC will
    actually see only N-2 descriptors as available, rather than N-1).
    Other drivers (if_vmx, if_bnxt, if_mgb) adhere to this semantic).
  - The semantic used by Intel (RDT is one descriptor past the last
     valid one) is used by most (if not all) NICs, and it is also used
     on the TX side (also in iflib). Since iflib is not currently
     using this semantic for RX, it must decrement fl->ifl_pidx
     (modulo N) before calling isc_rxd_flush(), and then the
     per-driver callback implementation must increment the index
     again (to match the real semantic). This is confusing and suboptimal.
  -  The iflib refill function is also called at initialization.
     However, in case the ring size is smaller than 128 (e.g. if_mgb),
     the refill function will actually prepare all the receive
     descriptors (N), without leaving one unused, as most of NICs assume
     (e.g. to avoid RDT to overrun RDH). I can speculate that the code
     looks like this right now because this issue showed up during
     testing (e.g. with if_mgb), and it was easy to workaround by
     decrementing pidx before isc_rxd_flush().

The goal of this change is to simplify the code (removing a bunch
of instructions from the RX fast path), and to make the semantic of
isc_rxd_flush() consistent across drivers. To achieve this, we:
  - change the semantics of the pidx argument to the usual one (that
    is the index one past the last valid one), so that both iflib and
    drivers avoid the decrement/increment dance.
  - fix the initialization code to prepare at most N-1 descriptors.

Reviewed by:	markj
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D26191
2020-09-01 20:41:47 +00:00
markj
4e2f0f58ca qlxgb: Initialize if_mtu before setting max_frame_size.
Previously we were relying on ether_ifattach() to set if_mtu, but
max_frame_size is initialized earlier.  This fixes a regression
introduced by r250375.

PR:		249050
Submitted by:	Christian Vallières <novacrash_@hotmail.com>
MFC after:	3 days
2020-09-01 20:13:50 +00:00
ian
52a2c0f878 Document the fact that you must set an i2c slave address as well as the
upstream iicbus to configure this device using hints.
2020-09-01 19:06:08 +00:00
freqlabs
93d0fbd6ea Ensure zstreamdump subdir can be visited
Reported by:	Thomas Laus
Sponsored by:	iXsystems, Inc.
2020-09-01 19:02:07 +00:00
chs
47364bc18e Move all of the error prints in readsb() from stderr to stdout.
The only output from fsck that should go to stderr is the usage message.
if setup() fails then exit with EEXIT rather than 0.

Reviewed by:	mckusick
Sponsored by:	Netflix
2020-09-01 18:50:26 +00:00
jhb
ab81f8bd1b Fix a buffer overrun.
getln() returns 'len' valid characters.  line[len] is out of bounds.

Reported by:	CHERI
Reviewed by:	brooks
Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D26197
2020-09-01 16:20:42 +00:00
mw
772970290e Introduce the SDHCI driver for NXP QorIQ Layerscape SoCs
Implement support for an eSDHC controller found in NXP QorIQ Layerscape SoCs.

This driver has been tested with NXP LS1046A and LX2160A (Honeycomb board),
which is incompatible with the existing sdhci_fsl driver (aiming at older
chips from this family). As such, it is not intended as replacement for
the old driver, but rather serves as an improved alternative for SoCs that
support it.
It comes with support for both PIO and Single DMA modes and samples the
clock from the extres clk API.

Submitted by: Artur Rojek <ar@semihalf.com>
Reviewed by: manu, mmel, kibab
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D26153
2020-09-01 16:17:21 +00:00
imp
f669cd40c8 Bump date for r365052 2020-09-01 16:13:09 +00:00
imp
3bb6b78541 Have script accept and ignore -e for Linux compat
In the util-linux version of script, it will always exit with succes.
Except when run with -e, in which case it will have the exit value of
the child. BSD Script already uses the child's exit value for its exit
value. Some config and other helper scripts depend on being able to
specify -e. Accept it for compatibility since we'll already to the
right thing, but otherwise we ignore it.
2020-09-01 16:11:23 +00:00
vangyzen
7d29f0b560 pmc: Fix freed internal location read
Coverity detected this error.  The fix duplicates the assignment on line 171.

Submitted by:	bret_ketchum@dell.com
Reported by:	Coverity
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D26227
2020-09-01 15:52:18 +00:00
takawata
50cb4f0563 Add Cannon Point PCH Thermal Controller Device ID.
PR:	249047
Reported by: Dries Michiels <driesm.michiels at gmail.com>
--This line, and those below, will be ignored--
> Description of fields to fill in above:                     76 columns --|
> PR:                       If and which Problem Report is related.
> Submitted by:             If someone else sent in the change.
> Reported by:              If someone else reported the issue.
> Reviewed by:              If someone else reviewed your modification.
> Approved by:              If you needed approval for this commit.
> Obtained from:            If the change is from a third party.
> MFC after:                N [day[s]|week[s]|month[s]].  Request a reminder email.
> MFH:                      Ports tree branch name.  Request approval for merge.
> Relnotes:                 Set to 'yes' for mention in release notes.
> Security:                 Vulnerability reference (one per line) or description.
> Sponsored by:             If the change was sponsored by an organization (each collaborator).
> Differential Revision:    https://reviews.freebsd.org/D### (*full* phabric URL needed).
> Empty fields above will be automatically removed.

M    pchtherm.c
2020-09-01 15:33:57 +00:00
emaste
c41ccb18c6 release.7: update for current context
It's no longer unusual to be able to build a release with a single
command, so drop "actually" that hints at a surprise.  Also just use
"network install directory" instead of referencing FTP; it's more
likely to be HTTP now.

Reviewed by:	gjb
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26260
2020-09-01 15:30:40 +00:00
markj
4031fa7f1e Tighten frame pointer checking in DTrace's amd64 stack unwinder.
Avoid assuming that the kernel was compiled with
-fno-omit-frame-pointer.

MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:15:44 +00:00
markj
1c59d2ad22 Correct the D definition for EINTEGRITY.
MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:15:22 +00:00
markj
c4107c47e0 pw: Handle errors from ftell() when removing records from /etc/opiekeys.
Reported by:	Coverity
MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:15:09 +00:00
markj
cbc7ae4ca9 pw: Fix a resource leak.
Reported by:	Coverity
MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:14:51 +00:00
markj
b1cd6a8989 pw: Remove unnecessary errp checks.
The caller-supplied pointer is unconditionally dereferenced at the
beginning of the function, so there is no point in comparing it with
NULL thereafter.

Reported by:	Coverity
MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:14:26 +00:00
markj
d4d3dc4f62 pw: Fix terminal handling when setting a group password.
Reported by:	Coverity
MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
2020-09-01 15:14:13 +00:00
trasz
334bd53047 Make sure not to pass NULL to strtoul(3). The values come
from the kernel, but let's try to be on the safe side.

Reviewed by:	mav
MFC after:	2 weeks
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D26246
2020-09-01 14:58:57 +00:00