Commit graph

40049 commits

Author SHA1 Message Date
Gordon Bergling
3f4e44f38c usb(4): Bring back an accidently reverted grammar correction
- s/that that/that/

Reported by:	se, danfe
MFC after:	3 days

(cherry picked from commit dfd3777085)
2022-09-10 08:58:54 +02:00
Gordon Bergling
03725b8f7b Revert "usb: Remove a double words in a source code comments"
This reverts commit 8ca67bf127.

The original comment was correct; changing it loses a key part.

Reported by:	jrtc27

(cherry picked from commit 94466c432e)
2022-09-10 08:58:30 +02:00
Neel Chauhan
58d0f00f15 snd_hda: Remove duplicate erroneous HDA_INTEL_ALLKPS line
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D36483

(cherry picked from commit c4e591c9ab)
2022-09-09 18:07:32 -07:00
Neel Chauhan
08c0674622 snd_hda: Add the full Intel AlderLake HD Audio PCI IDs
This is based off the Linux file sound/hda/intel-dsp-config.c.

Reviewed by:		imp (src)
Tested on:		HP Spectre x360 16-f0023dx
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D36476

(cherry picked from commit 22ecfc580b)
2022-09-09 18:07:20 -07:00
Kornel Dulęba
cbe3966fb9 tpm: Fix entropy harvesting logic
Use a taskqueue instead of a callout.
Callout functions mustn't sleep, where as the TPM driver
uses a sx lock in order to serialize accesses to the device.
Since the entropy harvesting feature is not enabled by default,
this commit should not bring any functional changes to the GENERIC
kernel.

Approved by:	mw(mentor)
Sponsored by:	Stormshield
Obtained from:	Semihalf
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D36412

(cherry picked from commit e23ad9c4ba)
2022-09-09 14:35:16 +02:00
Gordon Bergling
14761188db iwn(4): Correct a typo in a kernel error message
- s/settting/setting/

(cherry picked from commit dc79640e92)
2022-09-09 07:19:58 +02:00
Gordon Bergling
e4aabf9a94 mlx5en(4): Correct a typo in a kernel error message
- s/ouput/output

(cherry picked from commit e1a40dd294)
2022-09-08 10:16:46 +02:00
Alexander Motin
d62f7b1fb1 hwpmc: Avoid touching MSR_DEBUGCTLMSR inside VMs.
At least KVM in Proxmox seems not happy about it.  Just to be safe
block it for all VMs, since it should just improve profile accuracy.

MFC after:	1 week

(cherry picked from commit 4e679d8aea)
2022-09-07 20:30:30 -04:00
Gordon Bergling
f25bd922c9 hyperv: Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 26d6e38604)
2022-09-07 09:33:44 +02:00
Gordon Bergling
b4f99603e1 usb: Remove a double words in a source code comments
- s/that that/that/

(cherry picked from commit 8ca67bf127)
2022-09-07 09:33:19 +02:00
Gordon Bergling
a22260e12d etherswitch(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 8cf905e5fa)
2022-09-07 09:33:04 +02:00
Gordon Bergling
61037638f9 vmci(4): Correct some typos in source code comments
- s/occured/occurred/

(cherry picked from commit f2e13c27bb)
2022-09-07 09:32:25 +02:00
Gordon Bergling
b51b0cce30 mps(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit d6f9a3c0a8)
2022-09-07 09:31:43 +02:00
Gordon Bergling
100fede3d3 mpr(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 2f9de90b22)
2022-09-07 09:31:30 +02:00
Gordon Bergling
dc97f2f319 netmap(4): Remove a double word in a source code comment
- s/the the/the/

(cherry picked from commit 591a9b5ea3)
2022-09-07 09:30:30 +02:00
Gordon Bergling
96ab24fc6a bxe(4): Grammar fix for a source code comment
- s/that that/that the/

(cherry picked from commit 6e9e7b0583)
2022-09-07 09:30:17 +02:00
Gordon Bergling
be0601da32 bhnd(4): Correct some typos in source code comments
- s/occured/occurred/

While here, fix some whitespace issues.

(cherry picked from commit 88cdf609e4)
2022-09-07 09:29:32 +02:00
Gordon Bergling
226fabedb5 hyperv: Fix a typo in a source code comment
- s/Unsupport/Unsupported/

