Re: [Intel-wired-lan] [PATCH iwl-next v2 00/12] Add support for Rx timestamping for both ice and iavf drivers.

2024-03-28 Thread Mateusz Polchlopek
On 3/27/2024 3:50 PM, Jakub Kicinski wrote: On Wed, 27 Mar 2024 09:25:31 -0400 Mateusz Polchlopek wrote: v2: - fixed warning related to wrong specifier to dev_err_once in commit 7 - fixed warnings related to unused variables in commit 9 You posted this yesterday and got no feedback. You'

[Intel-wired-lan] [PATCH v2 iwl-next 00/12] Introduce ETH56G PHY model for E825C products

2024-03-28 Thread Karol Kolacinski
E825C products have a different PHY model than E822, E823 and E810 products. This PHY is ETH56G and its support is necessary to have functional PTP stack for E825C products. Grzegorz Nitka (2): ice: Add NAC Topology device capability parser ice: Adjust PTP init for 2x50G E825C devices Jacob K

[Intel-wired-lan] [PATCH v2 iwl-next 01/12] ice: Introduce ice_ptp_hw struct

2024-03-28 Thread Karol Kolacinski
Create new ice_ptp_hw struct and use it for all HW and PTP-related fields from struct ice_hw. Replace definitions with struct fields, which values are set accordingly to a specific device. Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- driver

[Intel-wired-lan] [PATCH v2 iwl-next 02/12] ice: Introduce helper to get tmr_cmd_reg values

2024-03-28 Thread Karol Kolacinski
From: Jacob Keller Multiple places in the driver code need to convert enum ice_ptp_tmr_cmd values into register bits for both the main timer and the PHY port timers. The main MAC register has one bit scheme for timer commands, while the PHY commands use a different scheme. The E810 and E830 devi

[Intel-wired-lan] [PATCH v2 iwl-next 03/12] ice: Implement Tx interrupt enablement functions

2024-03-28 Thread Karol Kolacinski
From: Sergey Temerkhanov Introduce functions enabling/disabling Tx TS interrupts for the E822 and ETH56G PHYs Signed-off-by: Sergey Temerkhanov Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_ptp.c| 63

[Intel-wired-lan] [PATCH v2 iwl-next 04/12] ice: Add PHY OFFSET_READY register clearing

2024-03-28 Thread Karol Kolacinski
Add a possibility to mark all transmitted/received timestamps as invalid by clearing PHY OFFSET_READY registers. Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_ptp.c| 11 --- drivers/net/ethernet/int

[Intel-wired-lan] [PATCH v2 iwl-next 05/12] ice: Move CGU block

2024-03-28 Thread Karol Kolacinski
From: Sergey Temerkhanov Move CGU block to the beginning of ice_ptp_hw.c Signed-off-by: Sergey Temerkhanov Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 986 ++-- 1 file change

[Intel-wired-lan] [PATCH v2 iwl-next 06/12] ice: Introduce ice_get_base_incval() helper

2024-03-28 Thread Karol Kolacinski
From: Jacob Keller Add a new helper for getting base clock increment value for specific HW. Signed-off-by: Jacob Keller Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_ptp.c| 7 +-- drivers/net/et

[Intel-wired-lan] [PATCH v2 iwl-next 08/12] ice: Change CGU regs struct to anonymous

2024-03-28 Thread Karol Kolacinski
Simplify the code by using anonymous struct in CGU registers instead of naming each structure 'field'. Suggested-by: Przemek Kitszel Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_cgu_regs.h | 12 ++--- dri

[Intel-wired-lan] [PATCH v2 iwl-next 07/12] ice: Introduce ETH56G PHY model for E825C products

2024-03-28 Thread Karol Kolacinski
From: Sergey Temerkhanov E825C products feature a new PHY model - ETH56G. Introduces all necessary PHY definitions, functions etc. for ETH56G PHY, analogous to E82X and E810 ones with addition of a few HW-specific functionalities for ETH56G like one-step timestamping. It ensures correct PTP ini

[Intel-wired-lan] [PATCH v2 iwl-next 09/12] ice: Add support for E825-C TS PLL handling

2024-03-28 Thread Karol Kolacinski
From: Michal Michalik The CGU layout of E825-C is a little different than E822/E823. Add support the new hardware adding relevant functions. Signed-off-by: Michal Michalik Reviewed-by: Przemek Kitszel Reviewed-by: Arkadiusz Kubalewski Signed-off-by: Karol Kolacinski --- drivers/net/ethernet

