Re: [Intel-wired-lan] [PATCH iwl-next v6 06/15] ixgbe: read the OROM version information

2025-03-12 Thread R, Bharath
> -Original Message- > From: Intel-wired-lan On Behalf Of > Jedrzej Jagielski > Sent: Friday, March 7, 2025 7:54 PM > To: intel-wired-...@lists.osuosl.org > Cc: Nguyen, Anthony L ; > net...@vger.kernel.org; ho...@kernel.org; j...@nvidia.com; Mrozowicz, > SlawomirX ; Polchlopek, Mateusz > ;

Re: [Intel-wired-lan] [PATCH iwl-next v7 11/15] ixgbe: add device flash update via devlink

2025-03-12 Thread Simon Horman
On Wed, Mar 12, 2025 at 01:58:39PM +0100, Jedrzej Jagielski wrote: ... > diff --git a/Documentation/networking/devlink/ixgbe.rst > b/Documentation/networking/devlink/ixgbe.rst > index a41073a62776..41aedf4b8017 100644 > --- a/Documentation/networking/devlink/ixgbe.rst > +++ b/Documentation/netwo

[Intel-wired-lan] [iwl-next v1 1/8] ice, libie: move generic adminq descriptors to lib

2025-03-12 Thread Michal Swiatkowski
The descriptor structure is the same in ice, ixgbe and i40e. Move it to common libie header to use it across different driver. Leave device specific adminq commands in separate folders. This lead to a change that need to be done in filling/getting descriptor: - previous: struct specific_desc *cmd;

[Intel-wired-lan] [iwl-next v1 3/8] i40e: use libie adminq descriptors

2025-03-12 Thread Michal Swiatkowski
Use libie_aq_desc instead of i40e_aq_desc. Do needed changes to allow clean build. Get version descriptor is a little less detailed on i40e. To not mess up with shifting or union inside libie desc use get version descriptor from i40e. Move additional caps for i40e to libie. Fix RCT in declaratio

[Intel-wired-lan] [PATCH net] igb: Prevent IPCFGN write resetting autoneg advertisement register

2025-03-12 Thread Hamish Martin
An issue is observed on the i210 when autonegotiation advertisement is set to a specific subset of the supported speeds but the requested settings are not correctly set in the Copper Auto-Negotiation Advertisement Register (Page 0, Register 4). Initially, the advertisement register is correctly set

Re: [Intel-wired-lan] [PATCH iwl-next v9 02/14] net: ethtool: mm: extract stmmac verification logic into common library

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:36AM -0400, Faizal Rahim wrote: > From: Vladimir Oltean > > It appears that stmmac is not the only hardware which requires a > software-driven verification state machine for the MAC Merge layer. > > While on the one hand it's good to encourage hardware implementatio

Re: [Intel-wired-lan] [PATCH iwl-next v9 06/14] igc: use FIELD_PREP and GENMASK for existing TX packet buffer size

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:40AM -0400, Faizal Rahim wrote: > In preparation for an upcoming patch that will modify the TX buffer size > in TSN mode, replace IGC_TXPBSIZE_TSN and IGC_TXPBSIZE_DEFAULT > implementation with new macros that utilizes FIELD_PREP and GENMASK for > clarity. > > The ne

Re: [Intel-wired-lan] [PATCH iwl-next v9 11/14] igc: add support to set tx-min-frag-size

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:45AM -0400, Faizal Rahim wrote: > Add support for setting tx-min-frag-size via the set_mm callback in igc. > If the requested value is unsupported, round it up to the smallest > supported i226 size (64, 128, 192, 256) and send a netlink message to > inform the user. >

Re: [Intel-wired-lan] [PATCH iwl-next v9 08/14] igc: use FIELD_PREP and GENMASK for existing RX packet buffer size

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:42AM -0400, Faizal Rahim wrote: > Prepare for an upcoming patch that modifies the RX buffer size in TSN mode. > Refactor IGC_RXPBSIZE_EXP_BMC_DEFAULT and IGC_RXPBS_CFG_TS_EN using > FIELD_PREP and GENMASK to improve clarity and maintainability. Refactor > both macros f

Re: [Intel-wired-lan] [PATCH iwl-next v9 10/14] igc: add support for frame preemption verification

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:44AM -0400, Faizal Rahim wrote: > This patch implements the "ethtool --set-mm" callback to trigger the > frame preemption verification handshake. > > Uses the MAC Merge Software Verification (mmsv) mechanism in ethtool > to perform the verification handshake for igc.