(cherry picked from commit 630c517745)
2022-09-07 09:25:40 +02:00
Hans Petter Selasky
56caa9e82b umodem(4): Clear stall at every open.
Some controllers like the XHCI(4) loose track of the data toggle value when
USB receive transfers are cancelled at close. This in turn can lead to to
data loss after the next open.

To avoid data loss, make sure both the receive and transmit data toggles
get reset, before trying to read or write any data.

Differential Revision:	https://reviews.freebsd.org/D36391
Submitted by:		Dave Baukus <daveb@spectralogic.com>
Sponsored by:	NVIDIA Networking

(cherry picked from commit 40e43b056d)
2022-09-06 10:43:17 +02:00
Dave Baukus
961a016eba ucom(4): Make sure the open routine is executed synchronously.
To avoid issues starting any USB transfers before the open
function is complete.

Differential Revision:	https://reviews.freebsd.org/D36391
Sponsored by:	NVIDIA Networking

(cherry picked from commit cbc5350359)
2022-09-06 10:43:17 +02:00
Gordon Bergling
2f5e4a3a19 malo(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit b55a0762fc)
2022-09-06 07:42:05 +02:00
Gordon Bergling
96174b36be ltc430x(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit b0e86eed27)
2022-09-06 07:41:10 +02:00
Gordon Bergling
d8422093f0 bge(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit de47bf0d52)
2022-09-06 07:40:55 +02:00
Gordon Bergling
17b417ef0e ath(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit f9a9fe46dc)
2022-09-06 07:40:41 +02:00
Gordon Bergling
819477c897 pci(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit 6b49770088)
2022-09-06 07:40:28 +02:00
Gordon Bergling
797143d8fe isp(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit 310d144a83)
2022-09-06 07:40:11 +02:00
Gordon Bergling
fe3660cf1f bce(4): Fix a typo in a source code comment
- s/overriden/overridden/

(cherry picked from commit ddf38e0204)
2022-09-06 07:39:43 +02:00
Gordon Bergling
aceb5fff0a impi(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit 05e1ac3cbf)
2022-09-06 07:39:13 +02:00
Gordon Bergling
f3547e8452 bxe(4): Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit f93ef3ff06)
2022-09-06 07:38:57 +02:00
Gordon Bergling
c09b9ae468 sound(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit ac34f366cc)
2022-09-06 07:38:41 +02:00
Gordon Bergling
1c11509479 sdhci(4): Fix a typo in asource code comment
- s/overriden/overridden/

(cherry picked from commit cc280cac34)
2022-09-06 07:38:14 +02:00
Gordon Bergling
04f08f25b9 usb: Fix two typos in source code comments
- s/overriden/overridden/

(cherry picked from commit d0ddb5aaca)
2022-09-06 07:37:58 +02:00
Hans Petter Selasky
3a33579959 usb(4): Quirk for non-compliant USB devices.
Some non-compliant USB devices do not implement the
clear endpoint halt feature. Silently ignore such
failures, when they at least responded correctly
passing up a valid STALL PID packet.

Tested by:	Doug Ambrisko <ambrisko@ambrisko.com>
Sponsored by:	NVIDIA Networking

(cherry picked from commit 4e2d8cd3e2)
2022-09-03 12:22:07 +02:00
Hans Petter Selasky
89d98b9b00 u3g(4): Add more USB IDs.
Submitted by:	malavon <benny.goemans@gmail.com>
PR:		263700
Sponsored by:	NVIDIA Networking

(cherry picked from commit 0b01a13b8a)
2022-09-02 11:07:01 +02:00
Kornel Dulęba
108b6eb670 neta: Fix MTU change sequence
The IFF_DRV_RUNNING flag is used to see if the interface needs
to be temporarily brought down during MTU change sequence.
The problem here is that this flag is cleared in mvneta_stop_locked,
resulting in the reinitialization logic never being executed after
MTU has been changed.
Fix that by saving the flag value before the interface is brought down.

Reported by:	Jérôme Tomczyk <jerome.tomczyk@stormshield.eu>
Approved by:	mw(mentor)
Obtained from:	Semihalf
Sponsored by:	Stormshield
MFC after:	2 weeks

(cherry picked from commit 97ecdc00ac)
2022-09-01 09:14:43 +02:00
Konrad Sewiłło-Jopek
91af12081e TPM: do not set device description if probe fails
device_set_desc should be called only if driver probes successfully.

