NetBSD Problem Report #51640

From www@NetBSD.org  Sun Nov 20 15:17:49 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0767B7A2BF
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Nov 2016 15:17:49 +0000 (UTC)
Message-Id: <20161120151747.EE6BF7A312@mollari.NetBSD.org>
Date: Sun, 20 Nov 2016 15:17:47 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Kernel unable to cope with the removal of a cardbus USB adapter
X-Send-Pr-Version: www-1.0

>Number:         51640
>Category:       kern
>Synopsis:       Kernel unable to cope with the removal of a cardbus USB adapter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 20 15:20:00 +0000 2016
>Originator:     Sevan Janiyan
>Release:        NetBSD-Head
>Organization:
>Environment:
>Description:
I have a Cardbus 3 port USB 2.0 adapter, this particular device is a conceptronic CSP480C3.
On a ThinkPad X60s booting the 7.99.39 or 7.0.1 i386 kernel, connecting the card and once the kernel has detected the device with the ports attached, ejecting the card, results in the kernel reporting errors. The system eventually reboots by itself.

Output below is from attaching the card, proceeded by connecting a USB adapter to ensure a port is functioning before the card ejected again.

ohci0 at cardbus0 function 0: vendor 1033 product 0035 (rev. 0x41)
ohci0: OHCI version 1.0
usb5 at ohci0: USB revision 1.0
uhub5 at usb5: vendor 1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub5: 3 ports with 3 removable, self powered
ohci1 at cardbus0 function 1: vendor 1033 product 0035 (rev. 0x41)
ohci1: OHCI version 1.0
usb6 at ohci1: USB revision 1.0
uhub6 at usb6: vendor 1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub6: 2 ports with 2 removable, self powered
ehci1 at cardbus0 function 2: vendor 1033 product 00e0 (rev. 0x02)
ehci1: EHCI version 0.95
ehci1: companion controllers, 3 ports each: ohci0 ohci1
usb7 at ehci1: USB revision 2.0
uhub7 at usb7: vendor 1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub7: 5 ports with 5 removable, self powered
ugen1 at uhub7 port 1
ugen1: ZyDAS USB Device, rev 2.00/48.10, addr 2
ugen1: detached
ugen1: at uhub7 port 1 (addr 2) disconnected
ohci0: 1 scheduling overruns
ohci0: resume detect
ohci0: unrecoverable error, controller halted
ohci1: 1 scheduling overruns
ohci1: resume detect
ohci1: unrecoverable error, controller halted
ehci1: unrecoverable error, controller halted
ehci1: blocking intrs 0x10
ehci1: port reset timeout
uhub7: port 1 reset failed
ehci1: port reset timeout
uhub7: port 2 reset failed
ehci1: port reset timeout
uhub7: port 3 reset failed
ehci1: port reset timeout
uhub7: port 4 reset failed
ehci1: port reset timeout
uhub7: port 5 reset failed
ohci0: 1 scheduling overruns
ohci1: 1 scheduling overruns
ehci1: port reset timeout
uhub7: port 1 reset failed
ohci0: 13 scheduling overruns
ohci1: 13 scheduling overruns
ehci1: port reset timeout
uhub7: port 2 reset failed
ohci0: 27 scheduling overruns
ohci1: 27 scheduling overruns
ehci1: port reset timeout
uhub7: port 3 reset failed
ehci1: port reset timeout
ohci0: 1 scheduling overruns
ohci1: 1 scheduling overruns
uhub7: port 4 reset failed
ehci1: port reset timeout
ohci0: 1 scheduling overruns
ohci1: 1 scheduling overruns
uhub7: port 5 reset failed
ohci0: 45 scheduling overruns
ohci1: 45 scheduling overruns
ehci1: port reset timeout
uhub7: port 1 reset failed
ohci0: 33 scheduling overruns
ohci1: 33 scheduling overruns
ehci1: port reset timeout
uhub7: port 2 reset failed
ehci1: port reset timeout
ohci0: 8 scheduling overruns
ohci1: 8 scheduling overruns
uhub7: port 3 reset failed
ohci0: 5 scheduling overruns
ohci1: 5 scheduling overruns
ehci1: port reset timeout
uhub7: port 4 reset failed
ehci1: port reset timeout
uhub7: port 5 reset failed
ehci1: port reset timeout
uhub7: port 1 reset failed
ohci0: 118 scheduling overruns
ohci1: 118 scheduling overruns
ehci1: port reset timeout
uhub7: port 2 reset failed
ehci1: port reset timeout
uhub7: port 3 reset failed
ohci0: 2 scheduling overruns
ohci1: 2 scheduling overruns

>How-To-Repeat:
Eject a cardbus card with usb ports
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.