aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix mpr(4) panic during a firmware update.Kenneth D. Merry2022-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Issue Description: The RequestCredits field of IOCFacts got changed between the Phase23 firmware to Phase24 firmware. So as part of firmware update operation, driver has to free the resources & pools which are created with the Phase23 Firmware's IOCFacts data (i.e. during driver load time) and has to reallocate the resources and pools using Phase24's IOCFacts data. Here driver has freed the interrupts but missed to reallocate the interrupts and hence config page read operation is getting timed out and controller is going for recursive reinit (controller reset) operations and leading to kernel panic. Fix: Reallocate the interrupts if the interrupts are disabled as part of firmware update/downgrade operation. Submitted by: Sreekanth Ready <sreekanth.reddy@broadcom.com> Tested by: ken MFC after: 3 days (cherry picked from commit 11778fca4a83f5e3b597c75785aa5c0ee0dc518e)
* ioat: Add Ice Lake ID.Alexander Motin2022-10-201-0/+2
| | | | | | MFC after: 2 weeks (cherry picked from commit e4e91353c62e2af425061a4e56e1f24dcca2dd0f)
* ixl(4): Fix SR-IOV panicsYan Ka Chiu2022-10-191-0/+8
| | | | | | | | | | | | | | | | | | | The hw and ifp of a vsi will be NULL if such ixl_vsi is allocated for a VF. When ixl_reconfigure_filters called, it is trying to access vsi->ifp and hw->mac.addr and therefore is casuing panic. This commit add checks to determine if vsi is a VF by checking if vsi->hw is NULL, before adding IXL_VLAN_ANY filter (which is already in a VF vsi's filter list) and VLAN filters. (erj's Note: The SR-IOV flows need revisiting; this will help prevent panics for now) Reviewed by: krzysztof.galazka@intel.com, erj@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35649 (cherry picked from commit e706512a2b64fa2741144caf056c9fe923b60004)
* ixl(4): Add support for I710 devices and remove non-inclusive languageKrzysztof Galazka2022-10-194-5/+11
| | | | | | | | | | | | | | | | Intel introduces a new line of 1G Ethernet adapters with Device ID 0x0DD2. While at that also remove non-inclusive language. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: kbowling@ Tested by: gowtham.kumar.ks@intel.com MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34924 (cherry picked from commit b7b40e4a38d8521a40494d868d0870dfb9d6d77d)
* ice(4): Add RDMA Client InterfaceEric Joyner2022-10-1918-8/+2019
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the "irdma" driver to communicate with the ice(4) driver to allow it access to the underlying device's hardware resources as well as synchronize access to shared resources. This interface already existed in the standalone out-of-tree 1.34.2 driver; this commit adds and enables it in the in-kernel driver. Note: Adds hack to module Makefile to compile interface/.m files These are required for the RDMA client interface, but they don't build as-is like the normal .c files. The source directory doesn't seem to be included by default, so add lines that specifically add them as libraries so that ice_rdma.h can be found and the interface files will compile. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D30889 (cherry picked from commit 8a13362d49bf07dfc654e25976d057adbe0ac9c1) (cherry picked from commit d8cce8145c39812cc31b50070c44d66ca21a5127)
* ix(4): Add control of 2.5/5G autonegotiation speedsPiotr Pietruszewski2022-10-192-19/+104
| | | | | | | | | | | | | | | | | This change enables the user to control 2.5G and 5G autonegotiation speeds via advertise_speed sysctl for X550T devices. Due to reported interoperability issues with switches, 2.5G and 5G speeds will not be advertised by default. Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski@intel.com> Co-authored-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Tested by: gowtham.kumar.ks@intel.com MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D26245 (cherry picked from commit d381c807510de2ebb453a563540bd17e344a2aab)
* ixv(4): Allow PF to control the VF link statePiotr Pietruszewski2022-10-196-2/+50
| | | | | | | | | | | | | | | | | | | This patch adds checks of a VF link state provided by PF via mailbox API. Such change enables the PF to disable a VF administratively. Since command needed by the PF to control the VF is introduced in mailbox api version 1.2, this patch also bumps supported mailbox api version to 1.2. Co-authored-by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed By: kbowling@ Tested by: lukasz.szczepaniak@intel.com MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D32004 (cherry picked from commit a3e719bbc21a56230a5b8adeb4c531a6dfb77940)
* ice(4): Update to 1.34.2-kEric Joyner2022-10-1939-1424/+5067
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds FW logging support - Once enabled, this lets the firmware print event and error messages to the log, increasing the visibility into what the hardware is doing; this is useful for debugging - General bug fixes - Adds initial DCB support to the driver - Notably, this adds support for DCBX to the driver; now with the fw_lldp sysctl set to 1, the driver and adapter will adopt a DCBX configuration sent from a link partner - Adds statistcs sysctls for priority flow control frames - Adds new configuration sysctls for DCB-related features: (VLAN) user priority to TC mapping; ETS bandwidth allocation; priority flow control - Remove unused SR-IOV files (until support gets added) (MFC node: This adds support for E82x devices (codename Columbia Park) Signed-off-by: Eric Joyner <erj@FreeBSD.org> Tested by: jeffrey.e.pieper@intel.com MFC with: 213e91399b, e438f0a975 Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34024 (cherry picked from commit 56429daea255fa719169bb23ded66f8edb6f5408) (cherry picked from commit 61d83041ab111fe491409f2eca2b528108b9ec29)
* iavf(4): Replace functions with compatible implementationsEric Joyner2022-10-191-3/+38
| | | | | | | | | | | Since FreeBSD 12.4 is missing functions found in newer versions, replace some of the usages of missing ones with implementations that work for 12.4. This is a direct commit to stable/12; this fix isn't necessary on newer branches. Signed-off-by: Eric Joyner <erj@FreeBSD.org>
* ixl(4): Remove unused function declarationEric Joyner2022-10-191-1/+0
| | | | | | | | Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation (cherry picked from commit 0e8181c01237141ed94d2efbb5b7efae39e6232e)
* ixl(4): Remove iavf(4) source filesEric Joyner2022-10-193-3682/+0
| | | | | | | | | | | | | Since iavf(4) no longer shares code with ixl(4) as of commit f2fbd56a8d07665bc0a5e8b7e40026b50a591e2a and now has its own directory, remove these now-unused iavf(4)-only files. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D28638 (cherry picked from commit 409b36ad911d0a12a45c1488369b458965691379)
* iavf(4): Split source and update to 3.0.26-kEric Joyner2022-10-1927-0/+13510
| | | | | | | | | | | | | | | | | | | | | The iavf(4) driver now uses a different source base from ixl(4), since it will be the standard VF driver for new Intel Ethernet products going forward, including ice(4). It continues to use the iflib framework for network drivers. Since it now uses a different source code base, this commit adds a new sys/dev/iavf entry, but it re-uses the existing module name so no configuration changes are necessary. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: kbowling@ Tested by: lukasz.szczepaniak@intel.com Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D28636 (cherry picked from commit ca853dee3b8f26f53d48d685f32ec0b8396369e8) (cherry picked from commit 5577aa338a675f2a465a58356894fbe24ba20407)
* ice(4): Update to version 0.29.4-kEric Joyner2022-10-1929-874/+2865
| | | | | | | | | | | | | | | | | Includes various feature improvements and bug fixes. Notable changes include: - Link management flow changes - New sysctl to report aggregated error counts - Health Status Event reporting from firmware (Use the new read-only tunables hw.ice.enable_health_events / dev.ice.#.enable_health_events to turn this off) Signed-off-by: Eric Joyner <erj@FreeBSD.org> Sponsored by: Intel Corporation (cherry picked from commit 9cf1841c4aaf8fbab06132ab9f76094f34ad7c7b)
* ixl(4): Fix VLAN HW filteringKrzysztof Galazka2022-10-1911-334/+505
| | | | | | | | | | | | | | | | | | | | X700 family of controllers has limited number of available VLAN HW filters. Driver did not handle properly a case when user assigned more VLANs to the interface which had all filters already in use. Fix that by disabling HW filtering when it is impossible to create filters for all requested VLANs. Keep track of registered VLANs using bitstring to be able to re-enable HW filtering when number of requested VLANs drops below the limit. Also switch all allocations to use M_IXL malloc type to ease detecting memory leaks in the driver. Reviewed by: erj Tested by: gowtham.kumar.ks@intel.com Differential Revision: https://reviews.freebsd.org/D28137 (cherry picked from commit 7d4dceec103039e2b2fa90793ceeb71a8d6684aa)
* igc: Fix up hw vlan opsKevin Bowling2022-10-172-79/+19
| | | | | | | | | | | | Adapt 2796f7cab10785ef40efbba97ef67ab319c96e9c to igc(4) * Don't reset the entire adapter for vlan changes, fix up the problems * Remove the VFTA, this hardware doesn't seem to implement it Approved by: grehan Differential Revision: https://reviews.freebsd.org/D31979 (cherry picked from commit 2eaef8ec4af1f7576a1444180020e23d2e142107)
* igc: remove unnecessary PHY ID checksMah Yock Gen2022-10-172-14/+3
| | | | | | | | | | | | | | | | | | I225 devices have only one PHY vendor. There is unnecessary to check _I_PHY_ID during the link establishment and auto-negotiation process, the checking also caused devices like i225-IT failed. This patch is to remove the mentioned unnecessary checking. Cc: stable@dpdk.org Signed-off-by: Mah Yock Gen <yock.gen.mah@intel.com> Signed-off-by: Taripin Samuel <samuel.taripin@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com> Approved by: grehan Differential Revision: https://reviews.freebsd.org/D36923 (cherry picked from commit 29d7f1ff579579711dd5a3325480728b8ed45f8c)
* Revert "e1000: Try auto-negotiation for fixed 100 or 10 configuration"Kevin Bowling2022-10-121-12/+8
| | | | | | | | | | This reverts commit 9ab4dfce8feda8cf3545be0c3c7569095b1fcd24. OPNsense users have reported a regression with fixed configs. The e1000 api is not ready for this change. (cherry picked from commit 66dad2db0a484d65df331df76db0b68ef518f4db)
* qlnxe(4): Fix a typo in a source code commentGordon Bergling2022-09-181-1/+1
| | | | | | - s/paramters/parameters/ (cherry picked from commit a5c1b9e3322a5124cea173d428e65ddefa5ebb5f)
* alc: force maximum payload size to 128 bytes for AR816X/AR817xKyle Evans2022-09-171-2/+3
| | | | | | | | | Otherwise, we'll trigger a DMA write error and render the device unusable. Obtained from: OpenBSD (via Haiku, waddlesplash) (cherry picked from commit 8cdb6b2dd78793628d7c36198598c85741e44119)
* if_dwc: fix reinitialization with changed MACJiahao LI2022-09-161-5/+6
| | | | | | | | | | | | It was observed that on RockPro64 hardware, the dwc interface is unable to receive packets after being assigned a new MAC address. The fix is simply to call mii_mediachg() before touching any device registers in dwc_init_locked(). This is consistent with what the OpenBSD driver does. PR: 263820 MFC after: 1 week (cherry picked from commit 6501fcdc0a97faa3c59f6ece314bf7754303db6f)
* iscsi(4): Remove a double word in a source code commentGordon Bergling2022-09-131-1/+1
| | | | | | - s/to to/to/ (cherry picked from commit 13604a80f7a4b0dbb2594482e233baa3f3926523)
* ocs_fc(4): Remove double words in source code commentsGordon Bergling2022-09-132-2/+2
| | | | | | - s/to to/to/ (cherry picked from commit eb2f7d9a5a61588e4a218a5636cab5dd9fb8bfba)
* isp: Remove a double word in the driver manualGordon Bergling2022-09-131-1/+1
| | | | | | - s/to to/to/ (cherry picked from commit a5beac3992fb874e57768b3c8d852a806bcb8b21)
* usb: Bring back an accidently reverted grammar correctionGordon Bergling2022-09-101-1/+1
| | | | | | | | - s/that that/that/ MFC after: 3 days (cherry picked from commit dfd3777085503a215632b003e917afd73e070a9a)
* Revert "usb: Remove a double words in a source code comments"Gordon Bergling2022-09-103-3/+3
| | | | | | | | | | This reverts commit 8ca67bf1273a5168f8a3787183159c477632e582. The original comment was correct; changing it loses a key part. Reported by: jrtc27 (cherry picked from commit 94466c432ed611a49cacae7ff99b224b37c906bb)
* snd_hda: Remove duplicate erroneous HDA_INTEL_ALLKPS lineNeel Chauhan2022-09-101-1/+0
| | | | | | | MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D36483 (cherry picked from commit c4e591c9abc90749f91774fda77a1a5f7ee7dad1)
* snd_hda: Add the full Intel AlderLake HD Audio PCI IDsNeel Chauhan2022-09-102-0/+15
| | | | | | | | | | | 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 22ecfc580b4834e3e9871944de62ce0c5ff0cd38)
* iwn(4): Correct a typo in a kernel error messageGordon Bergling2022-09-091-1/+1
| | | | | | - s/settting/setting/ (cherry picked from commit dc79640e92197b3d55174824891243dbb03e4f01)
* mlx5en(4): Correct a typo in a kernel error messageGordon Bergling2022-09-081-1/+1
| | | | | | - s/ouput/output (cherry picked from commit e1a40dd29427af594a733fcad7553145b4f5a7a7)
* hyperv: Remove a double word in a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/the the/the/ (cherry picked from commit 26d6e38604494539ee96935e9fd6cfa1341bf6e2)
* usb: Remove a double words in a source code commentsGordon Bergling2022-09-073-3/+3
| | | | | | - s/that that/that/ (cherry picked from commit 8ca67bf1273a5168f8a3787183159c477632e582)
* vmci(4): Correct some typos in source code commentsGordon Bergling2022-09-071-2/+2
| | | | | | - s/occured/occurred/ (cherry picked from commit f2e13c27bbd1c2d385a572e97cc19ba122b74986)
* mps(4): Remove a double word in a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/the the/the/ (cherry picked from commit d6f9a3c0a8b11fa0e26e364266e37805ca1dcca2)
* mpr(4): Remove a double word in a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/the the/the/ (cherry picked from commit 2f9de90b22a6478752534eb5b772d2c1d134b309)
* netmap(4): Remove a double word in a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/the the/the/ (cherry picked from commit 591a9b5ea339feda45cd0dafaac4b581495a57d2)
* bxe(4): Grammar fix for a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/that that/that the/ (cherry picked from commit 6e9e7b0583593a8e45a3e97458c7a74fee4d43bf)
* bhnd(4): Correct some typos in source code commentsGordon Bergling2022-09-076-18/+18
| | | | | | | | - s/occured/occurred/ While here, fix some whitespace issues. (cherry picked from commit 88cdf609e411a1ba398e9e3e93ad82345ad8b516)
* hyperv: Fix a typo in a source code commentGordon Bergling2022-09-071-1/+1
| | | | | | - s/Unsupport/Unsupported/ (cherry picked from commit 630c51774523274cb3f616aefd0be7b747dca991)
* umodem(4): Clear stall at every open.Hans Petter Selasky2022-09-061-8/+14
| | | | | | | | | | | | | | | 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 40e43b056df9aa2392f673fcacc72725c2201658)
* ucom(4): Make sure the open routine is executed synchronously.Dave Baukus2022-09-061-2/+2
| | | | | | | | | | 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 cbc5350359b9be916cc0dc1986147013c6f90483)
* usb: Fix two typos in source code commentsGordon Bergling2022-09-062-2/+2
| | | | | | - s/overriden/overridden/ (cherry picked from commit d0ddb5aacabab2cc5bbfbd18c3f07507b6acdb92)
* sdhci(4): Fix a typo in asource code commentGordon Bergling2022-09-061-1/+1
| | | | | | - s/overriden/overridden/ (cherry picked from commit cc280cac3478d39a5231aec06d50ebd27b2aa1bb)
* sound(4): Fix a typo in asource code commentGordon Bergling2022-09-061-1/+1
| | | | | | - s/overriden/overridden/ (cherry picked from commit ac34f366cc8186ec747248f31079838699b389a6)
* bxe(4): Fix two typos in source code commentsGordon Bergling2022-09-061-2/+2
| | | | | | - s/overriden/overridden/ (cherry picked from commit f93ef3ff068c96062fadd503979473fe1b1db139)
* impi(4): Fix two typos in source code commentsGordon Bergling2022-09-061-2/+2
| | | | | | - s/overriden/overridden/ (cherry picked from commit 05e1ac3cbfedf12e4b7a41729ad2ff6e748983a1)
* bce(4): Fix a typo in a source code commentGordon Bergling2022-09-061-1/+1
| | | | | | - s/overriden/overridden/ (cherry picked from commit ddf38e0204f8146709d3a278520873a68d1802a4)
* isp(4): Fix two typos in source code commentsGordon Bergling2022-09-062-2/+2
| | | | | | - s/overriden/overridden/ (cherry picked from commit 310d144a83411abedc17bfeec07f1f7ccee2434e)
* pci(4): Fix a typo in asource code commentGordon Bergling2022-09-061-1/+1
| | | | | | - s/overriden/overridden/ (cherry picked from commit 6b497700885b21106235a1ee7bfd31194e4ca42b)
* ath(4): Fix two typos in source code commentsGordon Bergling2022-09-062-3/+3
| | | | | | - s/overriden/overridden/ (cherry picked from commit f9a9fe46dc3ed37c9b44cd2b6561b324819fa81e)
* bge(4): Fix a typo in a source code commentGordon Bergling2022-09-061-1/+1
| | | | | | - s/overriden/overridden/ (cherry picked from commit de47bf0d52a0dd2cfcb19a8b49a55253945342ca)