Bug 2193318
| Summary: | The fiber module information obtained by ethtool -m is incomplete | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | yangfei <feyang> | |
| Component: | ethtool | Assignee: | Ivan Vecera <ivecera> | |
| Status: | CLOSED DUPLICATE | QA Contact: | Tianhao <tizhao> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.3 | CC: | hwkernel-mgr, kzhang, mschmidt | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | 9.3 | Flags: | 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
What exact kernel version is used? 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. (In reply to Ivan Vecera from comment #4) > What exact kernel version is used? Please, kernel version... `uname -r` 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. 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.
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? Here is the promised build for verification: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52608962 *** Bug 2193319 has been marked as a duplicate of this bug. *** 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 *** The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |