Commit graph

39749 commits

Author SHA1 Message Date
Hans Petter Selasky
3644b92099 xhci(4): Ensure the so-called data toggle gets properly reset.
Use the drop and enable endpoint context commands to force a reset of
the data toggle for USB 2.0 and USB 3.0 after:
 - clear endpoint halt command (when the driver wishes).
 - set config command (when the kernel or user-space wants).
 - set alternate setting command (only affected endpoints).

Some XHCI HW implementations may not allow the endpoint reset command when
the endpoint context is not in the halted state.

Reported by:		Juniper and Gary Jennejohn
Sponsored by:		NVIDIA Networking

(cherry picked from commit cda31e7349)
2022-04-27 21:07:13 +02:00
J.R. Oldroyd
429adef619 e1000: Try auto-negotiation for fixed 100 or 10 configuration
Currently if an e1000 interface is set to a fixed media configuration,
for gigabit, it will participate in auto-negotiation as required by
IEEE 802.3-2018 Clause 37. However, if set to fixed media configuration
for 100 or 10, it does NOT participate in auto-negotiation.

By my reading of Clauses 28 and 37, while auto-negotiation is optional
for 100 and 10, it is not prohibited and is, in fact, "highly
recommended".

This patch enables auto-negotiation for fixed 100 and 10 media
configuration, in a similar manner to that already performed for 1000.
I.e., the patch enables advertising of just the manually configured
settings with the goal of allowing the remote end to match the manually
configured settings if it has them available.

To be clear, this patch does NOT allow an em(4) interface that has been
manually configured with specific media settings to respond to
auto-negotiation by then configuring different parameters to those that
were manually configured. The intent of this patch is to fully comply
with the requirements of Clause 37, but for 100 and 10.

The need for this has arisen on an em(4) link where the other end is
under a different administrative control and is set to full
auto-negotiation. Due to the cable length GigE is not working well. It
is desired to set the em(4) end to "media 100baseTX mediatype
full-duplex" which does work when both ends are configured that way.
Currently, because em(4) does not participate in autoneg for this
setting, the remote defaults to half-duplex - i.e., there's a duplex
mismatch and things don't work. With this patch, em(4) would inform the
remote that it has only 100baseTX full, the remote would match that and
it will work.

Approved by:	erj
Differential Revision:	https://reviews.freebsd.org/D34449

(cherry picked from commit 9ab4dfce8f)
2022-04-27 10:35:28 -07:00
Kevin Bowling
479ef11e78 e1000: Update mc filter before RCTL flags
Update mc filter array before changing RCTL flags as in 5a3eb6207a

Approved by:	grehan

(cherry picked from commit 07ede75161)
2022-04-27 10:35:12 -07:00
Kevin Bowling
c4661f71cb ixgbe: Update mc filter before FCTRL flags
Update mc filter array before changing FCTRL flags, similar to 5a3eb6207a

Approved by:	grehan

(cherry picked from commit 395cc55d89)
2022-04-27 10:34:50 -07:00
John F. Carr
972ea9cc57 hpet: Allow a MMIO window smaller than 1K
Some new AMD systems provide a HPET MMIO region smaller than the 1KB
specified, and a correspondingly small number of timers.  Handle this in
the HPET driver rather than requiring a 1KB window.  This allows the
HPET driver to attach on such systems.

PR:		262638
Reviewed by:	markj

(cherry picked from commit 964bf2f902)
2022-04-27 09:33:56 -04:00
Misho
e54505277c if_bnxt: Allow bnxt interfaces to use vlans
When VLAN HW filter is disabled, the NIC does not pass any vlan tagged
traffic. Setting these flags on the device allows vlan tagged traffic to
pass.

PR:		236983
Tested by:	pi
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D34824

(cherry picked from commit 0c6a2fa33e)
2022-04-27 14:14:40 +01:00
Konstantin Belousov
6d23cd6674 syscons: silent 'set but unused' warning in some configurations
(cherry picked from commit d282bb42c3)
2022-04-27 03:26:04 +03:00
Kyle Evans
2f2eb7f118 psci: finish psci_present implementation
This was already declared in psci.h, but it was never defined/set.  Do
this now, so we can use it to decide if enable-method in /cpus FDT nodes
should be inspected later on.  While we're here, convert it to a
boolean.

Reviewed by:	andrew (slightly earlier version)

(cherry picked from commit 2218070b2c)
2022-04-24 19:06:23 -05:00
Gordon Bergling
a67ee9022f oce(4): Fix a typo in a sysctl description
- s/interupt/interrupt/

(cherry picked from commit 88cdccff3f)
2022-04-23 08:55:43 +02:00
Gordon Bergling
66fb0f33ff iicbus(4): Fix two typos in kernel error messages
- s/occured/occurred/

(cherry picked from commit 7fad3ed8e9)
2022-04-23 08:55:22 +02:00
Gordon Bergling
4a98047762 videomode: Fix a typo in an kernel message
- s/Seperate/Separate/