Re: [Intel-wired-lan] [PATCH iwl-next v9 13/14] igc: add support to get MAC Merge data via ethtool

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:47AM -0400, Faizal Rahim wrote: > Implement "ethtool --show-mm" callback for IGC. > > Tested with command: > $ ethtool --show-mm enp1s0. > MAC Merge layer state for enp1s0: > pMAC enabled: on > TX enabled: on > TX active: on > TX minimum fragment size: 64 >

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

2025-03-12 Thread kernel test robot
gcc-13.2.0 arc axs103_defconfigclang-21 arc defconfiggcc-14.2.0 arc randconfig-001-20250312clang-21 arc randconfig-001-20250312gcc-13.2.0 arc randconfig-002-20250312

Re: [Intel-wired-lan] [PATCH iwl-next v9 02/14] net: ethtool: mm: extract stmmac verification logic into common library

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:36AM -0400, Faizal Rahim wrote: > @@ -7850,7 +7850,7 @@ int stmmac_suspend(struct device *dev) > rtnl_unlock(); > > if (stmmac_fpe_supported(priv)) > - timer_shutdown_sync(&priv->fpe_cfg.verify_timer); > + ethtool_mmsv_stop(&priv->

Re: [Intel-wired-lan] [PATCH net] igb: Prevent IPCFGN write resetting autoneg advertisement register

2025-03-12 Thread Andrew Lunn
On Wed, Mar 12, 2025 at 04:22:50PM +1300, Hamish Martin wrote: > An issue is observed on the i210 when autonegotiation advertisement is set > to a specific subset of the supported speeds but the requested settings > are not correctly set in the Copper Auto-Negotiation Advertisement Register > (Page

[Intel-wired-lan] [PATCH iwl-next v7 11/15] ixgbe: add device flash update via devlink

2025-03-12 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 v7 02/15] ixgbe: wrap netdev_priv() usage

2025-03-12 Thread Jedrzej Jagielski
From: Przemek Kitszel Wrap use of netdev_priv() in order to change the allocator of the device private structure from alloc_etherdev_mq() to the devlink in next commit. All but one netdev_priv() calls in the whole driver are replaced, the remaining one is called on MACVLAN (so not ixgbe) device.

[Intel-wired-lan] [PATCH iwl-next v7 01/15] devlink: add value check to devlink_info_version_put()

2025-03-12 Thread Jedrzej Jagielski
Prevent from proceeding if there's nothing to print. Suggested-by: Przemek Kitszel Reviewed-by: Jiri Pirko Reviewed-by: Kalesh AP Tested-by: Bharath R Signed-off-by: Jedrzej Jagielski --- net/devlink/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/devlink/dev.c

Re: [Intel-wired-lan] [PATCH net-next 11/16] idpf: prepare structures to support XDP

2025-03-12 Thread Alexander Lobakin
From: Jakub Kicinski Date: Thu, 6 Mar 2025 17:12:08 -0800 > On Wed, 5 Mar 2025 17:21:27 +0100 Alexander Lobakin wrote: >> +/** >> + * idpf_xdp_is_prog_ena - check if there is an XDP program on adapter >> + * @vport: vport to check >> + */ >> +static inline bool idpf_xdp_is_prog_ena(const struct

Re: [Intel-wired-lan] [PATCH iwl-next 10/10] ice: move TSPLL init calls to ice_ptp.c

2025-03-12 Thread Tony Nguyen
On 3/10/2025 4:12 AM, Karol Kolacinski wrote: Initialize TSPLL after initializing PHC in ice_ptp.c instead of calling for each product in PHC init in ice_ptp_hw.c. Reviewed-by: Michal Kubiak Reviewed-by: Milena Olech Signed-off-by: Karol Kolacinski --- drivers/net/ethernet/intel/ice/ice_

Re: [Intel-wired-lan] [PATCH net-next 07/16] idpf: link NAPIs to queues

2025-03-12 Thread Alexander Lobakin
From: Maciej Fijalkowski Date: Fri, 7 Mar 2025 11:51:18 +0100 > On Wed, Mar 05, 2025 at 05:21:23PM +0100, Alexander Lobakin wrote: >> Add the missing linking of NAPIs to netdev queues when enabling >> interrupt vectors in order to support NAPI configuration and >> interfaces requiring get_rx_queu

Re: [Intel-wired-lan] [PATCH iwl-next v9 14/14] igc: add support to get frame preemption statistics via ethtool

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:48AM -0400, Faizal Rahim wrote: > +/** > + * igc_ethtool_get_frame_ass_error - Get the frame assembly error count. > + * @reg_value: Register value for IGC_PRMEXCPRCNT > + * Return: The count of frame assembly errors. > + */ > +static u64 igc_ethtool_get_frame_ass_erro

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

2025-03-12 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 v7 12/15] ixgbe: add support for devlink reload

2025-03-12 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 v7 08/15] ixgbe: add .info_get() extension specific for E610 devices

