Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2193318

Summary: The fiber module information obtained by ethtool -m is incomplete
Product: Red Hat Enterprise Linux 9 Reporter: yangfei <feyang>
Component: ethtoolAssignee: Ivan Vecera <ivecera>
Status: CLOSED DUPLICATE QA Contact: Tianhao <tizhao>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 9.3CC: hwkernel-mgr, kzhang, mschmidt
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.3Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2203850 2203851 2203852 (view as bug list) Environment:
Last Closed: 2023-09-11 10:04:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2203850, 2203851, 2203852    

Description yangfei 2023-05-05 08:00:37 UTC
Description of problem:

The fiber module information obtained by ethtool -m is incomplete.

It is normal on ethtool version 5.8, but abnormal on 5.16. Please check the attachments for details.  The issue could be reproduced on nic driver mlx5_core,i40e etc.

Comment 4 Ivan Vecera 2023-05-09 10:22:49 UTC
What exact kernel version is used?

Comment 5 yangfei 2023-05-12 07:57:14 UTC
update from customer:

the normal information which get from ethtool-5.8 and ethtool-6.2 like below:

Identifier                                : 0x03 (SFP)
	Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
	Connector                                 : 0x21 (Copper pigtail)
	Transceiver codes                         : 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
	Transceiver type                          : Active Cable
	Encoding                                  : 0x06 (64B/66B)
	BR, Nominal                               : 10300MBd
	Rate identifier                           : 0x00 (unspecified)
	Length (SMF,km)                           : 0km
	Length (SMF)                              : 0m
	Length (50um)                             : 0m
	Length (62.5um)                           : 0m
	Length (Copper)                           : 20m
	Length (OM3)                              : 0m
	Active Cu cmplnce.                        : 0x04 (SFF-8431 limiting) [SFF-8472 rev10.4 only]
	Vendor name                               : WTD
	Vendor OUI                                : 00:1c:ad
	Vendor PN                                 : RTXM228-020-H3C
	Vendor rev                                : 20
	Option values                             : 0x00 0x1a
	Option                                    : RX_LOS implemented
	Option                                    : TX_FAULT implemented
	Option                                    : TX_DISABLE implemented
	BR margin, max                            : 0%
	BR margin, min                            : 0%
	Vendor SN                                 : EB194500090069
	Date code                                 : 191109
	Optical diagnostics support               : Yes
	Laser bias current                        : 6.810 mA
	Laser output power                        : 0.5272 mW / -2.78 dBm
	Receiver signal average optical power     : 0.6248 mW / -2.04 dBm
	Module temperature                        : 38.50 degrees C / 101.30 degrees F
	Module voltage                            : 3.2763 V
	Alarm/warning flags implemented           : Yes
	Laser bias current high alarm             : Off
	Laser bias current low alarm              : Off
	Laser bias current high warning           : Off
	Laser bias current low warning            : Off
	Laser output power high alarm             : Off
	Laser output power low alarm              : Off
	Laser output power high warning           : Off
	Laser output power low warning            : Off
	Module temperature high alarm             : Off
	Module temperature low alarm              : Off
	Module temperature high warning           : Off
	Module temperature low warning            : Off
	Module voltage high alarm                 : Off
	Module voltage low alarm                  : Off
	Module voltage high warning               : Off
	Module voltage low warning                : Off
	Laser rx power high alarm                 : Off
	Laser rx power low alarm                  : Off
	Laser rx power high warning               : Off
	Laser rx power low warning                : Off
	Laser bias current high alarm threshold   : 10.500 mA
	Laser bias current low alarm threshold    : 2.500 mA
	Laser bias current high warning threshold : 10.500 mA
	Laser bias current low warning threshold  : 2.500 mA
	Laser output power high alarm threshold   : 1.5849 mW / 2.00 dBm
	Laser output power low alarm threshold    : 0.0933 mW / -10.30 dBm
	Laser output power high warning threshold : 0.7943 mW / -1.00 dBm
	Laser output power low warning threshold  : 0.1862 mW / -7.30 dBm
	Module temperature high alarm threshold   : 75.00 degrees C / 167.00 degrees F
	Module temperature low alarm threshold    : -5.00 degrees C / 23.00 degrees F
	Module temperature high warning threshold : 70.00 degrees C / 158.00 degrees F
	Module temperature low warning threshold  : 0.00 degrees C / 32.00 degrees F
	Module voltage high alarm threshold       : 3.6300 V
	Module voltage low alarm threshold        : 2.9700 V
	Module voltage high warning threshold     : 3.4650 V
	Module voltage low warning threshold      : 3.1350 V
	Laser rx power high alarm threshold       : 1.5849 mW / 2.00 dBm
	Laser rx power low alarm threshold        : 0.0407 mW / -13.90 dBm
	Laser rx power high warning threshold     : 0.7943 mW / -1.00 dBm
	Laser rx power low warning threshold      : 0.1023 mW / -9.90 dBm


