From owner-freebsd-usb@FreeBSD.ORG Sun Dec 7 09:23:49 2008 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 71163106567B; Sun, 7 Dec 2008 09:23:49 +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 8F7578FC23; Sun, 7 Dec 2008 09:23:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=OxQIQV-UnBUA:10 a=OldrGD9YyLYA:10 a=P3SC899gXHkOLDnkTYxLZw==:17 a=6I5d2MoRAAAA:8 a=XWMPSL2NCp9O6ptO02YA:9 a=-m65pplqKBvUwPkz_OsA:7 a=rQWlRaZadRbjHd-41yFsA6_yBIcA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.240] (account mc467741@c2i.net [62.113.133.240] verified) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 989066876; Sun, 07 Dec 2008 10:23:45 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sun, 7 Dec 2008 10:25:58 +0100 User-Agent: KMail/1.9.7 References: <20081107082740.GA1334@icarus.home.lan> <200812061334.55365.hselasky@c2i.net> <031DE609-3E5B-4508-BAB0-95800B7F02F4@mac.com> In-Reply-To: <031DE609-3E5B-4508-BAB0-95800B7F02F4@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812071026.00497.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: [Serious] busdma bug in -current in relation to USB hardware - review wanted 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, 07 Dec 2008 09:23:49 -0000 On Saturday 06 December 2008, Marcel Moolenaar wrote: > On Dec 6, 2008, at 4:34 AM, Hans Petter Selasky wrote: > > Hi, > > > > After various feedback from several people I have made a new patch > > proposal > > that will fix the busdma problem. > > > > See: > > > > http://perforce.freebsd.org/chv.cgi?CH=154181 > > > > Review wanted! > > The USB stack has a fixed page size of 4K. On our 64-bit platforms > PAGE_SIZE is at least 8K. Your change is sloppy in that respect > and doesn't make the distinction. That makes the patch a kluge. > The definition of BUS_DMA_NO_REALIGN is based on circumstantial > evidence only and as such, works as a side-effect. I don't think > that's a good design. > > I don't think there's any reason not to preserve the page offset > in all cases. So far all hardware worked whether or not their > DMA pages were bounced and the non-bounced pages would have a > possible non-zero page offset, whereas the bounced pages would > always have a zero page offset. In short: it works either way. > In particular, it works with the page offset preserved. Why not > preserve it always? What's the downside? Hi Marcel, I think you might be right there. There is one case in which I don't understand what is the correct busdma behaviour. If the DMA tag has an alignment of 4 bytes, and the memory loaded is not aligned to four bytes, then should a bounce page be used? If yes, then you will need to clear the page offset. Else not. NOTE: We are not talking about allocating DMA memory, only loading it. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Dec 7 16:54:05 2008 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 6911B106567E for ; Sun, 7 Dec 2008 16:54:05 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id ECB7E8FC1C for ; Sun, 7 Dec 2008 16:54:04 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id mB7GJmHC082882; Sun, 7 Dec 2008 17:19:48 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id mB7GJl8w082881; Sun, 7 Dec 2008 17:19:47 +0100 (CET) (envelope-from marius) Date: Sun, 7 Dec 2008 17:19:47 +0100 From: Marius Strobl To: Hans Petter Selasky Message-ID: <20081207161947.GA82662@alchemy.franken.de> References: <20081107082740.GA1334@icarus.home.lan> <200811081023.10058.hselasky@freebsd.org> <200811161408.21562.hselasky@c2i.net> <200812061334.55365.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812061334.55365.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [Serious] busdma bug in -current in relation to USB hardware - review wanted 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, 07 Dec 2008 16:54:05 -0000 On Sat, Dec 06, 2008 at 01:34:54PM +0100, Hans Petter Selasky wrote: > Hi, > > After various feedback from several people I have made a new patch proposal > that will fix the busdma problem. > > See: > > http://perforce.freebsd.org/chv.cgi?CH=154181 > > Review wanted! > > I don't know how to patch the psyco interface for SUN. Maybe there is nothing > that needs to be patched? Neither sparc64 nor sun4u has support for bounce buffers; it's not really worth the effort to implement IOMMU-bypass and bounce buffers for the few devices only doing < 32-bit DMA and for >= 32-bit DMA the IOMMU takes care of the address translation for all practical purposes. In any case this isn't specific to psycho(4). Marius From owner-freebsd-usb@FreeBSD.ORG Mon Dec 8 11:07:05 2008 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 1CA6F1065670 for ; Mon, 8 Dec 2008 11:07:05 +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 0970C8FC1C for ; Mon, 8 Dec 2008 11:07:05 +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 mB8B75Cv014438 for ; Mon, 8 Dec 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mB8B74wP014434 for freebsd-usb@FreeBSD.org; Mon, 8 Dec 2008 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Dec 2008 11:07:04 GMT Message-Id: <200812081107.mB8B74wP014434@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, 08 Dec 2008 11:07:05 -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/129311 usb Instant crash with an USB card reader o usb/129251 usb [patch] Liebert UPS being assigned uhid and not ugen o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a o usb/129129 usb panic with device Meizu MiniPlayer M6 (SL) under usb2 o usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb uaudio is not full duplex o usb/128847 usb Detachment of mounted USB flash drive causes system fr o usb/128803 usb [patch] [quirk] Quirk for I-Tuner Networks USBLCD4X20 o usb/128485 usb Nokia N80 modem support o usb/128425 usb 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] remove baud rate restriction for PL2303X chip p usb/128115 usb [uplcom] [patch] USB-RS232 circuets on chip PL2303HX n o usb/127980 usb [QUIRK] Fix Samsung YP U2 MP3 player on 7.x and 8.x o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some f usb/127516 usb after csup src-all RELENG_7 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 kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [patch] Bug in buffer handling in ugen.c f kern/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 [usb][ums] kernel panic during bootup while 'Logitech o usb/125510 usb repeated plug and unplug of USB mass storage devices l 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 Habu Mouse turns off in X o usb/125088 usb Touchpad not detected on Adesso AKB-430UG USB kbd/pad o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada 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 panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb Wireless Mouse doesn't work o usb/123969 usb Supermicro H8SMi-2 usb problem o usb/123714 usb Panic when hald-storage-probe runs with umass device i o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb Panic on USB device insertion when usb loaded as a mod 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 Add Option GTMAX3.6/7.2 and Quallcomm MMC module devic o usb/123351 usb Add Reiner SCT cyberJack, Omnikey [26]020, Fujitsu Sie p usb/123211 usb [udav] if_udav driver doesn't support Davicom 9601 USB p usb/123148 usb [uscanner] [patch] Epson DX8400/50 needs uscanner to s o usb/122992 usb MotoROKR Z6 Phone not recognised by umass as USB disk. o usb/122956 usb Support for Novatel Wireless XU870 3G Card 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 Patch to provide dynamic additions to the usb quirks t 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 p usb/122610 usb Add Verizon v740 support to ubsa(4) 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 [patch] uscanner does not attach to Epson RX620 printe 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 CardBus card removal causes reboot sometimes o 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 Kernel panic when forced umount of a dettached USB Har 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/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk 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 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/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices 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/117546 usb [uftdi] [patch] Add MaxStream ZigBee product ID to uft o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 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 s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um 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/107446 usb [umass] umass problems (usb and fw disks) 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 HP printer is not detected by kernel when ACPI ena 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] 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 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 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 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 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 conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 293 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Dec 8 14:10:02 2008 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 D0FFD106567C for ; Mon, 8 Dec 2008 14: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 AD5318FC1A for ; Mon, 8 Dec 2008 14: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 mB8EA2rE052333 for ; Mon, 8 Dec 2008 14: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 mB8EA2ht052332; Mon, 8 Dec 2008 14:10:02 GMT (envelope-from gnats) Resent-Date: Mon, 8 Dec 2008 14:10:02 GMT Resent-Message-Id: <200812081410.mB8EA2ht052332@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, Gerhard Schmidt Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 106EE106564A for ; Mon, 8 Dec 2008 14:04:50 +0000 (UTC) (envelope-from estartu@etustar.ze.tum.de) Received: from etustar.ze.tum.de (etustar.ze.tum.de [129.187.39.96]) by mx1.freebsd.org (Postfix) with ESMTP id 9C07F8FC24 for ; Mon, 8 Dec 2008 14:04:49 +0000 (UTC) (envelope-from estartu@etustar.ze.tum.de) Received: from etustar.ze.tum.de (smmsp@localhost [127.0.0.1]) by etustar.ze.tum.de (8.14.3/8.14.2) with ESMTP id mB8DrSXN001747 for ; Mon, 8 Dec 2008 14:53:28 +0100 (CET) (envelope-from estartu@etustar.ze.tum.de) Received: (from root@localhost) by etustar.ze.tum.de (8.14.3/8.14.2/Submit) id mB8DrSoU001746; Mon, 8 Dec 2008 14:53:28 +0100 (CET) (envelope-from estartu) Message-Id: <200812081353.mB8DrSoU001746@etustar.ze.tum.de> Date: Mon, 8 Dec 2008 14:53:28 +0100 (CET) From: Gerhard Schmidt To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/129500: FreeBSD Crashes wenn connecting SanDisk Sensa e280 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, 08 Dec 2008 14:10:02 -0000 >Number: 129500 >Category: usb >Synopsis: FreeBSD Crashes wenn connecting SanDisk Sensa e280 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 08 14:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gerhard Schmidt >Release: FreeBSD 7.1-PRERELEASE amd64 >Organization: Technische Universität München - WWW und Online Services >Environment: System: FreeBSD etustar.ze.tum.de 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #7: Mon Dec 1 08:23:20 CET 2008 root@etustar.ze.tum.de:/usr/src/sys/amd64/compile/ETUSTAR amd64 >Description: When i try to connect my SanDisk Sansa e280 MP3 Player to my FreeBSD Box. It panics. umass0: on uhub2 umass0: at uhub2 port 2 (addr 7) disconnected umass0: detached umass0: on uhub2 umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: at uhub2 port 2 (addr 7) disconnected Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor write data, page not present instruction pointer = 0x8:0xffffffff8015c751 stack pointer = 0x10:0xffffffffae0273e0 frame pointer = 0x10:0xffffff0001535400 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 = 35 (usb2) trap number = 12 panic: page fault cpuid = 0 Uptime: 7m7s Physical memory: 4087 MB Dumping 492 MB: The Corefile is stored please contact me if you need it. >How-To-Repeat: >Fix: n/k >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Dec 8 15:06:07 2008 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 9095C1065670; Mon, 8 Dec 2008 15:06:07 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8334D8FC1B; Mon, 8 Dec 2008 15:06:06 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA12757; Mon, 08 Dec 2008 17:06:04 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <493D37DB.6030902@icyb.net.ua> Date: Mon, 08 Dec 2008 17:06:03 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-usb@freebsd.org, FreeBSD Hackers References: <4912E462.4090608@icyb.net.ua> <491586B9.2020303@vwsoft.com> <4919851B.7050800@icyb.net.ua> <492FF127.807@icyb.net.ua> <20081128134802.GA75900@onelab2.iet.unipi.it> In-Reply-To: <20081128134802.GA75900@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: usb keyboard dying at loader 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: Mon, 08 Dec 2008 15:06:07 -0000 [forwarded to the lists] on 28/11/2008 15:48 Luigi Rizzo said the following: > just as a test, can you check if /boot/loader from 6.2 (or sometime > before jan.2008 - e.g. you could take one from a 6.3 CD) which you > can also find at > > http://info.iet.unipi.it/~luigi/doc/20081128-freebsd-6.3-boot-loader > > gives the same behaviour ? > > I was seeing bugs related to the loader with pxeboot and > the behaviour that you mention below sounds related. > > It also sounds related to a problem that i a started having > recently with an usb keyboard after i upgraded to 7.x .... > in fact i am going to try this old loader myself! > > let me know how the old loader works and if it fixes the > problem i will relate the two issues and bring them up > on the lists for discussion Luigi, thank you very much for this! With your loader the things are much much better. The keyboard doesn't die anymore at the loader prompt! All in all, it seems that this is right direction. -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Mon Dec 8 15:33:14 2008 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 7B1B01065673 for ; Mon, 8 Dec 2008 15:33:14 +0000 (UTC) (envelope-from noor@comrax.com) Received: from smtp1.comrax.com (smtp1.comrax.com [62.219.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id E12F68FC1C for ; Mon, 8 Dec 2008 15:33:13 +0000 (UTC) (envelope-from noor@comrax.com) Received: from corporate.local ([192.168.80.77]) by smtp1.comrax.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 8 Dec 2008 17:12:51 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 8 Dec 2008 17:12:03 +0200 Message-ID: <5646C960E487E84C8307CF11C1EC0B3D01830E44@comrax-dom.CORPORATE.LOCAL> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: USB Keyboard is not working with a custom kernel Thread-Index: AclZR0QXvmptvDBbRTmtk8zcMGUX+w== From: =?windows-1255?B?8OX4IOPg5eM=?= To: X-OriginalArrivalTime: 08 Dec 2008 15:12:51.0124 (UTC) FILETIME=[6FDF8740:01C95947] Subject: USB Keyboard is not working with a custom kernel 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, 08 Dec 2008 15:33:14 -0000 Hello list, I've custom-built a kernel for a FreeBSD 7.0-STABLE amd64 system. The kernel file (/sys/amd64/conf/KERNEL) is shown below: *********************************************************** START OF = FILE ** machine amd64 cpu HAMMER ident KERNEL maxusers 1024 # Mandatory options options SCHED_ULE # SMP options SMP # CPU frequency control device cpufreq # Memory (Adjusted for 4GB RAM for AMD64) options MAXDSIZ=3D"(1536UL*1024*1024)" # = 1.5GB for data options MAXSSIZ=3D"(256UL*1024*1024)" # = 256MB for stack options DFLDSIZ=3D"(1536UL*1024*1024)" # Set = default data size to 1.5GB # Configuration options KSE options PREEMPTION options PANIC_REBOOT_WAIT_TIME=3D30 options COMPAT_43 options SYSVSHM options SYSVSEM options SYSVMSG options _KPOSIX_PRIORITY_SCHEDULING options ADAPTIVE_GIANT # Screen, Keyboard & Mouse options MAXCONS=3D4 # File System options FFS options CD9660 options PROCFS options PSEUDOFS options SOFTUPDATES options UFS_DIRHASH options UFS_GJOURNAL # Filesystems, Samba/CIFS shares options NETSMB # SMB/CIFS requester options LIBMCHAIN # mbuf management = library options LIBICONV options SMBFS options NFSSERVER options NFSCLIENT options NFSLOCKD # Networking options INET options ACCEPT_FILTER_DATA # All devices (Network, SCSI, Disks, Interface, ...) device miibus device bge device sio device fdc device ata device atadisk device atapicd device atapifd device loop device ether device isa device eisa device pci device agp device random device scbus device da device cd device ciss # Screen, Keyboard & Mouse device atkbdc device atkbd device psm device vga device sc device uhci # UHCI PCI->USB = interface device ohci # OHCI PCI->USB = interface device ehci # EHCI PCI->USB = interface (USB 2.0) device usb # USB Bus (required) device ukbd # Keyboard device ugen # Generic device uhid # "Human Interface = Devices" # Misc device acpi device pass device pty device snp device speaker ************************************************************* END OF = FILE ** With this kernel, whenever I connect a USB keyboard, I see on the = console an alert ("USB keyboard device this and that, connected to = ....") and even the make/model of the keyboard is shown, but the = keyboard doesn't work. The Num/Caps locks work (I mean, the light on the = keyboard alternates between ON/OFF whenever press on the keys). Anyone knows what's the problem? And how to fix it? Thanks in advance. Noor From owner-freebsd-usb@FreeBSD.ORG Tue Dec 9 13:30:01 2008 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 89AF71065676 for ; Tue, 9 Dec 2008 13:30: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 667A28FC20 for ; Tue, 9 Dec 2008 13:30: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 mB9DU1XJ046378 for ; Tue, 9 Dec 2008 13: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 mB9DU1XG046377; Tue, 9 Dec 2008 13:30:01 GMT (envelope-from gnats) Resent-Date: Tue, 9 Dec 2008 13:30:01 GMT Resent-Message-Id: <200812091330.mB9DU1XG046377@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, Sergej Kandyla Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0BF91065677 for ; Tue, 9 Dec 2008 13:22:33 +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 AF7478FC1E for ; Tue, 9 Dec 2008 13:22:33 +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 mB9DMX0u056143 for ; Tue, 9 Dec 2008 13:22:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mB9DMXgv056124; Tue, 9 Dec 2008 13:22:33 GMT (envelope-from nobody) Message-Id: <200812091322.mB9DMXgv056124@www.freebsd.org> Date: Tue, 9 Dec 2008 13:22:33 GMT From: Sergej Kandyla To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/129522: ubsa driver does not recognize ZTE AC8700 modem 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, 09 Dec 2008 13:30:01 -0000 >Number: 129522 >Category: usb >Synopsis: ubsa driver does not recognize ZTE AC8700 modem >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: Tue Dec 09 13:30:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Sergej Kandyla >Release: 6 STABLE, 7 STABLE >Organization: xitexsoftware >Environment: FreeBSD zero 6.4-PRERELEASE FreeBSD 6.4-PRERELEASE #0: Thu Nov 13 22:12:42 EET 2008 root@zero:/usr/obj/usr/src/sys/PAIX1 i386 >Description: ubsa driver does not recognize ZTE AC8700 EVDO modem >How-To-Repeat: just attached the device gets recognized by ugen instead of ubsa driver >Fix: cd / && patch -p < ac8700_ubsa.patch.txt Patch attached with submission follows: --- /usr/src/sys/dev/usb/usbdevs.orig 2008-12-05 17:53:19.000000000 +0200 +++ /usr/src/sys/dev/usb/usbdevs 2008-12-05 17:54:46.000000000 +0200 @@ -1464,6 +1464,7 @@ product QUALCOMM CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMM2 CDMA_MSM 0x6000 CDMA Technologies MSM phone product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem +product QUALCOMMINC AC8700 0xfffe AC8700 CDMA USB modem /* Qtronix products */ product QTRONIX 980N 0x2011 Scorpion-980N keyboard --- /usr/src/sys/dev/usb/ubsa.c.orig 2008-12-05 17:44:43.000000000 +0200 +++ /usr/src/sys/dev/usb/ubsa.c 2008-12-05 17:46:23.000000000 +0200 @@ -234,6 +234,7 @@ { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE }, /* Qualcomm, Inc. ZTE CDMA */ { USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM }, + { USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_AC8700 }, { 0, 0 } }; --- /usr/src/share/man/man4/ubsa.4.orig 2008-12-05 18:44:24.000000000 +0200 +++ /usr/src/share/man/man4/ubsa.4 2008-12-05 18:45:27.000000000 +0200 @@ -98,6 +98,8 @@ Peracom single port serial adapter .It Qualcomm, Inc. ZTE CDMA Technologies MSM +.It +Qualcomm, Inc. ZTE CDMA Technologies AC8700 .El .Pp The supported 3G cards provide the necessary modem port for ppp, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Dec 9 16:52:37 2008 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 10E541065670 for ; Tue, 9 Dec 2008 16:52:37 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id B7A128FC12 for ; Tue, 9 Dec 2008 16:52:36 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id mB9GqXFE050386 for ; Tue, 9 Dec 2008 11:52:34 -0500 (EST) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id mB9GqWSk048070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Dec 2008 11:52:32 -0500 (EST) (envelope-from mike@sentex.net) Message-Id: <200812091652.mB9GqWSk048070@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Tue, 09 Dec 2008 11:52:31 -0500 To: freebsd-usb@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Subject: uftdi buffer size and latency 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, 09 Dec 2008 16:52:37 -0000 Hi, Based on what we found in http://lists.freebsd.org/pipermail/freebsd-current/2008-December/001052.html I hacked up the following patch to uftdi which allows the recv/xmit buffer size to be tuned at bootup time. This allows our app which is low speed (1200bps), but very timing sensitive to work using a usb serial adaptor based on the uftdi chipset. For us, adding hint.uftdi.0.buffersize="9" to /boot/device.hints does the trick. Is there a better way to do this ? Are there any other side effects anyone can think of ? --- sys/dev/usb/uftdi.c.orig 2008-12-09 11:47:02.000000000 -0500 +++ sys/dev/usb/uftdi.c 2008-12-09 11:47:05.000000000 -0500 @@ -198,6 +198,7 @@ usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; int i; + unsigned int ivar; usbd_status err; struct ucom_softc *ucom = &sc->sc_ucom; DPRINTFN(10,("\nuftdi_attach: sc=%p\n", sc)); @@ -353,11 +354,27 @@ ucom->sc_portno = FTDI_PIT_SIOA; else ucom->sc_portno = FTDI_PIT_SIOA + id->bInterfaceNumber; - /* bulkin, bulkout set above */ - ucom->sc_ibufsize = UFTDIIBUFSIZE; - ucom->sc_obufsize = UFTDIOBUFSIZE - sc->sc_hdrlen; - ucom->sc_ibufsizepad = UFTDIIBUFSIZE; + /* For certain low speed / timing sensitive applications having the buffers too large causes + data to be stuck in the queue too long. By adding a tuneable, users can lower the buffer + size to what works for their application + */ + + if (!resource_int_value( + "uftdi", device_get_unit(ucom->sc_dev), "buffersize", &ivar) && (ivar > sc->sc_hdrlen && ivar <= UFTDIIBUFSIZE) ) { + ucom->sc_ibufsize = ivar; + ucom->sc_obufsize = ivar - sc->sc_hdrlen; + ucom->sc_ibufsizepad = ivar;; + device_printf(ucom->sc_dev, "Setting buffers to %d\n",ivar); + } + else + { + ucom->sc_ibufsize = UFTDIIBUFSIZE; + ucom->sc_obufsize = UFTDIOBUFSIZE - sc->sc_hdrlen; + ucom->sc_ibufsizepad = UFTDIIBUFSIZE; + device_printf(ucom->sc_dev, "Setting buffers to default of %d\n",UFTDIIBUFSIZE); + + } ucom->sc_opkthdrlen = sc->sc_hdrlen; ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-usb@FreeBSD.ORG Tue Dec 9 21:32:48 2008 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 9C6191065675 for ; Tue, 9 Dec 2008 21:32:48 +0000 (UTC) (envelope-from reallost1@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 2AA748FC1E for ; Tue, 9 Dec 2008 21:32:47 +0000 (UTC) (envelope-from reallost1@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so78578fgb.35 for ; Tue, 09 Dec 2008 13:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; bh=RKTrSu+Qe25zCrIV1cL1EsMwcJCLY+kkynJ1UPrSlWQ=; b=Y3Hy69zgBwtIvQFwvt5rSrmLvTD/R6h8TXJ0235GxWSLhoaWwScXRd8kAckvJNV4vg bMUooYfi9OvfKHi0O6B3a0qO8/i7FgX4k4jp1H6ycfU0nC9J3+ZlKN1zntFdaXdbj4TH KzUEndruPnawG2Mq7vFfGYijR8FXPmlFQwkVc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:mime-version :content-type:content-transfer-encoding:content-disposition :x-google-sender-auth; b=jtGoZFXNdbT4pojCIXNDRHsmJpX8CKfJNoCll8ZitS+Us9imesEIubc4xGwOXejK0s saxdqNot0TKtNM1gQBblp3kMEd32vLZnw5YB4A8jF5p55rukWnwDsyHzDqvybH0FQNpI zxCn6eLC0Ip3twTgeO//1XGLjqUShLtv3hIvA= Received: by 10.86.50.6 with SMTP id x6mr252543fgx.71.1228857080602; Tue, 09 Dec 2008 13:11:20 -0800 (PST) Received: by 10.86.96.13 with HTTP; Tue, 9 Dec 2008 13:11:20 -0800 (PST) Message-ID: <8f6775e00812091311y47dab40t1e102112441c4e0@mail.gmail.com> Date: Tue, 9 Dec 2008 15:11:20 -0600 From: "Chris Coleman" Sender: reallost1@gmail.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: d1711a4a2b1e342a Subject: Losing keyboard after extended wait on USB KVM X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: chrisc@vmunix.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 21:32:48 -0000 I've got a 16 port USB IP KVM switch that I've got about 8 FBSD 7.0 machines plugged into. When I first plug them in, everything is great. However, after a couple of days, or maybe less, I switch back to one of the FBSD machines to do some maintenance and it is unresponsive. There is nothing wrong with the machine, because I can use the VPN and ssh into them. It appears that the USB connection to the KVM switch has disappeared. Unplugging and re-plugging in the USB connection fixes the problem, but that is problematic since I have to call the datacenter and have them do it each time I need KVM access. Any thoughts on where I would start troubleshooting this problem? -- Chris Coleman -- http://songnumbers.com From owner-freebsd-usb@FreeBSD.ORG Wed Dec 10 11:17:56 2008 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 1AED81065670 for ; Wed, 10 Dec 2008 11:17:56 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out1.uni-muenster.de (ZIVM-OUT1.UNI-MUENSTER.DE [128.176.192.8]) by mx1.freebsd.org (Postfix) with ESMTP id A39888FC1C for ; Wed, 10 Dec 2008 11:17:55 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.33,746,1220220000"; d="scan'208";a="264832062" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER02.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 10 Dec 2008 11:48:32 +0100 Received: by ZIVMAILUSER02.UNI-MUENSTER.DE (Postfix, from userid 149459) id 142D91B0866; Wed, 10 Dec 2008 11:48:32 +0100 (CET) Date: Wed, 10 Dec 2008 11:48:31 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: hardcoded usb1 modules in certain binaries 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, 10 Dec 2008 11:17:56 -0000 hi there, i talked to Petter a while ago, because binaries like moused have certain usb1 modules hardcoded into them. moused e.g. relies on ums.ko. if it is unable to detect the module it will load it, thus also loading usb.ko (even if we're running the usb2 stack). this line in moused is responsible for loading ums.ko and usb.ko: return (kld_isloaded("uhub/ums") || kld_load("ums") != -1); changing the line to return (kld_isloaded("ushub/ums") || kld_load("usb2_input_ms") != -1 || kld_isloaded("uhub/ums") || kld_load("ums") != -1); fixes the issue where ums.ko and usb.ko get loaded although usb2 with input_ms is present, but isn't more that a quick hack. how about this: let's introduce a new sysctl variable. if the kernel gets compiled with usb1 support we set the variable to 0. it it is compiled with the usb2 stack we set the variable to 1. that way we could check to see which stack the user is running. if he's running the usb1 stack we check for "uhub/ums" and in case we're running the usb2 stack we rely on "ushub/ums". if the kernel doesn't include any of the usb stacks we set to variable to 0 so the usb1 stack gets loaded as kernel module. if at some point we want usb2 to become the standard usb stack we can change the default settings from 0 to 1 so that usb2.ko get's loaded if no usb stack got compiled into the kernel. what are your thoughts on this one? another way of taking care of the problem would be to adjust kld_isloaded so that it includes aliases for all the usb2 modules. calling kld_isloaded with "uhub/ums" would first check for "ushub/ums" and then for "uhub/ums". this solution wouldn't require any changes to the actual binaries that have usb1 modules hardcoded into them. imo this is the best solution. a third way would be to get rid of all the kld_isloaded calls and instead check to see if /dev/ums0 exists, but that's far from being a clean solution. cheers. From owner-freebsd-usb@FreeBSD.ORG Wed Dec 10 16:03:45 2008 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 12BD21065676 for ; Wed, 10 Dec 2008 16:03:45 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 049ED8FC21 for ; Wed, 10 Dec 2008 16:03:44 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C02A71A3C3C; Wed, 10 Dec 2008 08:03:44 -0800 (PST) Date: Wed, 10 Dec 2008 08:03:44 -0800 From: Alfred Perlstein To: Chris Coleman Message-ID: <20081210160344.GK27096@elvis.mu.org> References: <8f6775e00812091311y47dab40t1e102112441c4e0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f6775e00812091311y47dab40t1e102112441c4e0@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: Losing keyboard after extended wait on USB KVM 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, 10 Dec 2008 16:03:45 -0000 * Chris Coleman [081209 13:32] wrote: > I've got a 16 port USB IP KVM switch that I've got about 8 FBSD 7.0 > machines plugged into. When I first plug them in, everything is great. > However, after a couple of days, or maybe less, I switch back to one > of the FBSD machines to do some maintenance and it is unresponsive. > There is nothing wrong with the machine, because I can use the VPN and > ssh into them. It appears that the USB connection to the KVM switch > has disappeared. Unplugging and re-plugging in the USB connection > fixes the problem, but that is problematic since I have to call the > datacenter and have them do it each time I need KVM access. > > Any thoughts on where I would start troubleshooting this problem? any chance you can give the new usb stack a shot? it might be installable on -stable. -- - Alfred Perlstein From owner-freebsd-usb@FreeBSD.ORG Fri Dec 12 20:27:30 2008 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 B849C1065678; Fri, 12 Dec 2008 20:27:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3DE708FC2C; Fri, 12 Dec 2008 20:27:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mBCKRRAU011008; Fri, 12 Dec 2008 21:27:28 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mBCKRRZt011007; Fri, 12 Dec 2008 21:27:27 +0100 (CET) (envelope-from olli) Date: Fri, 12 Dec 2008 21:27:27 +0100 (CET) Message-Id: <200812122027.mBCKRRZt011007@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, freebsd-usb@FreeBSD.ORG X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 12 Dec 2008 21:27:28 +0100 (CET) Cc: Subject: usb2 + scanner HP ScanJet 4300C 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, 12 Dec 2008 20:27:30 -0000 Hi, I've got a HP ScanJet 4300C that seems to be a little bit stubborn. It doesn't work with the old USB code, so I updated to 8-current and compiled a kernel with the new usb2 drivers. Now I get: usb2_alloc_device:1590: Failure selecting configuration index 0: USB_ERR_TIMEOUT, port 2, addr 2 ugen0.2: at usbus0 uhub_reattach_port:402: could not allocate new device! "usbconfig list" says: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Is there anything I can do, except for forgetting about this scanner alltogether? (The scanner does have an LPT connector, but the computer does not. I assume that the scanner wouldn't work with a USB-printer adapter either, because SANE probably only works with "real" LPT ports.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -- Robert Firth From owner-freebsd-usb@FreeBSD.ORG Fri Dec 12 20:36:33 2008 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 1EA03106570A; Fri, 12 Dec 2008 20:36:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 7F0A38FC1B; Fri, 12 Dec 2008 20:36:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=P3SC899gXHkOLDnkTYxLZw==:17 a=G9fvKB-1MRFWVLZUkH8A:9 a=hYCaWgoOe3TXl_HFMUkkMbs7dxcA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.240] (account mc467741@c2i.net [62.113.133.240] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1163200011; Fri, 12 Dec 2008 21:36:30 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 12 Dec 2008 21:38:44 +0100 User-Agent: KMail/1.9.7 References: <200812122027.mBCKRRZt011007@lurza.secnetix.de> In-Reply-To: <200812122027.mBCKRRZt011007@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812122138.45325.hselasky@c2i.net> Cc: freebsd-current@freebsd.org, Oliver Fromme Subject: Re: usb2 + scanner HP ScanJet 4300C 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, 12 Dec 2008 20:36:33 -0000 On Friday 12 December 2008, Oliver Fromme wrote: > usb2_alloc_device: You could try to edit the code in "sys/dev/usb2/core/usb2_device.c" and loop two times on the set_config command in "usb2_alloc_device()". Or you can try to make the code ignore the return value from the failing set_config command. Also try to turn on more debugging: sysctl hw.usb2.debug=15 --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Dec 12 22:15:05 2008 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 535E01065675; Fri, 12 Dec 2008 22:15:05 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 19EF48FC12; Fri, 12 Dec 2008 22:15:04 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id B7E5473098; Fri, 12 Dec 2008 23:04:28 +0100 (CET) Date: Fri, 12 Dec 2008 23:04:28 +0100 From: Luigi Rizzo To: Oliver Fromme Message-ID: <20081212220428.GB64751@onelab2.iet.unipi.it> References: <200812122027.mBCKRRZt011007@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812122027.mBCKRRZt011007@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb2 + scanner HP ScanJet 4300C 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, 12 Dec 2008 22:15:05 -0000 On Fri, Dec 12, 2008 at 09:27:27PM +0100, Oliver Fromme wrote: > Hi, > > I've got a HP ScanJet 4300C that seems to be a little bit > stubborn. > ... > Is there anything I can do, except for forgetting about > this scanner alltogether? one option is to put the device IDs in uscanner.c and see if it is recognised. But other than that, i wouldn't waste much time: for 50..80 euro you can get one of the Epson multifunction printer scanners (i have personally tried DX4400 to DX7050) which are well supported and extremely reliable. see http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html cheers luigi From owner-freebsd-usb@FreeBSD.ORG Fri Dec 12 23:15:14 2008 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 8F5A21065672; Fri, 12 Dec 2008 23:15:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 12ECA8FC19; Fri, 12 Dec 2008 23:15:13 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mBCNFBg6018008; Sat, 13 Dec 2008 00:15:11 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mBCNFBTj018007; Sat, 13 Dec 2008 00:15:11 +0100 (CET) (envelope-from olli) Date: Sat, 13 Dec 2008 00:15:11 +0100 (CET) Message-Id: <200812122315.mBCNFBTj018007@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, freebsd-usb@FreeBSD.ORG, hselasky@c2i.net In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sat, 13 Dec 2008 00:15:11 +0100 (CET) Cc: Subject: Re: usb2 + scanner HP ScanJet 4300C 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, 12 Dec 2008 23:15:14 -0000 Hans Petter Selasky wrote: > On Friday 12 December 2008, Oliver Fromme wrote: > > usb2_alloc_device: > > You could try to edit the code in "sys/dev/usb2/core/usb2_device.c" and loop > two times on the set_config command in "usb2_alloc_device()". > > Or you can try to make the code ignore the return value from the failing > set_config command. Also try to turn on more debugging: > > sysctl hw.usb2.debug=15 Thank you! That got me a step forward. Looping two or even three times didn't help, the set_config just continued to time out and fail. Then I followed your second advice and inserted "err = 0;" so the error was ignored. Now the device attaches! »usbconfig list« says: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON Does that mean this device needs a quirk entry or something like that? I mean, setting err = 0 is a hack, it's not the proper solution. Unfortunately I wasn't able to check whether it works with SANE because I had to catch the train ... I'll continue with that next week. I hope I can finally make this scanner work ... The uscanner(4) manpage claims the 4300C is supported (for years already), but that wasn't true until now. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie From owner-freebsd-usb@FreeBSD.ORG Fri Dec 12 23:28:10 2008 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 8F432106564A; Fri, 12 Dec 2008 23:28:10 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id EFF2A8FC12; Fri, 12 Dec 2008 23:28:09 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id mBCNS8kx018581; Sat, 13 Dec 2008 00:28:08 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id mBCNS8Zl018580; Sat, 13 Dec 2008 00:28:08 +0100 (CET) (envelope-from olli) Date: Sat, 13 Dec 2008 00:28:08 +0100 (CET) Message-Id: <200812122328.mBCNS8Zl018580@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, freebsd-usb@FreeBSD.ORG, rizzo@iet.unipi.it In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sat, 13 Dec 2008 00:28:08 +0100 (CET) Cc: Subject: Re: usb2 + scanner HP ScanJet 4300C 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, 12 Dec 2008 23:28:10 -0000 Luigi Rizzo wrote: > On Fri, Dec 12, 2008 at 09:27:27PM +0100, Oliver Fromme wrote: > > Hi, > > > > I've got a HP ScanJet 4300C that seems to be a little bit > > stubborn. > > > ... > > Is there anything I can do, except for forgetting about > > this scanner alltogether? > > one option is to put the device IDs in uscanner.c and see if > it is recognised. Thanks for the advice, but the device IDs _are_ already in uscanner.c. I checked that when I was experimenting with the old USB stack. The probe fails much earlier, before the uscanner code has a chance to do anything. So the problem isn't in uscanner.c. > But other than that, i wouldn't waste much time: > for 50..80 euro you can get one of the > Epson multifunction printer scanners (i have personally > tried DX4400 to DX7050) which are well supported and > extremely reliable. I bought this ScanJet 4300 C specifically because it is listed as supported by FreeBSD in the uscanner(4) manpage. I'm not going to spend more money on anything else (which wouldn't be guaranteed to work either). Either I get this beast to work somehow with FreeBSD, or I will have to use a different OS to drive the scanner. Fortunately Hans Petter's advice seems to help, although I still have to test whether SANE will work. (But I'm optimistic, now that the device attaches.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "... there are two ways of constructing a software design: One way is to make it so simple that there are _obviously_ no deficiencies and the other way is to make it so complicated that there are no _obvious_ deficiencies." -- C.A.R. Hoare, ACM Turing Award Lecture, 1980