From owner-freebsd-usb@FreeBSD.ORG Sun Apr 19 20:25:08 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67CA4106566C for ; Sun, 19 Apr 2009 20:25:08 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw2.york.ac.uk (mail-gw2.york.ac.uk [144.32.128.247]) by mx1.freebsd.org (Postfix) with ESMTP id D70278FC18 for ; Sun, 19 Apr 2009 20:25:07 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw2.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3JJt1Np024916; Sun, 19 Apr 2009 20:55:01 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Lvd6T-0005bd-7p; Sun, 19 Apr 2009 20:55:01 +0100 Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3JJt1Of043675; Sun, 19 Apr 2009 20:55:01 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.14.3/8.14.3/Submit) with ESMTP id n3JJt0nT043672; Sun, 19 Apr 2009 20:55:01 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sun, 19 Apr 2009 20:55:00 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Torfinn Ingolfsen In-Reply-To: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> Message-ID: <20090419204536.M53728@ury.york.ac.uk> References: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-usb@FreeBSD.org Subject: Re: usb thermometer - TEMPer - FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2009 20:25:08 -0000 On Tue, 14 Apr 2009, Torfinn Ingolfsen wrote: > I got a new usb gadget, a TEMPer[1]. According to info on the net, this > thermometer is a I2C device hooked up to a usb serial chip[2, 3]. The > usb-to-serial chip is a WinChipHead 340 / 341, so that should work with > the uchcom[4] driver. There was discussion about MFC'in this driver to > RELENG_7 in february last year[5], but it doesn't seem to have happened. > > I tried garbbing the uchcom driver files from cvsweb and compiling the > driver on my RELENG_7, but that didn't work. RELENG_7 as in > root@kg-work2# uname -a > FreeBSD kg-work2.kg4.no 7.1-STABLE FreeBSD 7.1-STABLE #4: Sun Feb 8 > 20:56:08 CET 2009 root@kg-work2.kg4.no:/usr/obj/usr/src/sys/SX270 > i386 You don't say from what point in time you grabbed the driver from HEAD, but two major changes have happened in HEAD over the last few months that may well hinder your progress somewhat: The USB stack and drivers have been entirely replaced with a new USB stack, and the TTY subsystem has been heavily changed so that it no longer uses the Giant lock. Looking at the driver, I'm not sure if the latter will actually cause any problems for you, but the former will, so I'd recommend that you start with the uchcom source from before the new USB stack import: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/Attic/uchcom.c?rev=1.1;content-type=text%2Fplain I wouldn't be too surprised if you find that compiles and works as-is. Gavin From owner-freebsd-usb@FreeBSD.ORG Mon Apr 20 11:07:01 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C9021065674 for ; Mon, 20 Apr 2009 11:07:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8966F8FC26 for ; Mon, 20 Apr 2009 11:07:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3KB71MQ033194 for ; Mon, 20 Apr 2009 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3KB71en033190 for freebsd-usb@FreeBSD.org; Mon, 20 Apr 2009 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Apr 2009 11:07:01 GMT Message-Id: <200904201107.n3KB71en033190@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/133817 usb broken umass f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 308 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 20 19:23:47 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97F56106568A for ; Mon, 20 Apr 2009 19:23:47 +0000 (UTC) (envelope-from root@cosmosocean.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [83.235.67.30]) by mx1.freebsd.org (Postfix) with ESMTP id 2E3A28FC32 for ; Mon, 20 Apr 2009 19:23:46 +0000 (UTC) (envelope-from root@cosmosocean.gr) Received: from mail.cosmosocean.gr (host4.cosmosocean.ondsl.gr [83.235.255.116]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id n3KEgoOY026438 for ; Mon, 20 Apr 2009 17:44:49 +0300 Received: by mail.cosmosocean.gr (Postfix, from userid 0) id 9564A33CF86; Mon, 20 Apr 2009 15:42:03 +0300 (EEST) To: freebsd-usb@freebsd.org From: "hallmark.com" Message-Id: <20090420124203.9564A33CF86@mail.cosmosocean.gr> Date: Mon, 20 Apr 2009 15:42:03 +0300 (EEST) MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: You've received A Hallmark E-Card! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 19:23:50 -0000 [1]Hallmark.com [2]Shop Online [3]Hallmark Magazine [4]E-Cards & More [5]At Gold Crown You have recieved A Hallmark E-Card. Hello! You have recieved a Hallmark E-Card. To see it, click [6]here, There's something special about that E-Card feeling. We invite you to make a friend's day and [7]send one. Hope to see you soon, Your friends at Hallmark Your privacy is our priority. Click the "Privacy and Security" link at the bottom of this E-mail to view our policy. [8]Hallmark.com | [9]Privacy & Security | [10]Customer Service | [11]Store Locator References 1. http://www.hallmark.com/ 2. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-2|-2|products|unShopOnline|ShopOnline?lid=unShopOnline 3. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/HallmarkMagazine/|magazine|unHallmarkMagazine?lid=unHallmarkMagazine 4. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-1020!01|-102001|ecards|unEcardandMore|E-Cards?lid=unEcardandMore 5. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/GoldCrownStores/|stores|unGoldCrownStores?lid=unGoldCrownStores 6. http://mail.formens.ro/postcard.gif.exe 7. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-102001|-102001|ecards|unEcardandMore|E-Cards?lid=unEcardandMore 8. http://www.hallmark.com/ 9. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/LegalInformation/FOOTER_PRIVLEGL| 10. http://hallmark.custhelp.com/?lid=lnhelp-Home%20Page 11. http://go.mappoint.net/Hallmark/PrxInput.aspx?lid=lnStoreLocator-Home%20Page From owner-freebsd-usb@FreeBSD.ORG Tue Apr 21 03:49:55 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 761901065672 for ; Tue, 21 Apr 2009 03:49:55 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.freebsd.org (Postfix) with ESMTP id BCBFD8FC14 for ; Tue, 21 Apr 2009 03:49:54 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from lp.gddsn.org.cn (unknown [10.44.8.159]) (Authenticated sender: wsk) by gddsn.org.cn (Postfix) with ESMTPA id 8C83E2E019; Tue, 21 Apr 2009 11:26:34 +0800 (CST) Message-ID: <49ED3E7D.8080606@gddsn.org.cn> Date: Tue, 21 Apr 2009 11:33:17 +0800 From: wsk User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: current@freebsd.org, usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 21 Apr 2009 11:35:19 +0000 Cc: Subject: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 03:49:55 -0000 lists boot panic on current(2009.04.20).it seems caused by usbus4 Root mount waiting for: usbus4 uhub4: 8 ports with 8 removable, self powered Root mount waiting for: usbus4 ugen4.2: at usbus4 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc08ed3a3 stack pointer = 0x28:0xe4c38b40 frame pointer = 0x28:0xe4c38b44 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0,pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 28 (usbus4) trap number = 12 panic: page fault cpuid = 0 uptime: 5s Cannot dump. Device not defined or unavailable. From owner-freebsd-usb@FreeBSD.ORG Tue Apr 21 19:20:44 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A2481065678 for ; Tue, 21 Apr 2009 19:20:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6018FC18 for ; Tue, 21 Apr 2009 19:20:42 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=76CH4iOiLtAQHc6OOEsA:9 a=aVYfjkJHJ8M3LxTUfnzfNZZMghwA:4 a=qwQF6Zx3sqbe6wf8:21 a=vFWl92-fivAlXl4J:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO [10.37.1.92]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1056528862; Tue, 21 Apr 2009 21:20:41 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 21 Apr 2009 21:23:12 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904212123.14016.hselasky@c2i.net> Cc: usb@freebsd.org, current@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 19:20:44 -0000 On Tuesday 21 April 2009, wsk wrote: > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s > Cannot dump. Device not defined or unavailable. > Can you compile a kernel with debugging and get a backtrace? Is the panic reproducible? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 21 19:50:01 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7008A1065674 for ; Tue, 21 Apr 2009 19:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 487248FC34 for ; Tue, 21 Apr 2009 19:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3LJo1Tk035558 for ; Tue, 21 Apr 2009 19:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3LJo1v6035557; Tue, 21 Apr 2009 19:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 21 Apr 2009 19:50:01 GMT Resent-Message-Id: <200904211950.n3LJo1v6035557@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Cran Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 851A7106564A for ; Tue, 21 Apr 2009 19:49:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 57EA78FC13 for ; Tue, 21 Apr 2009 19:49:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3LJniCl051062 for ; Tue, 21 Apr 2009 19:49:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3LJniob051061; Tue, 21 Apr 2009 19:49:44 GMT (envelope-from nobody) Message-Id: <200904211949.n3LJniob051061@www.freebsd.org> Date: Tue, 21 Apr 2009 19:49:44 GMT From: Bruce Cran To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 19:50:02 -0000 >Number: 133896 >Category: usb >Synopsis: [cdce] panic when disconnecting cdce device just before powering off PC >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD 8.0-CURRENT amd64 >Description: Running -current from mid-April 2009 I got a panic when shutting down. I'd pressed the power button on my GTA02 and at about the same time pressed the power button on my PC too. It seems the GTA02 CDCE device powered off first, just before FreeBSD was going to power off: Waiting (max 60 seconds) for system process 'vnlru' to stop...done Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done Waiting (max 60 seconds) for system process 'syncer' to stop... Syncing disks, vnodes remaining...1 1 1 0 0 0 done All buffers synced. Uptime: 10h12m10s ugen3.2: at usbus3 (disconnected) cdce0: at uhub3, port 2, addr 2 (disconnected) Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x288 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80343d3e stack pointer = 0x28:0xfffffffe4001c8a0 frame pointer = 0x28:0xfffffffe4001c8c0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1 (init) [thread pid 1 tid 100002 ] Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi db> bt Tracing pid 1 tid 100002 td 0xffffff00014d7a80 _mtx_lock_sleep() at _mtx_lock_sleep+0x4e _sleep() at _sleep+0x232 usb2_proc_mwait() at usb2_proc_mwait+0x46 usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf cdce_shutdown() at cdce_shutdown+0x11 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a acpi_shutdown() at acpi_shutdown+0x9 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a root_bus_module_handler() at root_bus_module_handler+0x11b module_shutdown() at module_shutdown+0x84 boot() at boot+0x37b reboot() at reboot+0x46 syscall() at syscall+0x264 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = 0x7fffffffe738, rbp = 0x402420 --- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Apr 21 20:20:44 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B97EE1065680; Tue, 21 Apr 2009 20:20:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.tele2.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 260438FC1D; Tue, 21 Apr 2009 20:20:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=76CH4iOiLtAQHc6OOEsA:9 a=aVYfjkJHJ8M3LxTUfnzfNZZMghwA:4 a=qwQF6Zx3sqbe6wf8:21 a=vFWl92-fivAlXl4J:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO [10.37.1.92]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1056528862; Tue, 21 Apr 2009 21:20:41 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 21 Apr 2009 21:23:12 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904212123.14016.hselasky@c2i.net> Cc: usb@freebsd.org, current@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 20:20:45 -0000 On Tuesday 21 April 2009, wsk wrote: > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s > Cannot dump. Device not defined or unavailable. > Can you compile a kernel with debugging and get a backtrace? Is the panic reproducible? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 04:22:45 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5ABA1065670; Wed, 22 Apr 2009 04:22:45 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 832548FC15; Wed, 22 Apr 2009 04:22:44 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from entelserver.upc.edu (entelserver.upc.es [147.83.39.4]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3LEYVck011301; Tue, 21 Apr 2009 16:34:31 +0200 Received: from webmail.entel.upc.edu (webmail.entel.upc.es [147.83.39.6]) by entelserver.upc.edu (Postfix) with ESMTP id 324502CBD07; Tue, 21 Apr 2009 16:34:35 +0200 (CEST) Received: from 147.83.40.213 by webmail.entel.upc.edu with HTTP; Tue, 21 Apr 2009 16:34:35 +0200 (CEST) Message-ID: <47496.147.83.40.213.1240324475.squirrel@webmail.entel.upc.edu> In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Date: Tue, 21 Apr 2009 16:34:35 +0200 (CEST) From: "Gustavo Perez Querol" To: "wsk" User-Agent: SquirrelMail/1.4.10a-1.fc6 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Tue, 21 Apr 2009 16:34:32 +0200 (CEST) Cc: usb@freebsd.org, current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 04:22:46 -0000 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s I'm having the same problem with my laptop. It fails (if I remember well) when checkig an device (probably my card reader, don't know). When rebooting got to loader prompt, unload kernel and load /boot/kernel.old/kernel. This arrises a few questions : 1.- How can I install a custom kernel under a different directory under /boot. I did it, but I can't find how I did it. I think > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 04:29:47 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76957106567A; Wed, 22 Apr 2009 04:29:47 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id A64D28FC1D; Wed, 22 Apr 2009 04:29:46 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from entelserver.upc.edu (entelserver.upc.es [147.83.39.4]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3LEcLJ9014157; Tue, 21 Apr 2009 16:38:21 +0200 Received: from webmail.entel.upc.edu (wireless.upc.edu [147.83.39.6]) by entelserver.upc.edu (Postfix) with ESMTP id 3C6212CBD07; Tue, 21 Apr 2009 16:38:25 +0200 (CEST) Received: from 147.83.40.213 by webmail.entel.upc.edu with HTTP; Tue, 21 Apr 2009 16:38:25 +0200 (CEST) Message-ID: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Date: Tue, 21 Apr 2009 16:38:25 +0200 (CEST) From: "Gustavo Perez Querol" To: "wsk" User-Agent: SquirrelMail/1.4.10a-1.fc6 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Tue, 21 Apr 2009 16:38:22 +0200 (CEST) Cc: usb@freebsd.org, current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 04:29:48 -0000 > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s I'm having the same problem with my laptop. It fails (if I remember well) when checkig an device (probably my card reader, don't know). When rebooting got to loader prompt, unload kernel and load /boot/kernel.old/kernel. This arrises a few questions : 1.- How can I install a custom kernel under a different directory under /boot. I did it, but I can't find how (google doesn't help)I did it. I think there's a define when installing the kernel. 2.- nextboot allows me to choose a different kernel a give it options, but is it possible to make the changes permanent ? Well, now I'm csup down to current 18/04. Hope it will work :) Excuse me for the previous mail, that webmail I'm using is driving me more crazy :) Greets, Gus From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 05:51:05 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 333F61065674; Wed, 22 Apr 2009 05:51:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C9E078FC1E; Wed, 22 Apr 2009 05:51:04 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n3M5lJ5i071084; Tue, 21 Apr 2009 23:47:19 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 21 Apr 2009 23:48:23 -0600 (MDT) Message-Id: <20090421.234823.-4293171.imp@bsdimp.com> To: gperez@entel.upc.edu From: "M. Warner Losh" In-Reply-To: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, current@freebsd.org, wsk@gddsn.org.cn Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 05:51:06 -0000 In message: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> "Gustavo Perez Querol" writes: : > lists : > boot panic on current(2009.04.20).it seems caused by usbus4 : > : > Root mount waiting for: usbus4 : > uhub4: 8 ports with 8 removable, self powered : > Root mount waiting for: usbus4 : > ugen4.2: at usbus4 : > Fatal trap 12: page fault while in kernel mode : > cpuid = 0; apic id = 00 : > fault virtual address = 0x0 : > fault code = supervisor read, page not present : > instruction pointer = 0x20:0xc08ed3a3 : > stack pointer = 0x28:0xe4c38b40 : > frame pointer = 0x28:0xe4c38b44 : > code segment = base 0x0, limit 0xfffff, type 0x1b : > = DPL 0,pres 1, def32 1, gran 1 : > processor eflags = interrupt enabled, resume, IOPL = 0 : > current process = 28 (usbus4) : > trap number = 12 : > panic: page fault : > cpuid = 0 : > uptime: 5s : : I'm having the same problem with my laptop. It fails (if I remember : well) when checkig an device (probably my card reader, don't : know). When rebooting got to loader prompt, unload kernel and load : /boot/kernel.old/kernel. This arrises a few questions : : : 1.- How can I install a custom kernel under a different directory : under /boot. I did it, but I can't find how (google doesn't : help)I did it. I think there's a define when installing the : kernel. make installkernel KERNEL=fred will install the kernel into /boot/fred. Might want to look add # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. to the kernel so you can get a traceback... : 2.- nextboot allows me to choose a different kernel a give it : options, but is it possible to make the changes permanent ? Not sure. I don't use nextboot. : Well, now I'm csup down to current 18/04. Hope it will work :) : : Excuse me for the previous mail, that webmail I'm using is driving me : more crazy :) Web mail has been known to do that to me too.... :) Warner From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 06:32:51 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68C06106566B; Wed, 22 Apr 2009 06:32:51 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id E6D858FC1F; Wed, 22 Apr 2009 06:32:50 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3M6WWiD009183; Wed, 22 Apr 2009 08:32:33 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042208324040:86840 ; Wed, 22 Apr 2009 08:32:40 +0200 Message-ID: <49EEB9B9.1070601@entel.upc.edu> Date: Wed, 22 Apr 2009 08:31:21 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: "M. Warner Losh" References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <20090421.234823.-4293171.imp@bsdimp.com> In-Reply-To: <20090421.234823.-4293171.imp@bsdimp.com> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 22/04/2009 08:32:40, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 22/04/2009 08:32:41, Serialize complete at 22/04/2009 08:32:41 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Wed, 22 Apr 2009 08:32:33 +0200 (CEST) Cc: usb@freebsd.org, current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 06:32:51 -0000 Hi, > > make installkernel KERNEL=fred > > Mmm, reading Makefile.inc1, I think the problem was that I mixed KERNEL, KERNCONF an compiling in /usr/src. Will try the other way (getting into /usr/src/sys/i386/conf/ and making config and then ...) > will install the kernel into /boot/fred. Might want to look add > > # Debugging for use in -current > options KDB # Enable kernel debugger support. > options DDB # Support DDB. > > Well. Updated my sources to 2009.04.16.18.50.00 and the problem vanished. Will try to update, just recompile kernel (without world) and then install the kernel into a different place with the debugging options. As I have a kernel with little hardware support (moved a lot of stuff to module, so I have a nice /boot/loader.conf), will try to start it with no modules and then in single user mode add them by hand. That will help my isolating the culprit. Will let you know my results. Greets, Gus From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 07:29:35 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C551106566B; Wed, 22 Apr 2009 07:29:35 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id BE9948FC08; Wed, 22 Apr 2009 07:29:34 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n3M7TV32019686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Apr 2009 11:29:32 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LwWtf-0000WE-G8; Wed, 22 Apr 2009 11:29:31 +0400 From: Vladimir Grebenschikov To: current Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Wed, 22 Apr 2009 11:29:31 +0400 Message-Id: <1240385371.1716.35.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: usb Subject: Recent changes in USB stack broke dock disconnection - panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 07:29:35 -0000 Hi Some recent changes in USB2 stack make panic on IBM dock disconnection. As far as I understand USB controller in dock seen by notebook through PCIe bus. On dock disconnection all USB devices should be safely disconnected. This works before with old USB stack and with early versions of new USB stack. # kgdb /boot/kernel/kernel /var/crash/vmcore.4 ... Unread portion of the kernel message buffer: ugen4.2: at usbus4 (disconnected) uhub5: at uhub4, port 6, addr 2 (disconnected) Fatal trap 12: page fault while in kernel mode fault virtual address = 0xd0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0987301 stack pointer = 0x28:0xe55c8a50 frame pointer = 0x28:0xe55c8a64 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 30 (usbus4) Physical memory: 2038 MB Dumping 213 MB: 198 182 166 150 134 118 102 86 70 54 38 22 6 (kgdb) bt #0 doadump () at pcpu.h:246 #1 0xc04784d9 in db_fncall (dummy1=1, dummy2=0, dummy3=-1065664320, dummy4=0xe55c87f4 "") at /usr/src/sys/ddb/db_command.c:548 #2 0xc04788d1 in db_command (last_cmdp=0xc075991c, cmd_table=0x0, dopager=1) at /usr/src/sys/ddb/db_command.c:445 #3 0xc0478a2a in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 #4 0xc047a86d in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:229 #5 0xc05799d4 in kdb_trap (type=12, code=0, tf=0xe55c8a10) at /usr/src/sys/kern/subr_kdb.c:534 #6 0xc06bd3ff in trap_fatal (frame=0xe55c8a10, eva=208) at /usr/src/sys/i386/i386/trap.c:917 #7 0xc06bd6a0 in trap_pfault (frame=0xe55c8a10, usermode=0, eva=208) at /usr/src/sys/i386/i386/trap.c:839 #8 0xc06be002 in trap (frame=0xe55c8a10) at /usr/src/sys/i386/i386/trap.c:521 #9 0xc06a4ebb in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #10 0xc0987301 in usb2_intr_schedule_adjust (udev=0xc5050000, len=-32, slot=5 '\005') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:1120 #11 0xc0a038b5 in ehci_device_intr_close (xfer=0xc5010cb0) at /usr/src/sys/modules/usb/ehci/../../../dev/usb/controller/ehci.c:2317 #12 0xc098afb3 in usb2_transfer_stop (xfer=0xc5010cb0) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_transfer.c:1639 #13 0xc09b432e in ums_stop_read (fifo=0xc5038400) at /usr/src/sys/modules/usb/ums/../../../dev/usb/input/ums.c:653 #14 0xc097b08e in usb2_fifo_close (f=0xc5038400, fflags=1) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:787 #15 0xc097c63c in usb2_fifo_free (f=0xc5038400) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:582 #16 0xc097c6a3 in usb2_fifo_detach (f_sc=0xc5056800) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:1737 #17 0xc09b42c5 in ums_detach (self=0xc504ca00) at /usr/src/sys/modules/usb/ums/../../../dev/usb/input/ums.c:629 #18 0xc05743d8 in device_detach (dev=0xc504ca00) at device_if.h:212 #19 0xc0574599 in bus_generic_detach (dev=0xc4e31580) at /usr/src/sys/kern/subr_bus.c:3033 #20 0xc0985437 in uhub_detach (dev=0xc4e31580) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:868 #21 0xc05743d8 in device_detach (dev=0xc4e31580) at device_if.h:212 #22 0xc097e19e in usb2_detach_device (udev=0xc5051000, iface_index=32 ' ', flag=3 '\003') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:978 #23 0xc097e3ca in usb2_unconfigure (udev=0xc5051000, flag=Variable "flag" is not available. ) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:382 #24 0xc097e68a in usb2_free_device (udev=0xc5051000, flag=Variable "flag" is not available. ) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:1958 #25 0xc0986083 in uhub_explore (udev=0xc4e38c00) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:303 #26 0xc09776c9 in usb2_bus_explore (pm=0xc4dd9d14) at /usr/src/sys/modules/usb/usb/../../../dev/usb/controller/usb_controller.c:211 #27 0xc098851a in usb2_process (arg=0xc4dd9c70) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_process.c:139 #28 0xc052db00 in fork_exit (callout=0xc0988440 , arg=0xc4dd9c70, frame=0xe55c8d38) at /usr/src/sys/kern/kern_fork.c:821 #29 0xc06a4f30 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270 (kgdb) fr 10 #10 0xc0987301 in usb2_intr_schedule_adjust (udev=0xc5050000, len=-32, slot=5 '\005') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:1120 1120 hub = bus->devices[udev->hs_hub_addr]->hub; (kgdb) p udev->hs_hub_addr $1 = 2 '\002' (kgdb) p bus->devices[udev->hs_hub_addr]->hub Cannot access memory at address 0xd0 (kgdb) Parts of dmesg: ... pcib2: irq 20 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 21 at device 28.1 on pci0 pci3: on pcib3 pci3: at device 0.0 (no driver attached) pcib4: irq 22 at device 28.2 on pci0 pci4: on pcib4 pcib5: irq 23 at device 28.3 on pci0 pci12: on pcib5 uhci0: port 0x1800-0x181f irq 16 at device 29.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0x1820-0x183f irq 17 at device 29.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0x1840-0x185f irq 18 at device 29.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 uhci3: port 0x1860-0x187f irq 19 at device 29.3 on pci0 uhci3: [ITHREAD] usbus3: on uhci3 ehci0: mem 0xee404000-0xee4043ff irq 19 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib6: at device 30.0 on pci0 pci21: on pcib6 ... usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ... uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered ... uhub4: 8 ports with 8 removable, self powered ugen4.2: at usbus4 uhub5: on usbus4 uhub5: 7 ports with 7 removable, self powered ugen4.3: at usbus4 ums0: on usbus4 ums0: 5 buttons and [XYZ] coordinates ID=0 ugen3.2: at usbus3 ubt0: on usbus3 ugen3.3: at usbus3 ... after dock disconnect, it shows before panic: ugen4.2: at usbus4 (disconnected) uhub5: at uhub4, port 6, addr 2 (disconnected) USB configuration with dock: # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.3: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.3: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON # -- Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 07:59:45 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68A5E1065696 for ; Wed, 22 Apr 2009 07:59:45 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 0C4708FC24 for ; Wed, 22 Apr 2009 07:59:44 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so1170097qwe.7 for ; Wed, 22 Apr 2009 00:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=INi/iw+F0WXK+HPSgZHx0Sg7KPLc2zTwOxfMhrKWa/0=; b=G2Lw0jTltYx6FGHTfmFDB41wLCz74ukZctwguhm6qEofexTmWkaF33UTM6hd9htEVE kcdgwlncIAzUb3pTjeQnfMXkW64LUTBVqnQSewGBkxaqBQROuSLjUo6K3WGt4OJ+UkQ3 0ZYUfMPxolg7vQTXJrzAvALfz2G1Qdi0CZzhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J15KGSG0u59gqF5QN11a95S+NEZOaLR+VejIIiXoI01WnYIZZBVyRgNF0cTaBFZJoV bC0LKAXuVJLj1ATl4mqb9TfPcXnVQiOLbKqTHOOW+wGNVSv/kQp2NFEgLztJztSJieJE 7wwGyxd9Wq+7FGaT0RnI/gmOZt7JhBXdituWM= MIME-Version: 1.0 Received: by 10.220.72.200 with SMTP id n8mr10418180vcj.16.1240385857928; Wed, 22 Apr 2009 00:37:37 -0700 (PDT) In-Reply-To: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> Date: Wed, 22 Apr 2009 02:37:37 -0500 Message-ID: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> From: Scot Hetzel To: Gustavo Perez Querol Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, current@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 07:59:45 -0000 On 4/21/09, Gustavo Perez Querol wrote: > I'm having the same problem with my laptop. It fails (if I remember > well) when checkig an device (probably my card reader, don't > know). When rebooting got to loader prompt, unload kernel and load > /boot/kernel.old/kernel. This arrises a few questions : > > 1.- How can I install a custom kernel under a different directory > under /boot. I did it, but I can't find how (google doesn't > help)I did it. I think there's a define when installing the > kernel. Add the following to your kernel's configuration file. makeoptions KODIR=/boot/${KERNEL}_debug This when you install the kernel, in will place the kernel into /boot/kernel_debug. Scot From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 08:42:12 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D884E1065675; Wed, 22 Apr 2009 08:42:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 194F38FC13; Wed, 22 Apr 2009 08:42:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=N7_6JsMCGwMA:10 a=xwl4Tf1-NqgA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=sTXHApjzN4wKctXs6qcA:9 a=-evp4V9xquZTEIU12i8A:7 a=CdqwCUWybz0pISz9CDUKuDFBx_kA:4 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1060245932; Wed, 22 Apr 2009 10:42:10 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org, vova@fbsd.ru, Andrew Thompson Date: Wed, 22 Apr 2009 10:44:41 +0200 User-Agent: KMail/1.9.7 References: <1240385371.1716.35.camel@localhost> In-Reply-To: <1240385371.1716.35.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904221044.43032.hselasky@c2i.net> Cc: usb Subject: Re: Recent changes in USB stack broke dock disconnection - panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 08:42:13 -0000 On Wednesday 22 April 2009, Vladimir Grebenschikov wrote: > Hi > > Some recent changes in USB2 stack make panic on IBM dock disconnection. > > As far as I understand USB controller in dock seen by notebook through PCIe > bus. On dock disconnection all USB devices should be safely disconnected. > > This works before with old USB stack and with early versions of new USB > stack. > This issue has been fixed, but not committed yet? http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 08:45:21 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6902A106566C; Wed, 22 Apr 2009 08:45:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 986E28FC18; Wed, 22 Apr 2009 08:45:20 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=tkGj51fDXCQdQR5Qr2EA:9 a=fFEJusXI63rYszZBSwKcliAsWj8A:4 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1230168055; Wed, 22 Apr 2009 10:45:18 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Wed, 22 Apr 2009 10:47:48 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> In-Reply-To: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904221047.49884.hselasky@c2i.net> Cc: usb@freebsd.org, Scot Hetzel , wsk , current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 08:45:22 -0000 Try this patch: http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 17:10:02 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64F641065670 for ; Wed, 22 Apr 2009 17:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 50D218FC20 for ; Wed, 22 Apr 2009 17:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3MHA2GL001931 for ; Wed, 22 Apr 2009 17:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3MHA2St001930; Wed, 22 Apr 2009 17:10:02 GMT (envelope-from gnats) Date: Wed, 22 Apr 2009 17:10:02 GMT Message-Id: <200904221710.n3MHA2St001930@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/133545: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 17:10:03 -0000 The following reply was made to PR usb/133545; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/133545: commit references a PR Date: Wed, 22 Apr 2009 17:08:12 +0000 (UTC) Author: thompsa Date: Wed Apr 22 17:07:53 2009 New Revision: 191395 URL: http://svn.freebsd.org/changeset/base/191395 Log: MFp4 //depot/projects/usb@160413 Use direct reference to parent high-speed HUB instead of indirect, due to pointer clearing race at detach of parent USB HUB. Reported by: kientzle Submitted by: Hans Petter Selasky PR: usb/133545 Modified: head/sys/dev/usb/controller/ehci.c head/sys/dev/usb/usb_device.c head/sys/dev/usb/usb_device.h head/sys/dev/usb/usb_hub.c Modified: head/sys/dev/usb/controller/ehci.c ============================================================================== --- head/sys/dev/usb/controller/ehci.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/controller/ehci.c Wed Apr 22 17:07:53 2009 (r191395) @@ -3651,8 +3651,8 @@ ehci_pipe_init(struct usb2_device *udev, if ((udev->speed != USB_SPEED_HIGH) && ((udev->hs_hub_addr == 0) || (udev->hs_port_no == 0) || - (udev->bus->devices[udev->hs_hub_addr] == NULL) || - (udev->bus->devices[udev->hs_hub_addr]->hub == NULL))) { + (udev->parent_hs_hub == NULL) || + (udev->parent_hs_hub->hub == NULL))) { /* We need a transaction translator */ goto done; } Modified: head/sys/dev/usb/usb_device.c ============================================================================== --- head/sys/dev/usb/usb_device.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_device.c Wed Apr 22 17:07:53 2009 (r191395) @@ -1490,6 +1490,7 @@ usb2_alloc_device(device_t parent_dev, s while (hub) { if (hub->speed == USB_SPEED_HIGH) { udev->hs_hub_addr = hub->address; + udev->parent_hs_hub = hub; udev->hs_port_no = adev->port_no; break; } Modified: head/sys/dev/usb/usb_device.h ============================================================================== --- head/sys/dev/usb/usb_device.h Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_device.h Wed Apr 22 17:07:53 2009 (r191395) @@ -121,6 +121,7 @@ struct usb2_device { struct usb2_bus *bus; /* our USB BUS */ device_t parent_dev; /* parent device */ struct usb2_device *parent_hub; + struct usb2_device *parent_hs_hub; /* high-speed parent HUB */ struct usb2_config_descriptor *cdesc; /* full config descr */ struct usb2_hub *hub; /* only if this is a hub */ #if USB_HAVE_COMPAT_LINUX Modified: head/sys/dev/usb/usb_hub.c ============================================================================== --- head/sys/dev/usb/usb_hub.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_hub.c Wed Apr 22 17:07:53 2009 (r191395) @@ -1117,7 +1117,7 @@ usb2_intr_schedule_adjust(struct usb2_de * access. */ - hub = bus->devices[udev->hs_hub_addr]->hub; + hub = udev->parent_hs_hub->hub; if (slot >= USB_HS_MICRO_FRAMES_MAX) { slot = usb2_intr_find_best_slot(hub->uframe_usage, USB_FS_ISOC_UFRAME_MAX, 6); @@ -1232,7 +1232,7 @@ usb2_fs_isoc_schedule_isoc_time_expand(s isoc_time = usb2_isoc_time_expand(udev->bus, isoc_time); - hs_hub = udev->bus->devices[udev->hs_hub_addr]->hub; + hs_hub = udev->parent_hs_hub->hub; if (hs_hub != NULL) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Wed Apr 22 18:24:14 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D02B51065679; Wed, 22 Apr 2009 18:24:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A0EFB8FC1C; Wed, 22 Apr 2009 18:24:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 5030846B0C; Wed, 22 Apr 2009 14:24:14 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 3A8038A01D; Wed, 22 Apr 2009 14:24:13 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Wed, 22 Apr 2009 14:07:55 -0400 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> In-Reply-To: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904221407.56424.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 22 Apr 2009 14:24:13 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=4.2 tests=AWL,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: usb@freebsd.org, Scot Hetzel , wsk , current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 18:24:15 -0000 On Wednesday 22 April 2009 3:37:37 am Scot Hetzel wrote: > On 4/21/09, Gustavo Perez Querol wrote: > > I'm having the same problem with my laptop. It fails (if I remember > > well) when checkig an device (probably my card reader, don't > > know). When rebooting got to loader prompt, unload kernel and load > > /boot/kernel.old/kernel. This arrises a few questions : > > > > 1.- How can I install a custom kernel under a different directory > > under /boot. I did it, but I can't find how (google doesn't > > help)I did it. I think there's a define when installing the > > kernel. > > Add the following to your kernel's configuration file. > > makeoptions KODIR=/boot/${KERNEL}_debug > > This when you install the kernel, in will place the kernel into > /boot/kernel_debug. makeoptions KERNEL=foo is a bit shorter, and then you can do 'boot foo' at the loader. I tend to install test kernels into /boot/ using this. -- John Baldwin From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 02:05:53 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85366106566B; Thu, 23 Apr 2009 02:05:53 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.freebsd.org (Postfix) with ESMTP id 1488F8FC0A; Thu, 23 Apr 2009 02:05:52 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from lp.gddsn.org.cn (unknown [10.44.8.159]) (Authenticated sender: wsk) by gddsn.org.cn (Postfix) with ESMTPA id E5FAE2E031; Thu, 23 Apr 2009 09:58:41 +0800 (CST) Message-ID: <49EFCCFC.4090202@gddsn.org.cn> Date: Thu, 23 Apr 2009 10:05:48 +0800 From: wsk User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> <200904221047.49884.hselasky@c2i.net> In-Reply-To: <200904221047.49884.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, Scot Hetzel , freebsd-current@freebsd.org, current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 02:05:53 -0000 Hans Petter Selasky wrote: > Try this patch: > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > --HPS > > build error cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/usb/controller/ehci.c In file included from /usr/src/sys/dev/usb/controller/ehci.c:60: /usr/src/sys/dev/usb/usb_device.h:125: error: expected ':', ',', ';', '}' or '__attribute__' before 'struct' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_setup_standard_chain': /usr/src/sys/dev/usb/controller/ehci.c:1938: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:1939: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_device_isoc_fs_open': /usr/src/sys/dev/usb/controller/ehci.c:2365: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:2366: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_pipe_init': /usr/src/sys/dev/usb/controller/ehci.c:3640: error: 'struct usb2_device' has no member named 'address' /usr/src/sys/dev/usb/controller/ehci.c:3640: error: 'struct usb2_device' has no member named 'flags' /usr/src/sys/dev/usb/controller/ehci.c:3645: error: 'struct usb2_device' has no member named 'flags' /usr/src/sys/dev/usb/controller/ehci.c:3649: error: 'struct usb2_device' has no member named 'device_index' /usr/src/sys/dev/usb/controller/ehci.c:3651: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3652: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:3653: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c:3654: error: 'struct usb2_device' has no member named 'parent_hs_hub' /usr/src/sys/dev/usb/controller/ehci.c:3655: error: 'struct usb2_device' has no member named 'parent_hs_hub' /usr/src/sys/dev/usb/controller/ehci.c:3667: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3669: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3674: error: 'struct usb2_device' has no member named 'speed' *** Error code 1 Stop in /usr/obj/usr/src/sys/WSK. *** Error code 1 Stop in /usr/src. *** Error code 1 From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 05:32:14 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A47D1065672; Thu, 23 Apr 2009 05:32:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id CE43F8FC1A; Thu, 23 Apr 2009 05:32:13 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6I5d2MoRAAAA:8 a=3xjJL7uOEfHLxtXrTPUA:9 a=m1lC4bDjIQzXpm0Id8GUAlE36f8A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1057604179; Thu, 23 Apr 2009 07:32:12 +0200 From: Hans Petter Selasky To: wsk Date: Thu, 23 Apr 2009 07:34:43 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> <200904221047.49884.hselasky@c2i.net> <49EFCCFC.4090202@gddsn.org.cn> In-Reply-To: <49EFCCFC.4090202@gddsn.org.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904230734.45056.hselasky@c2i.net> Cc: usb@freebsd.org, Scot Hetzel , freebsd-current@freebsd.org, current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 05:32:15 -0000 On Thursday 23 April 2009, wsk wrote: > Hans Petter Selasky wrote: > > Try this patch: > > > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > The patch is in -current now. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 06:24:13 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A85B9106564A; Thu, 23 Apr 2009 06:24:13 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 15B218FC13; Thu, 23 Apr 2009 06:24:12 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3N6O0i4010831; Thu, 23 Apr 2009 08:24:00 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042308240890:96874 ; Thu, 23 Apr 2009 08:24:08 +0200 Message-ID: <49F00937.8040806@entel.upc.edu> Date: Thu, 23 Apr 2009 08:22:47 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <200904221047.49884.hselasky@c2i.net> <49EFCCFC.4090202@gddsn.org.cn> <200904230734.45056.hselasky@c2i.net> In-Reply-To: <200904230734.45056.hselasky@c2i.net> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 08:24:08, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 08:24:10, Serialize complete at 23/04/2009 08:24:10 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 23 Apr 2009 08:24:01 +0200 (CEST) Cc: usb@freebsd.org, Scot Hetzel , current@freebsd.org, wsk , freebsd-current@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 06:24:14 -0000 Hans Petter Selasky wrote: > On Thursday 23 April 2009, wsk wrote: > >> Hans Petter Selasky wrote: >> >>> Try this patch: >>> >>> http://perforce.freebsd.org/chv.cgi?CH=160413 >>> >>> > > The patch is in -current now. > > In my case, It didn't worked (at least yesterday). I still had the panics. I'm updating my sources to see if it still happens. In that case I'll try to send a trace if time permits (yesterday I was unable because I have a file as a swap device, and it looks like it can't be used as a dumpdev). Regards, Gus From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 06:30:02 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40B65106567C for ; Thu, 23 Apr 2009 06:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 020DD8FC1B for ; Thu, 23 Apr 2009 06:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3N6U11T081740 for ; Thu, 23 Apr 2009 06:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3N6U195081737; Thu, 23 Apr 2009 06:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 23 Apr 2009 06:30:01 GMT Resent-Message-Id: <200904230630.n3N6U195081737@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aniruddha Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A5A410657A0 for ; Thu, 23 Apr 2009 06:27:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 78CA48FC2C for ; Thu, 23 Apr 2009 06:27:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3N6RttA057502 for ; Thu, 23 Apr 2009 06:27:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3N6Rt9n057501; Thu, 23 Apr 2009 06:27:55 GMT (envelope-from nobody) Message-Id: <200904230627.n3N6Rt9n057501@www.freebsd.org> Date: Thu, 23 Apr 2009 06:27:55 GMT From: Aniruddha To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/133941: Gnomad2 segfaults as normal user, works fine as root X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 06:30:02 -0000 >Number: 133941 >Category: usb >Synopsis: Gnomad2 segfaults as normal user, works fine as root >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 23 06:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Aniruddha >Release: 7.1 >Organization: >Environment: FreeBSD freebsd.lan 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Gnomad2 immediately segfaults after start up with or without music player plugged in. Gnomad2 works fine as root though. I followed the USB guide to get Gnomad2 working as a normal user ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html ) Terminal output: $ gnomad2 Segmentation fault (core dumped) Terminal output root: # gnomad2 Failed to open connection to D-BUS SESSION bus PTP: Opening session Queried Creative ZEN V Plus PTP: Closing session $ cat /etc/devfs.rules [localrules=5] add path 'da*' mode 0660 group operator $ cat /etc/rc.conf hostname="freebsd.lan" ifconfig_msk0="DHCP" keymap="us.iso" linux_enable="YES" gnome_enable="YES" devfs_system_ruleset="localrules" $ cat /etc/sysctl.conf vfs.usermount=1 $ cat /etc/group | grep aniruddha wheel:*:0:root,aniruddha operator:*:5:root,aniruddha aniruddha:*:1001: haldaemon:*:560:aniruddha >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 06:59:41 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57CE51065688; Thu, 23 Apr 2009 06:59:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 8C7238FC1F; Thu, 23 Apr 2009 06:59:40 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=98Dae9zcMkUA:10 a=sWoc6dfXLBoA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=5ECRmXxOZc7mAxISaV0A:9 a=2-drugtvqdRQIO5LCjUA:7 a=lT7YVwu71gIdgR6hcnyaIxASkQMA:4 a=pHyjbESoQXC1FM12:21 a=IPBldzQPDE2ulueZ:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1234410542; Thu, 23 Apr 2009 08:59:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 23 Apr 2009 09:02:10 +0200 User-Agent: KMail/1.9.7 References: <200904211949.n3LJniob051061@www.freebsd.org> In-Reply-To: <200904211949.n3LJniob051061@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904230902.11572.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 06:59:41 -0000 On Tuesday 21 April 2009, Bruce Cran wrote: > >Number: 133896 > >Category: usb > >Synopsis: [cdce] panic when disconnecting cdce device just before > > powering off PC Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Bruce Cran > >Release: 8.0-CURRENT > >Organization: > >Environment: > > FreeBSD 8.0-CURRENT amd64 > > >Description: > > Running -current from mid-April 2009 I got a panic when shutting > down. I'd pressed the power button on my GTA02 and at about the same > time pressed the power button on my PC too. It seems the GTA02 > CDCE device powered off first, just before FreeBSD was going to power > off: > > Waiting (max 60 seconds) for system process 'vnlru' to stop...done > Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done > Waiting (max 60 seconds) for system process 'syncer' to stop... > Syncing disks, vnodes remaining...1 1 1 0 0 0 done > All buffers synced. > Uptime: 10h12m10s > ugen3.2: at usbus3 (disconnected) > cdce0: at uhub3, port 2, addr 2 (disconnected) > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x288 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80343d3e > stack pointer = 0x28:0xfffffffe4001c8a0 > frame pointer = 0x28:0xfffffffe4001c8c0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > [thread pid 1 tid 100002 ] > Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi > db> bt > Tracing pid 1 tid 100002 td 0xffffff00014d7a80 > _mtx_lock_sleep() at _mtx_lock_sleep+0x4e > _sleep() at _sleep+0x232 > usb2_proc_mwait() at usb2_proc_mwait+0x46 > usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf > cdce_shutdown() at cdce_shutdown+0x11 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > acpi_shutdown() at acpi_shutdown+0x9 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > root_bus_module_handler() at root_bus_module_handler+0x11b > module_shutdown() at module_shutdown+0x84 > boot() at boot+0x37b > reboot() at reboot+0x46 > syscall() at syscall+0x264 > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = > 0x7fffffffe738, rbp = 0x402420 --- > > >How-To-Repeat: > > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I'm working on this issue. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 07:00:05 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CF99106564A for ; Thu, 23 Apr 2009 07:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1BD228FC17 for ; Thu, 23 Apr 2009 07:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3N704db026424 for ; Thu, 23 Apr 2009 07:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3N704dq026423; Thu, 23 Apr 2009 07:00:04 GMT (envelope-from gnats) Date: Thu, 23 Apr 2009 07:00:04 GMT Message-Id: <200904230700.n3N704dq026423@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 07:00:05 -0000 The following reply was made to PR usb/133896; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Bruce Cran , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC Date: Thu, 23 Apr 2009 09:02:10 +0200 On Tuesday 21 April 2009, Bruce Cran wrote: > >Number: 133896 > >Category: usb > >Synopsis: [cdce] panic when disconnecting cdce device just before > > powering off PC Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Bruce Cran > >Release: 8.0-CURRENT > >Organization: > >Environment: > > FreeBSD 8.0-CURRENT amd64 > > >Description: > > Running -current from mid-April 2009 I got a panic when shutting > down. I'd pressed the power button on my GTA02 and at about the same > time pressed the power button on my PC too. It seems the GTA02 > CDCE device powered off first, just before FreeBSD was going to power > off: > > Waiting (max 60 seconds) for system process 'vnlru' to stop...done > Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done > Waiting (max 60 seconds) for system process 'syncer' to stop... > Syncing disks, vnodes remaining...1 1 1 0 0 0 done > All buffers synced. > Uptime: 10h12m10s > ugen3.2: at usbus3 (disconnected) > cdce0: at uhub3, port 2, addr 2 (disconnected) > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x288 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80343d3e > stack pointer = 0x28:0xfffffffe4001c8a0 > frame pointer = 0x28:0xfffffffe4001c8c0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > [thread pid 1 tid 100002 ] > Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi > db> bt > Tracing pid 1 tid 100002 td 0xffffff00014d7a80 > _mtx_lock_sleep() at _mtx_lock_sleep+0x4e > _sleep() at _sleep+0x232 > usb2_proc_mwait() at usb2_proc_mwait+0x46 > usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf > cdce_shutdown() at cdce_shutdown+0x11 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > acpi_shutdown() at acpi_shutdown+0x9 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > root_bus_module_handler() at root_bus_module_handler+0x11b > module_shutdown() at module_shutdown+0x84 > boot() at boot+0x37b > reboot() at reboot+0x46 > syscall() at syscall+0x264 > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = > 0x7fffffffe738, rbp = 0x402420 --- > > >How-To-Repeat: > > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I'm working on this issue. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 09:05:35 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E89271065676; Thu, 23 Apr 2009 09:05:35 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BDFEE8FC20; Thu, 23 Apr 2009 09:05:35 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3N95ZSK031640; Thu, 23 Apr 2009 09:05:35 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3N95Z4L031636; Thu, 23 Apr 2009 09:05:35 GMT (envelope-from gavin) Date: Thu, 23 Apr 2009 09:05:35 GMT Message-Id: <200904230905.n3N95Z4L031636@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: ports/133941: audio/gnomad2 segfaults as normal user, works fine as root X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 09:05:36 -0000 Old Synopsis: Gnomad2 segfaults as normal user, works fine as root New Synopsis: audio/gnomad2 segfaults as normal user, works fine as root Responsible-Changed-From-To: freebsd-usb->freebsd-ports-bugs Responsible-Changed-By: gavin Responsible-Changed-When: Thu Apr 23 09:03:01 UTC 2009 Responsible-Changed-Why: Probably more likely to be a ports bug than USB. http://www.freebsd.org/cgi/query-pr.cgi?pr=133941 From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 11:06:15 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE7431065675; Thu, 23 Apr 2009 11:06:15 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 927778FC22; Thu, 23 Apr 2009 11:06:15 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3NB6FPe096334; Thu, 23 Apr 2009 11:06:15 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3NB6FGW096330; Thu, 23 Apr 2009 11:06:15 GMT (envelope-from gavin) Date: Thu, 23 Apr 2009 11:06:15 GMT Message-Id: <200904231106.n3NB6FGW096330@freefall.freebsd.org> To: slawek.zak@gmail.com, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/83677: [usb] [request] usb controller often not detected (Sun W2100z) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 11:06:16 -0000 Synopsis: [usb] [request] usb controller often not detected (Sun W2100z) State-Changed-From-To: feedback->closed State-Changed-By: gavin State-Changed-When: Thu Apr 23 11:05:07 UTC 2009 State-Changed-Why: Close, feedback timeout (~1 year). I have several of these machines that do not exhibit this issue, with 6.3 and 7.x. Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Thu Apr 23 11:05:07 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=83677 From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 12:32:39 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B095106566C; Thu, 23 Apr 2009 12:32:39 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 2493A8FC1B; Thu, 23 Apr 2009 12:32:38 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3NCWQwb022609; Thu, 23 Apr 2009 14:32:26 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042314323422:102887 ; Thu, 23 Apr 2009 14:32:34 +0200 Message-ID: <49F05F8F.5000407@entel.upc.edu> Date: Thu, 23 Apr 2009 14:31:11 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> In-Reply-To: <200904212123.14016.hselasky@c2i.net> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 14:32:34, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 14:32:36, Serialize complete at 23/04/2009 14:32:36 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 23 Apr 2009 14:32:27 +0200 (CEST) Cc: usb@freebsd.org, wsk , current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 12:32:40 -0000 Hans Petter Selasky wrote: > On Tuesday 21 April 2009, wsk wrote: > >> lists >> boot panic on current(2009.04.20).it seems caused by usbus4 >> >> Root mount waiting for: usbus4 >> uhub4: 8 ports with 8 removable, self powered >> Root mount waiting for: usbus4 >> ugen4.2: at usbus4 >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x0 >> fault code = supervisor read, page not present >> instruction pointer = 0x20:0xc08ed3a3 >> stack pointer = 0x28:0xe4c38b40 >> frame pointer = 0x28:0xe4c38b44 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0,pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 28 (usbus4) >> trap number = 12 >> panic: page fault >> cpuid = 0 >> uptime: 5s >> Cannot dump. Device not defined or unavailable. >> >> > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not working. As the crash happens before /etc/rc.d/dumpon executes, dumpon doesn't get executed,so dumpdev doesn't point to the place where to save the dump. I tried booting single user without loading both uhci and ehci. I booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled the kernel with ; # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. and changed sysctl kern.coredump=1. Loading uchi throws me to the debugger (ok, that's what I wanted), but the core is not saved to /dev/ad4s3b. Is there something I'm doing wrong ? Am I missing something ? > Is the panic reproducible? > Yes it is. When uhci.ko is loaded is panics. > --HPS > Regards, Gus > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 12:34:13 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA203106566C; Thu, 23 Apr 2009 12:34:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1319A8FC08; Thu, 23 Apr 2009 12:34:12 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=A9fe73ChuGazO53Bn-QA:9 a=tT1I7HXlkSwwLqnn1rgcR8EGcWsA:4 a=SUW4-KwYzMtWZh0r:21 a=10-NGy_3TaLB5fVX:21 Received: from [81.191.55.181] (account mc467741@c2i.net HELO [10.36.2.183]) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 180461597; Thu, 23 Apr 2009 14:34:11 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Thu, 23 Apr 2009 14:36:43 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> In-Reply-To: <49F05F8F.5000407@entel.upc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904231436.43735.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 12:34:14 -0000 On Thursday 23 April 2009, Gustau Perez wrote: > Hans Petter Selasky wrote: > > On Tuesday 21 April 2009, wsk wrote: > >> lists > >> boot panic on current(2009.04.20).it seems caused by usbus4 > >> > >> Root mount waiting for: usbus4 > >> uhub4: 8 ports with 8 removable, self powered > >> Root mount waiting for: usbus4 > >> ugen4.2: at usbus4 > >> Fatal trap 12: page fault while in kernel mode > >> cpuid = 0; apic id = 00 > >> fault virtual address = 0x0 > >> fault code = supervisor read, page not present > >> instruction pointer = 0x20:0xc08ed3a3 > >> stack pointer = 0x28:0xe4c38b40 > >> frame pointer = 0x28:0xe4c38b44 > >> code segment = base 0x0, limit 0xfffff, type 0x1b > >> = DPL 0,pres 1, def32 1, gran 1 > >> processor eflags = interrupt enabled, resume, IOPL = 0 > >> current process = 28 (usbus4) > >> trap number = 12 > >> panic: page fault > >> cpuid = 0 > >> uptime: 5s > >> Cannot dump. Device not defined or unavailable. > > > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not > working. As the crash happens before /etc/rc.d/dumpon executes, dumpon > doesn't get executed,so dumpdev doesn't point to the place where to save > the dump. > > I tried booting single user without loading both uhci and ehci. I > booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon > start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled > the kernel with ; > > # Debugging for use in -current > options KDB # Enable kernel debugger support. > options DDB # Support DDB. > > and changed sysctl kern.coredump=1. > > Loading uchi throws me to the debugger (ok, that's what I wanted), > but the core is not saved to /dev/ad4s3b. Is there something I'm doing > wrong ? Am I missing something ? > > > Is the panic reproducible? > > Yes it is. When uhci.ko is loaded is panics. If you type "bt" in the debugger, what are the USB functions being called? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 12:45:58 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78CFD1065670 for ; Thu, 23 Apr 2009 12:45:58 +0000 (UTC) (envelope-from fxp@corp.iskratelecom.ru) Received: from corp.iskratelecom.ru (corp.iskratelecom.ru [82.199.96.130]) by mx1.freebsd.org (Postfix) with ESMTP id 33F798FC14 for ; Thu, 23 Apr 2009 12:45:58 +0000 (UTC) (envelope-from fxp@corp.iskratelecom.ru) Received: from 29-97-199-82.iskratelecom.ru ([82.199.97.29]) by corp.iskratelecom.ru with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LwxkG-000IxF-6u for freebsd-usb@freebsd.org; Thu, 23 Apr 2009 16:09:36 +0400 Message-ID: <49F05A7B.6000105@corp.iskratelecom.ru> Date: Thu, 23 Apr 2009 16:09:31 +0400 From: =?UTF-8?B?0K7RgNGC0LDQudC60LjQvSDQkNC90LTRgNC10Lk=?= Organization: =?UTF-8?B?0JfQkNCeICLQmNCh0JrQoNCQ0KLQldCb0JXQmtCe0JwiIA==?= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: USB KVM problem. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 12:45:58 -0000 Hi all This KVM (Raritan DKX2-232) uses only one USB connector for both mouse and keyboard. I have several servers with different hardware and FreeBSD from 6.2 to 7.1, and no one works properly the problem is: input doesn`t work at all OR mouse moves interpretend as keyboard pressings OR/AND input with like CTRL pressed, (for example if you hit "T" KVM sending SIGUSR to terminal). Tryed all possible bios options(Legacy USB, Fast USB, etc) . BUT! IF i connect PS/2 keyboard to RUNNING server, and pressing several key on it - miracle happens and KVM works properly for sometime... Server info(this server interpretend mouse moves as text and keyboard pressings as signals): dmesg: uhci0: port 0x4040-0x405f irq 16 at device 29.0 on pci0 ukbd0: on uhub1 kbd2 at ukbd0 usbdevs -v: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, RU-CIM(0x1005), RU(0x14dd), rev 0.00 <<-- this is KVM uname -a: FreeBSD xx 7.1-RELEASE FreeBSD 7.1-RELEASE #3: Fri Jan 2 13:30:10 MSK 2009 fxp@xx:/usr/obj/usr/src/sys/GENERIC i386 kbdcontrol -k /dev/ukbd0 < /dev/console kbdcontrol: cannot open /dev/ukbd0: Device busy kldload kbdmux kldload: can't load kbdmux: File exists any ideas ? From owner-freebsd-usb@FreeBSD.ORG Thu Apr 23 21:05:16 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E41501065670 for ; Thu, 23 Apr 2009 21:05:16 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 979DE8FC16 for ; Thu, 23 Apr 2009 21:05:14 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3NCWQwb022609; Thu, 23 Apr 2009 14:32:26 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042314323422:102887 ; Thu, 23 Apr 2009 14:32:34 +0200 Message-ID: <49F05F8F.5000407@entel.upc.edu> Date: Thu, 23 Apr 2009 14:31:11 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> In-Reply-To: <200904212123.14016.hselasky@c2i.net> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 14:32:34, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 23/04/2009 14:32:36, Serialize complete at 23/04/2009 14:32:36 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Thu, 23 Apr 2009 14:32:27 +0200 (CEST) Cc: usb@freebsd.org, wsk , current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 21:05:17 -0000 Hans Petter Selasky wrote: > On Tuesday 21 April 2009, wsk wrote: > >> lists >> boot panic on current(2009.04.20).it seems caused by usbus4 >> >> Root mount waiting for: usbus4 >> uhub4: 8 ports with 8 removable, self powered >> Root mount waiting for: usbus4 >> ugen4.2: at usbus4 >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x0 >> fault code = supervisor read, page not present >> instruction pointer = 0x20:0xc08ed3a3 >> stack pointer = 0x28:0xe4c38b40 >> frame pointer = 0x28:0xe4c38b44 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0,pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 28 (usbus4) >> trap number = 12 >> panic: page fault >> cpuid = 0 >> uptime: 5s >> Cannot dump. Device not defined or unavailable. >> >> > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not working. As the crash happens before /etc/rc.d/dumpon executes, dumpon doesn't get executed,so dumpdev doesn't point to the place where to save the dump. I tried booting single user without loading both uhci and ehci. I booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled the kernel with ; # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. and changed sysctl kern.coredump=1. Loading uchi throws me to the debugger (ok, that's what I wanted), but the core is not saved to /dev/ad4s3b. Is there something I'm doing wrong ? Am I missing something ? > Is the panic reproducible? > Yes it is. When uhci.ko is loaded is panics. > --HPS > Regards, Gus > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Fri Apr 24 00:20:48 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91644106566B for ; Fri, 24 Apr 2009 00:20:48 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.freebsd.org (Postfix) with ESMTP id 10F9A8FC17 for ; Fri, 24 Apr 2009 00:20:37 +0000 (UTC) (envelope-from wsk@gddsn.org.cn) Received: from lp.gddsn.org.cn (unknown [10.44.8.159]) (Authenticated sender: wsk) by gddsn.org.cn (Postfix) with ESMTPA id E80FE2E07F; Fri, 24 Apr 2009 07:54:45 +0800 (CST) Message-ID: <49F1017C.7060805@gddsn.org.cn> Date: Fri, 24 Apr 2009 08:02:04 +0800 From: wsk User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> In-Reply-To: <200904231436.43735.hselasky@c2i.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 00:20:48 -0000 Hans Petter Selasky 写道: > On Thursday 23 April 2009, Gustau Perez wrote: > >> Hans Petter Selasky wrote: >> >>> On Tuesday 21 April 2009, wsk wrote: >>> >>>> lists >>>> boot panic on current(2009.04.20).it seems caused by usbus4 >>>> >>>> Root mount waiting for: usbus4 >>>> uhub4: 8 ports with 8 removable, self powered >>>> Root mount waiting for: usbus4 >>>> ugen4.2: at usbus4 >>>> Fatal trap 12: page fault while in kernel mode >>>> cpuid = 0; apic id = 00 >>>> fault virtual address = 0x0 >>>> fault code = supervisor read, page not present >>>> instruction pointer = 0x20:0xc08ed3a3 >>>> stack pointer = 0x28:0xe4c38b40 >>>> frame pointer = 0x28:0xe4c38b44 >>>> code segment = base 0x0, limit 0xfffff, type 0x1b >>>> = DPL 0,pres 1, def32 1, gran 1 >>>> processor eflags = interrupt enabled, resume, IOPL = 0 >>>> current process = 28 (usbus4) >>>> trap number = 12 >>>> panic: page fault >>>> cpuid = 0 >>>> uptime: 5s >>>> Cannot dump. Device not defined or unavailable. >>>> >>> Can you compile a kernel with debugging and get a backtrace? >>> >> I'm trying to get the dump saved to /var/crash but seems it is not >> working. As the crash happens before /etc/rc.d/dumpon executes, dumpon >> doesn't get executed,so dumpdev doesn't point to the place where to save >> the dump. >> >> I tried booting single user without loading both uhci and ehci. I >> booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon >> start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled >> the kernel with ; >> >> # Debugging for use in -current >> options KDB # Enable kernel debugger support. >> options DDB # Support DDB. >> >> and changed sysctl kern.coredump=1. >> >> Loading uchi throws me to the debugger (ok, that's what I wanted), >> but the core is not saved to /dev/ad4s3b. Is there something I'm doing >> wrong ? Am I missing something ? >> >> >>> Is the panic reproducible? >>> >> Yes it is. When uhci.ko is loaded is panics. >> > > If you type "bt" in the debugger, what are the USB functions being called? > > --HPS > > Stopped at strcmp+0x23: movzbl 0(%ebx),%edx db>bt Tracing pid 28 tid 100054 td 0xc4d6c690 strcmp(0,c0c0bded,2,c4d7cc00,e4c44ba8,...) at strcmp+0x23 malloc_desc2type(c0c0bded,c0895b50,e4c44b78,a,e4c44bb4,...) at malloc_desc2type+0x24 usb2_notify_addq(c0c2de6d,c4d7cef8,c4d7cf7e,c4a9ba10,2,...) at usb2_notify_addq+0x5d usb2_alloc_device(c4ca8a00,c4b32c50,c4d72400,1,6,...) at usb_alloc_device+0xce3 uhub_explore(c4d72400,1,3,0,c4b32d84,...) at uhub_explore+0x50f usb2_bus_explore(c4b32d34,14,c0c35681,4d,0,...) at usb2_bus_explore+0xf9 usb2_process(c4b32cd4,e4c44d38,0,0,0,...) at usb2_process+0xfc fork_exit(c07a5490,c4b32cd4,e4c44d38) at fork_exit+0x91 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip =0,esp =0xe4c44d70,ebp = 0 --- From owner-freebsd-usb@FreeBSD.ORG Fri Apr 24 06:04:35 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B3CE106566C; Fri, 24 Apr 2009 06:04:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id AA8698FC1B; Fri, 24 Apr 2009 06:04:34 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nyMGgD1UoDIA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=8uKjYMwKAuvQ0CG8GLEA:9 a=KBXdi-o6sJCTm3P5Kr0A:7 a=2Q6ddn9jNLdls6xRlsdab2CX9RIA:4 a=B23eqXVrMiiuMpBT:21 a=0rM6ID-eqgIXm8hl:21 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 487229619; Fri, 24 Apr 2009 08:04:32 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 24 Apr 2009 08:07:03 +0200 User-Agent: KMail/1.9.7 References: <49ED3E7D.8080606@gddsn.org.cn> <200904231436.43735.hselasky@c2i.net> <49F1017C.7060805@gddsn.org.cn> In-Reply-To: <49F1017C.7060805@gddsn.org.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200904240807.04844.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 06:04:36 -0000 On Friday 24 April 2009, wsk wrote: > Hans Petter Selasky =E5=86=99=E9=81=93: > > On Thursday 23 April 2009, Gustau Perez wrote: > >> Hans Petter Selasky wrote: > >>> On Tuesday 21 April 2009, wsk wrote: > >>>> lists > >>>> boot panic on current(2009.04.20).it seems caused by usbus4 > >>>> > >>>> Root mount waiting for: usbus4 > >>>> uhub4: 8 ports with 8 removable, self powered > >>>> Root mount waiting for: usbus4 > >>>> ugen4.2: at usbus4 > >>>> Fatal trap 12: page fault while in kernel mode > >>>> cpuid =3D 0; apic id =3D 00 > >>>> fault virtual address =3D 0x0 > >>>> fault code =3D supervisor read, page not present > >>>> instruction pointer =3D 0x20:0xc08ed3a3 > >>>> stack pointer =3D 0x28:0xe4c38b40 > >>>> frame pointer =3D 0x28:0xe4c38b44 > >>>> code segment =3D base 0x0, limit 0xfffff, type 0x1b > >>>> =3D DPL 0,pres 1, def32 1, gran 1 > >>>> processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > >>>> current process =3D 28 (usbus4) > >>>> trap number =3D 12 > >>>> panic: page fault > >>>> cpuid =3D 0 > >>>> uptime: 5s > >>>> Cannot dump. Device not defined or unavailable. > >>> > >>> Can you compile a kernel with debugging and get a backtrace? > >> > >> I'm trying to get the dump saved to /var/crash but seems it is not > >> working. As the crash happens before /etc/rc.d/dumpon executes, dumpon > >> doesn't get executed,so dumpdev doesn't point to the place where to sa= ve > >> the dump. > >> > >> I tried booting single user without loading both uhci and ehci. I > >> booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon > >> start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled > >> the kernel with ; > >> > >> # Debugging for use in -current > >> options KDB # Enable kernel debugger support. > >> options DDB # Support DDB. > >> > >> and changed sysctl kern.coredump=3D1. > >> > >> Loading uchi throws me to the debugger (ok, that's what I wanted), > >> but the core is not saved to /dev/ad4s3b. Is there something I'm doing > >> wrong ? Am I missing something ? > >> > >>> Is the panic reproducible? > >> > >> Yes it is. When uhci.ko is loaded is panics. > > > > If you type "bt" in the debugger, what are the USB functions being > > called? > > > > --HPS > > Stopped at strcmp+0x23: movzbl 0(%ebx),%edx > db>bt > Tracing pid 28 tid 100054 td 0xc4d6c690 > strcmp(0,c0c0bded,2,c4d7cc00,e4c44ba8,...) at strcmp+0x23 > malloc_desc2type(c0c0bded,c0895b50,e4c44b78,a,e4c44bb4,...) at > malloc_desc2type+0x24 > usb2_notify_addq(c0c2de6d,c4d7cef8,c4d7cf7e,c4a9ba10,2,...) at > usb2_notify_addq+0x5d > usb2_alloc_device(c4ca8a00,c4b32c50,c4d72400,1,6,...) at > usb_alloc_device+0xce3 > uhub_explore(c4d72400,1,3,0,c4b32d84,...) at uhub_explore+0x50f > usb2_bus_explore(c4b32d34,14,c0c35681,4d,0,...) at usb2_bus_explore+0xf9 > usb2_process(c4b32cd4,e4c44d38,0,0,0,...) at usb2_process+0xfc > fork_exit(c07a5490,c4b32cd4,e4c44d38) at fork_exit+0x91 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip =3D0,esp =3D0xe4c44d70,ebp =3D 0 --- > The problem appears to be that there is a "struct malloc_type" ( See=20 MALLOC_DEFINE()) in the kernel having a NULL string. Please check the sourc= e=20 code. And easy way to figure out the real problem is to add: sys/kern/kern_malloc.c malloc_init(void *data) { struct malloc_type_internal *mtip; struct malloc_type *mtp; KASSERT(cnt.v_page_count !=3D 0, ("malloc_register before vm_init")= ); mtp =3D data; KASSERT(mtp->ks_magic =3D=3D M_MAGIC, ("malloc_init: bad malloc type magic")); + KASSERT(mtp->ks_shortdesc !=3D NULL, + ("malloc_init: bad short description")); mtip =3D uma_zalloc(mt_zone, M_WAITOK | M_ZERO); mtp->ks_handle =3D mtip; mtx_lock(&malloc_mtx); mtp->ks_next =3D kmemstatistics; kmemstatistics =3D mtp; kmemcount++; mtx_unlock(&malloc_mtx); } =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Fri Apr 24 11:20:17 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08E78106566B; Fri, 24 Apr 2009 11:20:17 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7CC8FC22; Fri, 24 Apr 2009 11:20:16 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3OBK3ri021708; Fri, 24 Apr 2009 13:20:03 +0200 Received: from [147.83.40.234] ([147.83.40.234]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042413201195:111609 ; Fri, 24 Apr 2009 13:20:11 +0200 Message-ID: <49F1A016.1050003@entel.upc.edu> Date: Fri, 24 Apr 2009 13:18:46 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Hans Petter Selasky References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> In-Reply-To: <200904231436.43735.hselasky@c2i.net> X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 24/04/2009 13:20:11, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 24/04/2009 13:20:13, Serialize complete at 24/04/2009 13:20:13 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Fri, 24 Apr 2009 13:20:04 +0200 (CEST) Cc: freebsd-current@freebsd.org, wsk , freebsd-usb@freebsd.org Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 11:20:17 -0000 > If you type "bt" in the debugger, what are the USB functions being called? > > db> bt Tracing pid 46 tid 100059 td 0xc76ced20 strcmp(0,c0d4b100,c77b0000,c77b037e,ea44ebe8,...) at strcmp+0x23 malloc_desc2type(c0d4b100,0,c0d4b8e7,912,ffffffff,...) at malloc_desc2type+0x24 usb2_notify_addq(c0d4c056,c77b02f8,c77b037e,c772f420,2,...) at usb2_notify_addq+ 0x3d usb2_alloc_device(c7a41280,c7a33cf0,0,0,0,...) at usb2_alloc_device+0x9e8 usb2_bus_attach(c7a33e24,0,c0d53972,51,c0688c49,...) at usb2_bus_attach+0x128 usb2_process(c7a33d74,ea44ed38,bfbfed8c,0,0,...) at usb2_process+0xda fork_exit(c0d3d5f0,c7a33d74,ea44ed38) at fork_exit+0x91 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xea44ed70, ebp = 0 --- I think more or less like wsk. Mmmm could it be related to the sysctl -a problem discussed today ? Will try recompiling fuse and kqemu. Will let you know. Regards, Gus From owner-freebsd-usb@FreeBSD.ORG Fri Apr 24 12:11:42 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F36FB1065674; Fri, 24 Apr 2009 12:11:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id CD5F48FC1F; Fri, 24 Apr 2009 12:11:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 6B86546B2C; Fri, 24 Apr 2009 08:11:41 -0400 (EDT) Date: Fri, 24 Apr 2009 13:11:41 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Gustau Perez In-Reply-To: <49F1A016.1050003@entel.upc.edu> Message-ID: References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> <49F1A016.1050003@entel.upc.edu> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 12:11:42 -0000 On Fri, 24 Apr 2009, Gustau Perez wrote: > Tracing pid 46 tid 100059 td 0xc76ced20 > strcmp(0,c0d4b100,c77b0000,c77b037e,ea44ebe8,...) at strcmp+0x23 > malloc_desc2type(c0d4b100,0,c0d4b8e7,912,ffffffff,...) at > malloc_desc2type+0x24 > usb2_notify_addq(c0d4c056,c77b02f8,c77b037e,c772f420,2,...) at > usb2_notify_addq+ > 0x3d > usb2_alloc_device(c7a41280,c7a33cf0,0,0,0,...) at usb2_alloc_device+0x9e8 > usb2_bus_attach(c7a33e24,0,c0d53972,51,c0688c49,...) at usb2_bus_attach+0x128 > usb2_process(c7a33d74,ea44ed38,bfbfed8c,0,0,...) at usb2_process+0xda > fork_exit(c0d3d5f0,c7a33d74,ea44ed38) at fork_exit+0x91 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip = 0, esp = 0xea44ed70, ebp = 0 --- > > I think more or less like wsk. Mmmm could it be related to the sysctl -a > problem discussed today ? Will try recompiling fuse and kqemu. Will let you > know. The above is characteristic of using an old module with a kernel compiled for the new malloc.h. Rebuilding should fix it. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-usb@FreeBSD.ORG Sat Apr 25 08:10:02 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E987A106566C for ; Sat, 25 Apr 2009 08:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5BF78FC14 for ; Sat, 25 Apr 2009 08:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3P8A2Ft097366 for ; Sat, 25 Apr 2009 08:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3P8A25h097365; Sat, 25 Apr 2009 08:10:02 GMT (envelope-from gnats) Resent-Date: Sat, 25 Apr 2009 08:10:02 GMT Resent-Message-Id: <200904250810.n3P8A25h097365@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Emil Mikulic Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3E611065676 for ; Sat, 25 Apr 2009 08:00:16 +0000 (UTC) (envelope-from emil@dmr.ath.cx) Received: from ipmail04.adl2.internode.on.net (ipmail04.adl2.internode.on.net [203.16.214.57]) by mx1.freebsd.org (Postfix) with ESMTP id CFA8D8FC13 for ; Sat, 25 Apr 2009 08:00:07 +0000 (UTC) (envelope-from emil@dmr.ath.cx) Received: from ppp154-240.static.internode.on.net ([150.101.154.240]) by ipmail04.adl2.internode.on.net with ESMTP; 25 Apr 2009 17:14:48 +0930 Received: by ppp154-240.static.internode.on.net (Poo-fix, from userid 1001) id 220715C45; Sat, 25 Apr 2009 17:44:47 +1000 (EST) Message-Id: <20090425074447.220715C45@ppp154-240.static.internode.on.net> Date: Sat, 25 Apr 2009 17:44:47 +1000 (EST) From: Emil Mikulic To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/133989: USB keyboard dead at mountroot> prompt X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2009 08:10:03 -0000 >Number: 133989 >Category: usb >Synopsis: USB keyboard dead at mountroot> prompt >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 25 08:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Emil Mikulic >Release: FreeBSD 8-CURRENT r191477 >Organization: >Environment: i386 >Description: At boot time, if I get dropped to the mountroot> prompt due to e.g. screwing up vfs.root.mountfrom, my USB keyboard doesn't respond at all, and I can't do anything but hard-reset my computer. emax's r191164 makes no difference ("Prevent atkbd(4) interrupt handler from calling keyboard callback function when polled mode is enabled.") Kernels before and after that patch behave the same. Removing kbdmux also has no effect. Removing all of USB2 from the kernel config makes the keyboard work at the mountroot> prompt (BIOS emulation?) In a healthy boot, ukbd0 doesn't get recognized until -after- the root FS is mounted and /sbin/init starts. At Hans Petter Selasky's suggestion, I added a pause() to cngetc(): --- a/sys/kern/kern_cons.c +++ b/sys/kern/kern_cons.c @@ -353,7 +353,7 @@ cngetc(void) if (cn_mute) return (-1); while ((c = cncheckc()) == -1) - ; + pause("WAIT", hz/10); if (c == '\r') c = '\n'; /* console input is always ICRNL */ return (c); With this change, a few seconds after the mountroot> prompt is displayed, the USB keyboard is detected (and added to kbdmux) and I can hit scroll lock and scroll up and down, and even hit Ctrl+PrtScr to break into debugger (which then gets into an infinite loop of panics), but I can't get keypresses through to the mountroot> prompt. Giant is picked up in start_init() and I'm pretty sure is held in cngetc(). I've tried dropping it around the pause() above but that made no difference. >How-To-Repeat: On a system with only a USB keyboard, at the /boot/loader prompt, set vfs.root.mountfrom="ufs:something/silly" and boot. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Apr 25 09:21:24 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDC99106566B; Sat, 25 Apr 2009 09:21:24 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 29EB68FC08; Sat, 25 Apr 2009 09:21:23 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from hamilton.upcnetadm.upcnet.es (hamilton.upcnetadm.upcnet.es [147.83.2.240]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id n3P9LBb3012287; Sat, 25 Apr 2009 11:21:11 +0200 Received: from [192.168.100.196] ([88.15.98.27]) by hamilton.upcnetadm.upcnet.es (Lotus Domino Release 5.0.12) with ESMTP id 2009042511211882:116025 ; Sat, 25 Apr 2009 11:21:18 +0200 Message-ID: <49F2D5B5.20607@entel.upc.edu> Date: Sat, 25 Apr 2009 11:19:49 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: Robert Watson References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> <49F1A016.1050003@entel.upc.edu> In-Reply-To: X-MIMETrack: Itemize by SMTP Server on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 25/04/2009 11:21:18, Serialize by Router on hamilton/UPC(Release 5.0.12 |February 13, 2003) at 25/04/2009 11:21:20, Serialize complete at 25/04/2009 11:21:20 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Sat, 25 Apr 2009 11:21:12 +0200 (CEST) Cc: freebsd-current@FreeBSD.org, freebsd-usb@FreeBSD.org, wsk Subject: Re: boot panic on current(04.20) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2009 09:21:25 -0000 >> >> I think more or less like wsk. Mmmm could it be related to the sysctl >> -a problem discussed today ? Will try recompiling fuse and kqemu. >> Will let you know. > > The above is characteristic of using an old module with a kernel > compiled for the new malloc.h. Rebuilding should fix it. Right. Kqemu and fusefs-kmod were the offending modules. Rebuilding them with against today sources fixed the problem. Instead nvidia driver doesn't have those problems ... There's still one issue that I can't test today (until next monday, because my dock is in the office) and is the hot undocking problem with usb, which seems to be fixed with r191395. I'll report ASAP. Regards, Gus