Re: [Intel-wired-lan] [RFC 0/1] Proposal for new devlink command to enforce firmware security

2024-12-11 Thread Andrew Lunn
> The E810 Ethernet controller firmware provides a certain level of security, > which includes a mechanism to prevent firmware downgrades (to past, less > secure versions). Is there anything Ethernet specific here? I assume the same API could be used for GPU firmware, ATA controller firmware, mice

Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix incorrect PHY settings for 100 GB/s

2024-11-28 Thread Andrew Lunn
> > > You forgot to Cc: the PTP maintainer. > > > > Who is the PTP maintainer? Is it necessary? This is only Intel's driver, > > I am not sure if PTP maintainer is necessary. > > I was curious for a moment too, but just for a moment :) > > We develop network drivers in the public, so we CC peopl

Re: [Intel-wired-lan] [PATCH iwl-net] ice: fix incorrect PHY settings for 100 GB/s

2024-11-26 Thread Andrew Lunn
On Tue, Nov 26, 2024 at 11:23:11AM +0100, Przemyslaw Korba wrote: > ptp4l application reports too high offset when ran on E823 device > with a 100GB/s link. Those values cannot go under 100ns, like in a > PTP working case when using 100 GB/s cable. > This is due to incorrect frequency settings on t

Re: [Intel-wired-lan] [PATCH net-next v3 1/2] ptp: add control over HW timestamp latch point

2024-11-06 Thread Andrew Lunn
On Wed, Nov 06, 2024 at 02:07:55AM +0100, Arkadiusz Kubalewski wrote: > Currently HW support of ptp/timesync solutions in network PHY chips can be > implemented with two different approaches, the timestamp maybe latched > either at the beginning or after the Start of Frame Delimiter (SFD) [1]. > >

Re: [Intel-wired-lan] [PATCH RFC net-next] e1000e: Fix real-time violations on link up

2024-10-12 Thread Andrew Lunn
On Fri, Oct 11, 2024 at 09:54:12PM +0200, Gerhard Engleder wrote: > From: Gerhard Engleder > > Link down and up triggers update of MTA table. This update executes many > PCIe writes and a final flush. Thus, PCIe will be blocked until all writes > are flushed. As a result, DMA transfers of other t

Re: [Intel-wired-lan] [PATCH] ixgbe: Manual AN-37 for troublesome link partners for X550 SFI

2024-09-09 Thread Andrew Lunn
> This was originally worked out by Doug Boom at Intel. It had to do > with autonegotiation not being the part of the SFP optics when the > Denverton X550 Si was released and was thus not POR for DNV. The > Juniper switches however won't exit their AN sequence unless an AN37 > transaction is seen

Re: [Intel-wired-lan] [PATCH] ixgbe: Manual AN-37 for troublesome link partners for X550 SFI

2024-09-06 Thread Andrew Lunn
> It turns out that the patch works fine for the specific issue it's trying to > address (Juniper switch), > but for (seemingly all) other devices it breaks the autonegotiation. So it sounds like you need to figure out the nitty-gritty details of what is going on with the Juniper switch. Once yo

Re: [Intel-wired-lan] [PATCH] ixgbe: Manual AN-37 for troublesome link partners for X550 SFI

2024-09-06 Thread Andrew Lunn
On Fri, Sep 06, 2024 at 06:41:45AM -0400, Jeff Daly wrote: > Resubmit commit 565736048bd5 ("ixgbe: Manual AN-37 for troublesome link > partners for X550 SFI") > > Some (Juniper MX5) SFP link partners exhibit a disinclination to > autonegotiate with X550 configured in SFI mode. This patch enables

Re: [Intel-wired-lan] [PATCH v1 net-next] e1000e: Remove duplicated writel() in e1000_configure_tx/rx()

2024-09-04 Thread Andrew Lunn
On Wed, Sep 04, 2024 at 02:56:46PM +0900, Takamitsu Iwai wrote: > > So you have confirmed with the datsheet that the write is not needed? > > > > As i said, this is a hardware register, not memory. Writes are not > > always idempotent. It might be necessary to write it twice. > > I have checked fo

Re: [Intel-wired-lan] [PATCH v1 net-next] e1000e: Remove duplicated writel() in e1000_configure_tx/rx()

2024-09-03 Thread Andrew Lunn
On Tue, Sep 03, 2024 at 07:46:42PM +0900, Takamitsu Iwai wrote: > > Did the same sequence of read/writes happen before 0845d45e900c? Or > > did 0845d45e900c add additional writes, not just move them around? > > The sequence of read/writes happened before 0845d45e900c because the similar > writel()

