Commit graph

42608 commits

Author SHA1 Message Date
Zhenlei Huang
bfcaaff418 sound: Stop checking for failures from malloc(M_WAITOK)
Reviewed by:	emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 59121599bbda1e4c3fc3c6e887cd48cd5e3afc70)
2024-09-30 12:44:26 +08:00
Zhenlei Huang
140a0c8f39 sume(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 761339c5544a360df9d3bab70675fea246eb6a83)
2024-09-30 12:44:26 +08:00
Zhenlei Huang
a1075ea2a3 qat(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 866dc4bd81398b478daefe4b7447b92422b4a06c)
2024-09-30 12:44:26 +08:00
Zhenlei Huang
025c475494 pms(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 4fb8a80a78aa65e0b30bd5a74373512c678841c9)
2024-09-30 12:44:25 +08:00
Zhenlei Huang
3e51da3495 mrsas(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit a38d9ad473123dca86108651ba10740055720777)
2024-09-30 12:44:25 +08:00
Zhenlei Huang
ae8388f726 mpi3mr(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 849f9ac370bd66993ce5cc6fca0d2ef9bd03c2c9)
2024-09-30 12:44:25 +08:00
Zhenlei Huang
cf44738feb mlx(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 556cd18fb07604e3442819b221afb2a19b924dbd)
2024-09-30 12:44:24 +08:00
Zhenlei Huang
4fee8d3e92 mfi(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 701308ef404f552034f8c3e3e912b41bfef28ee6)
2024-09-30 12:44:24 +08:00
Zhenlei Huang
0fa8566510 mana: Stop checking for failures from malloc/mallocarray/buf_ring_alloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 1dc7a7b74b5ad37ff7c8dc22f1a710460a5f1dcd)
2024-09-30 12:44:24 +08:00
Zhenlei Huang
ec68da0a7e iser(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 40a6bbc4284111790d9240f8a24ef11a9a9ecb07)
2024-09-30 12:44:23 +08:00
Zhenlei Huang
bb8c6f4325 ice(4): Stop checking for failures from malloc(M_WAITOK)
As a consequence now ice_alloc_vsi_qmap() does not fail. Remove unneeded
error checks.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 5f97656fa334b494d70866cb1bfff406d3efd92d)
2024-09-30 12:44:23 +08:00
Zhenlei Huang
e4de0a965f hptrr(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 92b0370ec65d5287a1deec84fd513e320a8da736)
2024-09-30 12:44:23 +08:00
Zhenlei Huang
c860df902b hptnr(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit a3ec5d3ee7579a26790a86ca4c074512946ab964)
2024-09-30 12:44:23 +08:00
Zhenlei Huang
0341c77f20 hpt27xx(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 28e413a699838df6fa5b0504c9ceb92a515037d9)
2024-09-30 12:44:22 +08:00
Zhenlei Huang
f3af527260 fwip(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d)
2024-09-30 12:44:22 +08:00
Zhenlei Huang
6515ef4d2b flexspi: Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit d1a89bd9b6eb1524902b619fa092c7d6de63e623)
2024-09-30 12:44:22 +08:00
Zhenlei Huang
e78c315e89 etherswitch: Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 48741f4ceca71523aa1fa8da3bb78b184fad4aca)
2024-09-30 12:44:21 +08:00
Zhenlei Huang
8c2d777a22 ena(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 51971340bd3ff41591adbbfca68e9e753f6eb135)
2024-09-30 12:44:21 +08:00
Zhenlei Huang
95532d15a1 drm2: Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 6dbf3aca4f5c4f7287f186360c2391f2adfea8d6)
2024-09-30 12:44:21 +08:00
Zhenlei Huang
09ed34449c cxgbe(4): Stop checking for failures from malloc/mb_alloc_ext_pgs(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 955b380365af174b3d35905b7b8afae97506a0bd)
2024-09-30 12:44:21 +08:00
Zhenlei Huang
9216ba1853 cxgb(4): Stop checking for failures from malloc/buf_ring_alloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit bb51f7c8a48a4cd5dfa67fefa81f3d5d199da92b)
2024-09-30 12:44:20 +08:00
Zhenlei Huang
e763c326fc bnxt(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit dcd387aaa5d4409a7e99376e0254029fce1a48a8)
2024-09-30 12:44:20 +08:00
Zhenlei Huang
3db5be6821 axgbe: Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit ab0b996bddd96300d56b7d2aa830e2479cdfa92b)
2024-09-30 12:44:20 +08:00
Zhenlei Huang
8c2748b922 ath(4): Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 3fdf587ab02f33018bd042094e3d0bd4169352ed)
2024-09-30 12:44:19 +08:00
Zhenlei Huang
66bb507ccb altera: Stop checking for failures from malloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit e06e2c84074740a0087193d5929d09f1bc7e1c4b)
2024-09-30 12:44:19 +08:00
Zhenlei Huang
74887e3221 al_eth: Stop checking for failures from malloc/buf_ring_alloc(M_WAITOK)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45852

