[Bug 240201] smsc floods console with warning messages "Failed to read register 0x114" and "MII is busy"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 29 21:46:32 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240201

            Bug ID: 240201
           Summary: smsc floods console with warning messages "Failed to
                    read register 0x114" and "MII is busy"
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: iz-rpi03 at hs-karlsruhe.de

In some rare to repoduce circumstances the smsc driver starts flooding the
console and syslog with

% Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
% Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: MII is busy

messages. This seems to be an old flaw
  https://lists.freebsd.org/pipermail/freebsd-arm/2015-July/011970.html
which is also seen by other people
 https://forums.freebsd.org/threads/smsc0-problem-in-raspberry-pi1-b.69936/
recently.

Now it looks like I am able to reproduce the needed circumstances.

It is a RaspberryPI 3B, running a CURRENT GENERIC-NODEBUG at r351477,
with a mirrored ZFS root pool.

When trying to write around 2.2GByte in several files from the network into
the filesystem those smsc warning messages show up.

make installkernel, installworld, mergemaster or building and installing
something from ports, e.g. python, does not trigger the warning messages.

The system seems to stay somehow responsible, as the warnings get logged
into /var/log/messages, but the USB keyboard is dead.

At the moment it is possible to let the system as it is to aid debugging.


Some additional information:

# zpool status
...
        NAME           STATE     READ WRITE CKSUM
        rootpool       ONLINE       0     0     0
          mirror-0     ONLINE       0     0     0
            mmcsd0s2a  ONLINE       0     0     0
            da0s2a     ONLINE       0     0     0

errors: No known data errors
# 

The beginning of one flooding:
Aug 23 20:43:43 rpi3-b ....
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:00:55 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:00:55 rpi3-b kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 01
24 d3 b8 00 00 80 00 
Aug 23 22:00:55 rpi3-b kernel: (da0:umass-sim0:0:0:0): CAM status: CCB request
completed with an error
Aug 23 22:00:55 rpi3-b kernel: (da0:umass-sim0:0:0:0): Retrying command, 3 more
tries remain
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:01:34 rpi3-b kernel: ue0: link state changed to DOWN
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy
Aug 23 22:01:34 rpi3-b kernel: smsc0: error: usb error on tx: USB_ERR_TIMEOUT
Aug 23 22:01:34 rpi3-b kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 01
24 d3 b8 00 00 80 00 
Aug 23 22:01:34 rpi3-b kernel: (da0:umass-sim0:0:0:0): CAM status: CCB request
completed with an error
Aug 23 22:01:34 rpi3-b kernel: (da0:umass-sim0:0:0:0): Retrying command, 2 more
tries remain
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 23 22:01:34 rpi3-b kernel: smsc0: warning: MII is busy

Here is one from today:
Aug 29 10:22:37 rpi3-b ...
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:09:48 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:09:48 rpi3-b kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00
bc 4b 90 00 00 80 00 
Aug 29 16:09:48 rpi3-b kernel: (da0:umass-sim0:0:0:0): CAM status: CCB request
completed with an error
Aug 29 16:09:48 rpi3-b kernel: (da0:umass-sim0:0:0:0): Retrying command, 3 more
tries remain
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:10:22 rpi3-b kernel: ue0: link state changed to DOWN
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:10:22 rpi3-b kernel: smsc0: error: usb error on tx: USB_ERR_TIMEOUT
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: Failed to read register 0x114
Aug 29 16:10:22 rpi3-b kernel: smsc0: warning: MII is busy
Aug 29 16:10:22 rpi3-b kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00
bc 4b 90 00 00 80 00 
Aug 29 16:10:22 rpi3-b kernel: (da0:umass-sim0:0:0:0): CAM status: CCB request
completed with an error
Aug 29 16:10:22 rpi3-b kernel: (da0:umass-sim0:0:0:0): Retrying command, 2 more
tries remain

Best regards, Ralf

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list