Re: [Intel-wired-lan] [PATCH iwl-net v4] ice: Add netif_device_attach/detach into PF reset flow

2024-08-20 Thread Maciej Fijalkowski
On Tue, Aug 20, 2024 at 06:15:24PM +0200, Dawid Osuchowski wrote: > Ethtool callbacks can be executed while reset is in progress and try to > access deleted resources, e.g. getting coalesce settings can result in a > NULL pointer dereference seen below. > > Reproduction steps: > Once the driver is

Re: [Intel-wired-lan] ACPI IRQ storm with 6.10

2024-08-20 Thread Jiri Slaby
On 20. 08. 24, 23:30, Bjorn Helgaas wrote: On Tue, Aug 20, 2024 at 11:13:54PM +0200, Petr Valenta wrote: Dne 20. 08. 24 v 20:09 Bjorn Helgaas napsal(a): On Mon, Aug 19, 2024 at 07:23:42AM +0200, Jiri Slaby wrote: On 19. 08. 24, 6:50, Jiri Slaby wrote: CC e1000e guys + Jesse (due to 75a3f93b53

Re: [Intel-wired-lan] ACPI IRQ storm with 6.10

2024-08-20 Thread Petr Valenta
Dne 20. 08. 24 v 20:09 Bjorn Helgaas napsal(a): [+to Petr, -cc Jesse, bouncing] On Mon, Aug 19, 2024 at 07:23:42AM +0200, Jiri Slaby wrote: On 19. 08. 24, 6:50, Jiri Slaby wrote: CC e1000e guys + Jesse (due to 75a3f93b5383) + Bjorn (due to b2c289415b2b) Bjorn, I am confused by these chan

Re: [Intel-wired-lan] [PATCH iwl-next v5 4/5] ice: Use ice_adapter for PTP shared data instead of auxdev

2024-08-20 Thread Tony Nguyen
On 8/14/2024 12:54 PM, Sergey Temerkhanov wrote: ... +static inline bool ice_is_primary(struct ice_hw *hw) No 'inline' functions in c files please. +{ + return ice_is_e825c(hw) && ice_is_dual(hw) ? + !!(hw->dev_caps.nac_topo.mode & ICE_NAC_TOPO_PRIMARY_M) : true; +} +

[Intel-wired-lan] [PATCH iwl-next v5] ice: add E830 HW VF mailbox message limit support

2024-08-20 Thread Paul Greenwalt
E830 adds hardware support to prevent the VF from overflowing the PF mailbox with VIRTCHNL messages. E830 will use the hardware feature (ICE_F_MBX_LIMIT) instead of the software solution ice_is_malicious_vf(). To prevent a VF from overflowing the PF, the PF sets the number of messages per VF that

Re: [Intel-wired-lan] [iwl-next v1] ice: set correct dst VSI in only LAN filters

2024-08-20 Thread Jacob Keller
On 8/19/2024 3:14 AM, Michal Swiatkowski wrote: > The filters set that will reproduce the problem: > $ tc filter add dev $VF0_PR ingress protocol arp prio 0 flower \ > skip_sw dst_mac ff:ff:ff:ff:ff:ff action mirred egress \ > redirect dev $PF0 > $ tc filter add dev $VF0_PR ingress p

Re: [Intel-wired-lan] ACPI IRQ storm with 6.10

2024-08-20 Thread Bjorn Helgaas
On Tue, Aug 20, 2024 at 11:13:54PM +0200, Petr Valenta wrote: > Dne 20. 08. 24 v 20:09 Bjorn Helgaas napsal(a): > > On Mon, Aug 19, 2024 at 07:23:42AM +0200, Jiri Slaby wrote: > > > On 19. 08. 24, 6:50, Jiri Slaby wrote: > > > > CC e1000e guys + Jesse (due to 75a3f93b5383) + Bjorn (due to > > > >

Re: [Intel-wired-lan] [PATCH iwl-next v3] i40e: Add Energy Efficient Ethernet ability for X710 Base-T/KR/KX cards

2024-08-20 Thread Jacob Keller
On 8/19/2024 2:27 AM, Aleksandr Loktionov wrote: > Add "EEE: Enabled/Disabled" to dmesg for supported X710 Base-T/KR/KX cards. > According to the IEEE standard report the EEE ability and and the > EEE Link Partner ability. Use the kernel's 'ethtool_keee' structure > and report EEE link modes. >

Re: [Intel-wired-lan] [iwl-net v2] ice: use internal pf id instead of function number

2024-08-20 Thread Jacob Keller
On 8/19/2024 12:17 AM, Michal Swiatkowski wrote: > Use always the same pf id in devlink port number. When doing > pass-through the PF to VM bus info func number can be any value. > Reviewed-by: Jacob Keller > Fixes: 2ae0aa4758b0 ("ice: Move devlink port to PF/VF struct") > Reviewed-by: Wojci

[Intel-wired-lan] [tnguy-next-queue:100GbE] BUILD SUCCESS 27e4fad54248090399e7764cd7bd2efabe69664e

2024-08-20 Thread kernel test robot
gcc-13.2.0 arc allyesconfig gcc-13.2.0 arc randconfig-001-20240820 gcc-13.2.0 arc randconfig-002-20240820 gcc-13.2.0 arm allmodconfig gcc-14.1.0 arm allnoconfig clang

Re: [Intel-wired-lan] ACPI IRQ storm with 6.10

2024-08-20 Thread Bjorn Helgaas
[+to Tony, Przemek for e1000e questions; -cc Jesse] On Mon, Aug 19, 2024 at 07:23:42AM +0200, Jiri Slaby wrote: > On 19. 08. 24, 6:50, Jiri Slaby wrote: > > CC e1000e guys + Jesse (due to 75a3f93b5383) + Bjorn (due to b2c289415b2b) > > Bjorn, > > I am confused by these changes: > ===

Re: [Intel-wired-lan] ACPI IRQ storm with 6.10

2024-08-20 Thread Bjorn Helgaas
[+to Petr, -cc Jesse, bouncing] On Mon, Aug 19, 2024 at 07:23:42AM +0200, Jiri Slaby wrote: > On 19. 08. 24, 6:50, Jiri Slaby wrote: > > CC e1000e guys + Jesse (due to 75a3f93b5383) + Bjorn (due to b2c289415b2b) > > Bjorn, > > I am confused by these changes: > ===

[Intel-wired-lan] [tnguy-next-queue:200GbE] BUILD SUCCESS 845a2d94da6d0bf09e250d456dc95ed3f53a79a6

2024-08-20 Thread kernel test robot
-13.2.0 arc allnoconfig gcc-13.2.0 arc allyesconfig gcc-13.2.0 arc defconfig gcc-13.2.0 arc randconfig-001-20240820 gcc-13.2.0 arc randconfig-002-20240820 gcc-13.2.0

[Intel-wired-lan] [PATCH iwl-net v4] ice: Add netif_device_attach/detach into PF reset flow

2024-08-20 Thread Dawid Osuchowski
Ethtool callbacks can be executed while reset is in progress and try to access deleted resources, e.g. getting coalesce settings can result in a NULL pointer dereference seen below. Reproduction steps: Once the driver is fully initialized, trigger reset: # echo 1 > /sys/class/net//device/r

Re: [Intel-wired-lan] [PATCH net-next v13 04/14] mm: page_frag: add '_va' suffix to page_frag API

2024-08-20 Thread Alexander Duyck
On Tue, Aug 20, 2024 at 6:07 AM Yunsheng Lin wrote: > > On 2024/8/19 23:54, Alexander Duyck wrote: > > ... > > > "There are three types of API as proposed in this patchset instead of > two types of API: > 1. page_frag_alloc_va() returns [va]. > 2. page_frag_alloc_pg() retu

[Intel-wired-lan] [tnguy-net-queue:200GbE] BUILD SUCCESS 565d121b69980637f040eb4d84289869cdaabedf

2024-08-20 Thread kernel test robot
allmodconfig gcc-13.2.0 arc allnoconfig gcc-13.2.0 arc allyesconfig gcc-13.2.0 arc defconfig gcc-13.2.0 archsdk_defconfig gcc-13.2.0 arc randconfig-001-20240820

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

2024-08-20 Thread kernel test robot
-20240820 clang-18 i386 buildonly-randconfig-002-20240820 clang-18 i386 buildonly-randconfig-003-20240820 clang-18 i386 buildonly-randconfig-004-20240820 clang-18 i386 buildonly-randconfig-005-20240820 clang-18 i386 buildonly-randconfig-006-20240820

Re: [Intel-wired-lan] [PATCH net-next] ice: Fix a 32bit bug

2024-08-20 Thread Alexander Lobakin
From: Dan Carpenter Date: Tue, 20 Aug 2024 16:43:46 +0300 > BIT() is unsigned long but ->pu.flg_msk and ->pu.flg_val are u64 type. > On 32 bit systems, unsigned long is a u32 and the mismatch between u32 > and u64 will break things for the high 32 bits. > > Fixes: 9a4c07aaa0f5 ("ice: add parser

[Intel-wired-lan] [PATCH net-next] ice: Fix a 32bit bug

2024-08-20 Thread Dan Carpenter
BIT() is unsigned long but ->pu.flg_msk and ->pu.flg_val are u64 type. On 32 bit systems, unsigned long is a u32 and the mismatch between u32 and u64 will break things for the high 32 bits. Fixes: 9a4c07aaa0f5 ("ice: add parser execution main loop") Signed-off-by: Dan Carpenter --- drivers/net/e

[Intel-wired-lan] [bug report] ice: add parser execution main loop

2024-08-20 Thread Dan Carpenter
Hello Junfeng Guo, Commit 9a4c07aaa0f5 ("ice: add parser execution main loop") from Jul 25, 2024 (linux-next), leads to the following Smatch static checker warning: drivers/net/ethernet/intel/ice/ice_parser_rt.c:124 ice_bst_key_init() error: buffer overflow 'key' 10 <= 19 drivers/net/ethernet/in

Re: [Intel-wired-lan] [PATCH iwl-net v3 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-20 Thread Maciej Fijalkowski
On Tue, Aug 20, 2024 at 02:47:31PM +0200, Larysa Zaremba wrote: > On Tue, Aug 20, 2024 at 02:31:51PM +0200, Maciej Fijalkowski wrote: > > On Mon, Aug 19, 2024 at 12:05:38PM +0200, Larysa Zaremba wrote: > > > Currently, netif_queue_set_napi() is called from ice_vsi_rebuild() that is > > > not rtnl-l

Re: [Intel-wired-lan] [PATCH net-next v13 04/14] mm: page_frag: add '_va' suffix to page_frag API

2024-08-20 Thread Yunsheng Lin
On 2024/8/19 23:54, Alexander Duyck wrote: ... "There are three types of API as proposed in this patchset instead of two types of API: 1. page_frag_alloc_va() returns [va]. 2. page_frag_alloc_pg() returns [page, offset]. 3. page_frag_alloc() returns [va] & [page, off

Re: [Intel-wired-lan] [PATCH net-next v1 1/2] dpll: add Embedded SYNC feature for a pin

2024-08-20 Thread Kubalewski, Arkadiusz
>From: Jakub Kicinski >Sent: Saturday, August 10, 2024 6:16 AM > >On Thu, 8 Aug 2024 13:20:12 +0200 Arkadiusz Kubalewski wrote: >> +Device may provide ability to use Embedded SYNC feature. It allows >> +to embed additional SYNC signal into the base frequency of a pin - a one >> +special pulse of

Re: [Intel-wired-lan] [PATCH iwl-net v3 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-20 Thread Larysa Zaremba
On Tue, Aug 20, 2024 at 02:31:51PM +0200, Maciej Fijalkowski wrote: > On Mon, Aug 19, 2024 at 12:05:38PM +0200, Larysa Zaremba wrote: > > Currently, netif_queue_set_napi() is called from ice_vsi_rebuild() that is > > not rtnl-locked when called from the reset. This creates the need to take > > the

Re: [Intel-wired-lan] [PATCH iwl-next v6 4/6] igb: Introduce XSK data structures and helpers

2024-08-20 Thread Fijalkowski, Maciej
> Hi Sriram, > > On Mon Aug 19 2024, Sriram Yagnaraman wrote: > >> -Original Message- > >> From: Maciej Fijalkowski > >> Sent: Monday, 19 August 2024 16:11 > >> To: Kurt Kanzenbach > >> Cc: Tony Nguyen ; Przemek Kitszel > >> ; David S. Miller ; > >> Eric Dumazet ; Jakub Kicinski ; > >> P

Re: [Intel-wired-lan] [PATCH iwl-net v3 1/6] ice: move netif_queue_set_napi to rtnl-protected sections

2024-08-20 Thread Maciej Fijalkowski
On Mon, Aug 19, 2024 at 12:05:38PM +0200, Larysa Zaremba wrote: > Currently, netif_queue_set_napi() is called from ice_vsi_rebuild() that is > not rtnl-locked when called from the reset. This creates the need to take > the rtnl_lock just for a single function and complicates the > synchronization w

Re: [Intel-wired-lan] [PATCH iwl-next v6 4/6] igb: Introduce XSK data structures and helpers

2024-08-20 Thread Kurt Kanzenbach
Hi Sriram, On Mon Aug 19 2024, Sriram Yagnaraman wrote: >> -Original Message- >> From: Maciej Fijalkowski >> Sent: Monday, 19 August 2024 16:11 >> To: Kurt Kanzenbach >> Cc: Tony Nguyen ; Przemek Kitszel >> ; David S. Miller ; >> Eric Dumazet ; Jakub Kicinski ; >> Paolo Abeni ; Alexei St

[Intel-wired-lan] [PATCH v7 iwl-next 6/6] ice: combine cross timestamp functions for E82x and E830

2024-08-20 Thread Karol Kolacinski
From: Jacob Keller The E830 and E82x devices use essentially the same logic for performing a crosstimestamp. The only difference is that E830 hardware has different offsets. Instead of having two implementations, combine them into a single ice_capture_crosststamp() function. Also combine the wra

[Intel-wired-lan] [PATCH v7 iwl-next 5/6] ice: Add timestamp ready bitmap for E830 products

2024-08-20 Thread Karol Kolacinski
E830 PHY supports timestamp ready bitmap. Enable the bitmap by refactoring tx init function. Reviewed-by: Przemek Kitszel Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_ptp.c | 56 +++- drivers/net/ethernet/intel/ice/ice_ptp.h | 3 +- 2 files changed

[Intel-wired-lan] [PATCH v7 iwl-next 4/6] ice: Process TSYN IRQ in a separate function

2024-08-20 Thread Karol Kolacinski
Simplify TSYN IRQ processing by moving it to a separate function and having appropriate behavior per PHY model, instead of multiple conditions not related to HW, but to specific timestamping modes. Reviewed-by: Przemek Kitszel Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/i

[Intel-wired-lan] [PATCH v7 iwl-next 3/6] ice: Implement PTP support for E830 devices

2024-08-20 Thread Karol Kolacinski
From: Michal Michalik Add specific functions and definitions for E830 devices to enable PTP support. Introduce new PHY model ICE_PHY_E830. E830 devices support direct write to GLTSYN_ registers without shadow registers and 64 bit read of PHC time. Reviewed-by: Przemek Kitszel Co-developed-by: M

[Intel-wired-lan] [PATCH v7 iwl-next 2/6] ice: Use FIELD_PREP for timestamp values

2024-08-20 Thread Karol Kolacinski
Instead of using shifts and casts, use FIELD_PREP after reading 40b timestamp values. Signed-off-by: Karol Kolacinski --- V5 -> V6: Replaced removed macros with the new ones drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 9 ++--- drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 13 +---

[Intel-wired-lan] [PATCH v7 iwl-next 1/6] ice: Remove unncecessary ice_is_e8xx() functions

2024-08-20 Thread Karol Kolacinski
Remove unnecessary ice_is_e8xx() functions and PHY model. Instead, use MAC type where applicable. Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_common.c | 128 +--- drivers/net/ethernet/intel/ice/ice_common.h | 19 ++- drivers/net/ethernet/intel/ice/ice_

[Intel-wired-lan] [PATCH v7 iwl-next 0/6] ice: Implement PTP support for E830 devices

2024-08-20 Thread Karol Kolacinski
Add specific functions and definitions for E830 devices to enable PTP support. Refactor processing of timestamping interrupt and cross timestamp to avoid code redundancy. Jacob Keller (1): ice: combine cross timestamp functions for E82x and E830 Karol Kolacinski (4): ice: Remove unncecessary

Re: [Intel-wired-lan] [PATCH net-next v1 1/2] dpll: add Embedded SYNC feature for a pin

2024-08-20 Thread Kubalewski, Arkadiusz
>-Original Message- >From: Jiri Pirko >Sent: Thursday, August 8, 2024 1:54 PM > >Thu, Aug 08, 2024 at 01:20:12PM CEST, arkadiusz.kubalew...@intel.com wrote: >>Implement and document new pin attributes for providing Embedded SYNC >>capabilities to the DPLL subsystem users through a netlink

Re: [Intel-wired-lan] [PATCH iwl-net v3] ice: Add netif_device_attach/detach into PF reset flow

2024-08-20 Thread Dawid Osuchowski
On 19.08.2024 10:47, Przemek Kitszel wrote: On 8/19/24 10:21, Dawid Osuchowski wrote: @@ -7731,6 +7733,10 @@ static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type)   ice_rebuild_arfs(pf);   } +    struct ice_vsi *vsi = ice_get_main_vsi(pf); you should separate d

Re: [Intel-wired-lan] [RFC net-next 0/6] Cleanup IRQ affinity checks in several drivers

2024-08-20 Thread Joe Damato
On Tue, Aug 20, 2024 at 09:40:31AM +0300, Shay Drori wrote: > > > On 15/08/2024 13:22, Joe Damato wrote: > > External email: Use caution opening links or attachments > > > > > > On Wed, Aug 14, 2024 at 05:20:46PM -0700, Jakub Kicinski wrote: > > > On Wed, 14 Aug 2024 19:01:40 +0100 Joe Damato w

Re: [Intel-wired-lan] [PATCH iwl-net v1 1/1] e1000e: avoid failing the system during pm_suspend

2024-08-20 Thread Mor Bar-Gabay
On 06/08/2024 16:23, Vitaly Lifshits wrote: Occasionally when the system goes into pm_suspend, the suspend might fail due to a PHY access error on the network adapter. Previously, this would have caused the whole system to fail to go to a low power state. An example of this was reported in the fo