(cherry picked from commit 00ae9c1be02e2db6ede1abd5b787bb9a3fbd76b0)
2024-09-30 12:44:19 +08:00
Colin Percival
0e9cdcc514 random: Avoid magic numbers
Move RANDOM_FORTUNA_{NPOOLS,DEFPOOLSIZE} from fortuna.c to fortuna.h
and use RANDOM_FORTUNA_DEFPOOLSIZE in random_harvestq.c rather than
having a magic (albeit explained in a comment) number.  The NPOOLS
value will be used in a later commit.

Reviewed by:	cem
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46693

(cherry picked from commit 32fce09268ddd97efb4412529ba57293554c5985)
2024-09-29 08:24:52 -07:00
Kevin Bowling
a112b062e0 e1000: drop NEEDGIANT from em_sysctl_debug_info use
The write is only used to toggle the debug print function and this is
otherwise stateless.

(cherry picked from commit 5f6964d9fbf663f85ee60dae7dfff153b82759d8)
2024-09-28 20:56:34 -07:00
Kevin Bowling
c16093be8a e1000: drop NEEDGIANT on em_sysctl_reg_handler uses
These are simple singular diagnostic register reads

(cherry picked from commit c11a0649b97281699e39d0fc82818f235c1dfb87)
2024-09-28 20:56:34 -07:00
Kevin Bowling
0c730611ed ixgbe: fix misleading indentation in ixgbe_phy
(cherry picked from commit e3a6e916dbbade2d4047e127c371ee0d0a25a294)
2024-09-28 20:56:34 -07:00
Kevin Bowling
1dd49c09ef e1000: remove NEEDGIANT from a couple sysctls
These are internally locked already

(cherry picked from commit f6e1b567921187b9331bd71c86e94cf232dd7761)
2024-09-28 20:56:34 -07:00
Kevin Bowling
edf4f6a6ec ixgbe: fix fw_recovery_mode callout
Need to pass the softc in with the callout arg

(cherry picked from commit a924b5ee6a1b4456b5bde979bb9e15d18726de4f)
2024-09-28 02:22:42 -07:00
Kevin Bowling
e9e57ee70b ixgbe: update if_sriov with ix-3.3.38 changes
There are some critical fixes here. The PF must communicate with each VF
slot (vf->pool), only VFs shall use 0 for everything.

IXGBE_FEATURE_SRIOV needs to be set before calling ixgbe_if_init().

With these changes, ixv(4) now attaches to VFs, but after bringing up
VFs, the PF and VF still are not correctly passing traffic.

