From owner-freebsd-usb@FreeBSD.ORG Sun Dec 31 23:55:27 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C7B416A47E for ; Sun, 31 Dec 2006 23:55:27 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 5171513C4A8 for ; Sun, 31 Dec 2006 23:55:27 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 64038 invoked from network); 31 Dec 2006 23:46:39 -0000 Received: from ppp-71-139-40-196.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.40.196) by root.org with ESMTPA; 31 Dec 2006 23:46:39 -0000 Message-ID: <45984BD3.9040506@root.org> Date: Sun, 31 Dec 2006 15:46:27 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Ivan Frosty References: <7fd638000612310125n672d11e9j6cfc20a080c443de@mail.gmail.com> <45984A97.3080201@root.org> In-Reply-To: <45984A97.3080201@root.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-usb@freebsd.org Subject: Re: problem with samsung flash X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2006 23:55:27 -0000 Nate Lawson wrote: > Ivan Frosty wrote: >> hello there, i have freebsd 6.1 pentiumII 355mhz processor and 128mb >> of ram. everytime i put my samsung 512mb in tha usb the machine doesnt >> boot it halts where the error be at if i pull it out it >> boots.........then if i put it back in i get an error.......whats with >> umass? i basically installed everybit and software of the unix i have >> so i dont know why i get the error anyhelp will be highly appreciated! >> >> this is the error: >> >> da0 at umass-sim0 bus0 target0wn0 >> da0: Removable Direct Access SCSI-0 device >> da0:1.000MB/s transfers >> da0:511mb(1046720 512 byte sectors:64H 32s/T s11c) >> umass0:phase Error, residue = 0 >> (da0:umass-sim0:0:0:0):synchronize cache failed, status == 0x4,scsi >> status == 0x0 opened disk da0->5! >> >> thank you for your time > > Hi, this is a common error and should be a FAQ somewhere. Some USB > devices can't handle SYNC CACHE, the command that says to write their > data out to storage. Most can or reject it with an error and continue. > Some hang, including yours. You can add a SCSI quirk (no sync cache). > See the entries at the beginning of scsi_da.c for an example how to do > it. Your string would be "SAMSUNG", "flash Disk", "*". See if that helps. > > As far has fixing this problem permanently, does anyone have an idea on > how the experimental work went with disabling sync cache if the INQ data > indicates the device doesn't cache data (similar to Linux)? > > Also, what do the scsi@ guys think of me adding a tunable/sysctl that is > unit-specific so people can disable it without a quirk? Example: > dev.da.0.no_sync_cache="1". It would be off by default, of course. Sorry for following up so quickly. The sysctl doesn't make sense since the device isn't available until it's probed and bus reordering makes a unit-specific quirk seem dumb. I have one other question -- why are we calling sync cache during the boot and probe process? Shouldn't that only happen when the dev node is opened and then closed again (i.e. unmount)? Is this caused by GEOM opening the drive to taste it and closing it again? If so, it seems an easy partial fix would be to have GEOM open dev nodes read-only. Then, make scsi-da only do sync cache if the device was opened r/w, if it doesn't already implement that behavior. This would fix this problem for the common case of "plug in umass flash, mount, use, umount, eject". The sync cache after umount would fail, but the device is disappearing very soon anyway. The only thing it wouldn't fix is umounting/remounting, and perhaps the experimental check for WC bit or whatever will be necessary to fix that. Still, this GEOM behavior might be good anyway. Thoughts? -- Nate From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 11:09:02 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6670516A752 for ; Mon, 25 Dec 2006 11:09:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 5539513C47A for ; Mon, 25 Dec 2006 11:09:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBPB915w034751 for ; Mon, 25 Dec 2006 11:09:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBPB8xKt034747 for freebsd-usb@FreeBSD.org; Mon, 25 Dec 2006 11:08:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Dec 2006 11:08:59 GMT Message-Id: <200612251108.kBPB8xKt034747@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 25 Dec 2006 11:09:02 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/40792 usb signals lead to data loss on device ugen o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should f usb/76684 usb [hang] Toshiba PDR-M4 camera connected via USB hangs s o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb Microsoft Intellimouse Explorer 4.0A doesn't work. o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104810 usb [usb] panic: ohci_add_done: addr 0x3fef1ba0 not found o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb uftdi module does not automatically load with the FTDI o usb/106648 usb USB Floppy on D1950 10 min Hang on Insert w/o Floppy D o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107101 usb [umass] [patch] Quirk for Denver MP3 player o usb/107116 usb [usb] panic while accessing usb msdos pccard o usb/107128 usb [usb] panic while accessing usb msdos flashkey 105 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o usb/75800 usb ucom1: init failed STALLED error in time of sync with o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb uvisor.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept f usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101757 usb [patch] uhid.4: correct structure field names to match o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o kern/106033 usb [usb] [patch] support for 3G/WCDMA cards Option Globet o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106070 usb devd recognizes ucom, but ttyU is the device actually o usb/106462 usb Motorola U6 PEBL not recognized by system via USB [pat o usb/106538 usb [patch] Can not burn DVD on Sony DRX-820UL external US o usb/106621 usb [usb] DLINK DUB-E100 support broken o usb/106861 usb [PATCH]: usbdevs update: Add product ACER Zeevo BT-500 119 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 20:26:31 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA99F16A415 for ; Mon, 25 Dec 2006 20:26:31 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 7AAE713C474 for ; Mon, 25 Dec 2006 20:26:30 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (cpe-24-210-75-119.columbus.res.rr.com [24.210.75.119]) (authenticated bits=0) by mail.united-ware.com (8.13.8/8.13.8) with ESMTP id kBPKHWQF089879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Dec 2006 15:17:50 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: Hans Petter Selasky Date: Mon, 25 Dec 2006 14:56:32 -0500 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1648676.h7rlKvJYYM"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612251456.42770.amistry@am-productions.biz> X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_50,MYFREEBSD3, RCVD_IN_NJABL_DUL,SPF_SOFTFAIL autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.5/2376/Mon Dec 25 04:50:31 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: freebsd-usb@freebsd.org Subject: Attaching ugen to all usb devices 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, 25 Dec 2006 20:26:31 -0000 --nextPart1648676.h7rlKvJYYM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Many usb devices can be attached as different devices along with=20 being functional with some libusb app that requires ugen. eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass=20 can attach to access the card slot, if neither of these are loaded=20 ugen will attach which is required to run the hplip vendor software=20 so that the printer, scanner, and fax machine can be accessed. It would be very helpful to allow ulpt, umass, and ugen to all attach=20 to the device. This would allow full functionality. Simultaneous=20 access isn't necessary, but might be nice in the future. I believe I mentioned this before, but I'd like to actually implement=20 this now. At least allow ugen to attach to all devices along side=20 the native driver. I'd to do this on the HPS stack and then maybe=20 port the changes to 6.x. The closest thing I can think of that allows similar behavior is=20 vgapci that allow acpi_video and a drm driver to both access the=20 video card. Any pointers should be appreciated. Thanks, =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1648676.h7rlKvJYYM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFkCz6xqA5ziudZT0RAvfRAJ91Z10SkqqCvthb6sZ7u1YKjhVQfgCfetQa X48GAxEugtxc6sHI04DjvC4= =f/Cp -----END PGP SIGNATURE----- --nextPart1648676.h7rlKvJYYM-- From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 20:40:21 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A4E616A54F for ; Mon, 25 Dec 2006 20:40:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 83A3313C475 for ; Mon, 25 Dec 2006 20:40:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kBPKcI92069064; Mon, 25 Dec 2006 13:38:18 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 25 Dec 2006 13:38:21 -0700 (MST) Message-Id: <20061225.133821.-1605839720.imp@bsdimp.com> To: amistry@am-productions.biz From: "M. Warner Losh" In-Reply-To: <200612251456.42770.amistry@am-productions.biz> References: <200612251456.42770.amistry@am-productions.biz> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 25 Dec 2006 13:38:18 -0700 (MST) Cc: freebsd-usb@freebsd.org Subject: Re: Attaching ugen to all usb devices 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, 25 Dec 2006 20:40:21 -0000 In message: <200612251456.42770.amistry@am-productions.biz> Anish Mistry writes: : Many usb devices can be attached as different devices along with : being functional with some libusb app that requires ugen. : eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass : can attach to access the card slot, if neither of these are loaded : ugen will attach which is required to run the hplip vendor software : so that the printer, scanner, and fax machine can be accessed. You should review how the device presents itself to the system. If both umass and ulpt attach to it, it should be possible to make them both attach at the same time. As for ugen, one could easily hack uhub to allow this kind of access. ugen really shouldn't be attaching to any device at all, but instead the usb bus (aka uhub) should allow ugen-like acess to each of the devices. : It would be very helpful to allow ulpt, umass, and ugen to all attach : to the device. This would allow full functionality. Simultaneous : access isn't necessary, but might be nice in the future. That would be a nightmare. Trust me. I've looked into it in the past it was scary. : The closest thing I can think of that allows similar behavior is : vgapci that allow acpi_video and a drm driver to both access the : video card. Well, it doesn't really. newbus has a very strong notion of each node in the tree has one and only one (or zero) devices attached. Warner From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 21:22:29 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D91B16A47B for ; Mon, 25 Dec 2006 21:22:29 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id CE61713C475 for ; Mon, 25 Dec 2006 21:22:28 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so3044085uge for ; Mon, 25 Dec 2006 13:22:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m8/bTlPOulcVe/xkryL/o7MtAvRzFkNX7W2Ik90UXemCZv7I2C8ySa9KCcGOpxFjRqMA4lFU59GHOa4WoChKNYW2UQTrctBmBYf2A3rVIXA5uOj6Zz8Zo6lnojI8Dho5UiXdaE+Q9GaojZ32HGlVLGrlBfxiTjebzKbwovfcFwk= Received: by 10.78.157.8 with SMTP id f8mr2541345hue.1167080133368; Mon, 25 Dec 2006 12:55:33 -0800 (PST) Received: by 10.78.15.2 with HTTP; Mon, 25 Dec 2006 12:55:33 -0800 (PST) Message-ID: <70e8236f0612251255h56b311efg21fd2aa5a1b646aa@mail.gmail.com> Date: Mon, 25 Dec 2006 20:55:33 +0000 From: "Joao Barros" To: "M. Warner Losh" In-Reply-To: <20061225.133821.-1605839720.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200612251456.42770.amistry@am-productions.biz> <20061225.133821.-1605839720.imp@bsdimp.com> Cc: amistry@am-productions.biz, freebsd-usb@freebsd.org Subject: Re: Attaching ugen to all usb devices 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, 25 Dec 2006 21:22:29 -0000 On 12/25/06, M. Warner Losh wrote: > In message: <200612251456.42770.amistry@am-productions.biz> > Anish Mistry writes: > : Many usb devices can be attached as different devices along with > : being functional with some libusb app that requires ugen. > : eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass > : can attach to access the card slot, if neither of these are loaded > : ugen will attach which is required to run the hplip vendor software > : so that the printer, scanner, and fax machine can be accessed. > > You should review how the device presents itself to the system. If > both umass and ulpt attach to it, it should be possible to make them > both attach at the same time. > > As for ugen, one could easily hack uhub to allow this kind of access. > ugen really shouldn't be attaching to any device at all, but instead > the usb bus (aka uhub) should allow ugen-like acess to each of the > devices. > > : It would be very helpful to allow ulpt, umass, and ugen to all attach > : to the device. This would allow full functionality. Simultaneous > : access isn't necessary, but might be nice in the future. > > That would be a nightmare. Trust me. I've looked into it in the past > it was scary. > > : The closest thing I can think of that allows similar behavior is > : vgapci that allow acpi_video and a drm driver to both access the > : video card. > > Well, it doesn't really. newbus has a very strong notion of each node > in the tree has one and only one (or zero) devices attached. > > Warner My Huawei E220 USB HSDPA modem presents 3 devices to the system. If I connect the modem I get the virtual storage device, but if I load ubsec into the kernel I will only get the ubsec device. I haven't yet tried to access the 3rd device, it's another serial port. I think the goal here it to be able to access all the devices. -- Joao Barros From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 23:41:55 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAAFD16A407 for ; Mon, 25 Dec 2006 23:41:55 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 3943413C48D for ; Mon, 25 Dec 2006 23:41:53 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kBPNIdRA034112; Tue, 26 Dec 2006 00:18:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kBPNI6ui000875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 00:18:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kBPNI6Lj028081; Tue, 26 Dec 2006 00:18:06 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kBPNI5iE028080; Tue, 26 Dec 2006 00:18:05 +0100 (CET) (envelope-from ticso) Date: Tue, 26 Dec 2006 00:18:05 +0100 From: Bernd Walter To: Joao Barros Message-ID: <20061225231804.GA75351@cicely12.cicely.de> References: <200612251456.42770.amistry@am-productions.biz> <20061225.133821.-1605839720.imp@bsdimp.com> <70e8236f0612251255h56b311efg21fd2aa5a1b646aa@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70e8236f0612251255h56b311efg21fd2aa5a1b646aa@mail.gmail.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599, BIZ_TLD=2.013 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org, amistry@am-productions.biz Subject: Re: Attaching ugen to all usb devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2006 23:41:55 -0000 On Mon, Dec 25, 2006 at 08:55:33PM +0000, Joao Barros wrote: > On 12/25/06, M. Warner Losh wrote: > >In message: <200612251456.42770.amistry@am-productions.biz> > > Anish Mistry writes: > >: Many usb devices can be attached as different devices along with > >: being functional with some libusb app that requires ugen. > >: eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass > >: can attach to access the card slot, if neither of these are loaded > >: ugen will attach which is required to run the hplip vendor software > >: so that the printer, scanner, and fax machine can be accessed. > > > >You should review how the device presents itself to the system. If > >both umass and ulpt attach to it, it should be possible to make them > >both attach at the same time. > > > >As for ugen, one could easily hack uhub to allow this kind of access. > >ugen really shouldn't be attaching to any device at all, but instead > >the usb bus (aka uhub) should allow ugen-like acess to each of the > >devices. > > > >: It would be very helpful to allow ulpt, umass, and ugen to all > >attach > >: to the device. This would allow full functionality. Simultaneous > >: access isn't necessary, but might be nice in the future. > > > >That would be a nightmare. Trust me. I've looked into it in the past > >it was scary. > > > >: The closest thing I can think of that allows similar behavior is > >: vgapci that allow acpi_video and a drm driver to both access the > >: video card. > > > >Well, it doesn't really. newbus has a very strong notion of each node > >in the tree has one and only one (or zero) devices attached. > > > >Warner > > My Huawei E220 USB HSDPA modem presents 3 devices to the system. If I > connect the modem I get the virtual storage device, but if I load > ubsec into the kernel I will only get the ubsec device. I haven't yet > tried to access the 3rd device, it's another serial port. > I think the goal here it to be able to access all the devices. A single device only presents a single device to the system. A device can have multiple functions as in yours. Drivers can claim a device or a single function. umass and ulpt are function drivers so they can coexist on a single device. If ubsec claims the whole device no other driver can claim any function. It is ubsec's decision to claim exclusive device access. Fix ubsec to just claim the function it really needs and you are done with it. ugen is special - it is a fallback device driver and allows generic access to a whole device only. But ugen is still a hack IMHO, which is most usefull in testing devices befor writing real drivers. There are many points in which ugen can't work because USB devices can be so different that generic access always has to be a tradeoff. E.g. in the given ulpt, umass, something combo it is best to write a function driver for the unsupported function, instead of trusting for a generic fallback. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-usb@FreeBSD.ORG Mon Dec 25 23:52:22 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2549B16A407 for ; Mon, 25 Dec 2006 23:52:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 8D86C13C48E for ; Mon, 25 Dec 2006 23:52:21 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 197862396; Mon, 25 Dec 2006 23:52:18 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Mon, 25 Dec 2006 23:52:00 +0100 User-Agent: KMail/1.7 References: <200612251456.42770.amistry@am-productions.biz> <20061225.133821.-1605839720.imp@bsdimp.com> In-Reply-To: <20061225.133821.-1605839720.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612252352.01377.hselasky@c2i.net> Cc: amistry@am-productions.biz, freebsd-usb@freebsd.org Subject: Re: Attaching ugen to all usb devices 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, 25 Dec 2006 23:52:22 -0000 On Monday 25 December 2006 21:38, M. Warner Losh wrote: > In message: <200612251456.42770.amistry@am-productions.biz> > > Anish Mistry writes: > : Many usb devices can be attached as different devices along with > : being functional with some libusb app that requires ugen. > : eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass > : can attach to access the card slot, if neither of these are loaded > : ugen will attach which is required to run the hplip vendor software > : so that the printer, scanner, and fax machine can be accessed. > > You should review how the device presents itself to the system. If > both umass and ulpt attach to it, it should be possible to make them > both attach at the same time. > > As for ugen, one could easily hack uhub to allow this kind of access. > ugen really shouldn't be attaching to any device at all, but instead > the usb bus (aka uhub) should allow ugen-like acess to each of the > devices. Right. Here are some pointers: The core of your problem is "usbd_set_config()". Whenever you set a new config value, you need to "device_delete_child()" all attached devices, and re-probe the "struct usbd_device *" in question. Maybe you can extend the already existing "usbd_remove_detached_devices()"? Try making a system where the USB device config value is always set from "usbd_probe_and_attach()", hence this function is always called from only one thread at a time! To force the system to re-call "usbd_probe_and_attach()", simply set "up->last_refcount = 0", then call "usb_needs_explore()". "up" is of type "struct usbd_port *". Maybe you should add a new field: udev->current_config_value. When "udev->probed == USBD_PROBED_SPECIFIC_AND_FOUND" disallow "/dev/ugenX" from setting the config value. Incorporate parts of ugen into "struct usbd_device": 1) Split ugen into two parts, /dev/ugenX and /dev/ugenX.X . 2) /dev/ugenX is created by "usbd_new_device()". 3) /dev/ugenX is removed by "usbd_free_device()". 4) /dev/ugenX.X is a regular device that attaches when "uaa.iface != NULL" and "uaa.usegeneric == 1". Maybe you have to remove "USBD_PROBED_GENERIC_AND_FOUND". There should be no problems in the USB stack regarding duplicate device attachment. If two devices start a transfer on the same interrupt endpoint, they will be served alternately, for example. > > : It would be very helpful to allow ulpt, umass, and ugen to all attach > : to the device. This would allow full functionality. Simultaneous > : access isn't necessary, but might be nice in the future. > > That would be a nightmare. Trust me. I've looked into it in the past > it was scary. Better switch the config value, so that the devices show up one by one. > > : The closest thing I can think of that allows similar behavior is > : vgapci that allow acpi_video and a drm driver to both access the > : video card. > > Well, it doesn't really. newbus has a very strong notion of each node > in the tree has one and only one (or zero) devices attached. When do you think that you will have some patches ready? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Dec 26 01:36:50 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFF3316A40F for ; Tue, 26 Dec 2006 01:36:49 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 9916A13C463 for ; Tue, 26 Dec 2006 01:36:49 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id kBQ1aBKA036215; Tue, 26 Dec 2006 02:36:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id kBQ1ZgCX001537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 02:35:43 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id kBQ1ZglB028393; Tue, 26 Dec 2006 02:35:42 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id kBQ1Zg8O028392; Tue, 26 Dec 2006 02:35:42 +0100 (CET) (envelope-from ticso) Date: Tue, 26 Dec 2006 02:35:42 +0100 From: Bernd Walter To: Hans Petter Selasky Message-ID: <20061226013541.GB75351@cicely12.cicely.de> References: <200612251456.42770.amistry@am-productions.biz> <20061225.133821.-1605839720.imp@bsdimp.com> <200612252352.01377.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612252352.01377.hselasky@c2i.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599, BIZ_TLD=2.013 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org, amistry@am-productions.biz Subject: Re: Attaching ugen to all usb devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2006 01:36:50 -0000 On Mon, Dec 25, 2006 at 11:52:00PM +0100, Hans Petter Selasky wrote: > On Monday 25 December 2006 21:38, M. Warner Losh wrote: > > In message: <200612251456.42770.amistry@am-productions.biz> > > > > Anish Mistry writes: > > : Many usb devices can be attached as different devices along with > > : being functional with some libusb app that requires ugen. > > : eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded umass > > : can attach to access the card slot, if neither of these are loaded > > : ugen will attach which is required to run the hplip vendor software > > : so that the printer, scanner, and fax machine can be accessed. > > > > You should review how the device presents itself to the system. If > > both umass and ulpt attach to it, it should be possible to make them > > both attach at the same time. > > > > As for ugen, one could easily hack uhub to allow this kind of access. > > ugen really shouldn't be attaching to any device at all, but instead > > the usb bus (aka uhub) should allow ugen-like acess to each of the > > devices. > > Right. > > Here are some pointers: > > The core of your problem is "usbd_set_config()". Whenever you set a new config > value, you need to "device_delete_child()" all attached devices, and re-probe > the "struct usbd_device *" in question. Maybe you can extend the already > existing "usbd_remove_detached_devices()"? > > Try making a system where the USB device config value is always set from > "usbd_probe_and_attach()", hence this function is always called from only one > thread at a time! > > To force the system to re-call "usbd_probe_and_attach()", simply set > "up->last_refcount = 0", then call "usb_needs_explore()". "up" is of type > "struct usbd_port *". > > Maybe you should add a new field: > udev->current_config_value. > > When "udev->probed == USBD_PROBED_SPECIFIC_AND_FOUND" disallow "/dev/ugenX" > from setting the config value. > > Incorporate parts of ugen into "struct usbd_device": > > 1) Split ugen into two parts, /dev/ugenX and /dev/ugenX.X . > 2) /dev/ugenX is created by "usbd_new_device()". > 3) /dev/ugenX is removed by "usbd_free_device()". > 4) /dev/ugenX.X is a regular device that attaches when "uaa.iface != NULL" and > "uaa.usegeneric == 1". Maybe you have to remove > "USBD_PROBED_GENERIC_AND_FOUND". > > There should be no problems in the USB stack regarding duplicate device > attachment. If two devices start a transfer on the same interrupt endpoint, > they will be served alternately, for example. And don't forget to handle USB_SET_CONFIG properly... -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-usb@FreeBSD.ORG Tue Dec 26 05:12:06 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0467D16A47B for ; Tue, 26 Dec 2006 05:12:06 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 9C91E13C492 for ; Tue, 26 Dec 2006 05:12:05 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (cpe-24-210-75-119.columbus.res.rr.com [24.210.75.119]) (authenticated bits=0) by mail.united-ware.com (8.13.8/8.13.8) with ESMTP id kBQ5Y1xH095135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 00:34:08 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: Hans Petter Selasky Date: Tue, 26 Dec 2006 00:12:58 -0500 User-Agent: KMail/1.9.4 References: <200612251456.42770.amistry@am-productions.biz> <20061225.133821.-1605839720.imp@bsdimp.com> <200612252352.01377.hselasky@c2i.net> In-Reply-To: <200612252352.01377.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1648747.0v2jYiN86a"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612260013.08821.amistry@am-productions.biz> X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_50,MYFREEBSD3, RCVD_IN_NJABL_DUL,SPF_SOFTFAIL autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.5/2378/Mon Dec 25 13:47:42 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: freebsd-usb@freebsd.org Subject: Re: Attaching ugen to all usb devices 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, 26 Dec 2006 05:12:06 -0000 --nextPart1648747.0v2jYiN86a Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 25 December 2006 17:52, Hans Petter Selasky wrote: > On Monday 25 December 2006 21:38, M. Warner Losh wrote: > > In message: <200612251456.42770.amistry@am-productions.biz> > > > > Anish Mistry writes: > > : Many usb devices can be attached as different devices along > > : with being functional with some libusb app that requires ugen. > > : eg. HP PSC Printers will attach as ulpt, if ulpt isn't loaded > > : umass can attach to access the card slot, if neither of these > > : are loaded ugen will attach which is required to run the hplip > > : vendor software so that the printer, scanner, and fax machine > > : can be accessed. > > > > You should review how the device presents itself to the system.=20 > > If both umass and ulpt attach to it, it should be possible to > > make them both attach at the same time. > > > > As for ugen, one could easily hack uhub to allow this kind of > > access. ugen really shouldn't be attaching to any device at all, > > but instead the usb bus (aka uhub) should allow ugen-like acess > > to each of the devices. > > Right. > > Here are some pointers: > > The core of your problem is "usbd_set_config()". Whenever you set a > new config value, you need to "device_delete_child()" all attached > devices, and re-probe the "struct usbd_device *" in question. Maybe > you can extend the already existing > "usbd_remove_detached_devices()"? > > Try making a system where the USB device config value is always set > from "usbd_probe_and_attach()", hence this function is always > called from only one thread at a time! > > To force the system to re-call "usbd_probe_and_attach()", simply > set "up->last_refcount =3D 0", then call "usb_needs_explore()". "up" > is of type "struct usbd_port *". > > Maybe you should add a new field: > udev->current_config_value. > > When "udev->probed =3D=3D USBD_PROBED_SPECIFIC_AND_FOUND" disallow > "/dev/ugenX" from setting the config value. > > Incorporate parts of ugen into "struct usbd_device": > > 1) Split ugen into two parts, /dev/ugenX and /dev/ugenX.X . > 2) /dev/ugenX is created by "usbd_new_device()". > 3) /dev/ugenX is removed by "usbd_free_device()". > 4) /dev/ugenX.X is a regular device that attaches when "uaa.iface > !=3D NULL" and "uaa.usegeneric =3D=3D 1". Maybe you have to remove > "USBD_PROBED_GENERIC_AND_FOUND". > > There should be no problems in the USB stack regarding duplicate > device attachment. If two devices start a transfer on the same > interrupt endpoint, they will be served alternately, for example. > > > : It would be very helpful to allow ulpt, umass, and ugen to all > > : attach to the device. This would allow full functionality.=20 > > : Simultaneous access isn't necessary, but might be nice in the > > : future. > > > > That would be a nightmare. Trust me. I've looked into it in the > > past it was scary. > > Better switch the config value, so that the devices show up one by > one. > > > : The closest thing I can think of that allows similar behavior > > : is vgapci that allow acpi_video and a drm driver to both access > > : the video card. > > > > Well, it doesn't really. newbus has a very strong notion of each > > node in the tree has one and only one (or zero) devices attached. > > When do you think that you will have some patches ready? I'm not sure. I'd like to make some headway at least by the first=20 since I don't know how much time I'm going to have after then. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1648747.0v2jYiN86a Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFkK9kxqA5ziudZT0RAimOAJ99ScZIWo9xxLxcmviqOZW9GGz7YgCgjmOp rYQn2DGkufqW7h+vhrIDOUA= =Cdkk -----END PGP SIGNATURE----- --nextPart1648747.0v2jYiN86a-- From owner-freebsd-usb@FreeBSD.ORG Tue Dec 26 13:41:14 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D8F3316A403 for ; Tue, 26 Dec 2006 13:41:14 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8A76813C466 for ; Tue, 26 Dec 2006 13:41:14 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (cpe-24-210-75-119.columbus.res.rr.com [24.210.75.119]) (authenticated bits=0) by mail.united-ware.com (8.13.8/8.13.8) with ESMTP id kBQE3R8n020449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Dec 2006 09:03:35 -0500 (EST) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: freebsd-usb@freebsd.org Date: Tue, 26 Dec 2006 08:42:13 -0500 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2186705.WvIZFNYviA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612260842.34575.amistry@am-productions.biz> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_50,MYFREEBSD2, MYFREEBSD3,RCVD_IN_NJABL_DUL,SPF_SOFTFAIL autolearn=failed version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.5/2379/Tue Dec 26 04:34:51 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: freebsd-bluetooth@freebsd.org Subject: Logitech hid2hci app 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, 26 Dec 2006 13:41:14 -0000 --nextPart2186705.WvIZFNYviA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've created a hid2hci application that converts Logitech Bluetooth=20 HID hubs to Bluetooth HCI devices. This is similar to the Linux=20 hid2hci, but only does Logitech devices and doesn't perform any=20 device matching. Currently it's a bit awkward to use since you'll=20 need uhid and ng_ubt loaded. http://am-productions.biz/docs/logitech-hid2hci.c Just compile with gcc: gcc logitech-hid2hci.c -o logitech-hid2hci You keyboard and mouse should attach as /dev/uhid*. Run the app=20 against the uhid devices. =2E/logitech-hid2hci /dev/uhid0 =2E/logitech-hid2hci /dev/uhid1 An ubt device should now appear. Just for reference if you have a non-logitech device the following=20 should work, just point it at a ugen device. http://www.naobsd.org/MacBook/hid2hci.c =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart2186705.WvIZFNYviA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFkSbKxqA5ziudZT0RApdvAKDWZdNJQp/ap2OPvh7d1qiFpZ5VzACgqXVG 0wmKDTf9wbBP8LaP36bw0VU= =YxFb -----END PGP SIGNATURE----- --nextPart2186705.WvIZFNYviA-- From owner-freebsd-usb@FreeBSD.ORG Tue Dec 26 21:14:54 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98EF316A47E for ; Tue, 26 Dec 2006 21:14:54 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out4.tiscali.nl (smtp-out4.tiscali.nl [195.241.79.164]) by mx1.freebsd.org (Postfix) with ESMTP id 5F05C13C48A for ; Tue, 26 Dec 2006 21:14:54 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out4.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1GzJOe-0002Gc-UI for ; Tue, 26 Dec 2006 21:59:41 +0100 Received: (qmail 18960 invoked from network); 26 Dec 2006 20:59:39 -0000 Received: from localhost.thuis.klop.ws (HELO guido.klop.ws) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; 26 Dec 2006 20:59:39 -0000 Date: Tue, 26 Dec 2006 21:59:38 +0100 To: "Anish Mistry" , freebsd-usb@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200612260842.34575.amistry@am-productions.biz> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <200612260842.34575.amistry@am-productions.biz> User-Agent: Opera Mail/9.10 (FreeBSD) Cc: freebsd-bluetooth@freebsd.org Subject: Re: Logitech hid2hci app 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, 26 Dec 2006 21:14:54 -0000 I'm not a bluetooth maintainer. So I don't have anything to say about inclusion of this in the base system. But maybe it's nice to create a port of this. Ronald. On Tue, 26 Dec 2006 14:42:13 +0100, Anish Mistry wrote: > I've created a hid2hci application that converts Logitech Bluetooth > HID hubs to Bluetooth HCI devices. This is similar to the Linux > hid2hci, but only does Logitech devices and doesn't perform any > device matching. Currently it's a bit awkward to use since you'll > need uhid and ng_ubt loaded. > > http://am-productions.biz/docs/logitech-hid2hci.c > Just compile with gcc: > gcc logitech-hid2hci.c -o logitech-hid2hci > > You keyboard and mouse should attach as /dev/uhid*. Run the app > against the uhid devices. > ./logitech-hid2hci /dev/uhid0 > ./logitech-hid2hci /dev/uhid1 > > An ubt device should now appear. > > Just for reference if you have a non-logitech device the following > should work, just point it at a ugen device. > http://www.naobsd.org/MacBook/hid2hci.c > -- Ronald Klop Amsterdam, The Netherlands From owner-freebsd-usb@FreeBSD.ORG Wed Dec 27 09:40:58 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7429016A403 for ; Wed, 27 Dec 2006 09:40:58 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.freebsd.org (Postfix) with ESMTP id CF7E713C46D for ; Wed, 27 Dec 2006 09:40:57 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id kBR9PbX5029535 for ; Wed, 27 Dec 2006 11:25:38 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Wed, 27 Dec 2006 11:25:37 +0200 (EET) From: Dmitry Pryanishnikov To: freebsd-usb@freebsd.org Message-ID: <20061227112300.E26122@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Do we have supported USB-IrDA adapters? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2006 09:40:58 -0000 Hello! Can anyone suggest an USB-IrDA adapter which would work with FreeBSD-CURRENT or RELENG_6? Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-usb@FreeBSD.ORG Wed Dec 27 15:10:13 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A2DA16A40F for ; Wed, 27 Dec 2006 15:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1BE13C46E for ; Wed, 27 Dec 2006 15:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBRFADNj050318 for ; Wed, 27 Dec 2006 15:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBRFAD2j050312; Wed, 27 Dec 2006 15:10:13 GMT (envelope-from gnats) Resent-Date: Wed, 27 Dec 2006 15:10:13 GMT Resent-Message-Id: <200612271510.kBRFAD2j050312@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, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69BA416A412 for ; Wed, 27 Dec 2006 15:03:35 +0000 (UTC) (envelope-from tijl@kalimero.kotnet.org) Received: from outfbmx006.isp.belgacom.be (outfbmx006.isp.belgacom.be [195.238.5.101]) by mx1.freebsd.org (Postfix) with ESMTP id ECB9413C49B for ; Wed, 27 Dec 2006 15:03:34 +0000 (UTC) (envelope-from tijl@kalimero.kotnet.org) Received: from outmx027.isp.belgacom.be (outmx027.isp.belgacom.be [195.238.4.208]) by outfbmx006.isp.belgacom.be (Postfix) with ESMTP id 048E637FA5 for ; Wed, 27 Dec 2006 15:44:46 +0100 (CET) Received: from outmx027.isp.belgacom.be (localhost [127.0.0.1]) by outmx027.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id kBREif18022828 for ; Wed, 27 Dec 2006 15:44:41 +0100 (envelope-from ) Received: from kalimero.kotnet.org (52.221-244-81.adsl-dyn.isp.belgacom.be [81.244.221.52]) by outmx027.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id kBREiajR022802 for ; Wed, 27 Dec 2006 15:44:36 +0100 (envelope-from ) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.13.8/8.13.8) with ESMTP id kBREiVmT001437 for ; Wed, 27 Dec 2006 15:44:31 +0100 (CET) (envelope-from tijl@kalimero.kotnet.org) Received: (from tijl@localhost) by kalimero.kotnet.org (8.13.8/8.13.8/Submit) id kBREiVSZ001436; Wed, 27 Dec 2006 15:44:31 +0100 (CET) (envelope-from tijl) Message-Id: <200612271444.kBREiVSZ001436@kalimero.kotnet.org> Date: Wed, 27 Dec 2006 15:44:31 +0100 (CET) From: Tijl Coosemans To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/107243: [patch] Apacer USB Flash Drive quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tijl Coosemans List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2006 15:10:13 -0000 >Number: 107243 >Category: usb >Synopsis: [patch] Apacer USB Flash Drive quirk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 27 15:10:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: >Description: The Apacer Handy Steno USB Flash Drive is identified as: umass0: on uhub3 (probe0:umass-sim0:0:0:0): Uninitialized Transport 5:8000? da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB FLASH DRIVE 1.01> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C) The device works properly, but every few seconds the following message appears: umass0: Phase Error, residue = 0 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 >How-To-Repeat: >Fix: --- apacer-usb.patch begins here --- --- sys/cam/scsi/scsi_da.c.orig Wed Dec 27 14:48:27 2006 +++ sys/cam/scsi/scsi_da.c Wed Dec 27 14:48:35 2006 @@ -466,6 +466,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "X-Micro", "Flash Disk", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Apacer Handy Steno + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB FLASH DRIVE", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; --- apacer-usb.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Dec 27 18:10:13 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6BDF16A407 for ; Wed, 27 Dec 2006 18:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 945DB13C46E for ; Wed, 27 Dec 2006 18:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBRIAD4T068006 for ; Wed, 27 Dec 2006 18:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBRIADPR068005; Wed, 27 Dec 2006 18:10:13 GMT (envelope-from gnats) Resent-Date: Wed, 27 Dec 2006 18:10:13 GMT Resent-Message-Id: <200612271810.kBRIADPR068005@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, "Eugene M. Kim" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8255316A47B for ; Wed, 27 Dec 2006 18:01:43 +0000 (UTC) (envelope-from gene@bbq.nttmcl.com) Received: from bbq.nttmcl.com (bbq.nttmcl.com [216.69.70.43]) by mx1.freebsd.org (Postfix) with ESMTP id 64ED813C48E for ; Wed, 27 Dec 2006 18:01:38 +0000 (UTC) (envelope-from gene@bbq.nttmcl.com) Received: from bbq.nttmcl.com (localhost [127.0.0.1]) by bbq.nttmcl.com (8.13.8/8.13.8) with ESMTP id kBRHnbnf001844 for ; Wed, 27 Dec 2006 09:49:37 -0800 (PST) (envelope-from gene@bbq.nttmcl.com) Received: (from gene@localhost) by bbq.nttmcl.com (8.13.8/8.13.8/Submit) id kBRHnbXh001843; Wed, 27 Dec 2006 09:49:37 -0800 (PST) (envelope-from gene) Message-Id: <200612271749.kBRHnbXh001843@bbq.nttmcl.com> Date: Wed, 27 Dec 2006 09:49:37 -0800 (PST) From: "Eugene M. Kim" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/107248: [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Eugene M. Kim" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2006 18:10:13 -0000 >Number: 107248 >Category: usb >Synopsis: [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 27 18:10:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Eugene M. Kim >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: >Environment: System: FreeBSD bbq.nttmcl.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Wed Dec 20 13:17:18 PST 2006 gene@bbq.nttmcl.com:/home/FreeBSD/build/RELENG_6/obj/home/FreeBSD/build/RELENG_6/src/sys/BBQ i386 >Description: iAUDIO X5 (from Cowon), when operating on the USB OTG (on-the-go) port, does not work--it does not support SYNCHRONIZE CACHE requests. dmesg excerpt: da7: Removable Direct Access SCSI-0 device da7: 40.000MB/s transfers da7: 28615MB (58605120 512 byte sectors: 255H 63S/T 3648C) umass3: Phase Error, residue = 512 umass3: Phase Error, residue = 512 umass3: Phase Error, residue = 512 (da7:umass-sim3:3:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 >How-To-Repeat: Plug in the MP3 player using the OTG USB port on the right side. >Fix: Apply the following patch (tested on RELENG_6): --- src/sys/cam/scsi/scsi_da.c.old Wed Nov 29 14:39:41 2006 +++ src/sys/cam/scsi/scsi_da.c Wed Dec 27 09:42:10 2006 @@ -459,6 +459,14 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "iriver", "H10*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Cowon iAUDIO X5 MP3 player, OTG mode + * PR: usb/XXXXXX + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "COWON", "iAUDIO X5", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Dec 29 11:40:31 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11D0816A527 for ; Fri, 29 Dec 2006 11:40:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 69C1513C512 for ; Fri, 29 Dec 2006 11:40:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBTBeUx7014319 for ; Fri, 29 Dec 2006 11:40:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBTBeUqb014318; Fri, 29 Dec 2006 11:40:30 GMT (envelope-from gnats) Date: Fri, 29 Dec 2006 11:40:30 GMT Message-Id: <200612291140.kBTBeUqb014318@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Mario Sergio Fujikawa Ferreira Cc: Subject: Re: kern/106861: ACER Zeevo BT-500 Bluetooth USB Adapter udesc_dump(8) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mario Sergio Fujikawa Ferreira List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2006 11:40:31 -0000 The following reply was made to PR usb/106861; it has been noted by GNATS. From: Mario Sergio Fujikawa Ferreira To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/106861: ACER Zeevo BT-500 Bluetooth USB Adapter udesc_dump(8) Date: Thu, 28 Dec 2006 23:35:26 -0200 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached is udesc_dump(8) /dev/ugen0 for ACER Zeevo BT-500 Bluetooth USB Adapter. -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="zeevo.txt" Standard Device Descriptor: bLength 18 bDescriptorType 01 bcdUSB 0110 bDeviceClass e0 bDeviceSubClass 01 bDeviceProtocol 01 bMaxPacketSize 8 idVendor 0b7a idProduct 07d0 bcdDevice 0134 iManufacturer 0 iProduct 0 iSerialNumber 1 bNumConfigurations 1 Configuration 0: Standard Configuration Descriptor: bLength 9 bDescriptorType 02 wTotalLength 55 bNumInterface 2 bConfigurationValue 1 iConfiguration 0 bmAttributes c0 (self-powered) bMaxPower 50 (100 mA) Standard Interface Descriptor: bLength 9 bDescriptorType 04 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 00 bInterfaceSubClass 00 bInterfaceProtocol 00 iInterface 0 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 81 (in) bmAttributes 03 (Interrupt) wMaxPacketSize 8 bInterval 1 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 82 (in) bmAttributes 02 (Bulk) wMaxPacketSize 64 bInterval 0 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 03 (out) bmAttributes 02 (Bulk) wMaxPacketSize 64 bInterval 0 Standard Interface Descriptor: bLength 9 bDescriptorType 04 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass fe bInterfaceSubClass 01 bInterfaceProtocol 00 iInterface 0 Descriptor: bLength 7 bDescriptorType 21 bDescriptorSubtype 07 07 21 07 88 13 ff 03 Codes Representing Languages by the Device: bLength 4 bDescriptorType 03 wLANGID[0] 0409 String (index 1): 3EC08622 --RnlQjJ0d97Da+TV1-- From owner-freebsd-usb@FreeBSD.ORG Fri Dec 29 11:50:32 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D92F16A5AE for ; Fri, 29 Dec 2006 11:50:32 +0000 (UTC) (envelope-from ivanfrosty@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6DE13C4CC for ; Fri, 29 Dec 2006 11:50:31 +0000 (UTC) (envelope-from ivanfrosty@gmail.com) Received: by ug-out-1314.google.com with SMTP id u40so3718136ugc for ; Fri, 29 Dec 2006 03:50:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FyX5F65kHxOLLtLd0afnarpF6WfM6kB92ohS2EiP5u4LvwO5shjSk/2Uh3cW9tbtE6ZEp08qru6F7LG7FYsu+is5Vpla9ViR74qrAkHv0/Xb32G6xEi4AiY8BbfWp7pEQsjHYkKgHAkkUJRIqDNLMP7UqcasYdbr2fUkbu+O4Qg= Received: by 10.67.119.9 with SMTP id w9mr9352766ugm.1167391366644; Fri, 29 Dec 2006 03:22:46 -0800 (PST) Received: by 10.66.237.4 with HTTP; Fri, 29 Dec 2006 03:22:46 -0800 (PST) Message-ID: <7fd638000612290322x6d26c6b9y9e8843575285e90d@mail.gmail.com> Date: Fri, 29 Dec 2006 14:22:46 +0300 From: "Ivan Frosty" To: freebsd-usb@freebsd.org. In-Reply-To: <7fd638000612290313l5aa5b01bt8fc1e53284a2d75b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7fd638000612290224h2dbf8ee9g1755d446c700ca03@mail.gmail.com> <7fd638000612290313l5aa5b01bt8fc1e53284a2d75b@mail.gmail.com> Cc: Subject: problem with samsung flash 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, 29 Dec 2006 11:50:32 -0000 hello there, i have freebsd 6.1 pentiumII 355mhz processor and 128mb of ram. everytime i put my samsung 512mb in tha usb the machine doesnt boot it halts where the error be at if i pull it out it boots.........then if i put it back in i get an error.......whats with umass? i basically installed everybit and software of the unix i have so i dont know why i get the error anyhelp will be highly appreciated! this is the error: da0 at umass-sim0 bus0 target0wn0 da0: Removable Direct Access SCSI-0 device da0:1.000MB/s transfers da0:511mb(1046720 512 byte sectors:64H 32s/T s11c) umass0:phase Error, residue = 0 (da0:umass-sim0:0:0:0):synchronize cache failed, status == 0x4,scsi status == 0x0 opened disk da0->5! thank you for your time -- Frosty-456 http://www.geocities.com/ivanfrosty/ivanfrosty.html From owner-freebsd-usb@FreeBSD.ORG Sat Dec 30 07:55:43 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF44D16A403 for ; Sat, 30 Dec 2006 07:55:43 +0000 (UTC) (envelope-from y.pankov@irbis.net.ru) Received: from mail.irbis.net.ru (mail.irbis.net.ru [194.186.18.2]) by mx1.freebsd.org (Postfix) with ESMTP id A467813C455 for ; Sat, 30 Dec 2006 07:55:43 +0000 (UTC) (envelope-from y.pankov@irbis.net.ru) Received: from [192.168.0.64] (baator.local [192.168.0.64]) by mail.irbis.net.ru (Postfix) with ESMTP id D0F1B62D49B; Sat, 30 Dec 2006 10:35:14 +0300 (MSK) Message-ID: <45961699.7030309@irbis.net.ru> Date: Sat, 30 Dec 2006 10:34:49 +0300 From: Yuri Pankov Organization: Irbis Telecommunications, JSC User-Agent: Thunderbird 1.5.0.9 (X11/20061230) MIME-Version: 1.0 To: Ivan Frosty References: <7fd638000612290224h2dbf8ee9g1755d446c700ca03@mail.gmail.com> <7fd638000612290313l5aa5b01bt8fc1e53284a2d75b@mail.gmail.com> <7fd638000612290322x6d26c6b9y9e8843575285e90d@mail.gmail.com> In-Reply-To: <7fd638000612290322x6d26c6b9y9e8843575285e90d@mail.gmail.com> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=CE301A55 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.7/2395/Sat Dec 30 02:16:50 2006 on mail.irbis.net.ru X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.irbis.net.ru [194.186.18.2]); Sat, 30 Dec 2006 10:35:24 +0300 (MSK) Cc: freebsd-usb@freebsd.org Subject: Re: problem with samsung flash 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, 30 Dec 2006 07:55:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ivan Frosty wrote: > hello there, i have freebsd 6.1 pentiumII 355mhz processor and 128mb > of ram. everytime i put my samsung 512mb in tha usb the machine doesnt > boot it halts where the error be at if i pull it out it > boots.........then if i put it back in i get an error.......whats with > umass? i basically installed everybit and software of the unix i have > so i dont know why i get the error anyhelp will be highly appreciated! > > this is the error: > > da0 at umass-sim0 bus0 target0wn0 > da0: Removable Direct Access SCSI-0 device > da0:1.000MB/s transfers > da0:511mb(1046720 512 byte sectors:64H 32s/T s11c) > umass0:phase Error, residue = 0 > (da0:umass-sim0:0:0:0):synchronize cache failed, status == 0x4,scsi > status == 0x0 opened disk da0->5! > > thank you for your time > -- > Frosty-456 > http://www.geocities.com/ivanfrosty/ivanfrosty.html Hi, Take a look at http://www.root.org/~nate/freebsd/scsi/quirks.html You can also search through PR database about similar problems. HTH, Yuri -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFlhaZrfDNc84wGlURAm4QAJ9VuC05Rr2Q+jOhZr/ErLjeXztxGACghkFG eZDD/xuQX8aRibIfVwojoBw= =TO8l -----END PGP SIGNATURE-----