Obtained from:	NetBSD

(cherry picked from commit f45f90c5d6)
2022-04-22 09:28:10 +02:00
Tong Zhang
7a4790dc83 if_axgbe: properly release resource in error case
PR:		262899
Reviewed by:	markj

(cherry picked from commit 57f7a82fbb)
2022-04-20 10:14:39 -04:00
Mitchell Horne
d15267582d Remove 11.x ABI compat for kernel dump ioctls
This code was marked gone_in(13), so its time has passed.

The only consumer of this interface is dumpon(8). We do not maintain
strict backwards compatibility for this utility because a) it
can't/shouldn't be used from a jail or chroot and b) it is highly
specific interface unique to FreeBSD. The host's (presumably more
up-to-date) copy of dumpon(8) should be used to configure kernel dump
devices.

Reviewed by:	markj, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D34913

(cherry picked from commit 9c90bfcd31)
2022-04-18 11:51:40 -03:00
Ed Maste
3ec2816ad7 kbd: replace vestigial spl calls with Giant assertions
The keyboard driver was initially protected via spl* interrupt priority
calls but (as part of a comprehensive effort) migrated to use the Giant
lock (mutex).

The spl calls left behind became NOPs but they can be confusing as they
have no bearing on the actual mutual exclusion that is now present.

Remove them from kbd and add assertions that Giant is held.  markj notes
that there is conflation between the "bus topo" lock (which is Giant
under the hood) and Giant.  The assertions could either be addressed as
a small item along with bus topology locking work or they'll be removed
if kbd is decoupled from Giant.

PR:		206680
Reviewed by:	markj
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34645

(cherry picked from commit a0cd78bf2c)
2022-04-15 12:29:02 -04:00
Gordon Bergling
bcdea7f578 sym(4): Fix a typo in a source code comment
- s/explicitely/explicitly/

(cherry picked from commit 4e27f86733)
2022-04-14 08:17:03 +02:00
Gordon Bergling
0ebfaeaf4c al_eth: Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 6a734168cb)
2022-04-14 08:16:39 +02:00
Gordon Bergling
c6e8fa2a75 usb: Remove some double words in source code comments
- s/for for/for/

(cherry picked from commit 74c6ca6fbf)
2022-04-14 08:15:51 +02:00
Gordon Bergling
c082302919 usb(4): Fix two typos in source code comments
- s/negotation/negotiation/

(cherry picked from commit c8c1c23a8c)
2022-04-14 08:15:24 +02:00
Gordon Bergling
8c4ba30ad3 qlnxe(4): Fix a typo in a source code comment
- s/mulitple/multiple/

(cherry picked from commit 78fc83f096)
2022-04-14 08:14:53 +02:00
Gordon Bergling
b8e4c893d2 mpt(4): Fix a typo in a source code comment
- s/proccessor/processor/

(cherry picked from commit a37c6fcc46)
2022-04-14 08:13:05 +02:00
Gordon Bergling
3d96164764 cxgbe(4): Fix a typo in a source code comment
- s/simultaniously/simultaneously/

(cherry picked from commit 8a1b8cf4be)
2022-04-14 08:12:50 +02:00
Gordon Bergling
386a4025b0 bhnd(4): Remove some double words in source code comments
- s/be be/be/
- s/is is/is/

(cherry picked from commit 060f5c02e9)
2022-04-14 08:12:37 +02:00
Gordon Bergling
ecc10e7be9 usb(4): Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 2e09a4ac3b)
2022-04-14 08:12:05 +02:00
Gordon Bergling
72692ac18c nvme(4): Fix a typo in a source code comment
- s/is is/is/

(cherry picked from commit dfa01f4f98)
2022-04-14 08:11:16 +02:00
Gordon Bergling
49a2f75623 ips(4): Remove a double word in a few source code comments
- s/for for/for/

(cherry picked from commit bafe4cee3d)
2022-04-14 08:11:01 +02:00
Gordon Bergling
c2025adaea iwm(4): Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 586023f10d)
2022-04-14 08:10:48 +02:00
Gordon Bergling
b138cb1300 sfxge(4): Remove some double words in source code comments
- s/is is/is/

(cherry picked from commit d96159bff8)
2022-04-14 08:10:18 +02:00
Gordon Bergling
5688715acf neta: Fix a typo in a source code comment
- s/maintance/maintenance/

(cherry picked from commit 19ae05aad3)
2022-04-14 08:09:34 +02:00
Gordon Bergling
b0f708e6a6 iscsi(4): Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 10df4dc724)
2022-04-14 08:09:17 +02:00
Gordon Bergling
e5a76832b8 e1000: Fix a typos in source code comments
- s/negotation/negotiation/

(cherry picked from commit 237a666333)
2022-04-14 08:07:43 +02:00
Gordon Bergling
cdaa811889 sfxge(4): Remove a double word in a few source code comments
- s/for for/for/

(cherry picked from commit db739f1c19)
2022-04-14 08:07:28 +02:00
Gordon Bergling
dcc5066d86 bhnd(4): Remove a double word in a source code comment
- s/an an/an/