[Intel-wired-lan] [PATCH v2 iwl-next 10/12] ice: Add NAC Topology device capability parser

2024-03-28 Thread Karol Kolacinski
From: Grzegorz Nitka Add new device capability ICE_AQC_CAPS_NAC_TOPOLOGY which allows to determine the mode of operation (1 or 2 NAC). Define a new structure to store data from new capability and corresponding parser code. Co-developed-by: Prathisna Padmasanan Signed-off-by: Prathisna Padmasana

[Intel-wired-lan] [PATCH v2 iwl-next 11/12] ice: Support 2XNAC configuration using auxbus

2024-03-28 Thread Karol Kolacinski
There are E825C products featuring 2 NACs. Those have only one source clock on the primary NAC. For those devices, there should be only one clock controller on the primary NAC. All PFs from both NACs should connect as auxiliary devices to the auxiliary driver on the primary NAC. Reviewed-by: Igor

[Intel-wired-lan] [PATCH v2 iwl-next 12/12] ice: Adjust PTP init for 2x50G E825C devices

2024-03-28 Thread Karol Kolacinski
From: Grzegorz Nitka >From FW/HW perspective, 2 port topology in E825C devices requires merging of 2 port mapping internally to CPK and breakout mapping externally to CPK. As a consequence, it requires different port numbering from PTP code perspective. For that topology, pf_id can not be used to

Re: [Intel-wired-lan] [PATCH net-next v2 0/3] compiler_types: add Endianness-dependent __counted_by_{le, be}

2024-03-28 Thread Przemek Kitszel
On 3/27/24 15:22, Alexander Lobakin wrote: Some structures contain flexible arrays at the end and the counter for them, but the counter has explicit Endianness and thus __counted_by() can't be used directly. To increase test coverage for potential problems without breaking anything, introduce __

Re: [Intel-wired-lan] [iwl-next v1 1/3] ice: move ice_devlink.[ch] to devlink folder

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Swiatkowski > Sent: Tuesday, March 26, 2024 3:05 AM > To: intel-wired-...@lists.osuosl.org > Cc: Loktionov, Aleksandr ; > net...@vger.kernel.org; Michal Swiatkowski > > Subject: [Intel-wired-lan] [iwl-next v1 1/3] ice:

Re: [Intel-wired-lan] [iwl-next v1 2/3] ice: move devlink port code to a separate file

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Swiatkowski > Sent: Tuesday, March 26, 2024 3:05 AM > To: intel-wired-...@lists.osuosl.org > Cc: Drewek, Wojciech ; net...@vger.kernel.org; > Michal Swiatkowski ; Piotr Raczynski > ; Kitszel, Przemyslaw > > Subject: [I

Re: [Intel-wired-lan] [iwl-next v1 3/3] ice: hold devlink lock for whole init/cleanup

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Swiatkowski > Sent: Tuesday, March 26, 2024 3:05 AM > To: intel-wired-...@lists.osuosl.org > Cc: Drewek, Wojciech ; net...@vger.kernel.org; > Jiri Pirko ; Michal Swiatkowski > > Subject: [Intel-wired-lan] [iwl-next v1 3

Re: [Intel-wired-lan] [PATCH v2 iwl-next 03/12] ice: Implement Tx interrupt enablement functions

2024-03-28 Thread Kolacinski, Karol
Hi, > > +/** > > + * ice_phy_cfg_intr_e82x - Configure TX timestamp interrupt > > + * @hw: pointer to the HW struct > > + * @quad: the timestamp quad > > + * @ena: enable or disable interrupt > > + * @threshold: interrupt threshold > > + * > > + * Configure TX timestamp interrupt for the specified

Re: [Intel-wired-lan] [PATCH net-next v2] net: remove gfp_mask from napi_alloc_skb()

2024-03-28 Thread Simon Horman
On Tue, Mar 26, 2024 at 09:02:12PM -0700, Jakub Kicinski wrote: > __napi_alloc_skb() is napi_alloc_skb() with the added flexibility > of choosing gfp_mask. This is a NAPI function, so GFP_ATOMIC is > implied. The only practical choice the caller has is whether to > set __GFP_NOWARN. But that's a fa

Re: [Intel-wired-lan] [PATCH iwl-next v2] igc: Add MQPRIO offload support

2024-03-28 Thread Simon Horman
On Tue, Mar 26, 2024 at 02:34:54PM +0100, Kurt Kanzenbach wrote: > Add support for offloading MQPRIO. The hardware has four priorities as well > as four queues. Each queue must be a assigned with a unique priority. > > However, the priorities are only considered in TSN Tx mode. There are two > TSN

Re: [Intel-wired-lan] [PATCH net-next v2] net: remove gfp_mask from napi_alloc_skb()

2024-03-28 Thread Eric Dumazet
On Thu, Mar 28, 2024 at 12:32 PM Simon Horman wrote: > > On Tue, Mar 26, 2024 at 09:02:12PM -0700, Jakub Kicinski wrote: > > __napi_alloc_skb() is napi_alloc_skb() with the added flexibility > > of choosing gfp_mask. This is a NAPI function, so GFP_ATOMIC is > > implied. The only practical choice

[Intel-wired-lan] [tnguy-next-queue:main] BUILD SUCCESS 2a702c2e57908e7bb5c814afeac577a14815c2f2

2024-03-28 Thread kernel test robot
gcc i386 allyesconfig gcc i386 buildonly-randconfig-001-20240328 gcc i386 buildonly-randconfig-002-20240328 gcc i386 buildonly-randconfig-003-20240328 clang i386 buildonly-randconfig-004-20240328 gcc i386 buildonly-randconfig-005-20240328

[Intel-wired-lan] [PATCH RFC 04/10] mm: page_frag: add '_va' suffix to page_frag API

2024-03-28 Thread Yunsheng Lin
Currently most of the API for page_frag API is returning 'virtual address' as output or expecting 'virtual address' as input, in order to differentiate the API handling between 'virtual address' and 'struct page', add '_va' suffix to the corresponding API mirroring the page_pool_alloc_va() API of t

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

2024-03-28 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240328 gcc arc randconfig-002-20240328 gcc arm

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

2024-03-28 Thread kernel test robot
allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc randconfig-001-20240328 gcc arc randconfig-002-20240328 gcc arm allmodconfig

Re: [Intel-wired-lan] [PATCH v2 iwl-next 03/12] ice: Implement Tx interrupt enablement functions

2024-03-28 Thread geethasowjanya
On Thu, Mar 28, 2024 at 3:04 PM Karol Kolacinski wrote: > > From: Sergey Temerkhanov > > Introduce functions enabling/disabling Tx TS interrupts > for the E822 and ETH56G PHYs > > Signed-off-by: Sergey Temerkhanov > Reviewed-by: Przemek Kitszel > Reviewed-by: Arkadiusz Kubalewski > Signed-off-

[Intel-wired-lan] [tnguy-net-queue:1GbE] BUILD SUCCESS 861e8086029e003305750b4126ecd6617465f5c7

2024-03-28 Thread kernel test robot
allmodconfig gcc arc allnoconfig gcc arc allyesconfig gcc arc defconfig gcc arc haps_hs_smp_defconfig gcc arc randconfig-001-20240328 gcc arc

Re: [Intel-wired-lan] [PATCH net] i40e: Fix VF MAC filter removal

2024-03-28 Thread Romanowski, Rafal
> -Original Message- > From: Intel-wired-lan On Behalf Of > Brett Creeley > Sent: Thursday, March 14, 2024 4:54 PM > To: ivecera ; net...@vger.kernel.org > Cc: moderated list:INTEL ETHERNET DRIVERS l...@lists.osuosl.org>; open list ; Loktionov, > Aleksandr ; Eric Dumazet > ; Nguyen, Antho

Re: [Intel-wired-lan] [PATCH iwl-next v2 2/7] i40e: Refactor argument of several client notification functions

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:28AM +0100, Ivan Vecera wrote: > Commit 0ef2d5afb12d ("i40e: KISS the client interface") simplified > the client interface so in practice it supports only one client > per i40e netdev. But we have still 2 notification functions that > uses as parameter a pointer to VSI

Re: [Intel-wired-lan] [PATCH iwl-next v2 1/7] i40e: Remove flags field from i40e_veb

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:27AM +0100, Ivan Vecera wrote: > The field is initialized always to zero and it is never read. > Remove it. > > Reviewed-by: Michal Schmidt > Reviewed-by: Aleksandr Loktionov > Reviewed-by: Kalesh AP > Signed-off-by: Ivan Vecera Reviewed-by: Simon Horman

Re: [Intel-wired-lan] [PATCH iwl-next v2 3/7] i40e: Refactor argument of i40e_detect_recover_hung()

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:29AM +0100, Ivan Vecera wrote: > Commit 07d44190a389 ("i40e/i40evf: Detect and recover hung queue > scenario") changes i40e_detect_recover_hung() argument type from > i40e_pf* to i40e_vsi* to be shareable by both i40e and i40evf. > Because the i40evf does not exist any

Re: [Intel-wired-lan] [PATCH iwl-next v2 4/7] i40e: Add helper to access main VSI

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:30AM +0100, Ivan Vecera wrote: > Add simple helper i40e_pf_get_main_vsi(pf) to access main VSI > that replaces pattern 'pf->vsi[pf->lan_vsi]' > > Reviewed-by: Michal Schmidt > Signed-off-by: Ivan Vecera Reviewed-by: Simon Horman

Re: [Intel-wired-lan] [PATCH iwl-next v2 5/7] i40e: Consolidate checks whether given VSI is main

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:31AM +0100, Ivan Vecera wrote: > In the driver code there are 3 types of checks whether given > VSI is main or not: > 1. vsi->type ==/!= I40E_VSI_MAIN > 2. vsi ==/!= pf->vsi[pf->lan_vsi] > 3. vsi->seid ==/!= pf->vsi[pf->lan_vsi]->seid > > All of them are equivalent an

Re: [Intel-wired-lan] [PATCH iwl-next v2 6/7] i40e: Add helper to access main VEB

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:32AM +0100, Ivan Vecera wrote: > Add a helper to access main VEB: > > i40e_pf_get_main_veb(pf) replaces 'pf->veb[pf->lan_veb]' > > Reviewed-by: Michal Schmidt > Reviewed-by: Aleksandr Loktionov > Signed-off-by: Ivan Vecera Reviewed-by: Simon Horman

Re: [Intel-wired-lan] [PATCH iwl-next v2 7/7] i40e: Add and use helper to reconfigure TC for given VSI

2024-03-28 Thread Simon Horman
On Wed, Mar 27, 2024 at 08:57:33AM +0100, Ivan Vecera wrote: > Add helper i40e_vsi_reconfig_tc(vsi) that configures TC > for given VSI using previously stored TC bitmap. > > Effectively replaces open-coded patterns: > > enabled_tc = vsi->tc_config.enabled_tc; > vsi->tc_config.enabled_tc = 0; > i4

Re: [Intel-wired-lan] [PATCH iwl-next v3] ice: Reset VF on Tx MDD event

2024-03-28 Thread Simon Horman
On Tue, Mar 26, 2024 at 05:44:55PM +0100, Marcin Szycik wrote: > In cases when VF sends malformed packets that are classified as malicious, > sometimes it causes Tx queue to freeze. This frozen queue can be stuck > for several minutes being unusable. This behavior can be reproduced with > a faulty

Re: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments

2024-03-28 Thread Tony Nguyen
On 3/26/2024 9:36 AM, Paul Greenwalt wrote: Update existing E830 device ids and comments to align with new naming 'C' for 100G and 'CC' for 200G. Reviewed-by: Wojciech Drewek Signed-off-by: Paul Greenwalt --- ... diff --git a/drivers/net/ethernet/intel/ice/ice_devids.h b/drivers/net/et

Re: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments

2024-03-28 Thread Rustad, Mark D
> On Mar 28, 2024, at 2:16 PM, Tony Nguyen wrote: > >> +/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ >> +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4 > > This doesn't compile; there's a stray '0' here. Not stray, just mispositioned in the definition above. > ../drivers/net/ethernet/intel/i

Re: [Intel-wired-lan] [PATCH net-next v8 0/6] ice: Support 5 layer Tx scheduler topology

2024-03-28 Thread Tony Nguyen
On 3/26/2024 7:30 AM, Mateusz Polchlopek wrote: For performance reasons there is a need to have support for selectable Tx scheduler topology. Currently firmware supports only the default 9-layer and 5-layer topology. This patch series enables switch from default to 5-layer topology, if user de

Re: [Intel-wired-lan] [PATCH iwl-next v1 2/2] ice: update E830 device ids and comments

2024-03-28 Thread Tony Nguyen
On 3/28/2024 2:37 PM, Rustad, Mark D wrote: On Mar 28, 2024, at 2:16 PM, Tony Nguyen wrote: +/* Intel(R) Ethernet Controller E830-CC for SFP-DD */ +#define ICE_DEV_ID_E83CC0_SFP_DD 0x12D4 This doesn't compile; there's a stray '0' here. Not stray, just mispositioned in the definition abo

[Intel-wired-lan] [PATCH iwl-next v3 1/2] ice: add additional E830 device ids

2024-03-28 Thread Paul Greenwalt
Add support for additional E830 device ids which are supported by the driver: - 0x12D5: Intel(R) Ethernet Controller E830-C for backplane - 0x12D8: Intel(R) Ethernet Controller E830-C for QSFP - 0x12DA: Intel(R) Ethernet Controller E830-C for SFP - 0x12DC: Intel(R) Ethernet Controller E830-XXV for

[Intel-wired-lan] [PATCH iwl-next v3 2/2] ice: update E830 device ids and comments

2024-03-28 Thread Paul Greenwalt
Update existing E830 device ids and comments to align with new naming 'C' for 100G and 'CC' for 200G. Reviewed-by: Wojciech Drewek Signed-off-by: Paul Greenwalt --- v2 -> v3: fix compiler error --- drivers/net/ethernet/intel/ice/ice_common.c | 8 drivers/net/ethernet/intel/ice/ice_dev

Re: [Intel-wired-lan] [PATCH net-next v2] net: remove gfp_mask from napi_alloc_skb()

2024-03-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Tue, 26 Mar 2024 21:02:12 -0700 you wrote: > __napi_alloc_skb() is napi_alloc_skb() with the added flexibility > of choosing gfp_mask. This is a NAPI function, so GFP_ATOMIC is > implied. The only practical choice

Re: [Intel-wired-lan] [PATCH net-next v2 0/3] compiler_types: add Endianness-dependent __counted_by_{le, be}

2024-03-28 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 27 Mar 2024 15:22:38 +0100 you wrote: > Some structures contain flexible arrays at the end and the counter for > them, but the counter has explicit Endianness and thus __counted_by() > can't be used directly.

Re: [Intel-wired-lan] [PATCH iwl-next v2 3/7] i40e: Refactor argument of i40e_detect_recover_hung()

2024-03-28 Thread Kalesh Anakkur Purayil
On Wed, Mar 27, 2024 at 1:28 PM Ivan Vecera wrote: > > Commit 07d44190a389 ("i40e/i40evf: Detect and recover hung queue > scenario") changes i40e_detect_recover_hung() argument type from > i40e_pf* to i40e_vsi* to be shareable by both i40e and i40evf. > Because the i40evf does not exist anymore an

Re: [Intel-wired-lan] [PATCH net-next v4 1/3] ice: add ice_adapter for shared data across PFs on the same NIC

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Schmidt > Sent: Tuesday, March 26, 2024 4:51 AM > To: intel-wired-...@lists.osuosl.org > Cc: Jiri Pirko ; Temerkhanov, Sergey > ; net...@vger.kernel.org; Richard Cochran > ; Kubalewski, Arkadiusz > ; Kolacinski, Karol

Re: [Intel-wired-lan] [PATCH net-next v4 2/3] ice: avoid the PTP hardware semaphore in gettimex64 path

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Schmidt > Sent: Tuesday, March 26, 2024 4:51 AM > To: intel-wired-...@lists.osuosl.org > Cc: Jiri Pirko ; Temerkhanov, Sergey > ; net...@vger.kernel.org; Richard Cochran > ; Kubalewski, Arkadiusz > ; Kolacinski, Karol

Re: [Intel-wired-lan] [PATCH net-next v4 3/3] ice: fold ice_ptp_read_time into ice_ptp_gettimex64

2024-03-28 Thread Pucha, HimasekharX Reddy
> -Original Message- > From: Intel-wired-lan On Behalf Of > Michal Schmidt > Sent: Tuesday, March 26, 2024 4:51 AM > To: intel-wired-...@lists.osuosl.org > Cc: Jiri Pirko ; Temerkhanov, Sergey > ; net...@vger.kernel.org; Richard Cochran > ; Kubalewski, Arkadiusz > ; Kolacinski, Karol