but the ethtool-5.16 is incomplete like below:

	Identifier                                : 0x03 (SFP)
	Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
	Connector                                 : 0x21 (Copper pigtail)
	Transceiver codes                         : 0x00 0x00 0x00 0x00 0x00 0x08 0x00 0x00 0x00
	Transceiver type                          : Active Cable
	Encoding                                  : 0x06 (64B/66B)
	BR, Nominal                               : 10300MBd
	Rate identifier                           : 0x00 (unspecified)
	Length (SMF,km)                           : 0km
	Length (SMF)                              : 0m
	Length (50um)                             : 0m
	Length (62.5um)                           : 0m
	Length (Copper)                           : 20m
	Length (OM3)                              : 0m
	Active Cu cmplnce.                        : 0x04 (SFF-8431 limiting) [SFF-8472 rev10.4 only]
	Vendor name                               : WTD
	Vendor OUI                                : 00:1c:ad
	Vendor PN                                 : RTXM228-020-H3C
	Vendor rev                                : 20
	Option values                             : 0x00 0x1a
	Option                                    : RX_LOS implemented
	Option                                    : TX_FAULT implemented
	Option                                    : TX_DISABLE implemented
	BR margin, max                            : 0%
	BR margin, min                            : 0%
	Vendor SN                                 : EB194500090069
	Date code                                 : 191109

Customer wants to know the root cause.

Comment 6 Ivan Vecera 2023-05-12 09:05:34 UTC
(In reply to Ivan Vecera from comment #4)
> What exact kernel version is used?

Please, kernel version... `uname -r`

Comment 7 yangfei 2023-05-12 10:42:40 UTC
kenrel 9.0, 9.1, kernel-5.14.0-70.13.1.el9, kernel-5.14.0-162.6.1.el9,it's not relate to the kernel version, just focus on the ethtool version. And it's easy to reproduce! Customers wants to know whether there's a bug on ethtool-5.16, because, the ethtool-5.8 and ethtool-6.2 are normal to get information.

Comment 8 Ivan Vecera 2023-05-15 11:45:06 UTC
It looks like that the following commit should fix the issue:

commit fb92de62eeb1cfbb21f57d60491798df762556d3
Author: Ivan Vecera <ivecera>
Date:   Thu Jun 16 20:05:26 2022 +0200

    sff-8079/8472: Fix missing sff-8472 output in netlink path
    
    Commit 25b64c66f58d ("ethtool: Add netlink handler for
    getmodule (-m)") provided a netlink variant for getmodule
    but also introduced a regression as netlink output is different
    from ioctl output that provides information from A2h page
    via sff8472_show_all().
    
    To fix this the netlink path should check a presence of A2h page
    by value of bit 6 in byte 92 of page A0h and if it is set then
    get A2h page and call sff8472_show_all().
    
    Fixes: 25b64c66f58d ("ethtool: Add netlink handler for getmodule (-m)")
    Tested-by: Daniel Juarez <djuarezg>
    Tested-by: Ido Schimmel <idosch>
    Reviewed-by: Ido Schimmel <idosch>
    Co-authored-by: Ido Schimmel <idosch>
    Signed-off-by: Ivan Vecera <ivecera>

I will prepare a test build for you to confirm.

Comment 9 Ivan Vecera 2023-05-15 11:47:07 UTC
Btw. the bug#2193319 [The fiber module information obtained by ethtool -m is incomplete] is the dup of this... or should it be reported against RHEL-8?

Comment 10 Ivan Vecera 2023-05-15 12:34:30 UTC
Here is the promised build for verification:

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52608962

Comment 13 Ivan Vecera 2023-09-11 09:57:20 UTC
*** Bug 2193319 has been marked as a duplicate of this bug. ***

Comment 14 Ivan Vecera 2023-09-11 10:04:09 UTC
RHEL 9.2 was fixed by ethtool rebase (bz#2173768)... and previous releases by bz#2203852.

Closing this bz as dup of bz#2173768

*** This bug has been marked as a duplicate of bug 2173768 ***

Comment 15 Red Hat Bugzilla 2024-01-10 04:25:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days