From owner-freebsd-usb@FreeBSD.ORG Sun May 10 15:51:26 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 D7B1610656FC for ; Sun, 10 May 2009 15:51:26 +0000 (UTC) (envelope-from info@lottery.co.uk) Received: from hm995.locaweb.com.br (shared-1.locaweb.com.br [200.234.214.141]) by mx1.freebsd.org (Postfix) with ESMTP id 5F7628FC26 for ; Sun, 10 May 2009 15:51:26 +0000 (UTC) (envelope-from info@lottery.co.uk) Received: from hm1207.locaweb.com.br (hm1207.locaweb.com.br [200.234.200.152]) by hm995.locaweb.com.br (Postfix) with ESMTP id 4BCDCA2E23A0E for ; Sun, 10 May 2009 12:33:59 -0300 (BRT) Received: by hm1207.locaweb.com.br (Postfix, from userid 50714) id 467B83C17C; Sun, 10 May 2009 12:31:40 -0300 (BRT) X-Locaweb-ID: 63325679646D56794F69426F625445794D4463734948567A5A584A755957316C4F694232595735705957526C5932467A64484A76 To: freebsd-usb@freebsd.org X-PHP-Script: www.vaniadecastro.com.br/zero.php for 196.3.182.250 From: UK NATIONAL LOTTERY MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Message-Id: <20090510153359.467B83C17C@hm1207.locaweb.com.br> Date: Sun, 10 May 2009 12:31:40 -0300 (BRT) Subject: National Lottery: Your Email Won X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: zonal.anderson-spencer@msn.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2009 15:51:31 -0000 United Kingdom National Lottery 101 Bovill Road, London SE23 1EL United Kingdom File #: EGS/2251256003/02 Congratulations, we are pleased to inform you of the result of the United Kingdom National Lottery Award Winners. Your email address have been randomly selected as a winner in the ongoing United Kingdom National Lottery Online program, the draw was held on 30th April, 2009 using a computerized balloting system of selection. The United Kingdom National Lottery is aimed and focused at global development and improvement of living standard across the world. Free £77 Million Pounds won including *four* Ten Million Pounds Winners and *fourteen* Millionaires plus thousands of other cash prizes. Winner from all over the world, India, France, Singapore, USA, United Kingdom, Spain, South America, Malaysia, Indonesia, South Africa, Belgium, Denmark, Ireland and many more. We wish to express our sincere apologies for the late notification, this free award online program is been conducted bi-quarterly. United Kingdom National Lottery Free Award draw was conducted at the Europe Issuing Centre, you were selected from an exclusive list of 1,000,000,000 e-mail addresses of internet users from the following categories; consumers, professionals and corporate bodies picked by an advanced automated random computer ballot search from the internet 'NO TICKETS OR DRAFTS WERE SOLD'. Your email address attached to Security File #: EGS/2251256003/02 with Serial number No: 002839 emerged as a winner of Six Hundred Thousand Pounds (£600.000.00 GBP), therefore you are eligible to file claim for your prize as one of our lucky winners for the payout of your total sum after a thorough verification that will be conducted by our various credible financial institutions. This online program is precisely aimed at enabling all internet users across the world benefit from the United Kingdom National Lottery, your email address falls within the First Category Winner as such your file has been designated to our European Centre, where the complete verification and payout will be conducted only if there are no exceptions during the claims process, to file your claim immediately please contact our International Programs Director Anderson Spencer with the following information: 1. Name in full----------------------------------------- 2. Phone/Fax------------------------------------------- 3. Occupation------------------------------------------ TO: Contact Person: Anderson Spencer European Payment Issuing Office Tel: +447024065192 (8am - 5pm GMT) Fax: +447092894160 Email: zonal.anderson-spencer@msn.com NOTE: In order to benefit from this program, you are advised in your own best interest to file your claim not later than 7days days from the date of this notification to avoid disqualification; anybody under the age of 18 is automatically disqualified. Please include this File #: EGS/2251256003/02 in every of your correspondence with our Foreign Service Director Anderson Spencer. IMPORTANT: Solemn confidentiality should be ensured until successful remittance of your prize to you to avoid undue taking of advantage, unwarranted claim and abuse of program, any breach of confidentiality on the part of the winner will result to automatic disqualification. Sincerely Yours, Mrs. Julie Van Hans, Executive Director. United Kingdom National Lottery. From owner-freebsd-usb@FreeBSD.ORG Mon May 11 11:07:06 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 8713C1065676 for ; Mon, 11 May 2009 11:07:06 +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 734EF8FC28 for ; Mon, 11 May 2009 11:07:06 +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 n4BB76fV086140 for ; Mon, 11 May 2009 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4BB757E086136 for freebsd-usb@FreeBSD.org; Mon, 11 May 2009 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 May 2009 11:07:05 GMT Message-Id: <200905111107.n4BB757E086136@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, 11 May 2009 11:07:06 -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/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt 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 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 311 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon May 11 17: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 2247B106566B for ; Mon, 11 May 2009 17: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 D6AEB8FC24 for ; Mon, 11 May 2009 17: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 n4BHU13A008353 for ; Mon, 11 May 2009 17: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 n4BHU15Z008352; Mon, 11 May 2009 17:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 11 May 2009 17:30:01 GMT Resent-Message-Id: <200905111730.n4BHU15Z008352@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, Dirk-Willem van Gulik Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C791065693 for ; Mon, 11 May 2009 17:24:18 +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 62FB98FC20 for ; Mon, 11 May 2009 17:24:18 +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 n4BHOH80052412 for ; Mon, 11 May 2009 17:24:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4BHOHdL052411; Mon, 11 May 2009 17:24:17 GMT (envelope-from nobody) Message-Id: <200905111724.n4BHOHdL052411@www.freebsd.org> Date: Mon, 11 May 2009 17:24:17 GMT From: Dirk-Willem van Gulik To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134468: /etc/ntp created by default - but not used by /etc/default settings 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, 11 May 2009 17:30:02 -0000 >Number: 134468 >Category: usb >Synopsis: /etc/ntp created by default - but not used by /etc/default settings >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: Mon May 11 17:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dirk-Willem van Gulik >Release: 7.2-RELEASE >Organization: private >Environment: FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon May 11 18:16:53 UTC 2009 root@:/usr/src/sys/i386/compile/BISCAY i386 >Description: A default install of base will create the directory /etc/ntp. However - the settings specified in /etc/defaults/* point to a config file in /etc/ntp.conf >How-To-Repeat: default install. observe >Fix: Either remove /etc/ntp, point ntpd its config in /etc/defaults/ to the right place or document what its chroot concept would be. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon May 11 19:21:21 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 987D41065673; Mon, 11 May 2009 19:21:21 +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 6E24F8FC17; Mon, 11 May 2009 19:21:21 +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 n4BJLLeX063907; Mon, 11 May 2009 19:21:21 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4BJLLaO063897; Mon, 11 May 2009 19:21:21 GMT (envelope-from gavin) Date: Mon, 11 May 2009 19:21:21 GMT Message-Id: <200905111921.n4BJLLaO063897@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, freebsd-bugs@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: bin/134468: /etc/ntp created by default - but not used by /etc/default settings 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, 11 May 2009 19:21:22 -0000 Synopsis: /etc/ntp created by default - but not used by /etc/default settings Responsible-Changed-From-To: freebsd-usb->freebsd-bugs Responsible-Changed-By: gavin Responsible-Changed-When: Mon May 11 19:20:26 UTC 2009 Responsible-Changed-Why: Not USB. Don't know where the problem is yet, but it's not USB... http://www.freebsd.org/cgi/query-pr.cgi?pr=134468 From owner-freebsd-usb@FreeBSD.ORG Tue May 12 00:50: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 ABD5110656AA for ; Tue, 12 May 2009 00:50: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 36A4B8FC1A for ; Tue, 12 May 2009 00:50: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 n4C0o1XO002760 for ; Tue, 12 May 2009 00: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 n4C0o1MB002759; Tue, 12 May 2009 00:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 12 May 2009 00:50:01 GMT Resent-Message-Id: <200905120050.n4C0o1MB002759@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, Lucius Windschuh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8586E1065676 for ; Tue, 12 May 2009 00:40:35 +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 593078FC12 for ; Tue, 12 May 2009 00:40:35 +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 n4C0eZmb003285 for ; Tue, 12 May 2009 00:40:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4C0eZdL003284; Tue, 12 May 2009 00:40:35 GMT (envelope-from nobody) Message-Id: <200905120040.n4C0eZdL003284@www.freebsd.org> Date: Tue, 12 May 2009 00:40:35 GMT From: Lucius Windschuh To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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, 12 May 2009 00:50:03 -0000 >Number: 134476 >Category: usb >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx >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 May 12 00:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Lucius Windschuh >Release: CURRENT@r191999 >Organization: >Environment: FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 >Description: Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) [...] (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI Status: Check Condition (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 (da1:umass-sim1:1:0:0): Invalid command operation code (da1:umass-sim1:1:0:0): Unretryable error GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI Status: Check Condition (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 (da1:umass-sim1:1:0:0): Invalid command operation code (da1:umass-sim1:1:0:0): Unretryable error GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. >How-To-Repeat: Put a gjournal on an external disk with a Cypress chipset and use it. >Fix: Attached patch. Patch attached with submission follows: Index: sys/dev/usb/storage/umass.c =================================================================== --- sys/dev/usb/storage/umass.c (Revision 191999) +++ sys/dev/usb/storage/umass.c (Arbeitskopie) @@ -427,6 +427,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE }, + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE + }, {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (Revision 191999) +++ sys/dev/usb/usbdevs (Arbeitskopie) @@ -1106,6 +1106,7 @@ product CYPRESS FMRADIO 0x1002 FM Radio product CYPRESS USBRS232 0x5500 USB-RS232 Interface product CYPRESS SLIM_HUB 0x6560 Slim Hub +product CYPRESS XX6830XX 0x6830 PATA Storage Device /* Daisy Technology products */ product DAISY DMC 0x6901 USB MultiMedia Reader >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue May 12 07:21:26 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 6DA7F1065670; Tue, 12 May 2009 07:21:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id A58018FC15; Tue, 12 May 2009 07:21:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=jQPkJPAc13QA:10 a=omqvwZOFGbAA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=Jq_JdvFlJ9SN9oML4-QA:9 a=_JEIg9WpBNmOKSU6jPEA:7 a=CP6f15A87BwnYehx-g4mKZaNyt0A:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1237775293; Tue, 12 May 2009 09:21:23 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 12 May 2009 09:23:56 +0200 User-Agent: KMail/1.9.7 References: <200905120040.n4C0eZdL003284@www.freebsd.org> In-Reply-To: <200905120040.n4C0eZdL003284@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905120923.57886.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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, 12 May 2009 07:21:26 -0000 On Tuesday 12 May 2009, Lucius Windschuh wrote: > >Number: 134476 > >Category: usb > >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx > >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 May 12 00:50:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Lucius Windschuh > >Release: CURRENT@r191999 > >Organization: > >Environment: > > FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 > 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 > > >Description: > > Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces > these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) > [...] > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. > > >How-To-Repeat: > > Put a gjournal on an external disk with a Cypress chipset and use it. > > >Fix: > > Attached patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/storage/umass.c > =================================================================== > --- sys/dev/usb/storage/umass.c (Revision 191999) > +++ sys/dev/usb/storage/umass.c (Arbeitskopie) > @@ -427,6 +427,10 @@ > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE > }, > + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, > + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE > + }, If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check this and I will import this patch. > {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_QUIRKS > Index: sys/dev/usb/usbdevs > =================================================================== > --- sys/dev/usb/usbdevs (Revision 191999) > +++ sys/dev/usb/usbdevs (Arbeitskopie) > @@ -1106,6 +1106,7 @@ > product CYPRESS FMRADIO 0x1002 FM Radio > product CYPRESS USBRS232 0x5500 USB-RS232 Interface > product CYPRESS SLIM_HUB 0x6560 Slim Hub > +product CYPRESS XX6830XX 0x6830 PATA Storage Device > > /* Daisy Technology products */ > product DAISY DMC 0x6901 USB MultiMedia Reader > > >Release-Note: > >Audit-Trail: > >Unformatted: --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 12 07:30:10 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 1FCF1106564A for ; Tue, 12 May 2009 07:30:10 +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 0DE518FC1D for ; Tue, 12 May 2009 07:30:10 +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 n4C7U990068183 for ; Tue, 12 May 2009 07:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4C7U992068177; Tue, 12 May 2009 07:30:09 GMT (envelope-from gnats) Date: Tue, 12 May 2009 07:30:09 GMT Message-Id: <200905120730.n4C7U992068177@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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: Tue, 12 May 2009 07:30:10 -0000 The following reply was made to PR usb/134476; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Lucius Windschuh , freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 09:23:56 +0200 On Tuesday 12 May 2009, Lucius Windschuh wrote: > >Number: 134476 > >Category: usb > >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx > >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 May 12 00:50:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Lucius Windschuh > >Release: CURRENT@r191999 > >Organization: > >Environment: > > FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 > 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 > > >Description: > > Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces > these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) > [...] > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. > > >How-To-Repeat: > > Put a gjournal on an external disk with a Cypress chipset and use it. > > >Fix: > > Attached patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/storage/umass.c > =================================================================== > --- sys/dev/usb/storage/umass.c (Revision 191999) > +++ sys/dev/usb/storage/umass.c (Arbeitskopie) > @@ -427,6 +427,10 @@ > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE > }, > + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, > + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE > + }, If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check this and I will import this patch. > {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_QUIRKS > Index: sys/dev/usb/usbdevs > =================================================================== > --- sys/dev/usb/usbdevs (Revision 191999) > +++ sys/dev/usb/usbdevs (Arbeitskopie) > @@ -1106,6 +1106,7 @@ > product CYPRESS FMRADIO 0x1002 FM Radio > product CYPRESS USBRS232 0x5500 USB-RS232 Interface > product CYPRESS SLIM_HUB 0x6560 Slim Hub > +product CYPRESS XX6830XX 0x6830 PATA Storage Device > > /* Daisy Technology products */ > product DAISY DMC 0x6901 USB MultiMedia Reader > > >Release-Note: > >Audit-Trail: > >Unformatted: --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 12 13:21:25 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 EFF60106566B; Tue, 12 May 2009 13:21:25 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 57E5B8FC0C; Tue, 12 May 2009 13:21:24 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=jQPkJPAc13QA:10 a=omqvwZOFGbAA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=6I5d2MoRAAAA:8 a=FprAF1ELwOLA-OpqBhgA:9 a=NW4QXKvVV4dhR-keaGoA:7 a=mYHSEIsCebTSfi663_qFdcvrhF8A: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 1070609179; Tue, 12 May 2009 15:21:23 +0200 From: Hans Petter Selasky To: Lucius Windschuh Date: Tue, 12 May 2009 15:23:57 +0200 User-Agent: KMail/1.9.7 References: <200905120040.n4C0eZdL003284@www.freebsd.org> <200905120923.57886.hselasky@c2i.net> <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> In-Reply-To: <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905121523.58317.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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, 12 May 2009 13:21:26 -0000 On Tuesday 12 May 2009, Lucius Windschuh wrote: > Lucius Windschuh Committed. http://perforce.freebsd.org/chv.cgi?CH=161973 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 12 13:30:03 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 EAF31106564A for ; Tue, 12 May 2009 13:30:03 +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 C02498FC17 for ; Tue, 12 May 2009 13:30:03 +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 n4CDU3u7069253 for ; Tue, 12 May 2009 13:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4CDU3Vs069239; Tue, 12 May 2009 13:30:03 GMT (envelope-from gnats) Date: Tue, 12 May 2009 13:30:03 GMT Message-Id: <200905121330.n4CDU3Vs069239@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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: Tue, 12 May 2009 13:30:04 -0000 The following reply was made to PR usb/134476; it has been noted by GNATS. From: Hans Petter Selasky To: Lucius Windschuh Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 15:23:57 +0200 On Tuesday 12 May 2009, Lucius Windschuh wrote: > Lucius Windschuh Committed. http://perforce.freebsd.org/chv.cgi?CH=161973 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 12 14:21:30 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 25CEA1065673; Tue, 12 May 2009 14:21:30 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id AB4698FC16; Tue, 12 May 2009 14:21:29 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: by yw-out-2324.google.com with SMTP id 9so1690ywe.13 for ; Tue, 12 May 2009 07:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=c2VgV22uxuW8xL3taHQzHkpDraUd4V87LkTOdrOv4hY=; b=x/SC67FswjaMCRj9x6P9+uM/2SoPKLcmHO8Yf2DhYTuzytp5W/e26GPaOOrfSZe8uE ZSCESL90+d+c/GOhreWurmD88dCGmu8Kv0dX51ovikx6rMa/ga9DfCEw73agtaIeumlk ts7V+2LhVA+mdAbLTp8/SmBu2Fzm8fDFy6FZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dZTlaNW2mitIrYpLUibxti6cBCGw2oujEiEu6R4xN5j7tHI0W1E4K3nL38GGbKq5mI Eym8+HeDVS8LkCGSzeurONBBXsPykqC0jVdVXOqtvIs69APqMJl9JA3Z65TsLa4pUXa/ 4Mtq/gc/wmxo/qjKHgaqe//onNAiFRhkxmov0= MIME-Version: 1.0 Received: by 10.150.151.13 with SMTP id y13mr8828786ybd.267.1242133880388; Tue, 12 May 2009 06:11:20 -0700 (PDT) In-Reply-To: <200905120923.57886.hselasky@c2i.net> References: <200905120040.n4C0eZdL003284@www.freebsd.org> <200905120923.57886.hselasky@c2i.net> Date: Tue, 12 May 2009 15:11:20 +0200 Message-ID: <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> From: Lucius Windschuh To: Hans Petter Selasky Content-Type: multipart/mixed; boundary=000e0cd47e94b443d30469b6d42d X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx 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, 12 May 2009 14:21:30 -0000 --000e0cd47e94b443d30469b6d42d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/5/12 Hans Petter Selasky : > > If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check > this and I will import this patch. It works with UMASS_PROTO_DEFAULT. After pulling in p4 change 161533... ;-) And I found another enclosure with a different chipset that needs special treatment, too (combined patch attached). Thanks Lucius --000e0cd47e94b443d30469b6d42d Content-Type: application/octet-stream; name="enclosure_quirks2.patch" Content-Disposition: attachment; filename="enclosure_quirks2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fummf2580 SW5kZXg6IHN5cy9kZXYvdXNiL3N0b3JhZ2UvdW1hc3MuYwo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzeXMvZGV2 L3VzYi9zdG9yYWdlL3VtYXNzLmMJKFJldmlzaW9uIDE5MTk5OSkKKysrIHN5cy9kZXYvdXNiL3N0 b3JhZ2UvdW1hc3MuYwkoQXJiZWl0c2tvcGllKQpAQCAtMzk1LDYgKzM5NSwxMCBAQAogCQlVTUFT U19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAogCQlOT19RVUlSS1MKIAl9LAorCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9BVTYzOTAsIFJJRF9XSUxEQ0FSRCwKKwkJ VU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9VTUNSXzkzNjEsIFJJRF9XSUxEQ0FSRCwK IAkJVU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fR0VUTUFYTFVOCkBA IC00MjcsNiArNDMxLDEwIEBACiAJCVVNQVNTX1BST1RPX1NDU0kgfCBVTUFTU19QUk9UT19CQkIs CiAJCUZPUkNFX1NIT1JUX0lOUVVJUlkgfCBOT19TVEFSVF9TVE9QIHwgSUdOT1JFX1JFU0lEVUUK IAl9LAorCXtVU0JfVkVORE9SX0NZUFJFU1MsIFVTQl9QUk9EVUNUX0NZUFJFU1NfWFg2ODMwWFgs IFJJRF9XSUxEQ0FSRCwKKwkJVU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fR0VUTUFYTFVOIHwg Tk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0JfVkVORE9SX0RFU0tOT1RFLCBVU0JfUFJP RFVDVF9ERVNLTk9URV9VQ1JfNjFTMkIsIFJJRF9XSUxEQ0FSRCwKIAkJVU1BU1NfUFJPVE9fU0NT SSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fUVVJUktTCkluZGV4OiBzeXMvZGV2L3VzYi91c2Jk ZXZzCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvdXNiL3VzYmRldnMJKFJldmlzaW9uIDE5MTk5OSkK KysrIHN5cy9kZXYvdXNiL3VzYmRldnMJKEFyYmVpdHNrb3BpZSkKQEAgLTgxNyw2ICs4MTcsNyBA QAogcHJvZHVjdCBBTENPUiBVTUNSXzkzNjEJCTB4OTM2MQlVU0IgTXVsdGltZWRpYSBDYXJkIFJl YWRlcgogcHJvZHVjdCBBTENPUiBTTV9LQkQJCTB4OTQxMAlNaWNyb0Nvbm5lY3RvcnMvU3Ryb25n TWFuIEtleWJvYXJkCiBwcm9kdWN0IEFMQ09SIE5FQ19LQkRfSFVCCTB4OTQ3MglORUMgS2JkIEh1 YgorcHJvZHVjdCBBTENPUiBBVTYzOTAJMHg2MzkwCUFVNjM5MCBVU0ItSURFIGNvbnZlcnRlcgog CiAvKiBBbHRlYyBMYW5zaW5nIHByb2R1Y3RzICovCiBwcm9kdWN0IEFMVEVDIEFEQTcwCQkweDAw NzAJQURBNzAgU3BlYWtlcnMKQEAgLTExMDYsNiArMTEwNyw3IEBACiBwcm9kdWN0IENZUFJFU1Mg Rk1SQURJTwkJMHgxMDAyCUZNIFJhZGlvCiBwcm9kdWN0IENZUFJFU1MgVVNCUlMyMzIJMHg1NTAw CVVTQi1SUzIzMiBJbnRlcmZhY2UKIHByb2R1Y3QgQ1lQUkVTUyBTTElNX0hVQgkweDY1NjAJU2xp bSBIdWIKK3Byb2R1Y3QgQ1lQUkVTUyBYWDY4MzBYWAkweDY4MzAJUEFUQSBTdG9yYWdlIERldmlj ZQogCiAvKiBEYWlzeSBUZWNobm9sb2d5IHByb2R1Y3RzICovCiBwcm9kdWN0IERBSVNZIERNQwkJ MHg2OTAxCVVTQiBNdWx0aU1lZGlhIFJlYWRlcgo= --000e0cd47e94b443d30469b6d42d-- From owner-freebsd-usb@FreeBSD.ORG Tue May 12 14:30:03 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 8B8AB106564A for ; Tue, 12 May 2009 14:30:03 +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 7B1858FC17 for ; Tue, 12 May 2009 14:30:03 +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 n4CEU32u051019 for ; Tue, 12 May 2009 14:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4CEU3Ln051016; Tue, 12 May 2009 14:30:03 GMT (envelope-from gnats) Date: Tue, 12 May 2009 14:30:03 GMT Message-Id: <200905121430.n4CEU3Ln051016@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Lucius Windschuh Cc: Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lucius Windschuh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 14:30:03 -0000 The following reply was made to PR usb/134476; it has been noted by GNATS. From: Lucius Windschuh To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 15:11:20 +0200 --000e0cd47e94b443d30469b6d42d Content-Type: multipart/alternative; boundary=000e0cd47e94b443c40469b6d42b --000e0cd47e94b443c40469b6d42b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/5/12 Hans Petter Selasky : > > If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check > this and I will import this patch. It works with UMASS_PROTO_DEFAULT. After pulling in p4 change 161533... ;-) And I found another enclosure with a different chipset that needs special treatment, too (combined patch attached). Thanks Lucius --000e0cd47e94b443c40469b6d42b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2009/5/12 Hans Petter Selasky <= hselasky@c2i.net>:
>
> If the descriptors = are correct then use UMASS_PROTO_DEFAULT . Can you check
> thi= s and I will import this patch.
=A0
It works with UMASS_PROTO_DEFAULT. After pulling in p4 c= hange 161533... ;-)
And I found another enclosure with a differen= t chipset that needs special treatment, too (combined patch attached).
=A0
Thanks
=A0
Lucius
--000e0cd47e94b443c40469b6d42b-- --000e0cd47e94b443d30469b6d42d Content-Type: application/octet-stream; name="enclosure_quirks2.patch" Content-Disposition: attachment; filename="enclosure_quirks2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fummf2580 SW5kZXg6IHN5cy9kZXYvdXNiL3N0b3JhZ2UvdW1hc3MuYwo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzeXMvZGV2 L3VzYi9zdG9yYWdlL3VtYXNzLmMJKFJldmlzaW9uIDE5MTk5OSkKKysrIHN5cy9kZXYvdXNiL3N0 b3JhZ2UvdW1hc3MuYwkoQXJiZWl0c2tvcGllKQpAQCAtMzk1LDYgKzM5NSwxMCBAQAogCQlVTUFT U19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAogCQlOT19RVUlSS1MKIAl9LAorCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9BVTYzOTAsIFJJRF9XSUxEQ0FSRCwKKwkJ VU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9VTUNSXzkzNjEsIFJJRF9XSUxEQ0FSRCwK IAkJVU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fR0VUTUFYTFVOCkBA IC00MjcsNiArNDMxLDEwIEBACiAJCVVNQVNTX1BST1RPX1NDU0kgfCBVTUFTU19QUk9UT19CQkIs CiAJCUZPUkNFX1NIT1JUX0lOUVVJUlkgfCBOT19TVEFSVF9TVE9QIHwgSUdOT1JFX1JFU0lEVUUK IAl9LAorCXtVU0JfVkVORE9SX0NZUFJFU1MsIFVTQl9QUk9EVUNUX0NZUFJFU1NfWFg2ODMwWFgs IFJJRF9XSUxEQ0FSRCwKKwkJVU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fR0VUTUFYTFVOIHwg Tk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0JfVkVORE9SX0RFU0tOT1RFLCBVU0JfUFJP RFVDVF9ERVNLTk9URV9VQ1JfNjFTMkIsIFJJRF9XSUxEQ0FSRCwKIAkJVU1BU1NfUFJPVE9fU0NT SSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fUVVJUktTCkluZGV4OiBzeXMvZGV2L3VzYi91c2Jk ZXZzCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvdXNiL3VzYmRldnMJKFJldmlzaW9uIDE5MTk5OSkK KysrIHN5cy9kZXYvdXNiL3VzYmRldnMJKEFyYmVpdHNrb3BpZSkKQEAgLTgxNyw2ICs4MTcsNyBA QAogcHJvZHVjdCBBTENPUiBVTUNSXzkzNjEJCTB4OTM2MQlVU0IgTXVsdGltZWRpYSBDYXJkIFJl YWRlcgogcHJvZHVjdCBBTENPUiBTTV9LQkQJCTB4OTQxMAlNaWNyb0Nvbm5lY3RvcnMvU3Ryb25n TWFuIEtleWJvYXJkCiBwcm9kdWN0IEFMQ09SIE5FQ19LQkRfSFVCCTB4OTQ3MglORUMgS2JkIEh1 YgorcHJvZHVjdCBBTENPUiBBVTYzOTAJMHg2MzkwCUFVNjM5MCBVU0ItSURFIGNvbnZlcnRlcgog CiAvKiBBbHRlYyBMYW5zaW5nIHByb2R1Y3RzICovCiBwcm9kdWN0IEFMVEVDIEFEQTcwCQkweDAw NzAJQURBNzAgU3BlYWtlcnMKQEAgLTExMDYsNiArMTEwNyw3IEBACiBwcm9kdWN0IENZUFJFU1Mg Rk1SQURJTwkJMHgxMDAyCUZNIFJhZGlvCiBwcm9kdWN0IENZUFJFU1MgVVNCUlMyMzIJMHg1NTAw CVVTQi1SUzIzMiBJbnRlcmZhY2UKIHByb2R1Y3QgQ1lQUkVTUyBTTElNX0hVQgkweDY1NjAJU2xp bSBIdWIKK3Byb2R1Y3QgQ1lQUkVTUyBYWDY4MzBYWAkweDY4MzAJUEFUQSBTdG9yYWdlIERldmlj ZQogCiAvKiBEYWlzeSBUZWNobm9sb2d5IHByb2R1Y3RzICovCiBwcm9kdWN0IERBSVNZIERNQwkJ MHg2OTAxCVVTQiBNdWx0aU1lZGlhIFJlYWRlcgo= --000e0cd47e94b443d30469b6d42d-- From owner-freebsd-usb@FreeBSD.ORG Tue May 12 16:34:30 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 4AB71106564A for ; Tue, 12 May 2009 16:34:30 +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 F162E8FC15 for ; Tue, 12 May 2009 16:34:29 +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 n4CGYNeH029803 for ; Tue, 12 May 2009 17:34:23 +0100 (BST) Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1M3uvv-0004ci-H4 for freebsd-usb@FreeBSD.org; Tue, 12 May 2009 17:34:23 +0100 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n4CGYN5w008886 for ; Tue, 12 May 2009 17:34:23 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n4CGYNxu008885 for freebsd-usb@freebsd.org; Tue, 12 May 2009 17:34:23 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: freebsd-usb@FreeBSD.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 12 May 2009 17:34:22 +0100 Message-Id: <1242146062.5455.60.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: Subject: USB panic on 8.0/arm 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, 12 May 2009 16:34:30 -0000 Hi all, I have an NSLU2, which I am netbooting. I've been doing most of my work on it with USB removed from the kernel because the old stack would always panic. I've recently been trying the new USB stack, and have found that it still panics most of the time on boot. But not all the time. Firstly, please note that the version of Linux that was installed onto this hardware when I got it (not the factory installed OS, though) also seems to have problems most of the time with the USB controller, so I guess there is a chance that this is a hardware problem. That said, here are the symptoms: No USB in kernel, boots fine every time. New USB stack in the kernel: Just once, I've seen it probe and attach just fine. Here's proof: [snip] real memory = 33554432 (32 MB) avail memory = 25829376 (24 MB) ixp0: on motherboard ixp0: 37603 pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: irq 27 at device 1.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ehci0: irq 26 at device 1.2 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 ixpclk0: on ixp0 [snip] Every other time I've booted with USB compiled in, I'll get a panic: RedBoot> go KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #5: Fri May 8 16:28:01 BST 2009 root@buffy.york.ac.uk:/usr/obj/arm/usr/src-test/sys/NSLU CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core) DC enabled IC enabled WB enabled LABT branch prediction enabled 32KB/32B 32-way Instruction cache 32KB/32B 32-way write-back-locking Data cache real memory = 33554432 (32 MB) avail memory = 25829376 (24 MB) ixp0: on motherboard ixp0: 37603 pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [ITHREAD] Fatal kernel mode data abort: 'External Linefetch Abort (P)' trapframe: 0xc00fbafc FSR=00000406, FAR=Invalid, spsr=600000d3 r0 =c0ae4000, r1 =f8000000, r2 =00000034, r3 =c0ae407c r4 =00001270, r5 =00001278, r6 =00001274, r7 =00000003 r8 =00001140, r9 =c0ae5000, r10=00001140, r11=c00fbb88 r12=c0ae407c, ssp=c00fbb48, slr=c023c14c, pc =c023c148 [thread pid 0 tid 100000 ] Stopped at ohci_suspend+0x140c: ldr r15, [r3, #0x024] db> bt Tracing pid 0 tid 100000 td 0xc04fd110 db_trace_thread() at db_trace_thread+0xc scp=0xc041ee94 rlv=0xc0213778 (db_command_init+0x4c8) rsp=0xc00fb7f4 rfp=0xc00fb810 r10=0x00000001 r9=0xc0503bd8 r8=0xc04fa75c r7=0x00000062 r6=0x00000002 r5=0x00000010 r4=0xc04fd110 db_command_init() at db_command_init+0x3f0 scp=0xc02136a0 rlv=0xc0213008 (db_skip_to_eol+0x49c) rsp=0xc00fb814 rfp=0xc00fb8b8 r5=0x00000000 r4=0xc04cf0c0 db_skip_to_eol() at db_skip_to_eol+0x1d0 scp=0xc0212d3c rlv=0xc0213174 (db_command_loop+0x60) rsp=0xc00fb8bc rfp=0xc00fb8c8 r10=0x00000000 r8=0x00000406 r7=0xc00fbafc r6=0xc0503bd0 r5=0x600000d3 r4=0xc00fb8d4 db_command_loop() at db_command_loop+0xc scp=0xc0213120 rlv=0xc02153b0 (X_db_sym_numargs+0xf4) rsp=0xc00fb8cc rfp=0xc00fb9e8 X_db_sym_numargs() at X_db_sym_numargs+0x14 scp=0xc02152d0 rlv=0xc02cf8e8 (kdb_trap+0xa4) rsp=0xc00fb9ec rfp=0xc00fba14 r4=0x000000c0 kdb_trap() at kdb_trap+0xc scp=0xc02cf850 rlv=0xc042e844 (badaddr_read+0x280) rsp=0xc00fba18 rfp=0xc00fba34 r10=0xc00fbef8 r9=0x00000000 r8=0xc00fbafc r7=0x00000406 r6=0x00000000 r5=0x00000406 r4=0xc00fbafc badaddr_read() at badaddr_read+0xfc scp=0xc042e6c0 rlv=0xc042ec08 (prefetch_abort_handler+0x36c) rsp=0xc00fba38 rfp=0xc00fba58 r6=0xc04fd110 r5=0xc00fbef8 r4=0xc00fbafc prefetch_abort_handler() at prefetch_abort_handler+0x2a4 scp=0xc042eb40 rlv=0xc042edd4 (data_abort_handler+0x110) rsp=0xc00fba5c rfp=0xc00fbaf8 r7=0xc04fd110 r6=0x00001274 r5=0xffff1004 r4=0xc05189ec data_abort_handler() at data_abort_handler+0xc scp=0xc042ecd0 rlv=0xc04208dc (address_exception_entry+0x50) rsp=0xc00fbafc rfp=0xc00fbb88 r10=0x00001140 r9=0xc0ae5000 r8=0x00001140 r7=0x00000003 r6=0x00001274 r5=0xffff1004 r4=0x01070000 ohci_suspend() at ohci_suspend+0x1138 scp=0xc023be74 rlv=0xc023ccc0 (ohci_init+0x208) rsp=0xc00fbb8c rfp=0xc00fbbc4 r10=0x00001140 r9=0x00000006 r8=0x00001140 r7=0xc0ae5aa0 r6=0x00000000 r5=0xc0ae5000 r4=0x00000000 ohci_init() at ohci_init+0xc scp=0xc023cac4 rlv=0xc023e6ac (ohci_interrupt+0x1990) rsp=0xc00fbbc8 rfp=0xc00fbc00 r10=0xc0ae5aa0 r9=0x00000009 r8=0xc0a9ee80 r7=0xc0ae5000 r6=0x00001154 r5=0x00001150 r4=0x00001268 ohci_interrupt() at ohci_interrupt+0x1380 scp=0xc023e09c rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbc04 rfp=0xc00fbc40 r10=0xc0a9ee80 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9eecc r5=0x80000000 r4=0xc0ae2000 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbc44 rfp=0xc00fbc54 r10=0xc0ae2000 r8=0xffffffff r7=0xc02c8640 r6=0x00000000 r5=0x00000000 r4=0xc0a9ee80 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbc58 rfp=0xc00fbc68 r4=0xc0a9ee80 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc022a190 (pci_add_children+0x240) rsp=0xc00fbc6c rfp=0xc00fbc8c r4=0xc0ae2000 pci_add_children() at pci_add_children+0x154 scp=0xc022a0a4 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbc90 rfp=0xc00fbccc r6=0xc0ae204c r5=0x80000000 r4=0xc0a9d380 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbcd0 rfp=0xc00fbce0 r10=0xc0a9d380 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d380 r5=0xc0ae4000 r4=0xc0ae2000 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbce4 rfp=0xc00fbcf4 r4=0xc0ae2000 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0433f50 (cpu_initclocks+0x1104) rsp=0xc00fbcf8 rfp=0xc00fbd40 r4=0xffffffff cpu_initclocks() at cpu_initclocks+0xe3c scp=0xc0433c88 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbd44 rfp=0xc00fbd80 r6=0xc0a9d3cc r5=0x80000000 r4=0xc0a9d500 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbd84 rfp=0xc00fbd94 r10=0xc0a9d500 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d500 r5=0xc0a9d480 r4=0xc0a9d380 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbd98 rfp=0xc00fbda8 r4=0xc0a9d380 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0432be0 (arm_unmask_irq+0x894) rsp=0xc00fbdac rfp=0xc00fbdec r4=0xc0a9d500 arm_unmask_irq() at arm_unmask_irq+0x534 scp=0xc0432880 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbdf0 rfp=0xc00fbe2c r6=0xc0a9d54c r5=0x80000000 r4=0xc0a9d680 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbe30 rfp=0xc00fbe40 r10=0xc0a9d680 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d6cc r5=0x80000000 r4=0xc0a9d500 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbe44 rfp=0xc00fbe54 r4=0xc0a9d500 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0423594 (minidumpsys+0xb18) rsp=0xc00fbe58 rfp=0xc00fbe68 r4=0xc0a9d680 minidumpsys() at minidumpsys+0xb08 scp=0xc0423584 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbe6c rfp=0xc00fbea8 r4=0xc048f730 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbeac rfp=0xc00fbebc r10=0x0000000a r8=0x00000000 r7=0x00200198 r6=0x00000006 r5=0x002001a4 r4=0xc0a9d680 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cac2c (root_bus_configure+0x28) rsp=0xc00fbec0 rfp=0xc00fbed0 r4=0xc0a9d680 root_bus_configure() at root_bus_configure+0xc scp=0xc02cac10 rlv=0xc0419e48 (xdr_sizeof+0x1d0) rsp=0xc00fbed4 rfp=0xc00fbee0 r4=0xc0491d3c xdr_sizeof() at xdr_sizeof+0x1cc scp=0xc0419e44 rlv=0xc0274d28 (mi_startup+0xdc) rsp=0xc00fbee4 rfp=0xc00fbef4 mi_startup() at mi_startup+0xc scp=0xc0274c58 rlv=0xc020023c (btext+0x13c) rsp=0xc00fbef8 rfp=0x00000000 r4=0x0020027c db> Any suggestions as to what I can test or how I can get any useful information? Thanks, Gavin From owner-freebsd-usb@FreeBSD.ORG Tue May 12 16:52: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 5AC72106566B for ; Tue, 12 May 2009 16:52:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 7C4CE8FC16 for ; Tue, 12 May 2009 16:52:46 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=5ZE50VWpAAAA:8 a=C10Ik_IzPETUoCFQCvcA:9 a=dUDoGX0R8fsMdM8FZdEA:7 a=EJH9RtdDq0-_K7Hc6rfenw3uSjUA:4 a=jGYXrj7kSE0T3Q1W:21 a=FhpE7M40QBRrq_IO:21 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1239998136; Tue, 12 May 2009 18:52:44 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 12 May 2009 18:55:18 +0200 User-Agent: KMail/1.9.7 References: <1242146062.5455.60.camel@buffy.york.ac.uk> In-Reply-To: <1242146062.5455.60.camel@buffy.york.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905121855.19123.hselasky@c2i.net> Cc: Gavin Atkinson Subject: Re: USB panic on 8.0/arm 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, 12 May 2009 16:52:47 -0000 On Tuesday 12 May 2009, Gavin Atkinson wrote: > Hi all, > > I have an NSLU2, which I am netbooting. I've been doing most of my work > on it with USB removed from the kernel because the old stack would > always panic. I've recently been trying the new USB stack, and have > found that it still panics most of the time on boot. But not all the > time. > > Firstly, please note that the version of Linux that was installed onto > this hardware when I got it (not the factory installed OS, though) also > seems to have problems most of the time with the USB controller, so I > guess there is a chance that this is a hardware problem. > > That said, here are the symptoms: No USB in kernel, boots fine every > time. > > New USB stack in the kernel: Just once, I've seen it probe and attach > just fine. Here's proof: > > [snip] > real memory = 33554432 (32 MB) > avail memory = 25829376 (24 MB) > ixp0: on motherboard > ixp0: 37603 > pcib0: on ixp0 > pci0: on pcib0 > ohci0: irq 28 at device 1.0 on pci0 > ohci0: [ITHREAD] > usbus0: on ohci0 > ohci1: irq 27 at device 1.1 on pci0 > ohci1: [ITHREAD] > usbus1: on ohci1 > ehci0: irq 26 at device 1.2 on pci0 > ehci0: [ITHREAD] > usbus2: EHCI version 1.0 > usbus2: on ehci0 > ixpclk0: on ixp0 > [snip] > > Every other time I've booted with USB compiled in, I'll get a panic: > > RedBoot> go > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #5: Fri May 8 16:28:01 BST 2009 > root@buffy.york.ac.uk:/usr/obj/arm/usr/src-test/sys/NSLU > CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core) > DC enabled IC enabled WB enabled LABT branch prediction enabled > 32KB/32B 32-way Instruction cache > 32KB/32B 32-way write-back-locking Data cache > real memory = 33554432 (32 MB) > avail memory = 25829376 (24 MB) > ixp0: on motherboard > ixp0: 37603 > pcib0: on ixp0 > pci0: on pcib0 > ohci0: irq 28 at device 1.0 on pci0 > ohci0: [ITHREAD] > Fatal kernel mode data abort: 'External Linefetch Abort (P)' > trapframe: 0xc00fbafc > FSR=00000406, FAR=Invalid, spsr=600000d3 > r0 =c0ae4000, r1 =f8000000, r2 =00000034, r3 =c0ae407c > r4 =00001270, r5 =00001278, r6 =00001274, r7 =00000003 > r8 =00001140, r9 =c0ae5000, r10=00001140, r11=c00fbb88 > r12=c0ae407c, ssp=c00fbb48, slr=c023c14c, pc =c023c148 > > [thread pid 0 tid 100000 ] > Stopped at ohci_suspend+0x140c: ldr r15, [r3, #0x024] > db> bt > Tracing pid 0 tid 100000 td 0xc04fd110 > db_trace_thread() at db_trace_thread+0xc > scp=0xc041ee94 rlv=0xc0213778 (db_command_init+0x4c8) > rsp=0xc00fb7f4 rfp=0xc00fb810 > r10=0x00000001 r9=0xc0503bd8 > r8=0xc04fa75c r7=0x00000062 r6=0x00000002 r5=0x00000010 > r4=0xc04fd110 > db_command_init() at db_command_init+0x3f0 > scp=0xc02136a0 rlv=0xc0213008 (db_skip_to_eol+0x49c) > rsp=0xc00fb814 rfp=0xc00fb8b8 > r5=0x00000000 r4=0xc04cf0c0 > db_skip_to_eol() at db_skip_to_eol+0x1d0 > scp=0xc0212d3c rlv=0xc0213174 (db_command_loop+0x60) > rsp=0xc00fb8bc rfp=0xc00fb8c8 > r10=0x00000000 r8=0x00000406 > r7=0xc00fbafc r6=0xc0503bd0 r5=0x600000d3 r4=0xc00fb8d4 > db_command_loop() at db_command_loop+0xc > scp=0xc0213120 rlv=0xc02153b0 (X_db_sym_numargs+0xf4) > rsp=0xc00fb8cc rfp=0xc00fb9e8 > X_db_sym_numargs() at X_db_sym_numargs+0x14 > scp=0xc02152d0 rlv=0xc02cf8e8 (kdb_trap+0xa4) > rsp=0xc00fb9ec rfp=0xc00fba14 > r4=0x000000c0 > kdb_trap() at kdb_trap+0xc > scp=0xc02cf850 rlv=0xc042e844 (badaddr_read+0x280) > rsp=0xc00fba18 rfp=0xc00fba34 > r10=0xc00fbef8 r9=0x00000000 > r8=0xc00fbafc r7=0x00000406 r6=0x00000000 r5=0x00000406 > r4=0xc00fbafc > badaddr_read() at badaddr_read+0xfc > scp=0xc042e6c0 rlv=0xc042ec08 (prefetch_abort_handler+0x36c) > rsp=0xc00fba38 rfp=0xc00fba58 > r6=0xc04fd110 r5=0xc00fbef8 > r4=0xc00fbafc > prefetch_abort_handler() at prefetch_abort_handler+0x2a4 > scp=0xc042eb40 rlv=0xc042edd4 (data_abort_handler+0x110) > rsp=0xc00fba5c rfp=0xc00fbaf8 > r7=0xc04fd110 r6=0x00001274 > r5=0xffff1004 r4=0xc05189ec > data_abort_handler() at data_abort_handler+0xc > scp=0xc042ecd0 rlv=0xc04208dc (address_exception_entry+0x50) > rsp=0xc00fbafc rfp=0xc00fbb88 > r10=0x00001140 r9=0xc0ae5000 > r8=0x00001140 r7=0x00000003 r6=0x00001274 r5=0xffff1004 > r4=0x01070000 > ohci_suspend() at ohci_suspend+0x1138 > scp=0xc023be74 rlv=0xc023ccc0 (ohci_init+0x208) > rsp=0xc00fbb8c rfp=0xc00fbbc4 > r10=0x00001140 r9=0x00000006 > r8=0x00001140 r7=0xc0ae5aa0 r6=0x00000000 r5=0xc0ae5000 > r4=0x00000000 > ohci_init() at ohci_init+0xc > scp=0xc023cac4 rlv=0xc023e6ac (ohci_interrupt+0x1990) > rsp=0xc00fbbc8 rfp=0xc00fbc00 > r10=0xc0ae5aa0 r9=0x00000009 > r8=0xc0a9ee80 r7=0xc0ae5000 r6=0x00001154 r5=0x00001150 > r4=0x00001268 > ohci_interrupt() at ohci_interrupt+0x1380 > scp=0xc023e09c rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbc04 rfp=0xc00fbc40 > r10=0xc0a9ee80 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9eecc r5=0x80000000 r4=0xc0ae2000 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbc44 rfp=0xc00fbc54 > r10=0xc0ae2000 r8=0xffffffff > r7=0xc02c8640 r6=0x00000000 r5=0x00000000 r4=0xc0a9ee80 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbc58 rfp=0xc00fbc68 > r4=0xc0a9ee80 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc022a190 (pci_add_children+0x240) > rsp=0xc00fbc6c rfp=0xc00fbc8c > r4=0xc0ae2000 > pci_add_children() at pci_add_children+0x154 > scp=0xc022a0a4 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbc90 rfp=0xc00fbccc > r6=0xc0ae204c r5=0x80000000 > r4=0xc0a9d380 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbcd0 rfp=0xc00fbce0 > r10=0xc0a9d380 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d380 r5=0xc0ae4000 r4=0xc0ae2000 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbce4 rfp=0xc00fbcf4 > r4=0xc0ae2000 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0433f50 (cpu_initclocks+0x1104) > rsp=0xc00fbcf8 rfp=0xc00fbd40 > r4=0xffffffff > cpu_initclocks() at cpu_initclocks+0xe3c > scp=0xc0433c88 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbd44 rfp=0xc00fbd80 > r6=0xc0a9d3cc r5=0x80000000 > r4=0xc0a9d500 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbd84 rfp=0xc00fbd94 > r10=0xc0a9d500 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d500 r5=0xc0a9d480 r4=0xc0a9d380 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbd98 rfp=0xc00fbda8 > r4=0xc0a9d380 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0432be0 (arm_unmask_irq+0x894) > rsp=0xc00fbdac rfp=0xc00fbdec > r4=0xc0a9d500 > arm_unmask_irq() at arm_unmask_irq+0x534 > scp=0xc0432880 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbdf0 rfp=0xc00fbe2c > r6=0xc0a9d54c r5=0x80000000 > r4=0xc0a9d680 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbe30 rfp=0xc00fbe40 > r10=0xc0a9d680 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d6cc r5=0x80000000 r4=0xc0a9d500 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbe44 rfp=0xc00fbe54 > r4=0xc0a9d500 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0423594 (minidumpsys+0xb18) > rsp=0xc00fbe58 rfp=0xc00fbe68 > r4=0xc0a9d680 > minidumpsys() at minidumpsys+0xb08 > scp=0xc0423584 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbe6c rfp=0xc00fbea8 > r4=0xc048f730 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbeac rfp=0xc00fbebc > r10=0x0000000a r8=0x00000000 > r7=0x00200198 r6=0x00000006 r5=0x002001a4 r4=0xc0a9d680 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cac2c (root_bus_configure+0x28) > rsp=0xc00fbec0 rfp=0xc00fbed0 > r4=0xc0a9d680 > root_bus_configure() at root_bus_configure+0xc > scp=0xc02cac10 rlv=0xc0419e48 (xdr_sizeof+0x1d0) > rsp=0xc00fbed4 rfp=0xc00fbee0 > r4=0xc0491d3c > xdr_sizeof() at xdr_sizeof+0x1cc > scp=0xc0419e44 rlv=0xc0274d28 (mi_startup+0xdc) > rsp=0xc00fbee4 rfp=0xc00fbef4 > mi_startup() at mi_startup+0xc > scp=0xc0274c58 rlv=0xc020023c (btext+0x13c) > rsp=0xc00fbef8 rfp=0x00000000 > r4=0x0020027c > db> > > Any suggestions as to what I can test or how I can get any useful > information? > In : src/sys/dev/usb/controller/ohci_pci.c Can you try to move the pci busmaster enable call further down in the attach routine, until the I/O resources are setup, then add before enable busmaster: #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) #define OWRITE1(sc, r, x) \ do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ I'm not sure if it helps. It's just a guess. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 12 20:34:57 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 0590C106564A for ; Tue, 12 May 2009 20:34:57 +0000 (UTC) (envelope-from gavin@freebsd.org) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.freebsd.org (Postfix) with ESMTP id 7231A8FC22 for ; Tue, 12 May 2009 20:34:56 +0000 (UTC) (envelope-from gavin@freebsd.org) Received: from mail-gw7.york.ac.uk (mail-gw7.york.ac.uk [144.32.129.30]) by mail-gw1.york.ac.uk (8.13.6/8.13.6) with ESMTP id n4CKYpfx009587; Tue, 12 May 2009 21:34:51 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw7.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1M3ygd-0007kH-3A; Tue, 12 May 2009 21:34:51 +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 n4CKYoN9028037; Tue, 12 May 2009 21:34:50 +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 n4CKYoxY028034; Tue, 12 May 2009 21:34:50 +0100 (BST) (envelope-from gavin@freebsd.org) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Tue, 12 May 2009 21:34:50 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Hans Petter Selasky In-Reply-To: <200905121855.19123.hselasky@c2i.net> Message-ID: <20090512212821.G15689@ury.york.ac.uk> References: <1242146062.5455.60.camel@buffy.york.ac.uk> <200905121855.19123.hselasky@c2i.net> 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 panic on 8.0/arm 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, 12 May 2009 20:34:57 -0000 On Tue, 12 May 2009, Hans Petter Selasky wrote: > On Tuesday 12 May 2009, Gavin Atkinson wrote: >> Hi all, >> >> I have an NSLU2, which I am netbooting. I've been doing most of my work >> on it with USB removed from the kernel because the old stack would >> always panic. I've recently been trying the new USB stack, and have >> found that it still panics most of the time on boot. But not all the >> time. > In : > > src/sys/dev/usb/controller/ohci_pci.c > > Can you try to move the pci busmaster enable call further down in the attach > routine, until the I/O resources are setup, then add before enable busmaster: > > #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, > (sc)->sc_io_size, \ > BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) > #define OWRITE1(sc, r, x) \ > do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), > (x)); } while (0) > > OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ > > I'm not sure if it helps. It's just a guess. I'm assuming you meant to use the "OWRITE4" macro rather than OWRITE1 as that's what is used when accessing that register everywhere else. Assuming that is the case, I'm afraid the patch (below) makes no difference. Any other ideas? Thanks, Gavin Index: src-head/sys/dev/usb/controller/ohci_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/controller/ohci_pci.c,v retrieving revision 1.5 diff -u -r1.5 ohci_pci.c --- src-head/sys/dev/usb/controller/ohci_pci.c 6 Apr 2009 00:32:54 -0000 1.5 +++ src-head/sys/dev/usb/controller/ohci_pci.c 12 May 2009 20:24:00 -0000 @@ -205,7 +205,7 @@ } sc->sc_dev = self; - pci_enable_busmaster(self); +/* pci_enable_busmaster(self); */ /* * Some Sun PCIO-2 USB controllers have their intpin register @@ -239,6 +239,17 @@ } device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); + +#define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ + BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) +#define OWRITE4(sc, r, x) \ + do { OBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) + + OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ + + pci_enable_busmaster(self); + + /* * ohci_pci_match will never return NULL if ohci_pci_probe * succeeded From owner-freebsd-usb@FreeBSD.ORG Tue May 12 21:51:38 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 E906B1065687; Tue, 12 May 2009 21:51:38 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD6A18FC17; Tue, 12 May 2009 21:51:38 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (edwin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4CLpchw059529; Tue, 12 May 2009 21:51:38 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4CLpcIH059454; Tue, 12 May 2009 21:51:38 GMT (envelope-from edwin) Date: Tue, 12 May 2009 21:51:38 GMT Message-Id: <200905122151.n4CLpcIH059454@freefall.freebsd.org> To: edwin@mavetju.org, edwin@FreeBSD.org, freebsd-usb@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 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, 12 May 2009 21:51:39 -0000 Synopsis: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem State-Changed-From-To: open->closed State-Changed-By: edwin State-Changed-When: Tue May 12 21:51:02 UTC 2009 State-Changed-Why: Huawei E220 and E169 now work with u3g in 7.2 http://www.freebsd.org/cgi/query-pr.cgi?pr=118686 From owner-freebsd-usb@FreeBSD.ORG Wed May 13 20:10:04 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 90C59106566B for ; Wed, 13 May 2009 20:10:04 +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 659208FC1F for ; Wed, 13 May 2009 20:10:04 +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 n4DKA4rq095690 for ; Wed, 13 May 2009 20:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4DKA4Md095688; Wed, 13 May 2009 20:10:04 GMT (envelope-from gnats) Date: Wed, 13 May 2009 20:10:04 GMT Message-Id: <200905132010.n4DKA4Md095688@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Boris Kochergin Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Kochergin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 20:10:04 -0000 The following reply was made to PR usb/130230; it has been noted by GNATS. From: Boris Kochergin To: Tino Engel Cc: bug-followup@FreeBSD.org Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 13 May 2009 16:01:19 -0400 The patches, applied to 7.2-RELEASE sources by hand, allow my YP-U3 to work again. Thanks! From owner-freebsd-usb@FreeBSD.ORG Thu May 14 04:40:04 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 65692106566C for ; Thu, 14 May 2009 04:40:04 +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 5081B8FC0A for ; Thu, 14 May 2009 04:40:04 +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 n4E4e4UP083168 for ; Thu, 14 May 2009 04:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4E4e4pQ083167; Thu, 14 May 2009 04:40:04 GMT (envelope-from gnats) Date: Thu, 14 May 2009 04:40:04 GMT Message-Id: <200905140440.n4E4e4pQ083167@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "David Roberts" Cc: Subject: Re: usb/62123: [usb] LaCie 160GB USB drive umass: BBB reset failed, TIMEOUT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Roberts List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 04:40:04 -0000 The following reply was made to PR usb/62123; it has been noted by GNATS. From: "David Roberts" To: , Cc: Subject: Re: usb/62123: [usb] LaCie 160GB USB drive umass: BBB reset failed, TIMEOUT Date: Wed, 13 May 2009 21:22:53 -0700 This is a multipart message in MIME format. ------=_NextPart_000_0001_01C9D410.FA96C580 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am running FreeBSD 6.3 and experiencing the same symptoms as this bug. Have a Lacie USB2 drive connected into a USB2 5-port PCI card. Mounting using this fstab entry /dev/da0s1 /Lilun ntfs-3g rw 0 0 and get May 13 21:07:10 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:12:15 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:12:15 crux kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 May 13 21:13:20 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:14:25 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:15:30 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:16:35 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:17:40 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:18:50 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:20:00 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:21:05 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT ------=_NextPart_000_0001_01C9D410.FA96C580 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 I am running FreeBSD 6.3 and experiencing the = same symptoms as this bug.  Have a Lacie USB2 drive connected into a USB2 5-port = PCI card.  Mounting using

 

