Re: [Intel-wired-lan] [PATCH iwl-next 2/3] ice: avoid unnecessary devm_ usage

2024-02-22 Thread Przemek Kitszel
On 2/22/24 15:50, Maciej Fijalkowski wrote: 1. pcaps are free'd right after AQ routines are done, no need for devm_'s 2. a test frame for loopback test in ethtool -t is destroyed at the end of the test so we don't need devm_ here either. Signed-off-by: Maciej Fijalkowski --- drivers/n

[Intel-wired-lan] [iwl-net v1] ice: reconfig host after changing MSI-X on VF

2024-02-22 Thread Michal Swiatkowski
During VSI reconfiguration filters and VSI config which is set in ice_vf_init_host_cfg() are lost. Recall the host configuration function to restore them. Without this config VF on which MSI-X amount was changed might had a connection problems. Fixes: 4d38cb44bd32 ("ice: manage VFs MSI-X using re

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix NULL pointer access during resume

2024-02-22 Thread Jesse Brandeburg
On 2/22/2024 2:25 PM, Tony Nguyen wrote: I think he means that the tests won't pass without Amritha's patch because we'll hit the ASSERT_RTNL in the suspend flow otherwise. Got it. Anyways, this doesn't apply to net-queue, could we rebase or base it off of that tree? Ok, will send v2 off -n

Re: [Intel-wired-lan] [PATCH iwl-next v4 4/5] ice: Add tx_scheduling_layers devlink param

2024-02-22 Thread Jakub Kicinski
On Thu, 22 Feb 2024 14:25:21 +0100 Mateusz Polchlopek wrote: > >> This is kind of proprietary param similar to number of which were shot > >> down for mlx5 in past. Jakub? > > > > I remain somewhat confused about what this does. > > Specifically IIUC the problem is that the radix of each node is

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix NULL pointer access during resume

2024-02-22 Thread Tony Nguyen
On 2/22/2024 2:19 PM, Keller, Jacob E wrote: -Original Message- From: Nguyen, Anthony L ... NOTE: Requires Amritha's patch: https://patchwork.ozlabs.org/project/intel-wired- lan/patch/170785373072.3325.9129916579186572531.st...@anambiarhost.jf. intel.com/ to be applied before t

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix NULL pointer access during resume

2024-02-22 Thread Keller, Jacob E
> -Original Message- > From: Nguyen, Anthony L > Sent: Thursday, February 22, 2024 2:10 PM > To: Brandeburg, Jesse ; intel-wired- > l...@lists.osuosl.org > Cc: net...@vger.kernel.org; Elliott, Rob ; Keller, Jacob E > ; David S. Miller ; Eric > Dumazet > ; Jakub Kicinski ; Paolo Abeni >

Re: [Intel-wired-lan] [PATCH iwl-net v1] ice: fix NULL pointer access during resume

2024-02-22 Thread Tony Nguyen
On 2/20/2024 3:17 PM, Jesse Brandeburg wrote: The ice_suspend/ice_resume cycle was not updated when refactoring was done to the init path and I suspect this allowed a bug to creep in where the driver was not correctly reinitialized during resume. I was able to test against 6.1.77 kernel and that

[Intel-wired-lan] [PATCH v6 11/11 iwl-next] idpf: remove dealloc vector msg err in idpf_intr_rel

2024-02-22 Thread Alan Brady
This error message is at best not really helpful and at worst misleading. If we're here in idpf_intr_rel we're likely trying to do remove or reset. If we're in reset, this message will fail because we lose the virtchnl on reset and HW is going to clean up those resources regardless in that case. If

[Intel-wired-lan] [PATCH v6 10/11 iwl-next] idpf: fix minor controlq issues

2024-02-22 Thread Alan Brady
While we're here improving virtchnl we can include two minor fixes for the lower level ctrlq flow. This adds a memory barrier to idpf_post_rx_buffs before we update tail on the controlq. We should make sure our writes have had a chance to finish before we tell HW it can touch them. This also rem

[Intel-wired-lan] [PATCH v6 09/11 iwl-next] idpf: prevent deinit uninitialized virtchnl core

2024-02-22 Thread Alan Brady
In idpf_remove we need to tear down the virtchnl core with idpf_vc_core_deinit so we can free up resources and leave things in a good state. However, in the case where we failed to establish VC communications we may not have ever actually successfully initialized the virtchnl core. This fixes it b

[Intel-wired-lan] [PATCH v6 08/11 iwl-next] idpf: cleanup virtchnl cruft

2024-02-22 Thread Alan Brady
We can now remove a bunch of gross code we don't need anymore like the vc state bits and vc_buf_lock since everything is using transaction API now. Tested-by: Alexander Lobakin Reviewed-by: Przemek Kitszel Reviewed-by: Igor Bagnucki Signed-off-by: Alan Brady --- drivers/net/ethernet/intel/idp

[Intel-wired-lan] [PATCH v6 05/11 iwl-next] idpf: refactor remaining virtchnl messages

2024-02-22 Thread Alan Brady
This takes care of RSS/SRIOV/MAC and other misc virtchnl messages. This again is mostly mechanical. In absence of an async_handler for MAC filters, this will simply generically report any errors from idpf_vc_xn_forward_async. This maintains the existing behavior. Follow up patch will add an async

[Intel-wired-lan] [PATCH v6 07/11 iwl-next] idpf: refactor idpf_recv_mb_msg

2024-02-22 Thread Alan Brady
Now that all the messages are using the transaction API, we can rework idpf_recv_mb_msg quite a lot to simplify it. Due to this, we remove idpf_find_vport as no longer used and alter idpf_recv_event_msg slightly. Tested-by: Alexander Lobakin Signed-off-by: Alan Brady --- drivers/net/ethernet/in

[Intel-wired-lan] [PATCH v6 06/11 iwl-next] idpf: add async_handler for MAC filter messages

2024-02-22 Thread Alan Brady
There are situations where the driver needs to add a MAC filter but we're explicitly not allowed to sleep so we can wait for a virtchnl message to complete. This adds an async_handler for asynchronously sent messages for MAC filters so that we can better handle if there's an error of some kind. If

[Intel-wired-lan] [PATCH v6 04/11 iwl-next] idpf: refactor queue related virtchnl messages

2024-02-22 Thread Alan Brady
This reworks queue specific virtchnl messages to use the added transaction API. It is fairly mechanical and generally makes the functions using it more simple. Functions using transaction API no longer need to take the vc_buf_lock since it's not using it anymore. After filling out an idpf_vc_xn_pa

[Intel-wired-lan] [PATCH v6 03/11 iwl-next] idpf: refactor vport virtchnl messages

2024-02-22 Thread Alan Brady
This reworks the way vport related virtchnl messages work to take advantage of the added transaction API. It is fairly mechanical as, to use the transaction API, the function just needs to fill out an appropriate idpf_vc_xn_params struct to pass to idpf_vc_xn_exec which will take care of the actual

[Intel-wired-lan] [PATCH v6 02/11 iwl-next] idpf: implement virtchnl transaction manager

2024-02-22 Thread Alan Brady
This starts refactoring how virtchnl messages are handled by adding a transaction manager (idpf_vc_xn_manager). There are two primary motivations here which are to enable handling of multiple messages at once and to make it more robust in general. As it is right now, the driver may only have one p

[Intel-wired-lan] [PATCH v6 01/11 iwl-next] idpf: add idpf_virtchnl.h

2024-02-22 Thread Alan Brady
idpf.h is quite heavy. We can reduce the burden a fair bit by introducing an idpf_virtchnl.h file. This mostly just moves function declarations but there are many of them. This also makes an attempt to group those declarations in a way that makes some sense instead of mishmashed. Suggested-by: Ale

[Intel-wired-lan] [PATCH v6 00/11 iwl-next] idpf: refactor virtchnl messages

2024-02-22 Thread Alan Brady
The motivation for this series has two primary goals. We want to enable support of multiple simultaneous messages and make the channel more robust. The way it works right now, the driver can only send and receive a single message at a time and if something goes really wrong, it can lead to data cor

[Intel-wired-lan] [tnguy-net-queue:dev-queue] BUILD SUCCESS e238272ab296b1fa1195ad416a7ee63e88eaee12

2024-02-22 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240222 gcc arc randconfig-002-20240222 gcc arc

Re: [Intel-wired-lan] Intel E810-XXVDA2: Too high TX timestamp read latency

2024-02-22 Thread Kolacinski, Karol
Dear Martin, On Tue, Feb 20, 2024 at 2:17PM +0100, Martin Kulas wrote: [...] > > > > > > When searching for a solution about this high latency TX timestamp read, > > > I found the following thread from 2022: > > > > > > https://patchwork.ozlabs.org/project/intel-wired-lan/patch/20220802145757.27

Re: [Intel-wired-lan] [net-next v4] intel: make module parameters readable in sys filesystem

2024-02-22 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of Jon > Maxwell > Sent: Friday, February 16, 2024 3:31 AM > To: Brandeburg, Jesse > Cc: intel-wired-...@lists.osuosl.org; linux-ker...@vger.kernel.org; > eduma...@google.com; Nguyen, Anthony L ; > net...@vger.kernel.org; k...@kern

[Intel-wired-lan] [PATCH RFC iwl-net] ixgbe: do not account for XDP rings in Tx watchdog

2024-02-22 Thread Maciej Fijalkowski
Fix issue where ixgbe driver triggers resets in endless manner. A snippet from dmesg: [1879966.583523] ixgbe :86:00.0 enp134s0f0: initiating reset to clear Tx work after link loss [1879968.405694] ixgbe :86:00.0 enp134s0f0: Reset adapter [1879968.925689] ixgbe :86:00.0 enp134s0f0: det

Re: [Intel-wired-lan] [PATCH net-next v4 3/9] net: qlogic: qede: Use linkmode helpers for EEE

2024-02-22 Thread Andrew Lunn
On Wed, Feb 21, 2024 at 10:28:51AM +, Simon Horman wrote: > On Tue, Feb 20, 2024 at 03:45:28PM +0100, Andrew Lunn wrote: > > > > + unsupp = linkmode_andnot(tmp, edata->advertised, supported); > > > > > > nit: Given the types involved, I might have written this as: > > > > > > unsupp =

[Intel-wired-lan] [PATCH iwl-next 3/3] ixgbe: pull out stats update to common routines

2024-02-22 Thread Maciej Fijalkowski
Introduce ixgbe_update_{r,t}x_ring_stats() that will be used by both standard and ZC datapath. Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 54 ++- .../ethernet/intel/ixgbe/ixgbe_txrx_common.h | 7 +++ drivers/net/ethernet/intel/ixgbe/ix

[Intel-wired-lan] [PATCH iwl-next 2/3] ice: avoid unnecessary devm_ usage

2024-02-22 Thread Maciej Fijalkowski
1. pcaps are free'd right after AQ routines are done, no need for devm_'s 2. a test frame for loopback test in ethtool -t is destroyed at the end of the test so we don't need devm_ here either. Signed-off-by: Maciej Fijalkowski --- drivers/net/ethernet/intel/ice/ice_common.c | 23

[Intel-wired-lan] [PATCH iwl-next 1/3] ice: do not disable Tx queues twice in ice_down()

2024-02-22 Thread Maciej Fijalkowski
ice_down() clears QINT_TQCTL_CAUSE_ENA_M bit twice, which is not necessary. First clearing happens in ice_vsi_dis_irq() and second in ice_vsi_stop_tx_ring() - remove the first one. While at it, make ice_vsi_dis_irq() static as ice_down() is the only current caller of it. Signed-off-by: Maciej Fij

[Intel-wired-lan] [PATCH iwl-next 0/3] intel: misc improvements

2024-02-22 Thread Maciej Fijalkowski
Hi, here are not related improvements to ice and ixgbe. Spotted while working on other issues. First one takes care redundant Tx disabling on ifdown. Second one is about rather obvious getting rid of devm_ usage and last one is plain refactor of stats update. Thanks! Maciej Fijalkowski (3): ic

Re: [Intel-wired-lan] [PATCH v5 01/10 iwl-next] idpf: implement virtchnl transaction manager

2024-02-22 Thread Alan Brady
On 2/22/2024 5:04 AM, Alexander Lobakin wrote: From: Alexander Lobakin Date: Thu, 22 Feb 2024 13:53:25 +0100 From: Alan Brady Date: Wed, 21 Feb 2024 12:16:37 -0800 On 2/21/2024 4:15 AM, Alexander Lobakin wrote: From: Alan Brady Date: Tue, 20 Feb 2024 16:49:40 -0800 This starts refactori

Re: [Intel-wired-lan] [PATCH iwl-next v4 4/5] ice: Add tx_scheduling_layers devlink param

2024-02-22 Thread Mateusz Polchlopek
On 2/22/2024 12:38 AM, Jakub Kicinski wrote: On Mon, 19 Feb 2024 13:37:36 +0100 Jiri Pirko wrote: devlink dev param show pci/:4b:00.0 name tx_scheduling_layers pci/:4b:00.0: name tx_scheduling_layers type driver-specific values: cmode permanent value 9 Set: devlink dev pa

Re: [Intel-wired-lan] [PATCH iwl-next v1 2/2] net: intel: implement modern PM ops declarations

2024-02-22 Thread Romanowski, Rafal
> -Original Message- > From: Intel-wired-lan On Behalf Of > Simon Horman > Sent: Monday, February 19, 2024 10:22 AM > To: Brandeburg, Jesse > Cc: net...@vger.kernel.org; Eric Dumazet ; Nguyen, > Anthony L ; Brady, Alan > ; Jakub Kicinski ; intel-wired- > l...@lists.osuosl.org; Paolo Abeni

Re: [Intel-wired-lan] [PATCH v5 01/10 iwl-next] idpf: implement virtchnl transaction manager

2024-02-22 Thread Alexander Lobakin
From: Alexander Lobakin Date: Thu, 22 Feb 2024 13:53:25 +0100 > From: Alan Brady > Date: Wed, 21 Feb 2024 12:16:37 -0800 > >> On 2/21/2024 4:15 AM, Alexander Lobakin wrote: >>> From: Alan Brady >>> Date: Tue, 20 Feb 2024 16:49:40 -0800 >>> This starts refactoring how virtchnl messages are

[Intel-wired-lan] [tnguy-next-queue:dev-queue] BUILD SUCCESS 590317286d5d7994c92312aa948a7f5ac77d8697

2024-02-22 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240222 gcc arc randconfig-002-20240222 gcc arm

Re: [Intel-wired-lan] [PATCH v5 01/10 iwl-next] idpf: implement virtchnl transaction manager

2024-02-22 Thread Alexander Lobakin
From: Alan Brady Date: Wed, 21 Feb 2024 12:16:37 -0800 > On 2/21/2024 4:15 AM, Alexander Lobakin wrote: >> From: Alan Brady >> Date: Tue, 20 Feb 2024 16:49:40 -0800 >> >>> This starts refactoring how virtchnl messages are handled by adding a >>> transaction manager (idpf_vc_xn_manager). [...]

[Intel-wired-lan] [iwl-next v2 1/2] ice: tc: check src_vsi in case of traffic from VF

2024-02-22 Thread Michal Swiatkowski
In case of traffic going from the VF (so ingress for port representor) source VSI should be consider during packet classification. It is needed for hardware to not match packets from different ports with filters added on other port. It is only for "from VF" traffic, because other traffic direction

[Intel-wired-lan] [iwl-next v2 2/2] ice: tc: allow ip_proto matching

2024-02-22 Thread Michal Swiatkowski
Add new matching type for ip_proto. Use it in the same lookup type as for TTL. In hardware it has the same protocol ID, but different offset. Example command to add filter with ip_proto: $tc filter add dev eth10 ingress protocol ip flower ip_proto icmp \ skip_sw action mirred egress redirect dev

[Intel-wired-lan] [iwl-next v2 0/2] ice: extend tc flower offload

2024-02-22 Thread Michal Swiatkowski
Extend hardware support for tc flower to match ip_proto field (patch 2) and source VSI metadata when the packets are sent from VF (patch 1). v1 --> v2: [1] * fix commit message, add more examples [1] https://lore.kernel.org/netdev/20240220105950.6814-1-michal.swiatkow...@linux.intel.com/ Mich

Re: [Intel-wired-lan] [PATCH net v1 1/1] igb: extend PTP timestamp adjustments to i211

2024-02-22 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Oleksij Rempel > Sent: Tuesday, February 13, 2024 5:24 PM > To: Brandeburg, Jesse ; Nguyen, Anthony L > ; David S. Miller ; Eric > Dumazet ; Jakub Kicinski ; Paolo Abeni > ; Richard Cochran > Cc: Oleksij Rempel ; > intel-wir

Re: [Intel-wired-lan] [PATCH] igc: fix LEDS_CLASS dependency

2024-02-22 Thread Paul Menzel
Dear Arnd, Thank you for the patch. Am 22.02.24 um 11:02 schrieb Arnd Bergmann: From: Arnd Bergmann When IGC is built-in but LEDS_CLASS is a loadable module, there is a link failure: x86_64-linux-ld: drivers/net/ethernet/intel/igc/igc_leds.o: in function `igc_led_setup': igc_leds.c:(.text

Re: [Intel-wired-lan] [PATCH] igc: fix LEDS_CLASS dependency

2024-02-22 Thread Kurt Kanzenbach
On Thu Feb 22 2024, Arnd Bergmann wrote: > From: Arnd Bergmann > > When IGC is built-in but LEDS_CLASS is a loadable module, there is > a link failure: > > x86_64-linux-ld: drivers/net/ethernet/intel/igc/igc_leds.o: in function > `igc_led_setup': > igc_leds.c:(.text+0x75c): undefined reference to

[Intel-wired-lan] [PATCH] igc: fix LEDS_CLASS dependency

2024-02-22 Thread Arnd Bergmann
From: Arnd Bergmann When IGC is built-in but LEDS_CLASS is a loadable module, there is a link failure: x86_64-linux-ld: drivers/net/ethernet/intel/igc/igc_leds.o: in function `igc_led_setup': igc_leds.c:(.text+0x75c): undefined reference to `devm_led_classdev_register_ext' Add another depende

Re: [Intel-wired-lan] [REGRESSION] Intel ICE Ethernet driver in linux >= 6.6.9 triggers extra memory consumption and cause continous kswapd* usage and continuous swapping

2024-02-22 Thread Thorsten Leemhuis
On 19.02.24 12:40, Jaroslav Pulchart wrote: > If the question is for me then my opinion about it is this: > > I'm fine with the behaviour of a driver about memory consumption if it > is predictable/described with the possibility to change it from > default values. My understanding of "predictable"

Re: [Intel-wired-lan] [PATCH iwl-net 0/3] intel: fix routines that disable queue pairs

2024-02-22 Thread Magnus Karlsson
On Tue, 20 Feb 2024 at 22:46, Maciej Fijalkowski wrote: > > Hi, > > It started out as an issue on ixgbe reported by Pavel [0] which first > patch is supposed to fix, but apparently i40e and ice have queue pair > disabling flow a bit out of order, so I addressed them as well. More > info is include