Commit graph

39726 commits

Author SHA1 Message Date
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
Gordon Bergling
97d464c17b iscsi(4): Fix a typo in a source code comment
- s/commmand/command/

(cherry picked from commit 01d74e5c7a)
2022-04-09 08:14:01 +02:00
Gordon Bergling
5e25365d2b cxgbe(4): Fix a typo in a source code comment
- s/commmand/command/

(cherry picked from commit 5ee87525a8)
2022-04-09 08:13:42 +02:00
Gordon Bergling
9c291363b2 mlx4en(4): Fix two in source code comments
- s/differnt/different/
- s/differntly/differently/

(cherry picked from commit 6039e38f93)
2022-04-09 08:13:30 +02:00
Gordon Bergling
2f44fa0b72 neta: Fix a typo in a source code comment
- s/immediatly/immediately/

(cherry picked from commit 592fcf6c45)
2022-04-09 08:12:40 +02:00
Gordon Bergling
77c2208c57 isci(4): Fix a typo in a source code comment
- s/differnt/different/

(cherry picked from commit 011e6016d0)
2022-04-09 08:12:16 +02:00
Gordon Bergling
a5d0b12786 ocs_fc(4): Fix a typo in a source code comment
- s/initialzied/initialized/

(cherry picked from commit cededdff9b)
2022-04-09 08:11:34 +02:00
Gordon Bergling
9ea1c20612 snd_csa(4): Fix a few common typos in source code comments
- s/hander/handler/

(cherry picked from commit dc8d33b368)
2022-04-09 08:10:52 +02:00
Gordon Bergling
80fc35f72c usb(3): Fix a few typos in source code comments
- s/paniced/panicked/

(cherry picked from commit 9094c3a71b)
2022-04-09 08:08:15 +02:00
Gordon Bergling
ed51829cbb jme(4): Fix a typo in a source code comment
- s/watchog/watchdog

(cherry picked from commit be83eecf5a)
2022-04-09 08:07:29 +02:00
Gordon Bergling
9be17b4676 isci(4): Fix a typo in a source code comment
- s/initialzied/initialized/

(cherry picked from commit b61c7c2dfb)
2022-04-09 08:07:17 +02:00
Gordon Bergling
377c2f3a45 bxe(4): Fix a typo in an error message
- s/intergers/integers/

(cherry picked from commit e443f2102e)
2022-04-09 08:07:05 +02:00
Gordon Bergling
4ff689d001 sound(4): Fix a typo in a source code comment
- s/immediatly/immediately/

(cherry picked from commit 24498b53ef)
2022-04-09 08:06:52 +02:00
Gordon Bergling
f72781aace jme(4): Fix a typo in a source code comment
- s/verion/version/

(cherry picked from commit 13bf578c25)
2022-04-09 08:06:11 +02:00
Gordon Bergling
481607d607 iwm(4): Fix a typo in a source code comment
- s/coresponding/corresponding/

Obtained from:	NetBSD

(cherry picked from commit 9f4dc7fd97)
2022-04-09 08:05:43 +02:00
Gordon Bergling
495754d823 sound(4): Fix a typo in a source code comment
- s/exisitng/existing/

(cherry picked from commit 0ce9617620)
2022-04-09 08:05:12 +02:00
Gordon Bergling
542e4b2706 viawd(4): Fix a typo in a kernel message
- s/watchog/watchdog

(cherry picked from commit 1cba6077be)
2022-04-07 19:17:04 +02:00
Tong Zhang
110b8112e5 stge: fix null pointer dereference
stge_attach() could fail at line 464, sc->sc_spec remains NULL when
calling stge_detach(), thus bus_release_resources() at line 704 will
trigger null pointer dereference. We need to check the nulliness before
calling bus_release_resources().

PR:		258420
Reviewed by:	markj

(cherry picked from commit 2108cc7290)
2022-04-06 20:30:45 -04:00
Chandrakanth Patil
09e161a29e mrsas: if controller reset is in progress, refrain from firing DCMDs to
firmware in shutdown