this fstab entry

 

/dev/da0s1       &nb= sp;      = /Lilun          ntfs-3g rw            = ;  0       0

 

and get

 

 

 

May 13 21:07:10 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:12:15 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:12:15 crux kernel: = (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, scsi status =3D=3D = 0x0

May 13 21:13:20 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:14:25 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:15:30 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:16:35 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:17:40 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:18:50 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:20:00 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:21:05 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

------=_NextPart_000_0001_01C9D410.FA96C580-- From owner-freebsd-usb@FreeBSD.ORG Thu May 14 10:30:03 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 A9A571065679 for ; Thu, 14 May 2009 10:30:03 +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 7D3F68FC13 for ; Thu, 14 May 2009 10:30:03 +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 n4EAU368091035 for ; Thu, 14 May 2009 10:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4EAU3JJ091032; Thu, 14 May 2009 10:30:03 GMT (envelope-from gnats) Date: Thu, 14 May 2009 10:30:03 GMT Message-Id: <200905141030.n4EAU3JJ091032@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Rick van der Zwet Cc: Subject: Re: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rick van der Zwet List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2009 10:30:04 -0000 The following reply was made to PR usb/132785; it has been noted by GNATS. From: Rick van der Zwet To: bug-followup@FreeBSD.org, dirkx@webweaving.org Cc: Subject: Re: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen Date: Thu, 14 May 2009 12:19:43 +0200 Patch is also working fine against RELENG_7_2 with the device Genbird SIS-PM. The SIS-PMS-LAN is incorrectly quoted as that got nothing to do with the patch as it has an RJ45 Ethernet connection, instead of a USB connection. /Rick -- http://rickvanderzwet.nl From owner-freebsd-usb@FreeBSD.ORG Fri May 15 01:14: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 33769106566C for ; Fri, 15 May 2009 01:14:17 +0000 (UTC) (envelope-from daimler3@googlemail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id B89A48FC16 for ; Fri, 15 May 2009 01:14:16 +0000 (UTC) (envelope-from daimler3@googlemail.com) Received: by ewy3 with SMTP id 3so2004136ewy.43 for ; Thu, 14 May 2009 18:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=d0UMgxPs6b8pqVjozAizvGTuJa2fSukt66RTnGNXIcI=; b=DfNYwiyLGyTtDTAZa3HYBaYxM98ZQkvdiX1HUaI2wmEgkKA8QlYchCWFnxsOeOZ7lR 2dgxr31fivI2gME5kApDwj+KPIsARshfCUL9E98lD9ArN+VT8ckxcIQw3iJ0BfFYUymJ 7/zKzxHwAhqCFi2Z6Hzulqs1Fjzoo3Wg5qPjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=B+tKcAmtfmwrIILzSwj3qm8LvGH5mBGJncUUnJikQwQa1WCSiSzwC0ENeGnl1PGRKd WgFqho2jK9ugiOS/IA6CUpJEXCaRmjLXkWz8H09FELWs+KD2UHA5QcpE4SlX996m+VFv EbcwqWNIr1eL/776yIiFsjKwT+QEmtOs+ox3Q= MIME-Version: 1.0 Received: by 10.216.50.76 with SMTP id y54mr1066571web.70.1242350055832; Thu, 14 May 2009 18:14:15 -0700 (PDT) In-Reply-To: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> References: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> Date: Fri, 15 May 2009 01:14:15 +0000 Message-ID: <791271c80905141814n5eb31d54je47531f1d7de83e2@mail.gmail.com> From: Deniz To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: [problem]: unexpected endpoint with Sony PS3 Controller 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, 15 May 2009 01:14:17 -0000 2009/5/15 Deniz > .... > I forgot to mention that I run FreeBSD 7.2 Stable (if anyone cares ;)) Thanks, Deniz Sarikaya From owner-freebsd-usb@FreeBSD.ORG Fri May 15 01:27:25 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 BEBEB1065670 for ; Fri, 15 May 2009 01:27:25 +0000 (UTC) (envelope-from daimler3@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 52A718FC13 for ; Fri, 15 May 2009 01:27:25 +0000 (UTC) (envelope-from daimler3@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so532599eyd.7 for ; Thu, 14 May 2009 18:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ck1NtKrMsKRRZz7/tkqNyWSCiphqEAKljx1rgwzD4Ao=; b=rnlLf0BEVW29iZMeiSp9u5VZ66qFhspaXKTTQZUUbAuSe3tYunIAKFkCDz9xF5EYFz ntSwnY2epQOOBfuFLf9U8/bR998I8YX5/cdTFMAi4z38d0AXQcz4uhTVdd7HkjXBP9mg zoxOMo//J3Q1EKrp2O9IMY5IkQ9165Ky8eEZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SxV4WXV3EVqE0qxYu4re+Ldg3HuL07bZE372WoTGZ4PPHPK8adV7Ijr8FhyeyEej7f QZqBTGOD9tPvusg+4Pku9XQY/6XiO58VnKVoos5Y+sijkVhv4CkNOOudMxzRC8IY83gv /081HDw6C0rzZCzrJElXHqpo+GKGq7QLsvB1E= MIME-Version: 1.0 Received: by 10.216.3.70 with SMTP id 48mr1061694weg.74.1242348924386; Thu, 14 May 2009 17:55:24 -0700 (PDT) Date: Fri, 15 May 2009 00:55:23 +0000 Message-ID: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> From: Deniz To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [problem]: unexpected endpoint with Sony PS3 Controller 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, 15 May 2009 01:27:26 -0000 Hey guys, my problem is that I cannot connect the Playstation 3 Controller (I'm using the old one ("Sixaxis")) to my PC running FreeBSD 7.2 Stable and then use it. This is the output of dmesg: uhid0: on uhub0 uhid0: unexpected endpoint device_attach: uhid0 attach returned 6 Sony released a Linux Kernel Patch which adds a quirk for the Controller back in January 2007. (Linux now has even BT support, but I think that this has lower priority since BT support depends on USB support), I would add USB support for it, but neither do I know if the patch has something to do with the 'unexpected endpoint' error nor do I have the knowledge to accomplish this 'mission' :). That means I do know C, but I don't know where to add the few lines (actually about 25 lines) from the patch. So, it would be nice if someone would help me to do that. :) btw: Why is there such a bad joystick support? The BSD joystick driver only supports 2 buttons and 2 axis. Thanks, Deniz Sarikaya From owner-freebsd-usb@FreeBSD.ORG Fri May 15 17:13:12 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 2ABF21065690 for ; Fri, 15 May 2009 17:13:12 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtpfb1-g21.free.fr (smtpfb1-g21.free.fr [212.27.42.9]) by mx1.freebsd.org (Postfix) with ESMTP id 87A3C8FC1E for ; Fri, 15 May 2009 17:13:09 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id 806BE77D9CA for ; Fri, 15 May 2009 18:57:37 +0200 (CEST) Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id 286828181E7 for ; Fri, 15 May 2009 18:57:31 +0200 (CEST) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp3-g21.free.fr (Postfix) with ESMTP id 22597818045 for ; Fri, 15 May 2009 18:57:29 +0200 (CEST) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id n4FGvRr5007123 for ; Fri, 15 May 2009 18:57:27 +0200 (CEST) From: Thierry Herbelot To: freebsd-usb@freebsd.org Date: Fri, 15 May 2009 18:57:20 +0200 User-Agent: KMail/1.9.10 X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905151857.21361.thierry.herbelot@free.fr> Subject: Asynchronous bulk transfers in usb2 ? 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, 15 May 2009 17:13:12 -0000 Hello, This is a follow-on for : http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, where a code snippet was posted to use the new USB stack. I've just recompiled my old experiment (which used to work at the time), and it does not seem to work with today's current (I made the cosmetic changes due to the change of name for the libusb, so the compile at least is OK). the issue is that the following loop (copied from the previous archived post) is never executed : -------------------- while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) { ddesc = libusb20_dev_get_device_desc ( pdev ); printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); /* stop with the first found device */ if ( ddesc->idVendor == MY_VENDOR_ID ) { libusb20_be_dequeue_device ( pbe, pdev ); break; } } -------------------- pdev is always NULL at the end of the loop (even though a USB device has been plugged, has been detected by the USB stack and is correctly seen, as per usbconfig, with the expected idVendor). I have not followed the recent developments on the USB stack : maybe some change is needed in my code ? Cheers TfH From owner-freebsd-usb@FreeBSD.ORG Fri May 15 19:04: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 7052F1065675 for ; Fri, 15 May 2009 19:04:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swipnet.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 005F78FC0C for ; Fri, 15 May 2009 19:04:15 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=X_LqtxM5jtcA:10 a=HnXr4FIqdIEA:10 a=Vt2AcnKqAAAA:8 a=6I5d2MoRAAAA:8 a=O3R196i96WQiYk51UyAA:9 a=8qgY1-9ZM-uKak_Gzk0gao6l7hMA:4 a=ZBfBvALOrwAA:10 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 495671063; Fri, 15 May 2009 21:04:14 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 15 May 2009 21:06:47 +0200 User-Agent: KMail/1.9.7 References: <200905151857.21361.thierry.herbelot@free.fr> In-Reply-To: <200905151857.21361.thierry.herbelot@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905152106.48104.hselasky@c2i.net> Cc: Thierry Herbelot Subject: Re: Asynchronous bulk transfers in usb2 ? 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, 15 May 2009 19:04:16 -0000 On Friday 15 May 2009, Thierry Herbelot wrote: > Hello, > > This is a follow-on for : > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, > where a code snippet was posted to use the new USB stack. > > I've just recompiled my old experiment (which used to work at the time), > and it does not seem to work with today's current (I made the cosmetic > changes due to the change of name for the libusb, so the compile at least > is OK). > > the issue is that the following loop (copied from the previous archived > post) is never executed : > -------------------- > while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) > { > ddesc = libusb20_dev_get_device_desc ( pdev ); > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); > > /* stop with the first found device */ > if ( ddesc->idVendor == MY_VENDOR_ID ) > { > libusb20_be_dequeue_device ( pbe, pdev ); > break; > } > } > -------------------- > > pdev is always NULL at the end of the loop (even though a USB device has > been plugged, has been detected by the USB stack and is correctly seen, as > per usbconfig, with the expected idVendor). > > I have not followed the recent developments on the USB stack : maybe some > change is needed in my code ? Check permissions for devices under /dev/usb --HPS From owner-freebsd-usb@FreeBSD.ORG Fri May 15 19:19:25 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 5DC1E1065670 for ; Fri, 15 May 2009 19:19:25 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by mx1.freebsd.org (Postfix) with ESMTP id EC9928FC13 for ; Fri, 15 May 2009 19:19:23 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 0E7414C815B for ; Fri, 15 May 2009 21:19:19 +0200 (CEST) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp4-g21.free.fr (Postfix) with ESMTP id 052364C80C2 for ; Fri, 15 May 2009 21:19:16 +0200 (CEST) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id n4FJJDaR001945; Fri, 15 May 2009 21:19:13 +0200 (CEST) From: Thierry Herbelot To: Hans Petter Selasky Date: Fri, 15 May 2009 21:19:07 +0200 User-Agent: KMail/1.9.10 References: <200905151857.21361.thierry.herbelot@free.fr> <200905152106.48104.hselasky@c2i.net> In-Reply-To: <200905152106.48104.hselasky@c2i.net> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200905152119.07569.thierry.herbelot@free.fr> Cc: freebsd-usb@freebsd.org Subject: Re: Asynchronous bulk transfers in usb2 ? 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, 15 May 2009 19:19:25 -0000 Le Friday 15 May 2009, Hans Petter Selasky a écrit : > On Friday 15 May 2009, Thierry Herbelot wrote: > > Hello, > > > > This is a follow-on for : > > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, > > where a code snippet was posted to use the new USB stack. > > > > I've just recompiled my old experiment (which used to work at the time), > > and it does not seem to work with today's current (I made the cosmetic > > changes due to the change of name for the libusb, so the compile at least > > is OK). > > > > the issue is that the following loop (copied from the previous archived > > post) is never executed : > > -------------------- > > while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) > > { > > ddesc = libusb20_dev_get_device_desc ( pdev ); > > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); > > > > /* stop with the first found device */ > > if ( ddesc->idVendor == MY_VENDOR_ID ) > > { > > libusb20_be_dequeue_device ( pbe, pdev ); > > break; > > } > > } > > -------------------- > > > > pdev is always NULL at the end of the loop (even though a USB device has > > been plugged, has been detected by the USB stack and is correctly seen, > > as per usbconfig, with the expected idVendor). > > > > I have not followed the recent developments on the USB stack : maybe some > > change is needed in my code ? > > Check permissions for devices under /dev/usb *blush* (this is indeed the reason) but .... this used to work ;-) (maybe it did no longer work after the device nodes were added for the USB devices) what is the recommended way to change the permissions for the usb device nodes ? (with devd ?) in the meantime, I'll try to run from root ... Thanks TfH > > --HPS From owner-freebsd-usb@FreeBSD.ORG Fri May 15 19:31:12 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 7E2DA1065675 for ; Fri, 15 May 2009 19:31:12 +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 1FE9D8FC1D for ; Fri, 15 May 2009 19:31:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n4FJUQvA069955; Fri, 15 May 2009 13:30:26 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 15 May 2009 13:30:35 -0600 (MDT) Message-Id: <20090515.133035.452788619.imp@bsdimp.com> To: thierry.herbelot@free.fr From: "M. Warner Losh" In-Reply-To: <200905152119.07569.thierry.herbelot@free.fr> References: <200905151857.21361.thierry.herbelot@free.fr> <200905152106.48104.hselasky@c2i.net> <200905152119.07569.thierry.herbelot@free.fr> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@FreeBSD.org Subject: Re: Asynchronous bulk transfers in usb2 ? 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, 15 May 2009 19:31:12 -0000 In message: <200905152119.07569.thierry.herbelot@free.fr> Thierry Herbelot writes: : Le Friday 15 May 2009, Hans Petter Selasky a =E9crit : : > On Friday 15 May 2009, Thierry Herbelot wrote: : > > Hello, : > > : > > This is a follow-on for : : > > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.ht= ml, : > > where a code snippet was posted to use the new USB stack. : > > : > > I've just recompiled my old experiment (which used to work at the= time), : > > and it does not seem to work with today's current (I made the cos= metic : > > changes due to the change of name for the libusb, so the compile = at least : > > is OK). : > > : > > the issue is that the following loop (copied from the previous ar= chived : > > post) is never executed : : > > -------------------- : > > while ( ( pdev =3D libusb20_be_device_foreach ( pbe, pdev ) ) ) : > > { : > > ddesc =3D libusb20_dev_get_device_desc ( pdev ); : > > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct= ); : > > : > > /* stop with the first found device */ : > > if ( ddesc->idVendor =3D=3D MY_VENDOR_ID ) : > > { : > > libusb20_be_dequeue_device ( pbe, pdev ); : > > break; : > > } : > > } : > > -------------------- : > > : > > pdev is always NULL at the end of the loop (even though a USB dev= ice has : > > been plugged, has been detected by the USB stack and is correctly= seen, : > > as per usbconfig, with the expected idVendor). : > > : > > I have not followed the recent developments on the USB stack : ma= ybe some : > > change is needed in my code ? : > : > Check permissions for devices under /dev/usb : = : *blush* (this is indeed the reason) : = : but .... this used to work ;-) (maybe it did no longer work after the= device = : nodes were added for the USB devices) : = : what is the recommended way to change the permissions for the usb dev= ice = : nodes ? (with devd ?) : = : in the meantime, I'll try to run from root ... I use devfs.rules: [localrules=3D10] add path 'usb/*' mode 0660 and put my trusted to use usb users into group operator. Warner From owner-freebsd-usb@FreeBSD.ORG Fri May 15 19:45:36 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 BF7B9106564A for ; Fri, 15 May 2009 19:45:36 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3379B8FC1B for ; Fri, 15 May 2009 19:45:34 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp5-g21.free.fr (localhost [127.0.0.1]) by smtp5-g21.free.fr (Postfix) with ESMTP id 3E5BCD480DD for ; Fri, 15 May 2009 21:45:30 +0200 (CEST) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp5-g21.free.fr (Postfix) with ESMTP id 05F3ED480C8 for ; Fri, 15 May 2009 21:45:27 +0200 (CEST) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id n4FJjEBG031966; Fri, 15 May 2009 21:45:15 +0200 (CEST) From: Thierry Herbelot To: "M. Warner Losh" Date: Fri, 15 May 2009 21:45:08 +0200 User-Agent: KMail/1.9.10 References: <200905151857.21361.thierry.herbelot@free.fr> <200905152119.07569.thierry.herbelot@free.fr> <20090515.133035.452788619.imp@bsdimp.com> In-Reply-To: <20090515.133035.452788619.imp@bsdimp.com> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200905152145.09417.thierry.herbelot@free.fr> Cc: freebsd-usb@freebsd.org Subject: Re: Asynchronous bulk transfers in usb2 ? 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, 15 May 2009 19:45:37 -0000 Le Friday 15 May 2009, M. Warner Losh a écrit : > In message: <200905152119.07569.thierry.herbelot@free.fr> > [SNIP] > : > > > : > > I have not followed the recent developments on the USB stack : maybe > : > > some change is needed in my code ? > : > > : > Check permissions for devices under /dev/usb > : > : *blush* (this is indeed the reason) > : > : but .... this used to work ;-) (maybe it did no longer work after the > : device nodes were added for the USB devices) > : > : what is the recommended way to change the permissions for the usb device > : nodes ? (with devd ?) > : > : in the meantime, I'll try to run from root ... > > I use devfs.rules: > > [localrules=10] > add path 'usb/*' mode 0660 > > and put my trusted to use usb users into group operator. OK : fine I'll do it this way then, I'll investigate why I can't get my progs to run as exepected : too much bit rot and half of my existing test benches are failing .... this must be the price to pay when using current TfH > > Warner From owner-freebsd-usb@FreeBSD.ORG Fri May 15 20:13:19 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 706191065672 for ; Fri, 15 May 2009 20:13:19 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id F15908FC0A for ; Fri, 15 May 2009 20:13:18 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id F3E00264207; Fri, 15 May 2009 21:55:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id D9345264207 for ; Fri, 15 May 2009 21:55:08 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29757-02 for ; Fri, 15 May 2009 21:54:53 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id 16C40264204 for ; Fri, 15 May 2009 21:54:52 +0200 (CEST) Message-ID: <4A0DC89C.6010708@rosenkeller.org> Date: Fri, 15 May 2009 21:55:08 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.238 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.161, BAYES_00=-2.599] X-Spam-Score: -4.238 X-Spam-Level: Subject: How to add support for Macbook Pro (USB) keyboard? 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, 15 May 2009 20:13:19 -0000 Hi all, first off, I have just subscribed to this list, as it seemed the most logical place -- but in case this is the wrong place to ask, please accept my apologies and point me to the right place. Second, I'm sorry for the long mail, but I'm only getting started with this -- not much experience in hacking the kernel yet, and in how it really is organized internally. So I'd really appreciate any help here -- I'd also be willing to contribute, if I can. The problem is the following: I'm trying to get FreeBSD to run on a Macbook Pro (MBP), purchased some time last year. As soon as the FreeBSD kernel is loaded, the keyboard is malfunctioning. (What I mean by this is: at the loader prompt, it still works ok; when it's handled by ukbd, it acts as if the Ctrl key was constantly stuck). So far, I have found one reference to this problem: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2009-02/msg00031.html The keyboard in question identifies itself like this: marvin# usbconfig -u 5 -a 3 dump_device_desc ugen5.3: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x05ac idProduct = 0x0231 bcdDevice = 0x0070 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 I had first tried to pinpoint the problem with the sources that came with the 7.2-RELEASE sources, by turning some USB debugging on, but got stuck when I ended up getting BABBLE reports from uhci, and couldn't figure out how to get any further. I then decided to try to switch to CURRENT and see whether the problem may have been fixed there. Turns out it hasn't been fixed, but since there have obviously been major code rewrites there, I was able to figure out the problem. It's happening in ukbd_intr_callback(): This function is expecting 8 bytes of data (of which the first is the keyboard modifiers). Turns out that the MBP sends 10 bytes instead, with - the first always being 01 (which explains why the Ctrl key seems to be stuck) - indexes 1 to 8 containing the actually "expected" data - the last being 00 or 02, depending on whether the Fn key was pressed. I'm inlining a diff of my changes here: --- ukbd.c.org 2009-05-15 17:38:59.000000000 +0000 +++ ukbd.c 2009-05-15 18:48:01.000000000 +0000 @@ -470,17 +470,24 @@ struct ukbd_softc *sc = xfer->priv_sc; uint16_t len = xfer->actlen; uint8_t i; + uint8_t mydebug[256]; + uint8_t offset = 0; switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: DPRINTF("actlen=%d bytes\n", len); + usb2_copy_out(xfer->frbuffers, 0, &mydebug[0], len); + for (i=0; i < len; ++i) { + DPRINTF("dump %02d = %02x\n",i,mydebug[i]); + } if (len > sizeof(sc->sc_ndata)) { len = sizeof(sc->sc_ndata); + offset = 1; } if (len) { bzero(&sc->sc_ndata, sizeof(sc->sc_ndata)); - usb2_copy_out(xfer->frbuffers, 0, &sc->sc_ndata, len); + usb2_copy_out(xfer->frbuffers, offset, &sc->sc_ndata, len); #if USB_DEBUG if (sc->sc_ndata.modifiers) { DPRINTF("mod: 0x%04x\n", sc->sc_ndata.modifiers); (I know that's a hack, it was just for testing and works for me). After having figured this out (and ignoring the Fn "bit" for now), I looked into the existing USB quirks, and there seems to be one named UQ_MS_LEADING_BYTE. I tried (with the original ukbd) to see if applying that quirk resulted in anything -- both by modifying the quirks.c, and by running usbconfig -u 5 -a 3 add_dev_quirk_vplh 0x5ac 0x231 0 0xffff UQ_MS_LEADING_BYTE but the result was exactly the same as before (i.e., the first spurious byte didn't vanish). I might have done something wrong with the quirks, but I guess it's actually just a different case than UQ_MS_LEADING_BYTE. So my question now is: what is the correct approach to add support for this keyboard? The thing I did above is clearly a hack, but I'm just not sure where these things should be handled correctly (Especially in light of the additional "Fn" key being present, and probably requiring some translation table, e.g. to map "fn+backspace" to "del", etc.) What is the correct approach here? Some modified ukbd as an additional module? Modifying the ukbd itself (but how)? I'm also feeling kind of better when running on a -STABLE system for production use, which would require some "backporting" (but as said, I got stuck in the "old" sources because I didn't really understand how things worked there). As I said, I would be willing to invest effort into this, but would need some guidance, so any help is very much appreciated :-) OK, I guess that's it for now, thanks in advance for the replies! -- Chris From owner-freebsd-usb@FreeBSD.ORG Fri May 15 22:20:04 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 839381065672 for ; Fri, 15 May 2009 22:20:04 +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 719D48FC1C for ; Fri, 15 May 2009 22:20:04 +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 n4FMK4JM013368 for ; Fri, 15 May 2009 22:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4FMK4GI013367; Fri, 15 May 2009 22:20:04 GMT (envelope-from gnats) Date: Fri, 15 May 2009 22:20:04 GMT Message-Id: <200905152220.n4FMK4GI013367@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Peter Jeremy Cc: Subject: Re: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Jeremy List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 22:20:04 -0000 The following reply was made to PR usb/119201; it has been noted by GNATS. From: Peter Jeremy To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players Date: Sat, 16 May 2009 08:17:20 +1000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Any chance of getting this patch committed before 8.0? --=20 Peter Jeremy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEUEARECAAYFAkoN6fAACgkQ/opHv/APuIdu8wCYh2+S5NOykwoLsU9s72p7xVRS sgCfQ2sYcbLWCRc6t/bzx/3Sw41V/wE= =K7zU -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-usb@FreeBSD.ORG Sat May 16 01:52:56 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 44267106566B for ; Sat, 16 May 2009 01:52:56 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id ABF578FC12 for ; Sat, 16 May 2009 01:52:55 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail17.syd.optusnet.com.au (mail17.syd.optusnet.com.au [211.29.132.198]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n4FMHOkC020320 for ; Sat, 16 May 2009 08:17:24 +1000 Received: from server.vk2pj.dyndns.org (c122-106-216-167.belrs3.nsw.optusnet.com.au [122.106.216.167]) by mail17.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n4FMHLNc011576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 May 2009 08:17:21 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n4FMHKS1000780; Sat, 16 May 2009 08:17:20 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n4FMHKSN000779; Sat, 16 May 2009 08:17:20 +1000 (EST) (envelope-from peter) Date: Sat, 16 May 2009 08:17:20 +1000 From: Peter Jeremy To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org Message-ID: <20090515221720.GA757@server.vk2pj.dyndns.org> References: <200712312048.lBVKmAWo003627@turion.vk2pj.dyndns.org> <200712312050.lBVKo0xf017096@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <200712312050.lBVKo0xf017096@freefall.freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Re: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players 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, 16 May 2009 01:52:56 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Any chance of getting this patch committed before 8.0? --=20 Peter Jeremy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEUEARECAAYFAkoN6fAACgkQ/opHv/APuIdu8wCYh2+S5NOykwoLsU9s72p7xVRS sgCfQ2sYcbLWCRc6t/bzx/3Sw41V/wE= =K7zU -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-freebsd-usb@FreeBSD.ORG Sat May 16 06:01:28 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 4507B106566B for ; Sat, 16 May 2009 06:01:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swipnet.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id D1AA88FC1B for ; Sat, 16 May 2009 06:01:27 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=c90fHWbAtmgA:10 a=fkIJauKGmkAA:10 a=HXnd3c5ViY9CAen87xkA:9 a=m190kIDexEQUNfmYZzLopsXRxS4A:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 499427593; Sat, 16 May 2009 08:01:26 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Peter Jeremy Date: Sat, 16 May 2009 08:03:59 +0200 User-Agent: KMail/1.9.7 References: <200905152220.n4FMK4GI013367@freefall.freebsd.org> In-Reply-To: <200905152220.n4FMK4GI013367@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905160803.59971.hselasky@c2i.net> Cc: Subject: Re: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players 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, 16 May 2009 06:01:28 -0000 On Saturday 16 May 2009, Peter Jeremy wrote: > usb/119201 Can this be patched in umass.c ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 06:26: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 0F9CD1065670 for ; Sat, 16 May 2009 06:26:47 +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 9A42F8FC08 for ; Sat, 16 May 2009 06:26:45 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=TUa3oeW83E4A:10 a=ABjp9MRm-CUA:10 a=6I5d2MoRAAAA:8 a=sS8ABrywK7iVgQugxwcA:9 a=ex2BbomlkkZrP01xEasL5UQJ_vwA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1246769010; Sat, 16 May 2009 08:26:44 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 16 May 2009 08:29:17 +0200 User-Agent: KMail/1.9.7 References: <4A0DC89C.6010708@rosenkeller.org> In-Reply-To: <4A0DC89C.6010708@rosenkeller.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905160829.18377.hselasky@c2i.net> Cc: Christoph Langguth Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 06:26:47 -0000 On Friday 15 May 2009, Christoph Langguth wrote: > Christoph Langguth Hi, Can you try the following patch on 8-current? http://perforce.freebsd.org/chv.cgi?CH=162145 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 15:27:00 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 392CE1065687 for ; Sat, 16 May 2009 15:27:00 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id B37518FC1F for ; Sat, 16 May 2009 15:26:59 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id 3091A26420A; Sat, 16 May 2009 17:26:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id 177D426420A; Sat, 16 May 2009 17:26:54 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32755-07; Sat, 16 May 2009 17:26:42 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id D17F2264208; Sat, 16 May 2009 17:26:39 +0200 (CEST) Message-ID: <4A0EDB45.8020903@rosenkeller.org> Date: Sat, 16 May 2009 17:27:01 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> In-Reply-To: <200905160829.18377.hselasky@c2i.net> Content-Type: multipart/mixed; boundary="------------080409030000050808000007" X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.157 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.242, BAYES_00=-2.599] X-Spam-Score: -4.157 X-Spam-Level: Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 15:27:00 -0000 This is a multi-part message in MIME format. --------------080409030000050808000007 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hi Hans Petter, thanks for the quick reply! I tried your patch but it doesn't work, all I get is: May 16 14:00:01 marvin kernel: ukbd0: on usbus5 May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 I don't know why this happens... I tried, but unfortunately I didn't quite understand what the patch is supposed to do :-) In the meantime, I had continued writing up a slightly cleaner patch, that also allows to fully utilize the keyboard. Some considerations first: - Quite a few apple keyboards (mine included) have an additional quirk in that they switch two keys. (On [1], that's all the ones having the APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( - To fully make use of the keyboard, one also needs to consider the Fn key ("part of" the 10th (9th payload) byte), so as to be able to be able to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], everything from Apple that actually is a keyboard also has this FN key, so I would expect all of these keyboards to send that 9th byte - It seems that some, but not all, of those keyboards, send this first byte (the one you called hid_id) In light of the above, would it make sense to - try to detect the HID ID byte in the manner that you suggested in your patch (assuming that I can figure out the logic, and what's going wrong there, I think it's the cleanest and vendor-independent solution) - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem (into usb/quirks/...) - assume that any available 9th byte contains the Fn key information -- or would yet another quirk, listing all affected products, be more reliable? [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c In any case, I have attached the "full" patch that works for me -- as stated above, it's not as clean as it should be because it only works for my specific piece of hardware and doesn't consider the latest questions/proposed solution... but it already contains all the required logic so that you can see what I meant. Again, thanks for your help! Cheers Chris Hans Petter Selasky wrote: > On Friday 15 May 2009, Christoph Langguth wrote: >> Christoph Langguth > > Hi, > > Can you try the following patch on 8-current? > > http://perforce.freebsd.org/chv.cgi?CH=162145 > > --HPS > --------------080409030000050808000007 Content-Type: text/plain; name="ukbd.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ukbd.c.diff" --- ukbd.c.org 2009-05-16 13:49:48.000000000 +0000 +++ ukbd.c 2009-05-16 14:39:35.000000000 +0000 @@ -162,6 +162,10 @@ uint8_t sc_leds; /* store for async led requests */ uint8_t sc_iface_index; uint8_t sc_iface_no; + + uint8_t quirks; +#define UKBD_QUIRK_APPLE 1 +#define UKBD_QUIRK_SWAPKEYS 2 }; #define KEY_ERROR 0x01 @@ -464,23 +468,63 @@ } } +static uint8_t +apple_fn(uint8_t keycode) { + switch (keycode) { + case 0x2a: return 0x4c; // BACKSPACE -> DEL + case 0x2c: return 0x49; // SPACE -> INSERT + case 0x50: return 0x4a; // LEFT ARROW -> HOME + case 0x4f: return 0x4d; // RIGHT ARROW -> END + case 0x52: return 0x4b; // UP ARROW -> PGUP + case 0x51: return 0x4e; // DOWN ARROW -> PGDN + default: return keycode; + } +} + static void ukbd_intr_callback(struct usb2_xfer *xfer) { struct ukbd_softc *sc = xfer->priv_sc; uint16_t len = xfer->actlen; uint8_t i; + uint8_t offset = 0; + uint8_t fnmode = 0; +#define UKBD_FNMODE_FN 2 +#define UKBD_FNMODE_EJECT 1 switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: DPRINTF("actlen=%d bytes\n", len); if (len > sizeof(sc->sc_ndata)) { + if (sc->quirks & UKBD_QUIRK_APPLE) { + offset = 1; + if (len >= 10) { + usb2_copy_out(xfer->frbuffers, 9, &fnmode, 1); + } + } len = sizeof(sc->sc_ndata); } if (len) { bzero(&sc->sc_ndata, sizeof(sc->sc_ndata)); - usb2_copy_out(xfer->frbuffers, 0, &sc->sc_ndata, len); + usb2_copy_out(xfer->frbuffers, offset, &sc->sc_ndata, len); + + if (sc->quirks & UKBD_QUIRK_APPLE) { + for (i = 0; i < UKBD_NKEYCODE; i++) { + if ((sc->quirks & UKBD_QUIRK_SWAPKEYS) + && (sc->sc_ndata.keycode[i] == 0x35)) { + sc->sc_ndata.keycode[i] = 0x64; + } + else if ((sc->quirks & UKBD_QUIRK_SWAPKEYS) + && (sc->sc_ndata.keycode[i] == 0x64)) { + sc->sc_ndata.keycode[i] = 0x35; + } + if (fnmode & UKBD_FNMODE_FN) { + sc->sc_ndata.keycode[i] = apple_fn(sc->sc_ndata.keycode[i]); + } + } + } + #if USB_DEBUG if (sc->sc_ndata.modifiers) { DPRINTF("mod: 0x%04x\n", sc->sc_ndata.modifiers); @@ -638,6 +682,12 @@ sc->sc_mode = K_XLATE; sc->sc_iface = uaa->iface; + if ((uaa->info.idVendor == 0x5ac) + && (uaa->info.idProduct == 0x231)) { + DPRINTF("Activating Apple kbd quirk\n"); + sc->quirks = UKBD_QUIRK_APPLE | UKBD_QUIRK_SWAPKEYS; + } + usb2_callout_init_mtx(&sc->sc_callout, &Giant, 0); err = usb2_transfer_setup(uaa->device, --------------080409030000050808000007-- From owner-freebsd-usb@FreeBSD.ORG Sat May 16 15:56: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 B86CB106564A for ; Sat, 16 May 2009 15:56:58 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 4C71A8FC1A for ; Sat, 16 May 2009 15:56:57 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=TUa3oeW83E4A:10 a=ABjp9MRm-CUA:10 a=2f3zQJoPAAAA:8 a=6I5d2MoRAAAA:8 a=ymlldahGdxh8x7UdgO4A:9 a=ez1AB1fMYXe2-tQjiPQA:7 a=pYwcS46yllL4hCvpx69nYXREBKoA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 901035699; Sat, 16 May 2009 17:56:56 +0200 From: Hans Petter Selasky To: Christoph Langguth Date: Sat, 16 May 2009 17:59:30 +0200 User-Agent: KMail/1.9.7 References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> In-Reply-To: <4A0EDB45.8020903@rosenkeller.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905161759.31109.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 15:56:59 -0000 Hi, It's not required to add a quirk for apple's I think. All the keys should be described in the HID descriptor. Can you dump the HID descriptor of your device? usbconfig -u 0 -a 2 do_request 0x81 0x06 0x2200 0 0x1000 Numbers after "-u" and "-a" must match those after "ugen" when your device is plugged. The command above assume the keyboard resides at interface zero. --HPS On Saturday 16 May 2009, Christoph Langguth wrote: > Hi Hans Petter, > > thanks for the quick reply! > I tried your patch but it doesn't work, all I get is: > > May 16 14:00:01 marvin kernel: ukbd0: on usbus5 > May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 > > I don't know why this happens... I tried, but unfortunately I didn't > quite understand what the patch is supposed to do :-) > > > In the meantime, I had continued writing up a slightly cleaner patch, > that also allows to fully utilize the keyboard. Some considerations first: > > - Quite a few apple keyboards (mine included) have an additional quirk > in that they switch two keys. (On [1], that's all the ones having the > APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( > > - To fully make use of the keyboard, one also needs to consider the Fn > key ("part of" the 10th (9th payload) byte), so as to be able to be able > to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], > everything from Apple that actually is a keyboard also has this FN key, > so I would expect all of these keyboards to send that 9th byte > > - It seems that some, but not all, of those keyboards, send this first > byte (the one you called hid_id) > > > In light of the above, would it make sense to > - try to detect the HID ID byte in the manner that you suggested in your > patch (assuming that I can figure out the logic, and what's going wrong > there, I think it's the cleanest and vendor-independent solution) > - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem > (into usb/quirks/...) > - assume that any available 9th byte contains the Fn key information -- > or would yet another quirk, listing all affected products, be more > reliable? > > [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c > > In any case, I have attached the "full" patch that works for me -- as > stated above, it's not as clean as it should be because it only works > for my specific piece of hardware and doesn't consider the latest > questions/proposed solution... but it already contains all the required > logic so that you can see what I meant. > > Again, thanks for your help! > Cheers > Chris > > Hans Petter Selasky wrote: > > On Friday 15 May 2009, Christoph Langguth wrote: > >> Christoph Langguth > > > > Hi, > > > > Can you try the following patch on 8-current? > > > > http://perforce.freebsd.org/chv.cgi?CH=162145 > > > > --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 16:16: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 C177D106566B for ; Sat, 16 May 2009 16:16:08 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id D00C58FC14 for ; Sat, 16 May 2009 16:16:07 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id 7692326420A; Sat, 16 May 2009 18:16:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id 5DB0226420A; Sat, 16 May 2009 18:16:02 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06814-05; Sat, 16 May 2009 18:15:46 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id 78BAC2641A5; Sat, 16 May 2009 18:15:44 +0200 (CEST) Message-ID: <4A0EE6C6.6010906@rosenkeller.org> Date: Sat, 16 May 2009 18:16:06 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> <200905161759.31109.hselasky@c2i.net> In-Reply-To: <200905161759.31109.hselasky@c2i.net> Content-Type: multipart/mixed; boundary="------------040201040802080207000101" X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.109 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.290, BAYES_00=-2.599] X-Spam-Score: -4.109 X-Spam-Level: Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 16:16:09 -0000 This is a multi-part message in MIME format. --------------040201040802080207000101 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, there you go... Hope it makes sense to you :-D -- Christoph Hans Petter Selasky schrieb: > Hi, > > It's not required to add a quirk for apple's I think. All the keys should be > described in the HID descriptor. Can you dump the HID descriptor of your > device? > > usbconfig -u 0 -a 2 do_request 0x81 0x06 0x2200 0 0x1000 > > Numbers after "-u" and "-a" must match those after "ugen" when your device is > plugged. The command above assume the keyboard resides at interface zero. > > --HPS > > On Saturday 16 May 2009, Christoph Langguth wrote: >> Hi Hans Petter, >> >> thanks for the quick reply! >> I tried your patch but it doesn't work, all I get is: >> >> May 16 14:00:01 marvin kernel: ukbd0: on usbus5 >> May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 >> >> I don't know why this happens... I tried, but unfortunately I didn't >> quite understand what the patch is supposed to do :-) >> >> >> In the meantime, I had continued writing up a slightly cleaner patch, >> that also allows to fully utilize the keyboard. Some considerations first: >> >> - Quite a few apple keyboards (mine included) have an additional quirk >> in that they switch two keys. (On [1], that's all the ones having the >> APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( >> >> - To fully make use of the keyboard, one also needs to consider the Fn >> key ("part of" the 10th (9th payload) byte), so as to be able to be able >> to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], >> everything from Apple that actually is a keyboard also has this FN key, >> so I would expect all of these keyboards to send that 9th byte >> >> - It seems that some, but not all, of those keyboards, send this first >> byte (the one you called hid_id) >> >> >> In light of the above, would it make sense to >> - try to detect the HID ID byte in the manner that you suggested in your >> patch (assuming that I can figure out the logic, and what's going wrong >> there, I think it's the cleanest and vendor-independent solution) >> - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem >> (into usb/quirks/...) >> - assume that any available 9th byte contains the Fn key information -- >> or would yet another quirk, listing all affected products, be more >> reliable? >> >> [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c >> >> In any case, I have attached the "full" patch that works for me -- as >> stated above, it's not as clean as it should be because it only works >> for my specific piece of hardware and doesn't consider the latest >> questions/proposed solution... but it already contains all the required >> logic so that you can see what I meant. >> >> Again, thanks for your help! >> Cheers >> Chris >> >> Hans Petter Selasky wrote: >>> On Friday 15 May 2009, Christoph Langguth wrote: >>>> Christoph Langguth >>> Hi, >>> >>> Can you try the following patch on 8-current? >>> >>> http://perforce.freebsd.org/chv.cgi?CH=162145 >>> >>> --HPS > > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > --------------040201040802080207000101 Content-Type: text/plain; name="hiddesc.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hiddesc.txt" REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01 0x05 0x07 0x19 0xe0 0x29 0xe7 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 0x95 0x01 0x75 0x08 0x81 0x01 0x95 0x05 0x75 0x01 0x05 0x08 0x19 0x01 0x29 0x05 0x91 0x02 0x95 0x01 0x75 0x03 0x91 0x01 0x95 0x06 0x75 0x08 0x15 0x00 0x26 0xff 0x00 0x05 0x07 0x19 0x00 0x29 0xff 0x81 0x00 0x05 0x0c 0x75 0x01 0x95 0x01 0x09 0xb8 0x15 0x00 0x25 0x01 0x81 0x02 0x05 0xff 0x09 0x03 0x75 0x07 0x95 0x01 0x81 0x02 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x52 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x09 0xcd 0x81 0x02 0x09 0xb3 0x81 0x02 0x09 0xb4 0x81 0x02 0x09 0xb5 0x81 0x02 0x09 0xb6 0x81 0x02 0x81 0x01 0x81 0x01 0x81 0x01 0x85 0x09 0x15 0x00 0x25 0x01 0x75 0x08 0x95 0x01 0x06 0x01 0xff 0x09 0x0b 0xb1 0x02 0x75 0x08 0x95 0x02 0xb1 0x01 0xc0><)%uuu)uu&)u%uR%u%uu> --------------040201040802080207000101-- From owner-freebsd-usb@FreeBSD.ORG Sat May 16 17:58:59 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 1B477106566B for ; Sat, 16 May 2009 17:58:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id A56608FC0C for ; Sat, 16 May 2009 17:58:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=TUa3oeW83E4A:10 a=ABjp9MRm-CUA:10 a=6I5d2MoRAAAA:8 a=LJRWJvOVYrbC69Wi8nsA:9 a=dtMTn9AD5vDhRWIuqHUA:7 a=n3ZdUichFi9rs4ewRkoEVA6HxEgA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1242524307; Sat, 16 May 2009 19:58:56 +0200 From: Hans Petter Selasky To: Christoph Langguth Date: Sat, 16 May 2009 20:01:29 +0200 User-Agent: KMail/1.9.7 References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> In-Reply-To: <4A0EDB45.8020903@rosenkeller.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905162001.30735.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 17:58:59 -0000 Hi Christoph, Download the two patched files from P4, ukbd.c and usbhid.h, and put them under sys/dev/usb/input and sys/dev/usb/ respectivly. Then recompile the ukbd module and/or kernel. The attach failure was due to a bug in the previous patch where I had forgotten to update N_TRANSFER. http://perforce.freebsd.org/chv.cgi?CH=162165 I've tried to make your patch more formal so that we don't have to list the VID+PID for every Apple Keyboard around. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 19:12:55 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 6CA8D106564A for ; Sat, 16 May 2009 19:12:55 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id EC06A8FC14 for ; Sat, 16 May 2009 19:12:54 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id 6D35526420A; Sat, 16 May 2009 21:12:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id 52A1826420A; Sat, 16 May 2009 21:12:49 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06814-09; Sat, 16 May 2009 21:12:37 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id 71BE9264201; Sat, 16 May 2009 21:12:35 +0200 (CEST) Message-ID: <4A0F1039.7050403@rosenkeller.org> Date: Sat, 16 May 2009 21:12:57 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> In-Reply-To: <200905162001.30735.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.077 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.322, BAYES_00=-2.599] X-Spam-Score: -4.077 X-Spam-Level: Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 19:12:55 -0000 Hi Hans Petter, wow!! I don't know what kind of voodoo you actually did there, but it works perfectly! :-D Thanks! Just two final little comments and two questions: line 463 in ukbd.c should actually read case 0x28: return 0x49; /* RETURN -> INSERT */ instead of case 0x2c: return 0x49; /* SPACE -> INSERT */ I just realized after writing it that all other OS's (MacOS, Windows, Linux) map Fn+Enter to INS, so I guess it would be best to stick with that convention and not to introduce new idiosyncrasies... and: in ukbd_apple_swap() the comments are misleading (Well actually the parameter name may have been misleading in the first place, since I guess it's scancodes, not keycodes, at that level, right? Anyway, it's not the "5" and "d" keys that are being swapped, but the one just left of the "1" (^ and ° on a german keyboard, ~ on the US one if i'm correct), and the one between the left shift and the Y/Z key (< and > on german kbd, not sure about US). Finally, for curiosity, since I didn't really get how the code works: how do you know reliably whether to toggle the APPLE_SWAP flag? Does the HID descriptor give you information about that "anomaly"? (I'm just wondering whether it wouldn't mistakenly swap the keys on unaffected Apple keyboards) And... one final issue here, which is low-priority for me but would be the topping on the cake: CAPS lock is functioning normally, but the LED does not light up when engaged. Is there any way to fix this? Thanks a lot & cheers! Chris Hans Petter Selasky schrieb: > Hi Christoph, > > Download the two patched files from P4, ukbd.c and usbhid.h, and put them > under sys/dev/usb/input and sys/dev/usb/ respectivly. > > Then recompile the ukbd module and/or kernel. > > The attach failure was due to a bug in the previous patch where I had > forgotten to update N_TRANSFER. > > http://perforce.freebsd.org/chv.cgi?CH=162165 > > I've tried to make your patch more formal so that we don't have to list the > VID+PID for every Apple Keyboard around. > > --HPS > From owner-freebsd-usb@FreeBSD.ORG Sat May 16 19:55:50 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 36940106564A for ; Sat, 16 May 2009 19:55:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swip.net [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id C3E5B8FC18 for ; Sat, 16 May 2009 19:55:49 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=TUa3oeW83E4A:10 a=ABjp9MRm-CUA:10 a=IhXH_RObNxorMXtay6IA:9 a=qOWZz47KIIGJOfWoQqUA:7 a=E8PIiKJs0aOtHpCOQPgfe6PeDgkA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 496143856; Sat, 16 May 2009 21:55:47 +0200 From: Hans Petter Selasky To: Christoph Langguth Date: Sat, 16 May 2009 21:58:21 +0200 User-Agent: KMail/1.9.7 References: <4A0DC89C.6010708@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> <4A0F1039.7050403@rosenkeller.org> In-Reply-To: <4A0F1039.7050403@rosenkeller.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200905162158.22210.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 19:55:50 -0000 On Saturday 16 May 2009, Christoph Langguth wrote: > Hi Hans Petter, > > I just realized after writing it that all other OS's (MacOS, Windows, > Linux) map Fn+Enter to INS, so I guess it would be best to stick with > that convention and not to introduce new idiosyncrasies... =46ixed. > > and: in ukbd_apple_swap() the comments are misleading (Well actually the > parameter name may have been misleading in the first place, since I > guess it's scancodes, not keycodes, at that level, right? Anyway, it's > not the "5" and "d" keys that are being swapped, but the one just left > of the "1" (^ and =B0 on a german keyboard, ~ on the US one if i'm > correct), and the one between the left shift and the Y/Z key (< and > on > german kbd, not sure about US). =46ixed. > > Finally, for curiosity, since I didn't really get how the code works: > how do you know reliably whether to toggle the APPLE_SWAP flag? Does the > HID descriptor give you information about that "anomaly"? (I'm just > wondering whether it wouldn't mistakenly swap the keys on unaffected > Apple keyboards) I was just taking your example. I assume that Apple make the keyboards alik= e.=20 If not we will have to adjust. I did not look too close at the HID=20 descriptor. I just assume that when the special HID item is present, which= =20 indicates the EJECT, then it is an Apple keyboard and that it works like an= =20 Apple keyboard. > > And... one final issue here, which is low-priority for me but would be > the topping on the cake: CAPS lock is functioning normally, but the LED > does not light up when engaged. Is there any way to fix this? Can you find the bit or byte that is changing in the report which correspon= ds=20 to the CAPS lock key? Also don't forget to print the first byte which is th= e=20 ID byte. =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 20:44:52 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 0E98A106564A for ; Sat, 16 May 2009 20:44:52 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6138FC1E for ; Sat, 16 May 2009 20:44:51 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id DC09926420A; Sat, 16 May 2009 22:44:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id BFF7F26420A; Sat, 16 May 2009 22:44:45 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17079-02; Sat, 16 May 2009 22:44:34 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id C4EDF2641FE; Sat, 16 May 2009 22:44:31 +0200 (CEST) Message-ID: <4A0F25C5.9020706@rosenkeller.org> Date: Sat, 16 May 2009 22:44:53 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A0DC89C.6010708@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> <4A0F1039.7050403@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> In-Reply-To: <200905162158.22210.hselasky@c2i.net> Content-Type: multipart/mixed; boundary="------------030500090406070609070007" X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.054 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.345, BAYES_00=-2.599] X-Spam-Score: -4.054 X-Spam-Level: Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 20:44:52 -0000 This is a multi-part message in MIME format. --------------030500090406070609070007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, >> Finally, for curiosity, since I didn't really get how the code works: >> how do you know reliably whether to toggle the APPLE_SWAP flag? Does the >> HID descriptor give you information about that "anomaly"? (I'm just >> wondering whether it wouldn't mistakenly swap the keys on unaffected >> Apple keyboards) > > I was just taking your example. I assume that Apple make the keyboards alike. > If not we will have to adjust. I did not look too close at the HID > descriptor. I just assume that when the special HID item is present, which > indicates the EJECT, then it is an Apple keyboard and that it works like an > Apple keyboard. Hmm... well, I guess it's fine for now, but I believe that actually not all of the keyboards have this swap "bug". Apple seems to change their hardware (and the behavior thereof...) quite often :-( > >> And... one final issue here, which is low-priority for me but would be >> the topping on the cake: CAPS lock is functioning normally, but the LED >> does not light up when engaged. Is there any way to fix this? > > Can you find the bit or byte that is changing in the report which corresponds > to the CAPS lock key? Also don't forget to print the first byte which is the > ID byte. That was it... the data sent to the keyboard also needs to be prefixed with the ID. The attached patch does this in a sensitive way -- I've tested it and it behaves correctly both with the Apple, and a "normal" USB kbd attached. Hooray! :-) --Chris --------------030500090406070609070007 Content-Type: text/plain; name="ukbd-led.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ukbd-led.diff" --- ukbd.c.org 2009-05-16 20:38:08.000000000 +0000 +++ ukbd.c 2009-05-16 20:35:26.000000000 +0000 @@ -589,7 +589,8 @@ ukbd_set_leds_callback(struct usb2_xfer *xfer) { struct usb2_device_request req; - uint8_t buf[1]; + uint8_t buf[2]; + uint8_t reqsize = 0; struct ukbd_softc *sc = xfer->priv_sc; switch (USB_GET_STATE(xfer)) { @@ -603,15 +604,19 @@ USETW2(req.wValue, UHID_OUTPUT_REPORT, 0); req.wIndex[0] = sc->sc_iface_no; req.wIndex[1] = 0; - USETW(req.wLength, 1); - buf[0] = sc->sc_leds; + if (sc->sc_hid_id != 0) { + buf[reqsize++] = sc->sc_hid_id; + } + buf[reqsize++] = sc->sc_leds; + + USETW(req.wLength, reqsize); usb2_copy_in(xfer->frbuffers, 0, &req, sizeof(req)); - usb2_copy_in(xfer->frbuffers + 1, 0, buf, sizeof(buf)); + usb2_copy_in(xfer->frbuffers + 1, 0, buf, reqsize); xfer->frlengths[0] = sizeof(req); - xfer->frlengths[1] = sizeof(buf); + xfer->frlengths[1] = reqsize; xfer->nframes = 2; usb2_start_hardware(xfer); } --------------030500090406070609070007-- From owner-freebsd-usb@FreeBSD.ORG Sat May 16 21:22: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 A93B11065680 for ; Sat, 16 May 2009 21:22:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5838FC1C for ; Sat, 16 May 2009 21:22:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=TUa3oeW83E4A:10 a=ABjp9MRm-CUA:10 a=6I5d2MoRAAAA:8 a=lxu49jUo2BGd_nkH5MoA:9 a=At2G9xvRryHqjYMwKjBilCPmi_YA:4 Received: from [193.217.167.6] (account mc467741@c2i.net HELO [10.0.0.229]) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 499155909; Sat, 16 May 2009 23:22:06 +0200 From: Hans Petter Selasky To: Christoph Langguth Date: Sat, 16 May 2009 23:24:38 +0200 User-Agent: KMail/1.9.7 References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> In-Reply-To: <4A0F25C5.9020706@rosenkeller.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905162324.39896.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 21:22:08 -0000 On Saturday 16 May 2009, Christoph Langguth wrote: > Christoph Langguth Your patch is almost right. Can you try this (download the complete ukbd.c file): http://perforce.freebsd.org/chv.cgi?CH=162182 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 16 21:40: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 E178B106566C for ; Sat, 16 May 2009 21:40:01 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: from rosenkeller.org (fry.rose.uni-jena.de [141.35.60.60]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7F58FC20 for ; Sat, 16 May 2009 21:40:01 +0000 (UTC) (envelope-from christoph@rosenkeller.org) Received: by rosenkeller.org (Postfix, from userid 65534) id DCB2026420A; Sat, 16 May 2009 23:39:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by rosenkeller.org (Postfix) with ESMTP id C2CD626420A; Sat, 16 May 2009 23:39:55 +0200 (CEST) Received: from rosenkeller.org ([127.0.0.1]) by localhost (fry.localnet.rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16129-09; Sat, 16 May 2009 23:39:44 +0200 (CEST) Received: from [192.168.0.2] (cable-static-237-100.teleport.ch [213.188.237.100]) by rosenkeller.org (Postfix) with ESMTPSA id D02FB264205; Sat, 16 May 2009 23:39:41 +0200 (CEST) Message-ID: <4A0F32B4.1000000@rosenkeller.org> Date: Sat, 16 May 2009 23:40:04 +0200 From: Christoph Langguth User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> <200905162324.39896.hselasky@c2i.net> In-Reply-To: <200905162324.39896.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at rosenkeller.org X-Spam-Status: No, score=-4.036 tagged_above=-99 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.363, BAYES_00=-2.599] X-Spam-Score: -4.036 X-Spam-Level: Cc: freebsd-usb@freebsd.org Subject: Re: How to add support for Macbook Pro (USB) keyboard? 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, 16 May 2009 21:40:02 -0000 Hans Petter Selasky schrieb: > On Saturday 16 May 2009, Christoph Langguth wrote: >> Christoph Langguth > > Your patch is almost right. Well, I tried my best ;-) > > Can you try this (download the complete ukbd.c file): > Works perfectly, takk! --Chris