Approved by:	mw(mentor)
Reviewed by:	mw, kd
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D35998

(cherry picked from commit 31ee3a33aa)
2022-09-01 09:14:40 +02:00
Gordon Bergling
3cc226cd9c bhnd(4): Correct a typo in a source code comment
- s/in he/in the/

(cherry picked from commit ce99e4fa44)
2022-08-30 14:07:39 +02:00
Hans Petter Selasky
d02aaf5325 uftdi(4): Add new USB ID.
PR:		265514
Sponsored by:	NVIDIA Networking

(cherry picked from commit 9f35dbfdc6)
2022-08-29 14:03:49 +02:00
Ed Maste
ff6ab85fc9 gpio: mark INVARIANTS variables as __diagused
Fixes INVARIANTS build with Clang 15, which previously failed due to
set-but-not-used variable warnings.

Reviewed by:	dim
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36097

(cherry picked from commit 7dc4d5118c)
2022-08-28 21:04:31 -04:00
Ed Maste
9f45a241fc acpi: mark INVARIANTS variables as __diagused
Fixes INVARIANTS build with Clang 15, which previously failed due to
set-but-not-used variable warnings.

Reviewed by:	jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36096

(cherry picked from commit 0fd8d3589a)
2022-08-28 21:04:19 -04:00
John Baldwin
9a647d96eb pci: Add helper routines to iterate over a device's BARs.
Reviewed by:	imp, markj, emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36237

(cherry picked from commit 16bedf532c)
2022-08-25 09:38:49 -07:00
John Baldwin
39b724b727 cxgbe TOE TLS: Fix handling of unusual record types.
This doesn't matter for real traffic but fixes failures in the KTLS
unit tests that use unusual record types.

Sponsored by:	Chelsio Communications

(cherry picked from commit 782db2881b)
2022-08-25 09:33:04 -07:00
John Baldwin
cb85a1815f cxgbei: Adjust the calculation for the maximum ISO payload.
Round down the maximim ISO payload by the current MSS.  Otherwise the
round up by MSS when calculating the 16-bit maximum payload len passed
along in the FLOWC work request can overflow.

Discussed with:	np
Sponsored by:	Chelsio Communications

(cherry picked from commit 8020c05683)
2022-08-25 09:30:09 -07:00
John Baldwin
84fc080266 cxgbe: Deactivate upper layer drivers (like TOE) during detach.
Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D35237

(cherry picked from commit 12b37f8f9c)
2022-08-25 09:29:22 -07:00
Konstantin Belousov
d4f7acfad7 iommu_gas: add iommu_gas_remove()
(cherry picked from commit c9e4d25052)
2022-08-22 16:37:09 +03:00
Andrew Turner
36e31c79ce Adjust function definition in ofw to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:

    sys/dev/ofw/openfirm.c:826:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    OF_enter()
            ^
             void

This is because OF_enter() and OF_exit are declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ec666d187d)
2022-08-22 10:11:29 +01:00
Andrew Turner
1570048c52 Adjust function definition in hwpmc to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:

    sys/dev/hwpmc/hwpmc_arm64.c:530:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    pmc_arm64_initialize()
                        ^
                         void

This is because many of the functions are declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 05cef74742)
2022-08-22 10:11:29 +01:00
Dimitry Andric
71554ce0cd Adjust function definition in drm_fb_helper.c to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:

    sys/dev/drm2/drm_fb_helper.c:86:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    framebuffer_alloc()
                     ^
                      void

This is because framebuffer_alloc() is declared with a (void) argument
list, but defined with an empty argument list. Make the definition match
the declaration.

MFC after:	3 days

(cherry picked from commit 7a7bbe1021)
2022-08-21 13:10:50 +02:00
Dimitry Andric
39a1b70090 gpio: mark more INVARIANTS variables as __diagused
Mark another set of variables that are only used in INVARIANTS builds,
which otherwise result in set-but-not-used warnings.

Fixes:		7dc4d5118c
MFC after:	3 days

(cherry picked from commit 6e62d9a5a5)
2022-08-21 13:10:49 +02:00
Alexander Motin
bdd4dbb070 nvme: Print CRD, M and DNR status bits on errors.
It may help with some issues debugging.

MFC after:	1 week

(cherry picked from commit a69c096462)
2022-08-15 13:34:48 -04:00