If controller reset is in progress, at same time if system shutdown is
issued then corresponding shutdown function in driver will be invoked
where driver is waiting 15 seconds to complete the controller reset.

If the reset is not complteted within that time frame driver will go
ahead and fire cache flush and shutdown DCMDs which will end up
accessing the the queues which are not initialized due to undergoing
reset leads to FMU error in firmware.

Fix:
In shutdown function, if controller reset is not finished within 15
seconds than driver will return to the OS without firing any DCMDs.

Reviewed by: imp
PR: 261375

(cherry picked from commit 79c4c4be96)
2022-04-06 10:27:25 -06:00
Chandrakanth Patil
2ebe518597 mrsas: remove additional MPT command allocation for R1 FP command
There is an additional MPT command allocation for R1 fp command which
will lead to MPT command unavailablity in case of rigorous R1 FP IOs.

Remove additional MPT command allocation for R1 FP.

Reviewed by: imp
PR: 261377

(cherry picked from commit 241bb95552)
2022-04-06 10:27:25 -06:00
Colin Percival
5cc5cd739e uart(4): Add a concept of "unique" serial devices
FreeBSD detects serial ports twice: First, very early in the boot
process, in order to obtain a usable console; and second, during
the device probe/attach process.  When a UART is discovered during
device probing, FreeBSD attempts to determine whether it is a
device which was already being used as a console; without this,
the console doesn't work in userland.

Unfortunately it's possible for a UART to be mapped to a different
location in memory when it is discovered on a bus than it has when
it is announced via the ACPI SPCR table; this breaks the matching
process, which relies on comparing bus addresses.

To address this, we introduce a concept of "unique" serial devices,
i.e. devices which are guaranteed to be present *only once* on any
system.  If we discover one of these during device probing, we can
match it to a same-PCI-vendor-and-device-numbers console which was
announced via the ACPI SPCR table, regardless of the differing bus
addresses.

At present, the only unique serial device is the "Amazon PCI serial
device" (vendor 0x1d0f, device 0x8250) found in some EC2 instances.
This unbreaks the serial console on those systems.

Reviewed by:	imp
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D34703

(cherry picked from commit ad93649d23)
2022-04-04 12:11:41 -07:00
Andrew Gallatin
392d7f0269 cxgbe: fix enabling lro & rxtimestamps
A recent change caused iq flags, like LRO, to be set before
init_iq(). However, init_iq() clears those flags, so they
became effectively impossible to set.   This change moves
the initializion of these flags to after the call to init_iq().
This fixes LRO.

Differential Revision: https://reviews.freebsd.org/D30460
Reviewed by: np, rrs
Sponsored by: Netflix
Fixes: 43bbae1948

(cherry picked from commit df8437a93d)
2022-04-04 11:57:15 -07:00
Ed Maste
0b29e1b9f9 mpr/mps/mpt: verify cfg page ioctl lengths
*_CFG_PAGE ioctl handlers in the mpr, mps, and mpt drivers allocated a
buffer of a caller-specified size, but copied to it a fixed size header.
Add checks that the size is at least the required minimum.

Note that the device nodes are owned by root:operator with 0640
permissions so the ioctls are not available to unprivileged users.

This change includes suggestions from scottl, markj and mav.

Two of the mpt cases were reported by Lucas Leong (@_wmliang_) of
Trend Micro Zero Day Initiative; scottl reported the third case in mpt.
Same issue found in mpr and mps after discussion with imp.

Reported by:	Lucas Leong (@_wmliang_), Trend Micro Zero Day Initiative
Reviewed by:	imp, mav
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34692

(cherry picked from commit 8276c4149b)
2022-04-03 20:45:41 -04:00
Gordon Bergling
f4dc553a72 mlx5en(4): Fix a few typos in source code comments
- s/persistant/persistent/

(cherry picked from commit 4a87beeccb)
2022-04-02 15:35:02 +02:00