Commit Graph

271156 Commits

Author SHA1 Message Date
mjg
7a44adc7a4 al_eth: clean up empty lines in .c and .h files 2020-09-01 21:37:35 +00:00
mjg
5577a9b544 aic7xxx: clean up empty lines in .c and .h files 2020-09-01 21:37:14 +00:00
mjg
d20525e5cd ahci: clean up empty lines in .c and .h files 2020-09-01 21:36:40 +00:00
mjg
c5fb8b1d3d agp: clean up empty lines in .c and .h files 2020-09-01 21:35:39 +00:00
mjg
e1d91fa0c2 if_age: clean up empty lines in .c and .h files 2020-09-01 21:35:14 +00:00
mjg
5e2a4c14bc if_ae: clean up empty lines in .c and .h files 2020-09-01 21:34:58 +00:00
mjg
7ec44e669f adlink: clean up empty lines in .c and .h files 2020-09-01 21:34:41 +00:00
mjg
a1682a160c adb: clean up empty lines in .c and .h files 2020-09-01 21:34:24 +00:00
mjg
93ea91127f acpi_support: clean up empty lines in .c and .h files 2020-09-01 21:34:04 +00:00
mjg
c703d34190 rtwn: clean up empty lines in .c and .h files 2020-09-01 21:33:31 +00:00
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