Re: [Intel-wired-lan] [PATCH v1 net-next] e1000e: Remove duplicated writel() in e1000_configure_tx/rx()

2024-09-02 Thread Andrew Lunn
On Mon, Sep 02, 2024 at 03:14:54PM +0900, Takamitsu Iwai wrote: > Duplicated register initialization codes exist in e1000_configure_tx() > and e1000_configure_rx(). What does the datasheet say about these registers? Since we are talking about hardware here, before you remove anything you need to b

Re: [Intel-wired-lan] [PATCH] ixgbe: Add support for firmware update

2024-06-10 Thread Andrew Lunn
On Sun, Jun 09, 2024 at 04:57:35PM +0800, Richard chien wrote: > This patch adds support for firmware update to the in-tree ixgbe driver and > it is actually a port > from the out-of-tree ixgbe driver. In-band firmware update is one of the > essential system maintenance > tasks. To simplify this

Re: [Intel-wired-lan] [PATCH] igb: Add support for firmware update

2024-06-10 Thread Andrew Lunn
On Sun, Jun 09, 2024 at 04:15:26PM +0800, Richard chien wrote: > This patch adds support for firmware update to the in-tree igb driver and it > is actually a port from the out-of-tree igb driver. > In-band firmware update is one of the essential system maintenance tasks. To > simplify this task,

Re: [Intel-wired-lan] [PATCH] igb: Add MII write support

2024-06-06 Thread Andrew Lunn
> Yea, its extremely easy to break things if you don't know what you're > doing here. So its more a question of "are we ok exposing yet another > way root can brick things?" Many MAC drivers allow it, and we have not had complaints. It is not really something i'm a fan of, it in theory allows user

Re: [Intel-wired-lan] [PATCH] igb: Add MII write support

2024-06-06 Thread Andrew Lunn
On Wed, Jun 05, 2024 at 01:51:24PM -0700, Jacob Keller wrote: > > > On 6/3/2024 8:10 PM, jackie.j...@alliedtelesis.co.nz wrote: > > From: Jackie Jone > > > > To facilitate running PHY parametric tests, add support for the SIOCSMIIREG > > ioctl. This allows a userspace application to write to th

Re: [Intel-wired-lan] Regression of e1000e (I219-LM) from 6.1.90 to 6.6.30