(cherry picked from commit 75e1650d7f)
2022-04-14 08:06:35 +02:00
Gordon Bergling
e5901f6cd3 random(3): Fix a typo in a source code comment
- s/psuedo/pseudo/

(cherry picked from commit 474df59def)
2022-04-14 08:06:21 +02:00
Gordon Bergling
46516b828b sound(4): Fix a typo in a source code comment
- s/Miscellanious/Miscellaneous/

(cherry picked from commit 35fbe62477)
2022-04-14 08:05:30 +02:00
Gordon Bergling
42878c3342 ice: Remove a double word in a source code comment
- s/is is/is/

(cherry picked from commit 8ece7189e0)
2022-04-14 08:04:01 +02:00
Gordon Bergling
a4e708ba9f ath(4): Remove a double word in a few source code comments
- s/for for/for/

(cherry picked from commit 6cff32b3c4)
2022-04-14 08:02:55 +02:00
Gordon Bergling
baf5805e3f ce(4): Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 5f93395f2f)
2022-04-14 08:02:16 +02:00
Gordon Bergling
fffdff33a3 ena(4): Remove a double word in a source code comment
- s/for for/for/

(cherry picked from commit 609e6f6d28)
2022-04-14 07:59:45 +02:00
Greg Lehey
d45fa9f424 Add devices and quirks for some Olympus cameras.
Reviewed by:	hps@
Fixes:	   	Problems attaching Olympus cameras.

(cherry picked from commit 31e076d70b)
2022-04-14 09:40:37 +10:00
Roger Pau Monné
590f093f74 xen/blkback: fix reconnection of backend
The hotplug script will be executed only once for each backend,
regardless of the frontend triggering reconnections. Fix blkback to
deal with the hotplug script being executed only once, so that
reconnections don't stall waiting for a hotplug script execution
that will never happen.

As a result of the fix move the initialization of dev_mode, dev_type
and dev_name to the watch callback, as they should be set only once
the first time the backend connects.

This fix is specially relevant for guests wanting to use UEFI OVMF
firmware, because OVMF will use Xen PV block devices and disconnect
afterwards, thus allowing them to be used by the guest OS. Without
this change the guest OS will stall waiting for the block backed to
attach.

Fixes: de0bad0001 ('blkback: add support for hotplug scripts')
Sponsored by: Citrix Systems R&D
(cherry picked from commit 4772e86beb)
2022-04-12 10:05:47 +02:00
Roger Pau Monné
499d685b02 xen/netback: do not attempt to connect in the Initialised state
Only attempt to fetch the configuration data and connect the shared
ring once the frontend has switched to the 'Connected' state. This
seems to be inline with what Linux netback does, and is required to
make newer versions of NetBSD netfront work, since NetBSD only
publishes the required configuration before switching to the Connected
state.

Sponsored by:	Citrix Systems R&D
(cherry picked from commit 4489124c04)
2022-04-12 10:05:47 +02:00
Ed Maste
5de017411c mpr: add \n in diagnostic printf
Diff reduction between mpr and mps.

Fixes:		e2997a03b7 ("Diagnostic buffer fixes for the mps(4)...")
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 27ac4281fd)
2022-04-10 22:45:07 -04:00
Gordon Bergling
7ae00874e5 isci(4): Remove a double word in an error message
- s/is is/is/

(cherry picked from commit 756220b515)
2022-04-10 07:52:56 +02:00
Gordon Bergling
3e7bfd1d6e neta: Fix a few common typos in a source code comment
- s/hander/handler/

(cherry picked from commit 6efd2e3e51)
2022-04-09 08:18:58 +02:00
Gordon Bergling
6fa8b6da9f safe(4): Fix a typo in a source code comment
- s/multple/multiple/

(cherry picked from commit 81d4309f9b)
2022-04-09 08:18:32 +02:00
Gordon Bergling
59e9d67a49 tsec: Fix a typo in a source code comment
- s/immediatly/immediately/

(cherry picked from commit 5c0b62dcfc)
2022-04-09 08:18:19 +02:00
Gordon Bergling
85d53cae7a smartpqi(4): Fix a typo in a source code comment
- s/commmand/command/

(cherry picked from commit 882d3b24fe)
2022-04-09 08:17:49 +02:00
Gordon Bergling
6adc601fe6 etherswitch(4): Fix a few common typos in source code comments
- s/accomodate/accommodate/

(cherry picked from commit 9097d2f5d1)
2022-04-09 08:17:04 +02:00
Gordon Bergling
be03f2f9d9 mrsas(4): Fix a typo in a source code comment
- s/alloction/allocation/

(cherry picked from commit 32c601b6cf)
2022-04-09 08:16:50 +02:00
Gordon Bergling
f7e1e51da2 bce(4): Fix a typo in a source code comment
- s/exisitng/existing/

(cherry picked from commit 24926c487b)
2022-04-09 08:15:38 +02:00