(cherry picked from commit b6cd053e6da9bb8f77d2c6069260e52bbd53fa4a)
2024-09-28 02:22:27 -07:00
Kevin Bowling
b8c2ff930b ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes
(cherry picked from commit f72de14ea13259db78b06c50da6c864dea698668)
2024-09-28 02:22:15 -07:00
Kevin Bowling
09c658172a ixgbe: update ixgbe_mbx with ix-3.3.38 changes
(cherry picked from commit 0acea458f82d95b75193bf6ce6321906032abf40)
2024-09-28 02:22:01 -07:00
Kevin Bowling
af9d02f4da ixgbe: update ixgbe_phy with ix-3.3.38 changes
(cherry picked from commit e06918b94ac44448272a9d6747dcdba142e18b58)
2024-09-28 02:21:46 -07:00
Kevin Bowling
1091dcca0e ixgbe: update if_bypass to ix-3.3.38
Bring if_bypass up to date with changes in the out of tree driver

Drop NEEDGIANT as the sysctl handlers have internal mutex for state
changes.

(cherry picked from commit c41a0eeea0d69264317401dd3fac46be160081b5)
2024-09-28 02:21:39 -07:00
Kevin Bowling
a0d55936c9 e1000: Update igb driver version to 2.5.28-fbsd
Bump to the current out of tree driver version since we only have some
gratuitous changes.

(cherry picked from commit ddfec1fb6814088abc5805f45c4a18c5731d51b9)
2024-09-28 02:21:39 -07:00
Kevin Bowling
6828020a6b ixgbe: update if_sriov to use the new mailbox apis
This fixes a page fault when creating VFs and updates to the new mailbox
API and naming conventions.

The functionality works to the same level that it did before my recent
changes. In particular on my 82599 it creates both passthru and ixv
interfaces. In either case, the PF seems to lose the ability to pass
traffic. The ixv driver fails to attach. These issues are present with
or without my updates.

If you use SR-IOV on ixgbe I would be interested in hearing what does
or does not work for you.

(cherry picked from commit 36c516b31136f645472c12d8597534656272acd6)
2024-09-26 20:35:24 -07:00
Doug Moore
dcf7b92d48 ixgbe: fix compilation for VF
The mailbox API changed in version 15 and these array ops were left out
of the recent code import as applicable to FreeBSD.

Reported by:	vishwin, yasu
Differential Revision:	https://reviews.freebsd.org/D46708

(cherry picked from commit 267f223f622fdbf779cc43b5a564bb02e2b59ecd)
2024-09-26 20:35:06 -07:00
Chinh Cao
744014e62d ixgbe: remove unused function prototypes
DPDK commit message

net/ixgbe/base: remove unused function prototypes
There are some function prototypes that were introduced at some point
but were never implemented, so remove them.

Signed-off-by: Chinh Cao <chinh.t.cao@intel.com>

Obtained from:	DPDK (e9cc1b4)

(cherry picked from commit 420c984470270e0f7200124d8015236584aef243)
2024-09-26 20:34:51 -07:00
Dawid Zielinski
0ea3d1ca5e ixgbe: prevent PBA read over eeprom word size
DPDK commit message

net/ixgbe/base: prevent untrusted loop bound
Added length check against EEPROM size in words to prevent untrusted
loop bound reported by static code analysis.

Signed-off-by: Dawid Zielinski <dawid.zielinski@intel.com>

Obtained from:	DPDK (6b58617)

(cherry picked from commit 25771c8c1ae606436823854de01fc2b23178e353)
2024-09-26 20:34:39 -07:00
Barbara Skobiej
2bff788d32 ixgbe: improve Atom C3000 SWFW semaphore acq
DPDK commit message

net/ixgbe/base: improve SWFW semaphore acquisition
HWSW semaphore acquisition in Atom C3000 NIC is a two stage process.
Each time two semaphore acquisitions are required. Each second semaphore
failure requires re-acquisition of first semaphore. This patch decouples
the two acquisitions preventing potentially hundreds of thousands
of unnecessary loop iterations.

Signed-off-by: Barbara Skobiej <barbara.skobiej@intel.com>

Obtained from:	DPDK (99f960c)

(cherry picked from commit cc9944183187308a71489651b11342d293aac7d1)
2024-09-26 20:34:27 -07:00
Barbara Skobiej
64945a6b4b ixgbe: add missing QV defines
DPDK commit message

