[Intel-wired-lan] [PATCH 3/3] igb: Get rid of spurious interrupts

2025-02-10 Thread Kurt Kanzenbach
When running the igc with XDP/ZC in busy polling mode with deferral of hard interrupts, interrupts still happen from time to time. That is caused by the igc task watchdog which triggers Rx interrupts periodically. That mechanism has been introduced to overcome skb/memory allocation failures [1]. S

[Intel-wired-lan] [PATCH 0/3] igb: XDP/ZC follow up

2025-02-10 Thread Kurt Kanzenbach
This is a follow up for the igb XDP/ZC implementation. The first two patches link the IRQs and queues to NAPI instances. This is required to bring back the XDP/ZC busy polling support. The last patch removes undesired IRQs (injected via igb watchdog) while busy polling with napi_defer_hard_irqs

[Intel-wired-lan] [PATCH 1/3] igb: Link IRQs to NAPI instances

2025-02-10 Thread Kurt Kanzenbach
Link IRQs to NAPI instances via netdev-genl API. This allows users to query that information via netlink: |$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \ | --dump napi-get --json='{"ifindex": 2}' |[{'defer-hard-irqs': 0, | 'gro-flush-

[Intel-wired-lan] [PATCH 2/3] igb: Link queues to NAPI instances

2025-02-10 Thread Kurt Kanzenbach
Link queues to NAPI instances via netdev-genl API. This is required to use XDP/ZC busy polling. See commit 5ef44b3cb43b ("xsk: Bring back busy polling support") for details. This also allows users to query the info with netlink: |$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/n

Re: [Intel-wired-lan] [PATCH v2] net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()

2025-02-10 Thread Vadim Fedorenko
On 08/02/2025 15:43, Piotr Wejman wrote: Update the driver to use the new hardware timestamping API added in commit 66f7223039c0 ("net: add NDOs for configuring hardware timestamping"). Use Netlink extack for error reporting in e1000e_hwtstamp_set. Align the indentation of net_device_ops. Signed

Re: [Intel-wired-lan] [iwl-next, rdma v3 00/24] Add RDMA support for Intel IPU E2000 (GEN3)

2025-02-10 Thread Przemek Kitszel
On 2/7/25 20:49, Tatyana Nikolova wrote: This patch series is based on 6.14-rc1 and includes both netdev and RDMA patches for ease of review. It can also be viewed here [1]. A shared pull request will be sent for patches 1-7 following review. [...] TLDR of my mail: could be take 1st patch prio

[Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Jedrzej Jagielski
E610 NICs unlike the previous devices utilising ixgbe driver are notified in the case of overheatning by the FW ACI event. In event of overheat when threshold is exceeded, FW suspends all traffic and sends overtemp event to the driver. Then driver logs appropriate message and closes the adapter in

Re: [Intel-wired-lan] [PATCH iwl-next v1 1/3] ice: Add sync delay for E825C

2025-02-10 Thread Nitka, Grzegorz
> -Original Message- > From: Simon Horman > Sent: Friday, February 7, 2025 11:04 AM > To: Nitka, Grzegorz > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; Nguyen, > Anthony L ; Kitszel, Przemyslaw > ; Kolacinski, Karol > > Subject: Re: [PATCH iwl-next v1 1/3] ice: Add sync

Re: [Intel-wired-lan] [PATCH iwl-next v1 2/3] ice: Refactor E825C PHY registers info struct

2025-02-10 Thread Nitka, Grzegorz
> -Original Message- > From: Simon Horman > Sent: Friday, February 7, 2025 11:06 AM > To: Nitka, Grzegorz > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; Nguyen, > Anthony L ; Kitszel, Przemyslaw > ; Kolacinski, Karol > > Subject: Re: [PATCH iwl-next v1 2/3] ice: Refactor

Re: [Intel-wired-lan] [PATCH iwl-next v1 01/13] ixgbe: add initial devlink support

2025-02-10 Thread Jagielski, Jedrzej
From: Simon Horman Sent: Friday, February 7, 2025 11:47 AM >On Mon, Feb 03, 2025 at 04:03:16PM +0100, Jedrzej Jagielski wrote: >> Add an initial support for devlink interface to ixgbe driver. >> >> Similarly to i40e driver the implementation doesn't enable >> devlink to manage device-wide config

Re: [Intel-wired-lan] [PATCH iwl-next v1 02/13] ixgbe: add handler for devlink .info_get()

2025-02-10 Thread Jagielski, Jedrzej
From: Simon Horman Sent: Sunday, February 9, 2025 5:27 PM >On Mon, Feb 03, 2025 at 04:03:17PM +0100, Jedrzej Jagielski wrote: >> Provide devlink .info_get() callback implementation to allow the >> driver to report detailed version information. The following info >> is reported: >> >> "serial_nu

Re: [Intel-wired-lan] [iwl-next, rdma v3 00/24] Add RDMA support for Intel IPU E2000 (GEN3)

2025-02-10 Thread Leon Romanovsky
On Mon, Feb 10, 2025 at 11:41:31AM +0100, Przemek Kitszel wrote: > On 2/7/25 20:49, Tatyana Nikolova wrote: > > This patch series is based on 6.14-rc1 and includes both netdev and RDMA > > patches for ease of review. It can also be viewed here [1]. A shared pull > > request will be sent for patches

Re: [Intel-wired-lan] [PATCH] ixgbe: remove self assignment

2025-02-10 Thread Andrew Lunn
On Sun, Feb 09, 2025 at 11:47:24PM -0500, Ethan Carter Edwards wrote: > Variable self assignment does not have any effect. Hi Ethan As a general rule, it would be good to explain in the comment message what research you did to find out why there is a self assignment, and why just deleting it is t

Re: [Intel-wired-lan] [PATCH net-next v7 1/5] net: move ARFS rmap management to core

2025-02-10 Thread Ahmed Zaki
On 2025-02-06 7:29 p.m., Jakub Kicinski wrote: Speaking of which, why do the auto-removal in napi_disable() rather than netif_napi_del() ? We don't reinstall on napi_enable() and doing a disable() + enable() is fairly common during driver reconfig. The patch does not re-install the notifie

Re: [Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Paul Menzel
Dear Jedrzej, Thank you for the quick reply. Am 10.02.25 um 12:59 schrieb Jagielski, Jedrzej: From: Paul Menzel Sent: Monday, February 10, 2025 12:40 PM Am 10.02.25 um 11:40 schrieb Jedrzej Jagielski: E610 NICs unlike the previous devices utilising ixgbe driver are notified in the case o

[Intel-wired-lan] [PATCH iwl-next v2 03/13] ixgbe: add E610 functions for acquiring flash data

2025-02-10 Thread Jedrzej Jagielski
From: Slawomir Mrozowicz Read NVM related info from the flash. Add several helper functions used to access the flash data, find memory banks, calculate offsets, calculate the flash size. Reviewed-by: Przemek Kitszel Reviewed-by: Mateusz Polchlopek Signed-off-by: Slawomir Mrozowicz Co-develop

[Intel-wired-lan] [PATCH iwl-next v2 08/13] ixgbe: extend .info_get with stored versions

2025-02-10 Thread Jedrzej Jagielski
Add functions reading inactive versions from the inactive flash banks. Print stored NVM, OROM and netlist versions by devlink when there is an ongoing update for E610 devices. Reviewed-by: Mateusz Polchlopek Reviewed-by: Przemek Kitszel Co-developed-by: Slawomir Mrozowicz Signed-off-by: Slawom

[Intel-wired-lan] [PATCH] ixgbe: remove self assignment

2025-02-10 Thread Ethan Carter Edwards
Variable self assignment does not have any effect. Addresses-Coverity-ID: 1641823 ("Self assignment") Fixes: 46761fd52a886 ("ixgbe: Add support for E610 FW Admin Command Interface") Signed-off-by: Ethan Carter Edwards --- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c | 1 - 1 file changed, 1 del

[Intel-wired-lan] [PATCH v2] net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()

2025-02-10 Thread Piotr Wejman
Update the driver to use the new hardware timestamping API added in commit 66f7223039c0 ("net: add NDOs for configuring hardware timestamping"). Use Netlink extack for error reporting in e1000e_hwtstamp_set. Align the indentation of net_device_ops. Signed-off-by: Piotr Wejman --- Changes in v2:

Re: [Intel-wired-lan] [PATCH iwl-next v2 02/13] ixgbe: add handler for devlink .info_get()

2025-02-10 Thread Jiri Pirko
Mon, Feb 10, 2025 at 02:56:28PM +0100, jedrzej.jagiel...@intel.com wrote: [...] >+enum ixgbe_devlink_version_type { >+ IXGBE_DL_VERSION_FIXED, >+ IXGBE_DL_VERSION_RUNNING, >+}; >+ >+static int ixgbe_devlink_info_put(struct devlink_info_req *req, >+enum ix

Re: [Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Paul Menzel
Dear Jedrzej, Thank you for your patch. Am 10.02.25 um 11:40 schrieb Jedrzej Jagielski: E610 NICs unlike the previous devices utilising ixgbe driver are notified in the case of overheatning by the FW ACI event. overheating (without n) In event of overheat when threshold is exceeded, FW sus

Re: [Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Jagielski, Jedrzej
From: Paul Menzel Sent: Monday, February 10, 2025 12:40 PM >Dear Jedrzej, > > >Thank you for your patch. > >Am 10.02.25 um 11:40 schrieb Jedrzej Jagielski: >> E610 NICs unlike the previous devices utilising ixgbe driver >> are notified in the case of overheatning by the FW ACI event. > >overheati

Re: [Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Jagielski, Jedrzej
From: Paul Menzel Sent: Monday, February 10, 2025 1:07 PM >Dear Jedrzej, > > >Thank you for the quick reply. > > >Am 10.02.25 um 12:59 schrieb Jagielski, Jedrzej: >> From: Paul Menzel >> Sent: Monday, February 10, 2025 12:40 PM > >>> Am 10.02.25 um 11:40 schrieb Jedrzej Jagielski: E610 NICs

[Intel-wired-lan] [PATCH iwl-next v2 11/13] ixgbe: add FW API version check

2025-02-10 Thread Jedrzej Jagielski
Add E610 specific function checking whether the FW API version is compatible with the driver expectations. The major API version should be less than or equal to the expected API version. If not the driver won't be fully operational. Check the minor version, and if it is more than two versions les

[Intel-wired-lan] [PATCH iwl-next v2 10/13] ixgbe: add support for devlink reload

2025-02-10 Thread Jedrzej Jagielski
The E610 adapters contain an embedded chip with firmware which can be updated using devlink flash. The firmware which runs on this chip is referred to as the Embedded Management Processor firmware (EMP firmware). Activating the new firmware image currently requires that the system be rebooted. Thi

[Intel-wired-lan] [PATCH iwl-next v2 07/13] ixgbe: add E610 functions getting PBA and FW ver info

2025-02-10 Thread Jedrzej Jagielski
Introduce 2 E610 specific callbacks implementations: -ixgbe_start_hw_e610() which expands the regular .start_hw callback with getting FW version information -ixgbe_read_pba_string_e610() which gets Product Board Assembly string Extend EEPROM ops with new .read_pba_string in order to distinguish ge

[Intel-wired-lan] [PATCH iwl-next v2 09/13] ixgbe: add device flash update via devlink

2025-02-10 Thread Jedrzej Jagielski
Use the pldmfw library to implement device flash update for the Intel ixgbe networking device driver specifically for E610 devices. This support uses the devlink flash update interface. Using the pldmfw library, the provided firmware file will be scanned for the three major components, "fw.undi" f

[Intel-wired-lan] [PATCH iwl-next v2 12/13] ixgbe: add E610 implementation of FW recovery mode

2025-02-10 Thread Jedrzej Jagielski
Add E610 implementation of fw_recovery_mode MAC operation. In case of E610 information about recovery mode is obtained from FW_MODES field in IXGBE_GL_MNG_FWSM register (0x000B6134). Introduce recovery specific probing flow and init only vital features. User should be able to perform NVM update

[Intel-wired-lan] [PATCH iwl-next v2 06/13] ixgbe: add .info_get extension specific for E610 devices

2025-02-10 Thread Jedrzej Jagielski
E610 devices give possibility to show more detailed info than the previous boards. Extend reporting NVM info with following pieces: fw.mgmt.api -> version number of the API fw.mgmt.build -> identifier of the source for the FW fw.psid.api -> version defining the format of the flash contents fw.n

[Intel-wired-lan] [PATCH iwl-next v2 04/13] ixgbe: read the OROM version information

2025-02-10 Thread Jedrzej Jagielski
From: Slawomir Mrozowicz Add functions reading the OROM version info and use them as a part of the setting NVM info procedure. Reviewed-by: Mateusz Polchlopek Reviewed-by: Przemek Kitszel Signed-off-by: Slawomir Mrozowicz Co-developed-by: Piotr Kwapulinski Signed-off-by: Piotr Kwapulinski S

[Intel-wired-lan] [PATCH iwl-next v2 01/13] ixgbe: add initial devlink support

2025-02-10 Thread Jedrzej Jagielski
Add an initial support for devlink interface to ixgbe driver. Similarly to i40e driver the implementation doesn't enable devlink to manage device-wide configuration. Devlink instance is created for each physical function of PCIe device. Create separate directory for devlink related ixgbe files an

[Intel-wired-lan] [PATCH iwl-next v2 13/13] ixgbe: add support for FW rollback mode

2025-02-10 Thread Jedrzej Jagielski
From: Andrii Staikov The driver should detect whether the device entered FW rollback mode and then notify user with the dedicated message including FW and NVM versions. Even if the driver detected rollback mode, this should not result in an probe error and the normal flow proceeds. FW tries to

[Intel-wired-lan] [PATCH iwl-next v2 02/13] ixgbe: add handler for devlink .info_get()

2025-02-10 Thread Jedrzej Jagielski
Provide devlink .info_get() callback implementation to allow the driver to report detailed version information. The following info is reported: "serial_number" -> The PCI DSN of the adapter "fw.bundle_id" -> Unique identifier for the combined flash image "fw.undi" -> Version of the Option ROM c

[Intel-wired-lan] [PATCH iwl-next v2 05/13] ixgbe: read the netlist version information

2025-02-10 Thread Jedrzej Jagielski
From: Slawomir Mrozowicz Add functions reading the netlist version info and use them as a part of the setting NVM info procedure. Reviewed-by: Mateusz Polchlopek Signed-off-by: Slawomir Mrozowicz Co-developed-by: Piotr Kwapulinski Signed-off-by: Piotr Kwapulinski Signed-off-by: Jedrzej Jagie

[Intel-wired-lan] [PATCH iwl-next v2 00/13] ixgbe: Add basic devlink support

2025-02-10 Thread Jedrzej Jagielski
Create devlink specific directory for more convenient future feature development. Flashing and reloading are supported only by E610 devices. Introduce basic FW/NVM validation since devlink reload introduces possibility of runtime NVM update. Check FW API version, FW recovery mode and FW rollback

[Intel-wired-lan] [PATCH iwl-next v2 1/3] ice: rename ice_ptp_init_phc_eth56g function

2025-02-10 Thread Grzegorz Nitka
From: Karol Kolacinski Refactor the code by changing ice_ptp_init_phc_eth56g function name to ice_ptp_init_phc_e825, to be consistent with the naming pattern for other devices. Signed-off-by: Karol Kolacinski Signed-off-by: Grzegorz Nitka --- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 13 +

[Intel-wired-lan] [PATCH iwl-next v2 0/3] E825C PTP cleanup

2025-02-10 Thread Grzegorz Nitka
This patch series simplifies PTP code related to E825C products by simplifying PHY register info definition. Cleanup the code by removing unused register definitions. v1->v2: * remove sync delay adding from the series (patch 1/3). To be submitted as separate patch. * fix kdoc (patch 2/3) in ice_

[Intel-wired-lan] [PATCH iwl-next v2 2/3] ice: Refactor E825C PHY registers info struct

2025-02-10 Thread Grzegorz Nitka
From: Karol Kolacinski Simplify ice_phy_reg_info_eth56g struct definition to include base address for the very first quad. Use base address info and 'step' value to determine address for specific PHY quad. Reviewed-by: Przemek Kitszel Signed-off-by: Karol Kolacinski Signed-off-by: Grzegorz Nit

[Intel-wired-lan] [PATCH iwl-next v2 3/3] ice: E825C PHY register cleanup

2025-02-10 Thread Grzegorz Nitka
From: Karol Kolacinski Minor PTP register refactor, including logical grouping E825C 1-step timestamping registers. Remove unused register definitions (PHY_REG_GPCS_BITSLIP, PHY_REG_REVISION). Also, apply preferred GENMASK macro (instead of ICE_M) for register fields definition affected by this p

Re: [Intel-wired-lan] [PATCH iwl-next v3] ixgbe: add support for thermal sensor event reception

2025-02-10 Thread Andrew Lunn
> > > > Then driver > > > > logs appropriate message and closes the adapter instance. > > > > The card remains in that state until the platform is rebooted. > > > > > > As a user I’d be interested what the threshold is, and what the measured > > > temperature is. Currently, the log seems to be jus

Re: [Intel-wired-lan] [PATCH v2] net: e1000e: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()

2025-02-10 Thread Jakub Kicinski
On Sat, 8 Feb 2025 16:43:49 +0100 Piotr Wejman wrote: > - if (!(adapter->flags & FLAG_HAS_HW_TIMESTAMP)) > + if (!(adapter->flags & FLAG_HAS_HW_TIMESTAMP)) { > + NL_SET_ERR_MSG(extack, "No HW timestamp support\n"); No new lines at the end of extack messages, please. User space

Re: [Intel-wired-lan] [PATCH iwl-net v2] idpf: call set_real_num_queues in idpf_open

2025-02-10 Thread Alexander Lobakin
From: Joshua Hay Date: Tue, 4 Feb 2025 18:08:11 -0800 > On initial driver load, alloc_etherdev_mqs is called with whatever max > queue values are provided by the control plane. However, if the driver > is loaded on a system where num_online_cpus() returns less than the max > queues, the netdev w

Re: [Intel-wired-lan] [PATCH 1/3] igb: Link IRQs to NAPI instances

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:19:35AM +0100, Kurt Kanzenbach wrote: > Link IRQs to NAPI instances via netdev-genl API. This allows users to query > that information via netlink: > > |$ ./tools/net/ynl/pyynl/cli.py --spec > Documentation/netlink/specs/netdev.yaml \ > | -

Re: [Intel-wired-lan] [PATCH 2/3] igb: Link queues to NAPI instances

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:19:36AM +0100, Kurt Kanzenbach wrote: > Link queues to NAPI instances via netdev-genl API. This is required to use > XDP/ZC busy polling. See commit 5ef44b3cb43b ("xsk: Bring back busy polling > support") for details. > > This also allows users to query the info with net

[Intel-wired-lan] [PATCH iwl-net] idpf: check error for register_netdev() on init

2025-02-10 Thread Emil Tantilov
Current init logic ignores the error code from register_netdev(), which will cause WARN_ON() on attempt to unregister it, if there was one, and there is no info for the user that the creation of the netdev failed. WARNING: CPU: 89 PID: 6902 at net/core/dev.c:11512 unregister_netdevice_many_notify

Re: [Intel-wired-lan] [PATCH 0/3] igb: XDP/ZC follow up

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:19:34AM +0100, Kurt Kanzenbach wrote: > This is a follow up for the igb XDP/ZC implementation. The first two > patches link the IRQs and queues to NAPI instances. This is required to > bring back the XDP/ZC busy polling support. The last patch removes > undesired IRQs

Re: [Intel-wired-lan] [PATCH 3/3] igb: Get rid of spurious interrupts

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:19:37AM +0100, Kurt Kanzenbach wrote: > When running the igc with XDP/ZC in busy polling mode with deferral of hard > interrupts, interrupts still happen from time to time. That is caused by > the igc task watchdog which triggers Rx interrupts periodically. > > That mech

Re: [Intel-wired-lan] [PATCH 3/3] igb: Get rid of spurious interrupts

2025-02-10 Thread Gerhard Engleder
On 10.02.25 10:19, Kurt Kanzenbach wrote: When running the igc with XDP/ZC in busy polling mode with deferral of hard interrupts, interrupts still happen from time to time. That is caused by the igc task watchdog which triggers Rx interrupts periodically. igc or igb?

Re: [Intel-wired-lan] [PATCH net-next v7 1/5] net: move ARFS rmap management to core

2025-02-10 Thread Jakub Kicinski
On Mon, 10 Feb 2025 08:04:43 -0700 Ahmed Zaki wrote: > On 2025-02-06 7:29 p.m., Jakub Kicinski wrote: > > > Speaking of which, why do the auto-removal in napi_disable() > > rather than netif_napi_del() ? We don't reinstall on napi_enable() > > and doing a disable() + enable() is fairly common duri

Re: [Intel-wired-lan] [PATCH 1/3] igb: Link IRQs to NAPI instances

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:25:47AM -0800, Joe Damato wrote: > On Mon, Feb 10, 2025 at 10:19:35AM +0100, Kurt Kanzenbach wrote: > > Link IRQs to NAPI instances via netdev-genl API. This allows users to query > > that information via netlink: > > > > |$ ./tools/net/ynl/pyynl/cli.py --spec > > Docum

Re: [Intel-wired-lan] [PATCH 0/3] igb: XDP/ZC follow up

2025-02-10 Thread Joe Damato
On Mon, Feb 10, 2025 at 10:19:34AM +0100, Kurt Kanzenbach wrote: > This is a follow up for the igb XDP/ZC implementation. The first two > patches link the IRQs and queues to NAPI instances. This is required to > bring back the XDP/ZC busy polling support. The last patch removes > undesired IRQs

Re: [Intel-wired-lan] [PATCH 3/3] igb: Get rid of spurious interrupts

2025-02-10 Thread Kurt Kanzenbach
On Mon Feb 10 2025, Gerhard Engleder wrote: > On 10.02.25 10:19, Kurt Kanzenbach wrote: >> When running the igc with XDP/ZC in busy polling mode with deferral of hard >> interrupts, interrupts still happen from time to time. That is caused by >> the igc task watchdog which triggers Rx interrupts pe

Re: [Intel-wired-lan] [PATCH 2/3] igb: Link queues to NAPI instances

2025-02-10 Thread Kurt Kanzenbach
On Mon Feb 10 2025, Joe Damato wrote: > On Mon, Feb 10, 2025 at 10:19:36AM +0100, Kurt Kanzenbach wrote: >> Link queues to NAPI instances via netdev-genl API. This is required to use >> XDP/ZC busy polling. See commit 5ef44b3cb43b ("xsk: Bring back busy polling >> support") for details. >> >> This

Re: [Intel-wired-lan] [PATCH iwl-net v2] idpf: call set_real_num_queues in idpf_open

2025-02-10 Thread Hay, Joshua A
> -Original Message- > From: Lobakin, Aleksander > Sent: Monday, February 10, 2025 7:02 AM > To: Hay, Joshua A > Cc: intel-wired-...@lists.osuosl.org; Samudrala, Sridhar > ; Chittim, Madhu > Subject: Re: [Intel-wired-lan] [PATCH iwl-net v2] idpf: call > set_real_num_queues in idpf_open >