2024-05-13 Thread Andrew Lunn
On Mon, May 13, 2024 at 03:42:50PM +0700, Bagas Sanjaya wrote: > Hi, > > reported on Bugzilla > (https://bugzilla.kernel.org/show_bug.cgi?id=218826) regression on his > Thinkpad > T480 with Intel I219-LM: > > > After updating from kernel version 6.1.90 to 6.6.30, the e1000e driver > > exhibits

Re: [Intel-wired-lan] [PATCH v2 2/2] e1000e: fix link fluctuations problem

2024-05-10 Thread Andrew Lunn
> > It would be interesting to see what the link partner sees. What does > > it think the I219-LM is advertising? Is it advertising 1000BaseT_Half? > > i219 parts come with LSI PHY. 1000BASE-T half-duplex is not supported. > 1000BASET half-duplex not advertised in IEEE 1000BASE-T Control Register

Re: [Intel-wired-lan] [PATCH v2 2/2] e1000e: fix link fluctuations problem

2024-05-09 Thread Andrew Lunn
On Thu, May 09, 2024 at 12:13:27PM +0300, Ruinskiy, Dima wrote: > On 08/05/2024 8:05, Sasha Neftin wrote: > > On 07/05/2024 15:31, Andrew Lunn wrote: > > > On Fri, May 03, 2024 at 06:18:36PM +0800, Ricky Wu wrote: > > > > As described in https://bugzilla.ker

Re: [Intel-wired-lan] [PATCH v2 2/2] e1000e: fix link fluctuations problem

2024-05-07 Thread Andrew Lunn
On Fri, May 03, 2024 at 06:18:36PM +0800, Ricky Wu wrote: > As described in https://bugzilla.kernel.org/show_bug.cgi?id=218642, > Intel I219-LM reports link up -> link down -> link up after hot-plugging > the Ethernet cable. Please could you quote some parts of 802.3 which state this is a problem.

Re: [Intel-wired-lan] [PATCH v2 1/2] e1000e: let the sleep codes run every time

2024-05-07 Thread Andrew Lunn
> > (1) How serious this problem is. It is normal for link establishment to > > take a few seconds from plugging the cable (due to PHY > > auto-negotiation), and I can accept some link instability during that time. > Actually, the problem is not critical since the link will be up > permanently afte

Re: [Intel-wired-lan] [PATCH] e1000e: fix link fluctuations problem

2024-05-07 Thread Andrew Lunn
On Tue, May 07, 2024 at 11:24:05AM +0200, En-Wei WU wrote: > > Why PHY is this? > It's the Intel I219-LM, and I haven't found any other device having > the same issue. There is no Linux PHY driver for this device, only the code buried in the e1000e MAC driver. Sometimes Intel use Marvell PHYs, and

Re: [Intel-wired-lan] [PATCH] e1000e: fix link fluctuations problem

2024-05-06 Thread Andrew Lunn
On Thu, May 02, 2024 at 05:12:15PM +0800, Ricky Wu wrote: > As described in https://bugzilla.kernel.org/show_bug.cgi?id=218642, > some e1000e NIC reports link up -> link down -> link up when hog-plugging > the Ethernet cable. > > The problem is because the unstable behavior of Link Status bit in >

Re: [Intel-wired-lan] [PATCH] igc: fix a log entry using uninitialized netdev

2024-04-24 Thread Andrew Lunn
On Tue, Apr 23, 2024 at 12:24:54PM +0200, Corinna Vinschen wrote: > During successful probe, igc logs this: > > [5.133667] igc :01:00.0 (unnamed net_device) (uninitialized): PHC > added > > The reason is that igc_ptp_ini

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-15 Thread Andrew Lunn
On Fri, Apr 12, 2024 at 03:21:24PM +0200, Wojciech Drewek wrote: > > > On 09.04.2024 15:39, Andrew Lunn wrote: > >> This is something my current design supports I think. Using > >> ETHTOOL_A_MODULE_MAX_POWER_SET user can get what cage supports > >> and chan

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-09 Thread Andrew Lunn
> This is something my current design supports I think. Using > ETHTOOL_A_MODULE_MAX_POWER_SET user can get what cage supports > and change it. > This could be done using ethtool_module_power_mode_policy I think. All these 'I think' don't give me a warm fuzzy feeling this is a well thought out a

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-04 Thread Andrew Lunn
On Thu, Apr 04, 2024 at 02:45:43PM +0200, Wojciech Drewek wrote: > > > On 03.04.2024 15:49, Andrew Lunn wrote: > >>> $ ethtool --set-module enp1s0f0np0 power-max-set 4000 > >>> > >>> actually talk to the SFP module and tell it the maximum power it

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-03 Thread Andrew Lunn
> > $ ethtool --set-module enp1s0f0np0 power-max-set 4000 > > > > actually talk to the SFP module and tell it the maximum power it can > > consume. So in this case, it is not the cage, but the module? > > It does not work that way in ice example. > > > > Or is it talking to some entity which is

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-03 Thread Andrew Lunn
On Wed, Apr 03, 2024 at 03:18:44PM +0200, Wojciech Drewek wrote: > > > On 02.04.2024 16:46, Andrew Lunn wrote: > > On Tue, Apr 02, 2024 at 01:38:59PM +0200, Wojciech Drewek wrote: > >> > >> > >> On 30.03.2024 22:57, Andrew Lunn wrote: > >>&

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-02 Thread Andrew Lunn
On Tue, Apr 02, 2024 at 07:25:47AM -0700, Jakub Kicinski wrote: > On Tue, 2 Apr 2024 13:38:59 +0200 Wojciech Drewek wrote: > > > Also, this is about the board, the SFP cage, not the actual SFP > > > module? Maybe the word cage needs to be in these names? > > > > It's about cage. Thanks for brin

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-04-02 Thread Andrew Lunn
On Tue, Apr 02, 2024 at 01:38:59PM +0200, Wojciech Drewek wrote: > > > On 30.03.2024 22:57, Andrew Lunn wrote: > > On Fri, Mar 29, 2024 at 10:23:18AM +0100, Wojciech Drewek wrote: > >> Some ethernet modules use nonstandard power levels [1]. Extend ethtool > >>

Re: [Intel-wired-lan] [PATCH net-next 2/3] ethtool: Introduce max power support

2024-03-30 Thread Andrew Lunn
On Fri, Mar 29, 2024 at 10:23:20AM +0100, Wojciech Drewek wrote: > Some modules use nonstandard power levels. Adjust ethtool > module implementation to support new attributes that will allow user > to change maximum power. > > Add three new get attributes: > ETHTOOL_A_MODULE_MAX_POWER_SET (used fo

Re: [Intel-wired-lan] [PATCH net-next 0/3] ethtool: Max power support

2024-03-30 Thread Andrew Lunn
On Fri, Mar 29, 2024 at 10:23:18AM +0100, Wojciech Drewek wrote: > Some ethernet modules use nonstandard power levels [1]. Extend ethtool > module implementation to support new attributes that will allow user > to change maximum power. Rename structures and functions to be more > generic. Introduce

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

2024-02-27 Thread Andrew Lunn
On Tue, Feb 27, 2024 at 05:04:47PM +0100, Jiri Pirko wrote: > Tue, Feb 27, 2024 at 04:41:52PM CET, and...@lunn.ch wrote: > >> What if it would not be unique, should they then proceed to add generic > >> (other word would be "common") param, and make the other driver/s use > >> it? Without deprecati

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

2024-02-27 Thread Andrew Lunn
> What if it would not be unique, should they then proceed to add generic > (other word would be "common") param, and make the other driver/s use > it? Without deprecating the old method ofc. If it is useful, somebody else will copy it and it will become common. If nobody copies it, its probably n

[Intel-wired-lan] [PATCH net-next v5 9/9] net: ethtool: eee: Remove legacy _u32 from keee

2024-02-26 Thread Andrew Lunn
All MAC drivers have been converted to use the link mode members of keee. So remove the _u32 values, and the code in the ethtool core to convert the legacy _u32 values to link modes. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- include/linux/ethtool.h | 3 --- net/ethtool/eee.c

[Intel-wired-lan] [PATCH net-next v5 8/9] net: intel: igc: Use linkmode helpers for EEE

2024-02-26 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 + 1 file changed

[Intel-wired-lan] [PATCH net-next v5 7/9] net: intel: igb: Use linkmode helpers for EEE

2024-02-26 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 35

[Intel-wired-lan] [PATCH net-next v5 6/9] net: intel: e1000e: Use linkmode helpers for EEE

2024-02-26 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/e1000e/ethtool.c | 17 - 1 file

[Intel-wired-lan] [PATCH net-next v5 5/9] net: intel: i40e/igc: Remove setting Autoneg in EEE capabilities

2024-02-26 Thread Andrew Lunn
Jacob Keller Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 7 +-- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH net-next v5 4/9] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-26 Thread Andrew Lunn
Convert the tables to make use of ETHTOOL link mode bits, rather than the old u32 SUPPORTED speeds. Make use of the linkmode helps to set bits and compare linkmodes. As a result, the _u32 members of keee are no longer used, a step towards removing them. Signed-off-by: Andrew Lunn --- drivers

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

2024-02-26 Thread Andrew Lunn
Make use of the existing linkmode helpers for bit manipulation of EEE advertise, support and link partner support. The aim is to drop the restricted _u32 variants in the near future. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 60

[Intel-wired-lan] [PATCH net-next v5 2/9] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-26 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/usb/ax88179_178a.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

[Intel-wired-lan] [PATCH net-next v5 1/9] net: usb: r8152: Use linkmode helpers for EEE

2024-02-26 Thread Andrew Lunn
valid in for the current link mode. This then requires that PHYLIB is selected. Reviewed-by: Simon Horman Signed-off-by: Andrew Lunn --- drivers/net/usb/Kconfig | 1 + drivers/net/usb/r8152.c | 33 - 2 files changed, 17 insertions(+), 17 deletions(-) diff --git

[Intel-wired-lan] [PATCH net-next v5 0/9] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-26 Thread Andrew Lunn
deletes this code. With all users of the legacy _u32 changed to link modes, the _u32 values are removed from keee, and support for them in the ethtool core is removed. Signed-off-by: Andrew Lunn --- Changes in v5: - Restore zeroing eee_data.advertised in ax8817_178a - Fix lp_advertised -> supported

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 wr

Re: [Intel-wired-lan] [PATCH net-next v4 4/9] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-20 Thread Andrew Lunn
On Tue, Feb 20, 2024 at 12:06:43PM +, Simon Horman wrote: > On Sun, Feb 18, 2024 at 11:07:01AM -0600, Andrew Lunn wrote: > > Convert the tables to make use of ETHTOOL link mode bits, rather than > > the old u32 SUPPORTED speeds. Make use of the linkmode helps to set >

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

2024-02-20 Thread Andrew Lunn
> > + unsupp = linkmode_andnot(tmp, edata->advertised, supported); > > nit: Given the types involved, I might have written this as: > > unsupp = !!linkmode_andnot(tmp, edata->advertised, supported); linkmode_andnot() calls bitmap_andnot(): static inline bool bitmap_andnot(unsigned long

Re: [Intel-wired-lan] [PATCH net-next v4 2/9] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-20 Thread Andrew Lunn
On Tue, Feb 20, 2024 at 12:39:24PM +, Simon Horman wrote: > On Sun, Feb 18, 2024 at 11:06:59AM -0600, Andrew Lunn wrote: > > Make use of the existing linkmode helpers for converting PHY EEE > > register values into links modes, now that ethtool_keee uses link > > modes, r

[Intel-wired-lan] [PATCH net-next v4 9/9] net: ethtool: eee: Remove legacy _u32 from keee

2024-02-18 Thread Andrew Lunn
All MAC drivers have been converted to use the link mode members of keee. So remove the _u32 values, and the code in the ethtool core to convert the legacy _u32 values to link modes. Signed-off-by: Andrew Lunn --- include/linux/ethtool.h | 3 --- net/ethtool/eee.c | 31

[Intel-wired-lan] [PATCH net-next v4 8/9] net: intel: igc: Use linkmode helpers for EEE

2024-02-18 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 + 1 file changed, 5 insertions(+), 4

[Intel-wired-lan] [PATCH net-next v4 7/9] net: intel: igb: Use linkmode helpers for EEE

2024-02-18 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 35 ++-- 1 file changed, 23

[Intel-wired-lan] [PATCH net-next v4 6/9] net: intel: e1000e: Use linkmode helpers for EEE

2024-02-18 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/e1000e/ethtool.c | 17 - 1 file changed, 12 insertions

[Intel-wired-lan] [PATCH net-next v4 5/9] net: intel: i40e/igc: Remove setting Autoneg in EEE capabilities

2024-02-18 Thread Andrew Lunn
Jacob Keller Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 7 +-- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH net-next v4 4/9] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-18 Thread Andrew Lunn
Convert the tables to make use of ETHTOOL link mode bits, rather than the old u32 SUPPORTED speeds. Make use of the linkmode helps to set bits and compare linkmodes. As a result, the _u32 members of keee are no longer used, a step towards removing them. Signed-off-by: Andrew Lunn --- drivers

[Intel-wired-lan] [PATCH net-next v4 2/9] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-18 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/usb/ax88179_178a.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

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

2024-02-18 Thread Andrew Lunn
Make use of the existing linkmode helpers for bit manipulation of EEE advertise, support and link partner support. The aim is to drop the restricted _u32 variants in the near future. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 60 - 1

[Intel-wired-lan] [PATCH net-next v4 0/9] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-18 Thread Andrew Lunn
deletes this code. With all users of the legacy _u32 changed to link modes, the _u32 values are removed from keee, and support for them in the ethtool core is removed. Signed-off-by: Andrew Lunn --- Changes in v4: - Add missing conversion in igb - Add missing conversion in r8152 - Add patch to remove

[Intel-wired-lan] [PATCH net-next v4 1/9] net: usb: r8152: Use linkmode helpers for EEE

2024-02-18 Thread Andrew Lunn
valid in for the current link mode. This then requires that PHYLIB is selected. Signed-off-by: Andrew Lunn --- drivers/net/usb/Kconfig | 1 + drivers/net/usb/r8152.c | 33 - 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/net/usb/Kconfig b

Re: [Intel-wired-lan] [PATCH net-next v3 1/8] net: usb: r8152: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
On Sat, Feb 17, 2024 at 12:08:22PM -0600, Andrew Lunn wrote: > Make use of the existing linkmode helpers for converting PHY EEE > register values into links modes, now that ethtool_keee uses link > modes, rather than u32 values. > > Rework determining if EEE is active to make is si

[Intel-wired-lan] [PATCH net-next v3 8/8] net: intel: igc: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 + 1 file changed, 5 insertions(+), 4

[Intel-wired-lan] [PATCH net-next v3 7/8] net: intel: igb: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 33 ++-- 1 file changed, 22

[Intel-wired-lan] [PATCH net-next v3 6/8] net: intel: e1000e: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/e1000e/ethtool.c | 17 - 1 file changed, 12 insertions

[Intel-wired-lan] [PATCH net-next v3 5/8] net: intel: i40e/igc: Remove setting Autoneg in EEE capabilities

2024-02-17 Thread Andrew Lunn
Jacob Keller Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 7 +-- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel

[Intel-wired-lan] [PATCH net-next v3 4/8] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-17 Thread Andrew Lunn
Convert the tables to make use of ETHTOOL link mode bits, rather than the old u32 SUPPORTED speeds. Make use of the linkmode helps to set bits and compare linkmodes. As a result, the _u32 members of keee are no longer used, a step towards removing them. Signed-off-by: Andrew Lunn --- drivers

[Intel-wired-lan] [PATCH net-next v3 3/8] net: qlogic: qede: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
Make use of the existing linkmode helpers for bit manipulation of EEE advertise, support and link partner support. The aim is to drop the restricted _u32 variants in the near future. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 60 - 1

[Intel-wired-lan] [PATCH net-next v3 0/8] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-17 Thread Andrew Lunn
does not display it, and EEE is always negotiated. One patch in this series deletes this code. Comments on why its actually useful and should be kept are gratefully received. Signed-off-by: Andrew Lunn --- Changes in v3: - Add list of commits adding linkmodes to EEE to cover letter - Fix grammar

[Intel-wired-lan] [PATCH net-next v3 2/8] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/usb/ax88179_178a.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[Intel-wired-lan] [PATCH net-next v3 1/8] net: usb: r8152: Use linkmode helpers for EEE

2024-02-17 Thread Andrew Lunn
valid in for the current link mode. This then requires that PHYLIB is selected. Signed-off-by: Andrew Lunn --- drivers/net/usb/Kconfig | 1 + drivers/net/usb/r8152.c | 31 +++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/usb/Kconfig b

Re: [Intel-wired-lan] [PATCH net-next v2 0/8] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-15 Thread Andrew Lunn
> Am 15.02.24 um 12:13 AM schrieb Andrew Lunn: > > EEE has until recently been limited to lower speeds due to the use of > > the legacy u32 for link speeds. This restriction has been lifted, with > > the use of linkmode bitmaps. This patchset convert some MAC drivers >

[Intel-wired-lan] [PATCH net-next v2 8/8] net: intel: igc: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 + 1 file changed, 5 insertions(+), 4

[Intel-wired-lan] [PATCH net-next v2 7/8] net: intel: igb: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 33 ++-- 1 file changed, 22

[Intel-wired-lan] [PATCH net-next v2 6/8] net: intel: e1000e: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/e1000e/ethtool.c | 17 - 1 file changed, 12 insertions

[Intel-wired-lan] [PATCH net-next v2 5/8] net: intel: i40e/igc: Remove setting Autoneg in EEE capabilities

2024-02-14 Thread Andrew Lunn
Energy Efficient Ethernet should always be negotiated with the link peer. Don't include SUPPORTED_Autoneg in the results of get_eee() for supported, advertised or lp_advertised, since it is assumed. Additionally, ethtool(1) ignores the set bit, and no other driver sets this. Signed-off-by: A

[Intel-wired-lan] [PATCH net-next v2 4/8] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-14 Thread Andrew Lunn
Convert the tables to make use of ETHTOOL link mode bits, rather than the old u32 SUPPORTED speeds. Make use of the linkmode helps to set bits and compare linkmodes. As a result, the _u32 members of keee are no longer used, a step towards removing them. Signed-off-by: Andrew Lunn --- drivers

[Intel-wired-lan] [PATCH net-next v2 3/8] net: qlogic: qede: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
Make use of the existing linkmode helpers for bit manipulation of EEE advertise, support and link partner support. The aim is to drop the restricted _u32 variants in the near future. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 60 - 1

[Intel-wired-lan] [PATCH net-next v2 2/8] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/usb/ax88179_178a.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[Intel-wired-lan] [PATCH net-next v2 1/8] net: usb: r8152: Use linkmode helpers for EEE

2024-02-14 Thread Andrew Lunn
valid in for the current link mode. This then requires that PHYLIB is selected. Signed-off-by: Andrew Lunn --- drivers/net/usb/Kconfig | 1 + drivers/net/usb/r8152.c | 31 +++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/usb/Kconfig b

[Intel-wired-lan] [PATCH net-next v2 0/8] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-14 Thread Andrew Lunn
should be kept are gratefully received. Signed-off-by: Andrew Lunn --- Changes in v2: - igb: Fix type 100BaseT to 1000BaseT. - Link to v1: https://lore.kernel.org/r/20240204-keee-u32-cleanup-v1-0-fb6e08329...@lunn.ch --- Andrew Lunn (8): net: usb: r8152: Use linkmode helpers for EEE

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

2024-02-09 Thread Andrew Lunn
On Fri, Feb 09, 2024 at 09:18:02AM +1100, Jon Maxwell wrote: > v2: Remove the "debug" module parameter as per Andrew Lunns suggestion. > It's not really needed as ethtool msglvl can control that. It is normal to places comments like the above under the ---. In its current place, it will be par

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

2024-02-07 Thread Andrew Lunn
On Thu, Feb 08, 2024 at 10:04:30AM +1100, Jon Maxwell wrote: > Linux users sometimes need an easy way to check current values of module > parameters. For example the module may be manually reloaded with different > parameters. Make these visible and readable in the /sys filesystem to allow > that.

Re: [Intel-wired-lan] [PATCH iwl-next v3] igc: Add support for LEDs on i225/i226

2024-02-07 Thread Andrew Lunn
upported. Other modes are simulated > in software by using on/off. Tested on Intel i225. > > Signed-off-by: Kurt Kanzenbach It looks like the mutex could be a spinlock, which is probably cheaper. But the code is O.K. as it is: Reviewed-by: Andrew Lunn Andrew

Re: [Intel-wired-lan] [PATCH 7/8] net: intel: igb: Use linkmode helpers for EEE

2024-02-06 Thread Andrew Lunn
> > - adv100m_eee = !!(edata->advertised_u32 & ADVERTISE_100_FULL); > > - adv1g_eee = !!(edata->advertised_u32 & ADVERTISE_1000_FULL); > > + adv100m_eee = linkmode_test_bit( > > + ETHTOOL_LINK_MODE_100baseT_Full_BIT, > > + edata->adv

Re: [Intel-wired-lan] [PATCH 0/8] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-04 Thread Andrew Lunn
On Sun, Feb 04, 2024 at 05:40:17PM -0600, Andrew Lunn wrote: > EEE has until recently been limited to lower speeds due to the use of > the legacy u32 for link speeds. This restriction has been lifted, with > the use of linkmode bitmaps. This patchset convert some MAC drivers > still u

[Intel-wired-lan] [PATCH 8/8] net: intel: igc: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 9 + 1 file changed, 5 insertions(+), 4

[Intel-wired-lan] [PATCH 7/8] net: intel: igb: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 33 ++-- 1 file changed, 22

[Intel-wired-lan] [PATCH 6/8] net: intel: e1000e: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/intel/e1000e/ethtool.c | 17 - 1 file changed, 12 insertions

[Intel-wired-lan] [PATCH 5/8] net: intel: i40e/igc: Remove setting Autoneg in EEE capabilities

2024-02-04 Thread Andrew Lunn
Energy Efficient Ethernet should always be negotiated with the link peer. Don't include SUPPORTED_Autoneg in the results of get_eee() for supported, advertised or lp_advertised, since it is assumed. Additionally, ethtool(1) ignores the set bit, and no other driver sets this. Signed-off-by: A

[Intel-wired-lan] [PATCH 4/8] net: ethernet: ixgbe: Convert EEE to use linkmodes

2024-02-04 Thread Andrew Lunn
Convert the tables to make use of ETHTOOL link mode bits, rather than the old u32 SUPPORTED speeds. Make use of the linkmode helps to set bits and compare linkmodes. As a result, the _u32 members of keee are no longer used, a step towards removing them. Signed-off-by: Andrew Lunn --- drivers

[Intel-wired-lan] [PATCH 3/8] net: qlogic: qede: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
Make use of the existing linkmode helpers for bit manipulation of EEE advertise, support and link partner support. The aim is to drop the restricted _u32 variants in the near future. Signed-off-by: Andrew Lunn --- drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 60 - 1

[Intel-wired-lan] [PATCH 2/8] net: usb: ax88179_178a: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
Make use of the existing linkmode helpers for converting PHY EEE register values into links modes, now that ethtool_keee uses link modes, rather than u32 values. Signed-off-by: Andrew Lunn --- drivers/net/usb/ax88179_178a.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[Intel-wired-lan] [PATCH 1/8] net: usb: r8152: Use linkmode helpers for EEE

2024-02-04 Thread Andrew Lunn
valid in for the current link mode. This then requires that PHYLIB is selected. Signed-off-by: Andrew Lunn --- drivers/net/usb/Kconfig | 1 + drivers/net/usb/r8152.c | 31 +++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/usb/Kconfig b

[Intel-wired-lan] [PATCH 0/8] drivers: net: Convert EEE handling to use linkmode bitmaps

2024-02-04 Thread Andrew Lunn
should be kept are gratefully received. Signed-off-by: Andrew Lunn --- Andrew Lunn (8): net: usb: r8152: Use linkmode helpers for EEE net: usb: ax88179_178a: Use linkmode helpers for EEE net: qlogic: qede: Use linkmode helpers for EEE net: ethernet: ixgbe: Convert EEE to

Re: [Intel-wired-lan] [PATCH iwl-next v2] igc: Add support for LEDs on i225/i226

2024-02-01 Thread Andrew Lunn
On Thu, Feb 01, 2024 at 01:59:46PM +0100, Kurt Kanzenbach wrote: > Add support for LEDs on i225/i226. The LEDs can be controlled via sysfs > from user space using the netdev trigger. The LEDs are named as > igc-- to be easily identified. > > Offloading link speed is supported. Other modes are simu

Re: [Intel-wired-lan] [PATCH v1 iwl-next] igc: Add support for LEDs on i225/i226

2024-01-25 Thread Andrew Lunn
On Thu, Jan 25, 2024 at 08:31:54AM +0100, Kurt Kanzenbach wrote: > On Wed Jan 24 2024, Andrew Lunn wrote: > > On Wed, Jan 24, 2024 at 09:24:08AM +0100, Kurt Kanzenbach wrote: > >> Add support for LEDs on i225/i226. The LEDs can be controlled via sysfs > >> from user spa

Re: [Intel-wired-lan] [PATCH v1 iwl-next] igc: Add support for LEDs on i225/i226

2024-01-24 Thread Andrew Lunn
On Wed, Jan 24, 2024 at 09:24:08AM +0100, Kurt Kanzenbach wrote: > Add support for LEDs on i225/i226. The LEDs can be controlled via sysfs > from user space using the netdev trigger. The LEDs are named as > igc-- to be easily identified. > > Offloading activity and link speed is supported. Tested

Re: [Intel-wired-lan] [PATCH net-next v5 3/3] net: Convert some ethtool_sprintf() to ethtool_puts()

2023-12-07 Thread Andrew Lunn
intf(&data, buffer[i].name); > or when it's used with format string: "%s" > | ethtool_sprintf(&data, "%s", buffer[i].name); > which both now become: > | ethtool_puts(&data, buffer[i].name); >

Re: [Intel-wired-lan] [PATCH net-next v5 1/3] ethtool: Implement ethtool_puts()

2023-12-07 Thread Andrew Lunn
On Wed, Dec 06, 2023 at 11:16:10PM +, justinst...@google.com wrote: > Use strscpy() to implement ethtool_puts(). > > Functionally the same as ethtool_sprintf() when it's used with two > arguments or with just "%s" format specifier. > > Signed-off-by: Justin

Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init

2023-11-30 Thread Andrew Lunn
> Yes, this info is available via the "devlink dev info" command. > Adding this info in dmesg ensures the version information is > available when someone is looking at the dmesg log to debug an issue. Ideally you would train your users to use devlink info, since you get more useful information,

Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init

2023-11-30 Thread Andrew Lunn
On Wed, Nov 29, 2023 at 09:56:04AM -0800, Sachin Bahadur wrote: > Print NIC FW version during PF initialization. FW version in dmesg is used > to identify and isolate issues. Particularly useful when dmesg is read > after reboot. > > Example log from dmesg: > ice :ca:00.0: fw 6.2.9 api 1.7.9 n

Re: [Intel-wired-lan] [PATCH net-next v4 3/3] net: Convert some ethtool_sprintf() to ethtool_puts()

2023-11-02 Thread Andrew Lunn
> > + vmxnet3_rq_driver_stats[i].desc); > > } > > > > for (i = 0; i < ARRAY_SIZE(vmxnet3_global_stats); i++) > > - ethtool_sprintf(&buf, vmxnet3_global_stats[i].desc); > > + ethtool_puts(&buf, vmxnet3_global_stats[i].desc); > > } > > > > netdev_featur

  1   2   >