2025-03-12 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 v7 09/15] ixgbe: add E610 functions getting PBA and FW ver info

2025-03-12 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

Re: [Intel-wired-lan] [PATCH iwl-next v2] i40e: fix MMIO write access to an invalid page in i40e_clear_hw

2025-03-12 Thread Loktionov, Aleksandr
> -Original Message- > From: Kitszel, Przemyslaw > Sent: Tuesday, March 11, 2025 10:15 AM > To: Kyungwook Boo > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; Loktionov, > Aleksandr ; Nguyen, Anthony L > > Subject: Re: [PATCH iwl-next v2] i40e: fix MMIO write access to a

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

2025-03-12 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 v7 06/15] ixgbe: read the OROM version information

2025-03-12 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 Tested-by: Bharath R Signed-off-by: Slawomir Mrozowicz Co-developed-by: Piotr Kwapulinski Signed-off-by

[Intel-wired-lan] [PATCH iwl-next v7 03/15] ixgbe: add initial devlink support

2025-03-12 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 v7 05/15] ixgbe: add E610 functions for acquiring flash data

2025-03-12 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 Tested-by: Bharath R Signed-off-by: Slawomir

[Intel-wired-lan] [PATCH iwl-next v7 04/15] ixgbe: add handler for devlink .info_get()

2025-03-12 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 v7 07/15] ixgbe: read the netlist version information

2025-03-12 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 Tested-by: Bharath R Signed-off-by: Slawomir Mrozowicz Co-developed-by: Piotr Kwapulinski Signed-off-by: Piotr Kwapulinski Signed

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

2025-03-12 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 v7 10/15] ixgbe: extend .info_get with() stored versions

2025-03-12 Thread Jedrzej Jagielski
Add functions reading inactive versions from the inactive flash bank. Print stored NVM, OROM and netlist versions by devlink when there is an ongoing update for E610 device. Reviewed-by: Mateusz Polchlopek Reviewed-by: Przemek Kitszel Tested-by: Bharath R Co-developed-by: Slawomir Mrozowicz S

[Intel-wired-lan] [PATCH iwl-next v7 14/15] ixgbe: add E610 implementation of FW recovery mode

2025-03-12 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

Re: [Intel-wired-lan] [PATCH net-next 06/16] idpf: a use saner limit for default number of queues to allocate

2025-03-12 Thread Alexander Lobakin
From: Maciej Fijalkowski Date: Fri, 7 Mar 2025 11:32:15 +0100 > On Wed, Mar 05, 2025 at 05:21:22PM +0100, Alexander Lobakin wrote: >> Currently, the maximum number of queues available for one vport is 16. >> This is hardcoded, but then the function calculating the optimal number >> of queues take

Re: [Intel-wired-lan] [PATCH net-next 07/16] idpf: link NAPIs to queues

2025-03-12 Thread Alexander Lobakin
From: Eric Dumazet Date: Fri, 7 Mar 2025 11:28:36 +0100 > On Wed, Mar 5, 2025 at 5:22 PM Alexander Lobakin > wrote: >> >> Add the missing linking of NAPIs to netdev queues when enabling >> interrupt vectors in order to support NAPI configuration and >> interfaces requiring get_rx_queue()->napi t

Re: [Intel-wired-lan] [PATCH net-next 04/16] libeth: add XSk helpers

2025-03-12 Thread Alexander Lobakin
From: Maciej Fijalkowski Date: Fri, 7 Mar 2025 11:15:56 +0100 > On Wed, Mar 05, 2025 at 05:21:20PM +0100, Alexander Lobakin wrote: >> Add the following counterparts of functions from libeth_xdp which need >> special care on XSk path: >> >> * building &xdp_buff (head and frags); >> * running XDP p

Re: [Intel-wired-lan] [PATCH 1/2] net: intel: Remove unnecessary static variable initialization

2025-03-12 Thread Przemek Kitszel
On 3/11/25 23:15, Joao Bonifacio wrote: Static variables in C are implicitly initialized to zero, so there is no need to explicitly set and to 0. This change removes the redundant initialization Thank you for reaching out, and sorry, but this change by itself is too trivial, see: https://www.k

Re: [Intel-wired-lan] [PATCH net-next 05/16] idpf: fix Rx descriptor ready check barrier in splitq