net/ixgbe/base: add missing QV defines
This patch adds missing QV defines:
- offset of ANVM data
- Immediate Field module pointer offset
- 2.5GBASE-T and 5GBASE-T physical layer types for X550

Signed-off-by: Barbara Skobiej <barbara.skobiej@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>

Obtained from:	DPDK (a730b83)

(cherry picked from commit bfa48c32bc4099cb58b9fe7efab7f376475539ef)
2024-09-26 20:34:14 -07:00
Barbara Skobiej
a160f29c69 ixgbe: remove circular dependency in ixgbe_mbx.h
DPDK commit message

net/ixgbe/base: remove circular header dependency
Including one header file in second header file should be avoided, so
fix it by forward declaring the struct instead.

Signed-off-by: Barbara Skobiej <barbara.skobiej@intel.com>

Obtained from:	DPDK (0bc2af5)

(cherry picked from commit 3167854b9d2188c4039239f741870e044b7507ac)
2024-09-26 20:34:00 -07:00
Marcin Jurczak
ccd2656109 ixgbe: use primary and block terminology
DPDK commit message

net/ixgbe/base: replace non-inclusive language
This patch removes non-inclusive language from code, user interface
and comments.

Signed-off-by: Marcin Jurczak <marcin.jurczak@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from:	DPDK (f12a4bd)

(cherry picked from commit 4530d49e68d331e9168d3a216d8a4b8e0d547578)
2024-09-26 20:33:47 -07:00
Piotr Skajewski
fc143df912 ixgbe: replace implicit fall-through comments
DPDK commit message

Convert all "fall-through" comments to actual code. This aligns the code
with the kernel which no longer allows implicit fallthrough.

Signed-off-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from:	DPDK (ae8211f)

(cherry picked from commit 50455f73c28114c665551cba267ec964491ccf21)
2024-09-26 20:33:33 -07:00
Marek Mical
c7bdf0c5e1 ixgbe: Remove Atom C3000 HIC FW access
DPDK commit message

net/ixgbe/base: replace HIC with direct register access
Unify FW access method to direct register read/writes across all
Atom(R) C3000 products.

Atom(R) C3000 fiber exhibited an issue with the Host Interface Command
execution being locked when another LAN function attempted to acquire
the SWFW sync on Manageability Host. This resulted in HIC atomicity
break and bogus data being read since the other LAN function cleared
all semaphores on timeout whereas HIC execution continued after
unlock.  Direct register IOSF access showed higher stability and
reliability.

Signed-off-by: Marek Mical <marekx.mical@intel.com>
Reviewed-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Reviewed-by: Eryk Rybak <eryk.roch.rybak@intel.com>
Reviewed-by: Francis Racicot <Francis.Racicot@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from:	DPDK (e947f1e)

(cherry picked from commit f56311e37d4c39b1deab6aa8523f3332c29e1ad3)
2024-09-26 20:33:17 -07:00
Radoslaw Tyl
3e34560b17 ixgbe: add reset count field to HW struct
DPDK commit message

net/ixgbe/base: add reset count field to HW struct
Add fw_rst_cnt to store the number of resets after fw update.
This value is required to detect if the EICR.MNG event occurred
after firmware update reset.

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Reviewed-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Reviewed-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from:	DPDK (9ab0e9c)

(cherry picked from commit 224f7ab8b4706653c7d3f78e624bc36c97679f30)
2024-09-26 20:32:53 -07:00
Radoslaw Tyl
dc3f0089b1 ixgbe: improve function comments
Some function comments have mismatches between actual function names and
function name in comments, which causes warnings with kernel-doc. Fix
comments to match function names.

Signed-off-by: Radoslaw Tyl <radoslawx.tyl@intel.com>
Reviewed-by: Piotr Skajewski <piotrx.skajewski@intel.com>
Reviewed-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Reviewed-by: Alice Michael <alice.michael@intel.com>

Obtained from:	DPDK (7b5bc85)

(cherry picked from commit edef2769483b29457f028a508ea96fc1099a0a21)
2024-09-26 20:32:39 -07:00