#
11a91178 |
| 02-Jan-2025 |
John Baldwin <jhb@FreeBSD.org> |
Use bus_generic_detach to detach and delete child devices during detach
This is simpler and more robust than individual calls to device_delete_child.
Differential Revision: https://reviews.freebsd.
Use bus_generic_detach to detach and delete child devices during detach
This is simpler and more robust than individual calls to device_delete_child.
Differential Revision: https://reviews.freebsd.org/D47972
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
f9e0a790 |
| 24-Aug-2023 |
Kevin Bowling <kbowling@FreeBSD.org> |
enetc: Don't restart on VLAN changes
In rS360398, a new iflib device method was added with default of opt out for VLAN events needing an interface reset.
This re-init is unintentional for enetc(4).
enetc: Don't restart on VLAN changes
In rS360398, a new iflib device method was added with default of opt out for VLAN events needing an interface reset.
This re-init is unintentional for enetc(4).
MFC after: 2 weeks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D41558
show more ...
|
#
51e23514 |
| 16-Aug-2023 |
Marius Strobl <marius@FreeBSD.org> |
iflib drivers: Constify PCI ID LUTs
Since d49e83eac3baf16a22b1c5d42e8438b68b17e6f9, iflib(9) is ready for this change. While at it, make isc_driver_version strings (static) const where not apparentl
iflib drivers: Constify PCI ID LUTs
Since d49e83eac3baf16a22b1c5d42e8438b68b17e6f9, iflib(9) is ready for this change. While at it, make isc_driver_version strings (static) const where not apparently un-const on purpose, too. This reduces the size of the amd64 GENERIC by about 10 KiB.
show more ...
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
ec22a3a2 |
| 19-Aug-2022 |
Justin Hibbits <jhibbits@FreeBSD.org> |
DrvAPI: Trivial mechanical conversions for various drivers
Mechanically convert the following drivers, with trivial changes: * ipw(4) * igc(4) * enetc(4) * malo(4) * nfe(4) * bxe(4) * awg(4) * otus(
DrvAPI: Trivial mechanical conversions for various drivers
Mechanically convert the following drivers, with trivial changes: * ipw(4) * igc(4) * enetc(4) * malo(4) * nfe(4) * bxe(4) * awg(4) * otus(4) * rtwn(4) * bnxt(4) * ath(4)
Sponsored by: Juniper Networks, Inc.
show more ...
|
#
37a57b5d |
| 16-Jul-2022 |
Gordon Bergling <gbe@FreeBSD.org> |
enetc: Fix a typo in a source code comment
- s/alredy/already/
MFC after: 3 days
|
Revision tags: release/13.1.0 |
|
#
7ce7aacc |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
enetc: Remove unused devclass argument to DRIVER_MODULE.
|
#
3e38757d |
| 19-Apr-2022 |
John Baldwin <jhb@FreeBSD.org> |
Remove unused miibus_devclass and miibus_fdt_devclass.
|
#
1a6d987b |
| 27-Jan-2022 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Wait for pending transmissions before disabling TX queues
According to the RM it's not safe to disable a TX ring while it is busy transmitting frames. In order to be safe wait until the ring
enetc: Wait for pending transmissions before disabling TX queues
According to the RM it's not safe to disable a TX ring while it is busy transmitting frames. In order to be safe wait until the ring is empty. (cidx==pidx) Use this opportunity to remove a set-but-unused variable.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
a6bda3e1 |
| 27-Jan-2022 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Simply TX ring credits counting logic
According to the RM rings can hold at most ring_size - 1 descriptors at any time. No additional logic is needed since iflib already respects this constra
enetc: Simply TX ring credits counting logic
According to the RM rings can hold at most ring_size - 1 descriptors at any time. No additional logic is needed since iflib already respects this constrain. Thanks to that the pidx == cidx situation is not ambiguous and indicates an empty ring. Use that to simplify the logic that calculates the amount of processed frames.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
f485d733 |
| 27-Jan-2022 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Disable HW IP packet alignment
The NIC can IP align received packets. It was observed that it caused some rare stalls, that required full board reset. Disable this feature for now. It doesn't
enetc: Disable HW IP packet alignment
The NIC can IP align received packets. It was observed that it caused some rare stalls, that required full board reset. Disable this feature for now. It doesn't provide any significant performance improvement anyway.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
be0b80b8 |
| 22-Dec-2021 |
Gordon Bergling <gbe@FreeBSD.org> |
enetc(4): Fix a typo in a source code comment
- s/decriptors/descriptors/
MFC after: 3 days
|
Revision tags: release/12.3.0 |
|
#
cbac9a36 |
| 29-Nov-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Serialize MDIO transactions
In theory we can have multiple concurrent accesses to the MDIO bus, e.g. link status check tick and ifconfig request. In that case we need to make sure that all MD
enetc: Serialize MDIO transactions
In theory we can have multiple concurrent accesses to the MDIO bus, e.g. link status check tick and ifconfig request. In that case we need to make sure that all MDIO transaction are serialized.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
b3d4891a |
| 30-Nov-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Fix VID/mcast address hash calculation
The hash is calculated by XOR-ing together bits of the VID. Prepend a statement with "!!" to make sure that we're get bit 0 on both sides of the equatio
enetc: Fix VID/mcast address hash calculation
The hash is calculated by XOR-ing together bits of the VID. Prepend a statement with "!!" to make sure that we're get bit 0 on both sides of the equation.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
6802a86c |
| 13-Oct-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Add support for PHY interrupts
- Replace miibus with newly created miibus_fdt. - Use generic passthrough resource allocation devmethods.
Obtained from: Semihalf Sponsored by: Alstom Group
|
#
4b64193b |
| 05-Aug-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Force correct order with DRIVER_MODULE_ORDERED
The toolchain can reorder symbols, meaning that changing the order of DRIVER_MODULE macros is not enough to ensure that miibus gets registered f
enetc: Force correct order with DRIVER_MODULE_ORDERED
The toolchain can reorder symbols, meaning that changing the order of DRIVER_MODULE macros is not enough to ensure that miibus gets registered first. Use DRIVER_MODULE_ORDERED instead to fix the problem properly.
Fixes: 5ad6d28cbe6b ("enetc: Support building the driver as a loadable module.")
Reported by: jhb
show more ...
|
#
5ad6d28c |
| 28-Jul-2021 |
Kornel Duleba <mindal@semihalf.com> |
enetc: Support building the driver as a loadable module.
Function level reset has to be done in attach in order to put the hardware in a known state before configuring it. The order of DRIVER_MODULE
enetc: Support building the driver as a loadable module.
Function level reset has to be done in attach in order to put the hardware in a known state before configuring it. The order of DRIVER_MODULEs was changed to ensure that the miibus driver is loaded when mii_attach is called.
Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
#
382376f3 |
| 06-Jul-2021 |
Wojciech Macek <wma@FreeBSD.org> |
enetc: Add support for 2.5G fixed-link speed
With the v5.13 device-tree update speed of the CPU switch port was changed to 2.5G. Reflect that in the driver.
Submitted by: Kornel Duleba <mindal@semi
enetc: Add support for 2.5G fixed-link speed
With the v5.13 device-tree update speed of the CPU switch port was changed to 2.5G. Reflect that in the driver.
Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Alstom Group
show more ...
|
Revision tags: release/13.0.0 |
|
#
19aa95e4 |
| 07-Apr-2021 |
Marcin Wojtas <mw@FreeBSD.org> |
Introduce new driver for NXP Ethernet controller
ENETC it a gigabit Ethernet controller found on the LS1028A board. It supports basic VLAN offloads - tag extraction, injection and hardware filtering
Introduce new driver for NXP Ethernet controller
ENETC it a gigabit Ethernet controller found on the LS1028A board. It supports basic VLAN offloads - tag extraction, injection and hardware filtering. Inband MDIO connectivity is used for link status monitoring through the miibus interface. Fixed-link mode is also supported, which allows for operation of internal cpu to switch port. Since no admin interrupts are present in hardware, link status polling has to be used. Due to a hardware bug software reset of the NIC results in a external abort. Because of that most of the hardware initialization is done during attach. This also means that in the case of an fatal error full board reset is required. The enetc_hw.h header was imporoted from Linux. It is dual licensed.
Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Alstom Group Differential Revision: https://reviews.freebsd.org/D30729
show more ...
|