Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 531980 - Get input/output error when using mii-tool on rhel 5.4
Get input/output error when using mii-tool on rhel 5.4
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-tools (Show other bugs)
5.4
All Linux
low Severity medium
: rc
: ---
Assigned To: Jiri Popelka
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-30 00:35 EDT by Mark Wu
Modified: 2018-10-27 10:01 EDT (History)
4 users (show)

See Also:
Fixed In Version: net-tools-1.60-82.el5
Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:40:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0188 normal SHIPPED_LIVE net-tools bug fix update 2012-02-20 09:54:32 EST

  None (edit)
Description Mark Wu 2009-10-30 00:35:32 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.
Comment 1 Jiri Popelka 2009-10-30 07:09:56 EDT
Already reported against Fedora-10 in Bug #491358.
Comment 2 Jiri Popelka 2009-10-30 12:12:28 EDT
Patch is in Bug #491358, comment #5
Comment 4 RHEL Product and Program Management 2010-08-09 14:25:11 EDT
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.
Comment 6 RHEL Product and Program Management 2011-01-11 15:35:58 EST
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.
Comment 7 RHEL Product and Program Management 2011-01-11 18:09:19 EST
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.
Comment 8 RHEL Product and Program Management 2011-05-31 09:26:51 EDT
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.
Comment 13 Eliska Slobodova 2011-10-07 05:09:31 EDT
    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.
Comment 15 errata-xmlrpc 2012-02-21 00:40:46 EST
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

Note You need to log in before you can comment on or make changes to this bug.