2025-03-12 Thread Alexander Lobakin
From: Maciej Fijalkowski Date: Fri, 7 Mar 2025 11:17:11 +0100 > On Wed, Mar 05, 2025 at 05:21:21PM +0100, Alexander Lobakin wrote: >> No idea what the current barrier position was meant for. At that point, >> nothing is read from the descriptor, only the pointer to the actual one >> is fetched. >

Re: [Intel-wired-lan] [PATCH iwl-next v9 03/14] net: ethtool: mm: reset verification status when link is down

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:37AM -0400, Faizal Rahim wrote: > When the link partner goes down, "ethtool --show-mm" still displays > "Verification status: SUCCEEDED," reflecting a previous state that is > no longer valid. > > Reset the verification status to ensure it reflects the current state.

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

2025-03-12 Thread kernel test robot
randconfig-001-20250312gcc-13.2.0 arc randconfig-002-20250312gcc-13.2.0 arm allmodconfiggcc-14.2.0 arm allyesconfiggcc-14.2.0 arm randconfig-001-20250312clang-19 arm

[Intel-wired-lan] [iwl-next v1 2/8] ixgbe: use libie adminq descriptors

2025-03-12 Thread Michal Swiatkowski
Use libie_aq_desc instead of ixgbe_aci_desc. Do needed changes to allow clean build. Move additional caps used in ixgbe to libie. Reviewed-by: Przemek Kitszel Reviewed-by: Aleksandr Loktionov Signed-off-by: Michal Swiatkowski --- drivers/net/ethernet/intel/ixgbe/ixgbe_e610.h | 12 +- .../eth

Re: [Intel-wired-lan] [PATCH iwl-next v9 12/14] igc: block setting preemptible traffic class in taprio

2025-03-12 Thread Vladimir Oltean
On Sun, Mar 09, 2025 at 06:46:46AM -0400, Faizal Rahim wrote: > Since preemptible tc implementation is not ready yet, block it from being > set in taprio. The existing code already blocks it in mqprio. > > Signed-off-by: Faizal Rahim > --- Reviewed-by: Vladimir Oltean

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

2025-03-12 Thread kernel test robot
-20250312gcc-13.2.0 arc randconfig-002-20250312gcc-13.2.0 arm allmodconfiggcc-14.2.0 arm allyesconfiggcc-14.2.0 arm randconfig-001-20250312clang-19 arm randconfig-002

Re: [Intel-wired-lan] [PATCH net 1/5] igb: reject invalid external timestamp requests for 82580-based HW

2025-03-12 Thread Keller, Jacob E
> -Original Message- > From: Michal Swiatkowski > Sent: Monday, March 10, 2025 11:04 PM > To: Keller, Jacob E > Cc: Nguyen, Anthony L ; Kitszel, Przemyslaw > ; Andrew Lunn ; David > S. Miller ; Eric Dumazet ; Jakub > Kicinski ; Paolo Abeni ; Richard Cochran > ; Ruud Bos ; Paul Barker >

Re: [Intel-wired-lan] [PATCH iwl-next 01/10] ice: move TSPLL functions to a separate file

