ethtool -m produces unreadable output for devices managed by the Intel ice driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
We have a Supermicro X12SDV-8C-SP6F motherboard with a pair of SFP28 ports managed by an Intel E823-L for SFP controller. On this machine the SFP28 ports are eno3 and eno4.
When asking ethtool for information about the installed SFP modules, we get this unhelpful output on Ubuntu Server 22.04 LTS:
sudo ethtool --module-info eno3
Offset Values
------ ------
0x0000: 03 04 07 20 00 00 02 00 00 00 00 06 67 02 0a 64
0x0010: 00 00 00 00 46 53 20 20 20 20 20 20 20 20 20 20
0x0020: 20 20 20 20 00 00 1b 21 53 46 50 2d 31 30 47 4c
0x0030: 52 2d 33 31 20 20 20 20 41 20 20 20 05 1e 00 d3
0x0040: 00 3a 00 00 46 32 30 33 30 33 32 32 36 38 39 20
0x0050: 20 20 20 20 32 32 30 34 30 32 20 20 68 fa 02 f1
0x0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I suspect this is the same bug that was reported by Red Hat here (access requires a Red Hat account):
https:/
This patch in netdev seems relevant:
https://<email address hidden>/T/
If I understand that patch correctly, this might a netdev issue that was exposed by a change in ethtool. If that's the case, then it's possible this shouldn't be classified as an ethtool bug, but I figured I'd start here.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ethtool 1:5.16-1
ProcVersionSign
Uname: Linux 5.15.0-72-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
Date: Fri May 26 17:29:58 2023
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
TERM=xterm
XDG_RUNTIME_
PATH=(custom, no user)
SourcePackage: ethtool
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 27 01:43 seq
crw-rw---- 1 root audio 116, 33 May 27 01:43 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CasperMD5CheckR
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2023-05-25 (2 days ago)
InstallationMedia: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230217.1)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: Supermicro SYS-E300-12D-8CN6P
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: jammy
Uname: Linux 5.15.0-72-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 02/08/2023
dmi.bios.release: 5.24
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: 1.2
dmi.board.
dmi.board.name: X12SDV-8C-SP6F
dmi.board.vendor: Supermicro
dmi.board.version: 1.10
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: Supermicro
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: Family
dmi.product.name: SYS-E300-12D-8CN6P
dmi.product.sku: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Supermicro
As suggested, this is indeed a bug in the ice kernel driver and not ethtool. Fixed by:
commit 84cba1840e68430 325ac133a11be06 bfb2f7acd8
Author: Petr Oros <email address hidden>
Date: Wed Mar 1 21:47:07 2023 +0100
ice: copy last block omitted in ice_get_ module_ eeprom( )