From owner-freebsd-usb@FreeBSD.ORG Tue Sep 6 18:54:59 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C582B16A41F for ; Tue, 6 Sep 2005 18:54:59 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4187F43D46 for ; Tue, 6 Sep 2005 18:54:58 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-88-165.daxnet.no ([193.216.88.165] verified) by mailfe16.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 16752659; Tue, 06 Sep 2005 20:54:56 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 6 Sep 2005 20:55:49 +0200 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509062055.51077.hselasky@c2i.net> Cc: Mathieu PREVOT Subject: Re: kernel panic with pure usb2umass pluged on pure usb1only motherboard port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 18:54:59 -0000 On Tuesday 06 September 2005 20:08, Mathieu PREVOT wrote: > Hello, > > my kernel panics when I plug a pure USB2 umass. My motherboard has a > VIA KT200 and has only USB1 ports. > However, everything works perfectly with USB1 and USB1&2 umass. > I used a custom kernel 5.4 but I noticed that behavior since 5.2.1. I > not able to provide the output. > > Is it a known issue ? There is one known bug in umass that will produce a panic on attach: In "/sys/dev/usb/umass.c", maybe you can manually apply the following patch: *************** *** 928,934 **** #endif if (sc->quirks & ALT_IFACE_1) { ! err = usbd_set_interface(0, 1); if (err) { DPRINTF(UDMASS_USB, ("%s: could not switch to " "Alt Interface %d\n", --- 929,935 ---- #endif if (sc->quirks & ALT_IFACE_1) { ! err = usbd_set_interface(uaa->iface, 1); if (err) { DPRINTF(UDMASS_USB, ("%s: could not switch to " "Alt Interface %d\n", I am not sure if this is what is causing your panic. But could you make sure that you have the following options in your kernel config file: options KDB # Enable kernel debugger support. options DDB # Support DDB. options GDB # Support remote GDB. Then recompile the kernel, and then reproduce the panic. When the kernel enters the debugger. Type "backtrace". Write down the function names, not all the parameters, and post it. --HPS