2025-03-12 Thread Tony Nguyen
On 3/10/2025 4:12 AM, Karol Kolacinski wrote: Collect TSPLL related functions and definitions and move them to a separate file to have all TSPLL functionality in one place. Move CGU related functions and definitions to ice_common.* You lost changes with the move, specifically 4c9f13a65426 (

[Intel-wired-lan] [PATCH net v2 0/5] net: ptp: fix egregious supported flag checks

2025-03-12 Thread Jacob Keller
In preparation for adding .supported_extts_flags and .supported_perout_flags to the ptp_clock_info structure, fix a couple of places where drivers get existing flag gets grossly incorrect. The igb driver claims 82580 supports strictly validating PTP_RISING_EDGE and PTP_FALLING_EDGE, but doesn't ac

Re: [Intel-wired-lan] [PATCH net] igb: Prevent IPCFGN write resetting autoneg advertisement register

2025-03-12 Thread Andrew Lunn
> Hi Andrew, > > Thanks for your feedback. I'll try and give more detail about what's > happening with a concrete example. > > If we start with the device in a state where it is advertising: > 1000BaseT Full > 100baseT Full > 100baseT Half > 10baseT Full > 10baseT Half > I see the following setti

Re: [Intel-wired-lan] [PATCH net] igb: Prevent IPCFGN write resetting autoneg advertisement register

2025-03-12 Thread Hamish Martin
On Wed, 2025-03-12 at 23:25 +0100, Andrew Lunn wrote: > > Hi Andrew, > > > > Thanks for your feedback. I'll try and give more detail about > > what's > > happening with a concrete example. > > > > If we start with the device in a state where it is advertising: > > 1000BaseT Full > > 100baseT Full

Re: [Intel-wired-lan] [PATCH net] igb: Prevent IPCFGN write resetting autoneg advertisement register

2025-03-12 Thread Hamish Martin
On Wed, 2025-03-12 at 14:05 +0100, Andrew Lunn wrote: > On Wed, Mar 12, 2025 at 04:22:50PM +1300, Hamish Martin wrote: > > An issue is observed on the i210 when autonegotiation advertisement > > is set > > to a specific subset of the supported speeds but the requested > > settings > > are not corre

Re: [Intel-wired-lan] [PATCH iwl-next 01/10] ice: move TSPLL functions to a separate file

2025-03-12 Thread Tony Nguyen
On 3/12/2025 3:58 PM, Tony Nguyen wrote: On 3/10/2025 4:12 AM, Karol Kolacinski wrote: ... Reviewed-by: Michal Kubiak Reviewed-by: Milena Olech Milena's address is wrong, should be: milena.ol...@intel.com Signed-off-by: Karol Kolacinski

Re: [Intel-wired-lan] [PATCH v8 iwl-next 09/10] idpf: add support for Rx timestamping

2025-03-12 Thread Jacob Keller
On 2/27/2025 5:13 AM, Milena Olech wrote: > +/** > + * idpf_ptp_set_rx_tstamp - Enable or disable Rx timestamping > + * @vport: Virtual port structure > + * @rx_filter: bool value for whether timestamps are enabled or disabled > + */ > +static void idpf_ptp_set_rx_tstamp(struct idpf_vport *vport

[Intel-wired-lan] [PATCH net v2 5/5] ptp: ocp: reject unsupported periodic output flags

2025-03-12 Thread Jacob Keller
The ptp_ocp_signal_from_perout() function supports PTP_PEROUT_DUTY_CYCLE and PTP_PEROUT_PHASE. It does not support PTP_PEROUT_ONE_SHOT, but does not reject a request with such an unsupported flag. Add the appropriate check to ensure that unsupported requests are rejected both for PTP_PEROUT_ONE_SH

[Intel-wired-lan] [PATCH net v2 2/5] renesas: reject PTP_STRICT_FLAGS as unsupported

2025-03-12 Thread Jacob Keller
The ravb_ptp_extts() function checks the flags coming from the PTP_EXTTS_REQUEST ioctl, to ensure that future flags are not accepted on accident. This was updated to 'honor' the PTP_STRICT_FLAGS in commit 6138e687c7b6 ("ptp: Introduce strict checking of external time stamp options."). However, the

[Intel-wired-lan] [PATCH net v2 4/5] broadcom: fix supported flag check in periodic output function

2025-03-12 Thread Jacob Keller
In bcm_ptp_perout_locked, the driver rejects requests which have PTP_PEROUT_PHASE set. This appears to be an attempt to reject any unsupported flags. Unfortunately, this only checks one flag, but does not protect against PTP_PEROUT_ONE_SHOT, or any future flags which may be added. Fix the check to

[Intel-wired-lan] [PATCH net v2 1/5] igb: reject invalid external timestamp requests for 82580-based HW

2025-03-12 Thread Jacob Keller
The igb_ptp_feature_enable_82580 function correctly checks that unknown flags are not passed to the function. However, it does not actually check PTP_RISING_EDGE or PTP_FALLING_EDGE when configuring the external timestamp function. The data sheet for the 82580 product says: Upon a change in the

Re: [Intel-wired-lan] [PATCH iwl-next 02/10] ice: rename TSPLL and CGU functions and definitions

2025-03-12 Thread Tony Nguyen
On 3/10/2025 4:12 AM, Karol Kolacinski wrote: Rename TSPLL and CGU functions, definitions etc. to match the file name and have constistent naming scheme. s/constistent/consistent Patches 2-4 do not compile stand-alone. Reviewed-by: Michal Kubiak Reviewed-by: Milena Olech Signed-off-by:

Re: [Intel-wired-lan] [PATCH iwl-next 07/10] ice: add multiple TSPLL helpers

2025-03-12 Thread Tony Nguyen
On 3/10/2025 4:12 AM, Karol Kolacinski wrote: ... +/** + * ice_tspll_default_freq - Return default frequency for a MAC type + * @mac_type: MAC type + */ +static enum ice_tspll_freq ice_tspll_default_freq(enum ice_mac_type mac_type) ... +/** + * ice_tspll_check_params - Check if TSPLL par