Red Hat Bugzilla – Bug 531980
Get input/output error when using mii-tool on rhel 5.4
Last modified: 2018-10-27 10:01:35 EDT
Description of problem: mii-tool reports the following messages when the system uses e1000e driver on rhel 5.4 [root@cnsh230208 ~]# mii-tool eth0: negotiated 100baseTx-FD, link ok eth1: negotiated 100baseTx-FD flow-control, link ok SIOCGMIIREG on eth2 failed: Input/output error eth2: negotiated 100baseTx-FD, link ok SIOCGMIIREG on eth3 failed: Input/output error eth3: negotiated 100baseTx-FD flow-control, link ok But it will not occur when the kernel is downgraded to 2.18.92 Version-Release number of selected component (if applicable): rhel 5.4 How reproducible: mii-tool Additional info: From the function show_basic_mii in mii-tool.c we can see: for (i = 0; i < ((verbose > 1) ? 32 : 8); i++) mii_val[i] = mdio_read(sock, i); But when i is assigned to 7, it will get -EIO return value, because 7 is not defined in driver: #define MII_BMCR 0x00 /* Basic mode control register */ #define MII_BMSR 0x01 /* Basic mode status register */ #define MII_PHYSID1 0x02 /* PHYS ID 1 */ #define MII_PHYSID2 0x03 /* PHYS ID 2 */ #define MII_ADVERTISE 0x04 /* Advertisement control reg */ #define MII_LPA 0x05 /* Link partner ability reg */ #define MII_EXPANSION 0x06 /* Expansion register */ #define MII_CTRL1000 0x09 /* 1000BASE-T control */ This bug is exposed because the code of function e1000_mii_ioctl driver is updated and explicitly reject the undefined reg number with EIO.
Already reported against Fedora-10 in Bug #491358.
Patch is in Bug #491358, comment #5
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, the mii-tool command displayed an I/O error on a network interface if the Intel's e1000e driver was used. With this update, the tool is modified to only check generic Media Independent Interface (MII) registers defined in linux/mii.h. Now, the error message is no longer displayed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0188.html