From owner-freebsd-usb@FreeBSD.ORG Mon Jul 19 04:21:27 2010 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 3B6311065679 for ; Mon, 19 Jul 2010 04:21:27 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51808.mail.re2.yahoo.com (web51808.mail.re2.yahoo.com [206.190.38.239]) by mx1.freebsd.org (Postfix) with SMTP id E04278FC14 for ; Mon, 19 Jul 2010 04:21:26 +0000 (UTC) Received: (qmail 51271 invoked by uid 60001); 19 Jul 2010 04:21:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1279513285; bh=6j9k4UHlI9S+hxqsY2J3t8MWo+nmyzK4jTgu/RDgmTI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jYptPIFJWFGhuZg4Px/avyjBTXkCdKUb8+xL2c+siKyBmu4AN+vcTogYfhOIrvKhyE5GDDg3hXT1FMoRYhT9lKqeKnKC+vJs6+VABUn9Zw/MIiR5he6EkcIcObjlb5J/bXyiEyX0GtOwu1UjV9kD46jIH0ePqZEY9m5jZwr/1Kw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=n5MJ/ipkFXo+vnOXjUeoVFePC4hZahnPRUdAYJoEsUei5t0NqWLV6DKk0QEt6Tq3N1ur++zIZnd8F1ypnnh1yIXCPrmcgg1EvxIfN/FteI09bluhH9uUXVEhSSfn/x2SD7g6Co1Jtxx0ht0hP6zx5qTzS2dVC0APhbUVRohlhKs=; Message-ID: <964771.49833.qm@web51808.mail.re2.yahoo.com> X-YMail-OSG: TeLcbeoVM1lSLqYZqrgciQYdh6MzK8ZiIkhDj62W5siPmf1 ye6W8CGWHSm5fCAAJPAPuQMgTHtkJXffEHWfC1DHCcp2xjI5VMH2M_Jx.g7R WGTQ6ZFLZ.hNzE7mNevi8p3vNEG5KUeDu4RiNOxSl.sDGInlFU_ARywfnE0s _3ZcoWpIADWFFybYaLD3JVa9zLAJFt4PIoZwyqivyayvpPD4MZxf16PqZoz5 Xrfevz3AMavWI5HsSdOe4xdWsuQOCCOl9eHrIZbLlDjV7MYELOYt52nUwsmy 3Og6oqe4TJmAVgQsoSsFSG5CmY8KeeWZcTUZz5diiqVBh9reijQiEHiaDP2b AGgz2w8w- Received: from [173.183.132.20] by web51808.mail.re2.yahoo.com via HTTP; Sun, 18 Jul 2010 21:21:25 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.104.276605 References: <201007141511.46190.hselasky@c2i.net> Date: Sun, 18 Jul 2010 21:21:25 -0700 (PDT) From: PseudoCylon To: Hans Petter Selasky In-Reply-To: <201007141511.46190.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sam Leffler , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 19 Jul 2010 04:21:27 -0000 [NB] Obviously, I didn't click "reply ALL" last time, so here are missing part > > > > -if(vap->iv_opmode == IEEE80211_M_HOSTAP){ > > > > > > > > -RUN_LOCK(sc); > > > > +if (vap->iv_opmode == IEEE80211_M_HOSTAP) > > > > > > > > sc->cmdq_key_set = RUN_CMDQ_GO; > > > > > > > > -RUN_UNLOCK(sc); > > > > -} > > > > > > > > > > > > Why are you removing these locks? > > > > It is simple assignment, it must be atomic. > > Not necessarily. If you don't put lock statements around it or use the > volatile keyword, the compiler can re-organize the execution order. I will > have a look at it. > > > > > > Another question: > > > i = RUN_CMDQ_GET(&sc->cmdq_store); > > > DPRINTF("cmdq_store=%d\n", i); > > > > > > sc->cmdq[i].func = run_update_beacon_cb; > > > sc->cmdq[i].arg0 = vap; > > > > > > Why is this code and similar places not enclosed with mutexes? > > > > First, I couldn't use a lock in key_delete() because of LoR. So, I use > > atomic instead. RUN_CMDQ_GET is atomic_fetch_add(). Whatever executes that > > code gets unique place (cmdq[i]) to write, so there shouldn't be any race. > > > > Then out of order execution happened. Specially, when key_set() overtakes > > key_delete(), encryption fails. So, all deferred processes are called back > > via run_cmdq_cb() to maintain the order. Because cmdq functions are first > > written for key_delete() where lock causes LoR. So, lock isn't needed. > > > > run_cmdq_cb() uses lock. But it is for calling callback functions locked. > > So that, functions just call another function locked, like > > ##_callback() > > { > > LOCK(); > > ##_locked(); > > UNLOCK(); > > } > > won't be needed. > > If the run_cmdq_cb() is running at the same time which you are queuing > elements, then I note that you set .func before .arg0. The ##_callback() code > only checks if .func has been set. Actually the "i" increment should be after > that you filled out the data, and then you see that you cannot use atomic. I > think the most simple solution is to add another mutex, sc->sc_cmdq_mtx, which > protects the queue and it's associated data. Also, what do you do if the queue > wraps around? You should have a mechanism to prevent that, because you then > might start executing commands in random order? > Here is a patch (patch against P4 if_run.c rev 14 and if_runvar.h rev 8) -- begin patch -- diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c index 8c96534..c988ad4 100644 --- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -90,12 +90,6 @@ SYSCTL_INT(_hw_usb_run, OID_AUTO, debug, CTLFLAG_RW, &run_debug, 0, #define IEEE80211_HAS_ADDR4(wh) \ (((wh)->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS) -/* - * Because of LOR in run_key_delete(), use atomic instead. - * '& RUN_CMDQ_MASQ' is to loop cmdq[]. - */ -#define RUN_CMDQ_GET(c)(atomic_fetchadd_32((c), 1) & RUN_CMDQ_MASQ) - static const struct usb_device_id run_devs[] = { { USB_VP(USB_VENDOR_ABOCOM,USB_PRODUCT_ABOCOM_RT2770) }, { USB_VP(USB_VENDOR_ABOCOM,USB_PRODUCT_ABOCOM_RT2870) }, @@ -554,6 +548,8 @@ run_attach(device_t self) mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), MTX_NETWORK_LOCK, MTX_DEF); +mtx_init(&sc->sc_cmdq_mtx, device_get_nameunit(sc->sc_dev), + MTX_NETWORK_LOCK, MTX_DEF); iface_index = RT2860_IFACE_INDEX; @@ -737,6 +733,7 @@ run_detach(device_t self) } mtx_destroy(&sc->sc_mtx); +mtx_destroy(&sc->sc_cmdq_mtx); return (0); } @@ -830,9 +827,6 @@ run_vap_create(struct ieee80211com *ic, if(sc->rvp_cnt++ == 0) ic->ic_opmode = opmode; -if(opmode == IEEE80211_M_HOSTAP) -sc->cmdq_run = RUN_CMDQ_GO; - DPRINTF("rvp_id=%d bmap=%x rvp_cnt=%d\n", rvp->rvp_id, sc->rvp_bmap, sc->rvp_cnt); @@ -889,27 +883,31 @@ run_cmdq_cb(void *arg, int pending) struct run_softc *sc = arg; uint8_t i; -/* call cmdq[].func locked */ -RUN_LOCK(sc); -for(i = sc->cmdq_exec; sc->cmdq[i].func && pending; - i = sc->cmdq_exec, pending--){ +RUN_CMDQ_LOCK(sc); +for (i = sc->cmdq_exec; sc->cmdq[i].func; i = sc->cmdq_exec) { DPRINTFN(6, "cmdq_exec=%d pending=%d\n", i, pending); -if(sc->cmdq_run == RUN_CMDQ_GO){ +if (sc->cmdq_run == RUN_CMDQ_GO || + (sc->cmdq_key_set == RUN_CMDQ_GO && + sc->cmdq[i].func == run_key_set_cb)) { +RUN_CMDQ_UNLOCK(sc); +RUN_LOCK(sc); /* * If arg0 is NULL, callback func needs more * than one arg. So, pass ptr to cmdq struct. */ -if(sc->cmdq[i].arg0) +if (sc->cmdq[i].arg0) sc->cmdq[i].func(sc->cmdq[i].arg0); else sc->cmdq[i].func(&sc->cmdq[i]); +RUN_UNLOCK(sc); +RUN_CMDQ_LOCK(sc); } sc->cmdq[i].arg0 = NULL; sc->cmdq[i].func = NULL; sc->cmdq_exec++; sc->cmdq_exec &= RUN_CMDQ_MASQ; } -RUN_UNLOCK(sc); +RUN_CMDQ_UNLOCK(sc); } static void @@ -1771,6 +1769,19 @@ run_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) case IEEE80211_S_INIT: restart_ratectl = 1; +/* + * When hostapd has set a key, don't clear it. + * But, when the device is being brought down, clear it. + */ +if (sc->cmdq_key_set != RUN_CMDQ_GO || + ostate == IEEE80211_S_RUN) { +/* clear shared key table */ +run_set_region_4(sc, + RT2860_SKEY(rvp->rvp_id, 0), 0, 4 * 32); +/* clear shared key mode */ +run_set_region_4(sc, RT2860_SKEY_MODE_0_7, 0, 4); +} + if (ostate != IEEE80211_S_RUN) break; @@ -1922,12 +1933,24 @@ run_wme_update(struct ieee80211com *ic) struct run_softc *sc = ic->ic_ifp->if_softc; /* sometime called wothout lock */ -if(mtx_owned(&ic->ic_comlock.mtx)){ -uint32_t i = RUN_CMDQ_GET(&sc->cmdq_store); +if (mtx_owned(&ic->ic_comlock.mtx)) { +RUN_CMDQ_LOCK(sc); +uint8_t i = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", i); + +if (sc->cmdq[i].func != NULL) { +DPRINTF("cmdq is full\n"); +RUN_CMDQ_UNLOCK(sc); +return (-1); +} + sc->cmdq[i].func = run_wme_update_cb; sc->cmdq[i].arg0 = ic; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; ieee80211_runtask(ic, &sc->cmdq_task); + +RUN_CMDQ_UNLOCK(sc); return (0); } @@ -2085,28 +2108,38 @@ run_key_set(struct ieee80211vap *vap, struct ieee80211_key *k, { struct ieee80211com *ic = vap->iv_ic; struct run_softc *sc = ic->ic_ifp->if_softc; -uint32_t i; +uint8_t i; -i = RUN_CMDQ_GET(&sc->cmdq_store); +RUN_CMDQ_LOCK(sc); + +i = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", i); + +if (sc->cmdq[i].func != NULL) { +DPRINTF("cmdq is full\n"); +RUN_CMDQ_UNLOCK(sc); +return (0); +} + sc->cmdq[i].func = run_key_set_cb; sc->cmdq[i].arg0 = NULL; sc->cmdq[i].arg1 = vap; sc->cmdq[i].k = k; IEEE80211_ADDR_COPY(sc->cmdq[i].mac, mac); +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; ieee80211_runtask(ic, &sc->cmdq_task); /* * To make sure key will be set when hostapd * calls iv_key_set() before if_init(). */ -if(vap->iv_opmode == IEEE80211_M_HOSTAP){ -RUN_LOCK(sc); +if (vap->iv_opmode == IEEE80211_M_HOSTAP) sc->cmdq_key_set = RUN_CMDQ_GO; -RUN_UNLOCK(sc); -} -return(1); +RUN_CMDQ_UNLOCK(sc); + +return (1); } /* @@ -2154,16 +2187,23 @@ run_key_delete(struct ieee80211vap *vap, struct ieee80211_key *k) struct ieee80211com *ic = vap->iv_ic; struct run_softc *sc = ic->ic_ifp->if_softc; struct ieee80211_key *k0; -uint32_t i; +uint8_t i; /* * When called back, key might be gone. So, make a copy * of some values need to delete keys before deferring. - * But, because of LOR with node lock, cannot use lock here. - * So, use atomic instead. */ -i = RUN_CMDQ_GET(&sc->cmdq_store); +RUN_CMDQ_LOCK(sc); + +i = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", i); + +if (sc->cmdq[i].func != NULL) { +DPRINTF("cmdq is full\n"); +RUN_CMDQ_UNLOCK(sc); +return (0); +} + sc->cmdq[i].func = run_key_delete_cb; sc->cmdq[i].arg0 = NULL; sc->cmdq[i].arg1 = sc; @@ -2172,9 +2212,13 @@ run_key_delete(struct ieee80211vap *vap, struct ieee80211_key *k) k0->wk_keyix = k->wk_keyix; /* matching wcid was written to wk_pad in run_key_set() */ k0->wk_pad = k->wk_pad; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; ieee80211_runtask(ic, &sc->cmdq_task); -return (1);/* return fake success */ +RUN_CMDQ_UNLOCK(sc); + +return (1); } static void @@ -2362,19 +2406,31 @@ run_newassoc(struct ieee80211_node *ni, int isnew) } /* only interested in true associations */ -if (isnew && ni->ni_associd != 0){ - +if (isnew && ni->ni_associd != 0) { /* - * This function could is called though timeout function. + * This function could be called though timeout function. * Need to defer. */ -uint32_t cnt = RUN_CMDQ_GET(&sc->cmdq_store); +RUN_CMDQ_LOCK(sc); + +uint8_t cnt = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", cnt); + +if (sc->cmdq[cnt].func != NULL) { +DPRINTF("cmdq is full\n"); +RUN_CMDQ_UNLOCK(sc); +return; +} + sc->cmdq[cnt].func = run_newassoc_cb; sc->cmdq[cnt].arg0 = NULL; sc->cmdq[cnt].arg1 = ni; sc->cmdq[cnt].wcid = wcid; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; ieee80211_runtask(ic, &sc->cmdq_task); + +RUN_CMDQ_UNLOCK(sc); } DPRINTF("new assoc isnew=%d associd=%x addr=%s\n", @@ -2805,11 +2861,20 @@ tr_setup: if (error != USB_ERR_CANCELLED) { if (error == USB_ERR_TIMEOUT) { device_printf(sc->sc_dev, "device timeout\n"); -uint32_t i = RUN_CMDQ_GET(&sc->cmdq_store); + +RUN_CMDQ_LOCK(sc); +uint8_t i = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", i); -sc->cmdq[i].func = run_usb_timeout_cb; -sc->cmdq[i].arg0 = vap; -ieee80211_runtask(ic, &sc->cmdq_task); +if (sc->cmdq[i].func != NULL) +DPRINTF("cmdq is full\n"); +else { +sc->cmdq[i].func = run_usb_timeout_cb; +sc->cmdq[i].arg0 = vap; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; +ieee80211_runtask(ic, &sc->cmdq_task); +} +RUN_CMDQ_UNLOCK(sc); } /* @@ -3067,11 +3132,24 @@ run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) * With multiple vaps or if_bridge, if_start() is called * with a non-sleepable lock, tcpinp. So, need to defer. */ -uint32_t i = RUN_CMDQ_GET(&sc->cmdq_store); +RUN_CMDQ_LOCK(sc); +uint8_t i = sc->cmdq_store; DPRINTFN(6, "cmdq_store=%d\n", i); -sc->cmdq[i].func = run_drain_fifo; -sc->cmdq[i].arg0 = sc; -ieee80211_runtask(ic, &sc->cmdq_task); +if (sc->cmdq[i].func != NULL) { +DPRINTF("cmdq is full\n"); +/* + * Keep going. + * no need to stop Tx + * just because reading Tx stats failed + */ +} else { +sc->cmdq[i].func = run_drain_fifo; +sc->cmdq[i].arg0 = sc; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; +ieee80211_runtask(ic, &sc->cmdq_task); +} +RUN_CMDQ_UNLOCK(sc); } } @@ -3188,7 +3266,7 @@ run_sendprot(struct run_softc *sc, ackrate = ieee80211_ack_rate(ic->ic_rt, rate); isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0; -dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort); +dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort) + ieee80211_ack_duration(ic->ic_rt, rate, isshort); wflags = RT2860_TX_FRAG; @@ -3906,14 +3984,27 @@ run_update_beacon(struct ieee80211vap *vap, int item) { struct ieee80211com *ic = vap->iv_ic; struct run_softc *sc = ic->ic_ifp->if_softc; -uint32_t i; +uint8_t i; + +RUN_CMDQ_LOCK(sc); -i = RUN_CMDQ_GET(&sc->cmdq_store); +i = sc->cmdq_store; DPRINTF("cmdq_store=%d\n", i); + +if (sc->cmdq[i].func != NULL) { +DPRINTF("cmdq is full\n"); +RUN_CMDQ_UNLOCK(sc); +return; +} + sc->cmdq[i].func = run_update_beacon_cb; sc->cmdq[i].arg0 = vap; +sc->cmdq_store++; +sc->cmdq_store &= RUN_CMDQ_MASQ; ieee80211_runtask(ic, &sc->cmdq_task); +RUN_CMDQ_UNLOCK(sc); + return; } @@ -4693,14 +4784,6 @@ run_init_locked(struct run_softc *sc) /* clear WCID attribute table */ run_set_region_4(sc, RT2860_WCID_ATTR(0), 0, 8 * 32); -/* hostapd sets a key before init. So, don't clear it. */ -if(sc->cmdq_key_set != RUN_CMDQ_GO){ -/* clear shared key table */ -run_set_region_4(sc, RT2860_SKEY(0, 0), 0, 8 * 32); -/* clear shared key mode */ -run_set_region_4(sc, RT2860_SKEY_MODE_0_7, 0, 4); -} - run_read(sc, RT2860_US_CYC_CNT, &tmp); tmp = (tmp & ~0xff) | 0x1e; run_write(sc, RT2860_US_CYC_CNT, tmp); @@ -4807,7 +4890,7 @@ run_stop(void *arg) ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); sc->ratectl_run = RUN_RATECTL_OFF; -sc->cmdq_run = sc->cmdq_key_set; +sc->cmdq_run = RUN_CMDQ_ABORT; RUN_UNLOCK(sc); diff --git a/dev/usb/wlan/if_runvar.h b/dev/usb/wlan/if_runvar.h index 39addbf..a6fddaa 100644 --- a/dev/usb/wlan/if_runvar.h +++ b/dev/usb/wlan/if_runvar.h @@ -202,6 +202,7 @@ struct run_softc { uint8_tsc_bssid[6]; struct mtxsc_mtx; +struct mtxsc_cmdq_mtx; struct run_endpoint_queuesc_epq[RUN_EP_QUEUES]; @@ -210,12 +211,12 @@ struct run_softc { uint8_tratectl_run; #define RUN_RATECTL_OFF0 -/* need to be power of 2, otherwise RUN_CMDQ_GET fails */ +/* need to be power of 2, otherwise run_cmdq_cb() fails */ #define RUN_CMDQ_MAX16 #define RUN_CMDQ_MASQ(RUN_CMDQ_MAX - 1) struct run_cmdqcmdq[RUN_CMDQ_MAX]; struct taskcmdq_task; -uint32_tcmdq_store; +uint8_tcmdq_store; uint8_tcmdq_exec; uint8_tcmdq_run; uint8_tcmdq_key_set; @@ -255,4 +256,7 @@ struct run_softc { #define RUN_UNLOCK(sc)mtx_unlock(&(sc)->sc_mtx) #define RUN_LOCK_ASSERT(sc, t)mtx_assert(&(sc)->sc_mtx, t) +#define RUN_CMDQ_LOCK(sc)mtx_lock(&(sc)->sc_cmdq_mtx) +#define RUN_CMDQ_UNLOCK(sc)mtx_unlock(&(sc)->sc_cmdq_mtx) + #endif/* _IF_RUNVAR_H_ */ -- end patch -- From owner-freebsd-usb@FreeBSD.ORG Mon Jul 19 11:07:08 2010 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 6829C106566C for ; Mon, 19 Jul 2010 11:07:08 +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 562908FC15 for ; Mon, 19 Jul 2010 11:07:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6JB78Rp065872 for ; Mon, 19 Jul 2010 11:07:08 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6JB77JU065870 for freebsd-usb@FreeBSD.org; Mon, 19 Jul 2010 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Jul 2010 11:07:07 GMT Message-Id: <201007191107.o6JB77JU065870@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, 19 Jul 2010 11:07:08 -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 -------------------------------------------------------------------------------- s usb/148702 usb [request] IO DATA USB-RSAQ5 support on FreeBSD-8.0 o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/148052 usb Documentation error on u3g.4 man page o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB a usb/147196 usb [usbdevs] [patch] Please add a USB-HDD to usb_quirk.c o usb/147190 usb [usbdevs] [patch] Add USR5422 to upgt wlan driver a usb/146907 usb [rue] [patch] OQO model01 network does not work on Fre o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146799 usb usbdevs(8) missing in ObsoleteFiles.inc o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack o usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb o usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144751 usb [ukbd] [usb8] kernel without keyboard support won't co o usb/144423 usb [usb8] [patch] if_run panic with USB-N13 o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors o usb/143790 usb [boot] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op o usb/143448 usb [usbdevs] [usb8] [patch] QUIRK: JMicron JM20336 USB/SA f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system f usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P o usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR a usb/141467 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key o usb/140928 usb [u3g] [usb8] [patch] ZTE CDMA2000 1X EV-DO (MG478/AC87 o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar o usb/140590 usb [bluetooth] [usb8] ng_ubt(4) ng_l2cap_process_cmd_rej o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140259 usb [libusb] [patch] [usb8] libusb-1.0 portability/compati o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor o usb/138915 usb [patch] [usb8] [usb67] add support for SheevaPlug seri a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t a usb/138879 usb [uftdi] [patch] Patch to add support for CTI USB-Mini o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138172 usb [u3g] [patch] [usb67] Additional dev id for u3g (Optio o usb/138138 usb [u3g] [patch] [usb67] Novatel U760 for u3g (Verizon an o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137616 usb [usb67][usb8][usbdevs] [patch]: usbdevs update: Please o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors f bin/137180 usb [build] [patch] building world for 8.0-BETA2 fails on o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135575 usb [usbdevs] [patch] [usb67] Add HTC Wizard phone vid/pid o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134633 usb Add support for WILLCOM03(SHARP smart phone) o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak 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 [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa 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 [hang] Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] [rum] Kernel panic after NOMEM caused by 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 o 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/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 [usb8] DVD drive detects as 'da' device o usb/129945 usb [usb67] [usbdevs] [patch] add u3g support for Longchee 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] [usb67] [patch] add support for ZTE AC8700 mode 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] [usb67] [patch] Liebert UPS being assigned u 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 [usb67] [patch] uaudio is not full duplex p 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 o 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 p usb/127549 usb [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requi f usb/127543 usb [patch] [ubsa] Support Option Globetrotter HSDPA modem s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o 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/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 kern/124130 usb [usb] gmirror fails to start usb devices that were pre 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 [new driver] [patch] New driver for Sierra Wireless 3G 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] [panic] FreeBSD fails to boot with usb legacy s 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/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 [snd_uaudio] [patch] Not possible to record with Plant 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 [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/107243 usb [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive q o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar 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/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work 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/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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a 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/80854 usb [patch] [request] suggestion for new iface-no-probe me 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 " f usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic 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 f 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 f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f 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 usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 347 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jul 19 19:20:03 2010 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 E9B7A106566B; Mon, 19 Jul 2010 19:20:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1E4CC8FC13; Mon, 19 Jul 2010 19:20:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=6KUfmzbym87FxoMGRWTr46e60yW4QTEOPMCHQyBOt0U= c=1 sm=1 a=HRj3ij7MtkgA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=Yv11-1_rfktiYAfpp74A:9 a=eEo5yydBpXFsrSRyyCK1k87hZm8A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 118491; Mon, 19 Jul 2010 21:20:01 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Mon, 19 Jul 2010 21:17:04 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007141511.46190.hselasky@c2i.net> <964771.49833.qm@web51808.mail.re2.yahoo.com> In-Reply-To: <964771.49833.qm@web51808.mail.re2.yahoo.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007192117.05034.hselasky@c2i.net> Cc: Sam Leffler , PseudoCylon , freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 19 Jul 2010 19:20:04 -0000 Hi AK, I've committed your patches to USB P4. I've made some additional patches. Can you check and verify everything? http://p4web.freebsd.org/@@181189?ac=10 Also please compile a kernel with WITNESS enabled to catch any LOR's, hence we introduced another mutex. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jul 20 10:03:23 2010 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 973C81065676 for ; Tue, 20 Jul 2010 10:03:23 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51801.mail.re2.yahoo.com (web51801.mail.re2.yahoo.com [206.190.38.232]) by mx1.freebsd.org (Postfix) with SMTP id 43BBF8FC12 for ; Tue, 20 Jul 2010 10:03:22 +0000 (UTC) Received: (qmail 354 invoked by uid 60001); 20 Jul 2010 10:03:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1279620202; bh=9WBR2oGDu6nlU0TP9bX+mV837F2QVHLkCNfU/Yl1VFo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=2zehmB+YgQT9mtNJfelKIQ4T2DErCBsd5zC6IvKUcpoUx0SHs3pFUES+KqIPk5uSRUetDc2FergtlKH94VkQ9xpqC7/058Tau+ee73GSYdXIASNSPjLlIGShg/0nekYb+HH/fHscIdXOXQq69lYAoxmMDvo5oloBCaOPsTmhRTE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=mWFZwtRNxd92g2EWzuaQOdy99G8h2wrwzHPya1zDDGfoueYB5Zn/ckeqqJaxAM/G1fycGHP7htfyhsu3r/xJC7dBIxiEKWonaesyS74jREYP+knXhXCaSBl6E4eIxMb+Wy0d/rMImbyJixrbvjvx1cK9YEd7aYP9OE/nYRTGHuk=; Message-ID: <504334.98385.qm@web51801.mail.re2.yahoo.com> X-YMail-OSG: 4H6sSfQVM1nlRF_lds7wrQNKUPTn3X_C4C1aO08BqYrJZOc UPvTBYo3CyuL5rbI.vqc3vGmTuuQ704n3_pKPxvw_7ct925qu8cYOGTI9EkB 9I6f4QZcQxMLbOJ0Pk1a1481QuvDey0k86sriG5hIpItBHfX4S3wEHXFq1Mq J060FKmnk.9EKfQ0ujcogGw6OiB_B5FhKSe4rCjGodEup7HIEWZVTfeg5YLz 8nSYC9PUy4ZpjFqZXW3WB7bvu15tffaYxyj2bwJETlpePsOV.Y94EA8y4MTz gPnf0DvN86pOew8fzEmh2QksjBHCDRx17CK7_GVORVm6bJ7A_rKqPjLSPD3a Ouqr2UTR0ga0- Received: from [173.183.132.20] by web51801.mail.re2.yahoo.com via HTTP; Tue, 20 Jul 2010 03:03:22 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.104.276605 References: <201007141511.46190.hselasky@c2i.net> <964771.49833.qm@web51808.mail.re2.yahoo.com> <201007192117.05034.hselasky@c2i.net> Date: Tue, 20 Jul 2010 03:03:22 -0700 (PDT) From: PseudoCylon To: Hans Petter Selasky , freebsd-current@freebsd.org In-Reply-To: <201007192117.05034.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sam Leffler , freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 20 Jul 2010 10:03:23 -0000 ----- Original Message ---- > From: Hans Petter Selasky > To: freebsd-current@freebsd.org > Cc: PseudoCylon ; Sam Leffler ; >freebsd-usb@freebsd.org > Sent: Mon, July 19, 2010 1:17:04 PM > Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers > > Hi AK, > > I've committed your patches to USB P4. I've made some additional patches. > > Can you check and verify everything? > > http://p4web.freebsd.org/@@181189?ac=10 > Hi If we change sc->cmdq_run = RUN_CMDQ_ABORT, -- begin excerpt -- @@ -4890,7 +4877,10 @@ run_stop(void *arg) ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); sc->ratectl_run = RUN_RATECTL_OFF; -sc->cmdq_run = RUN_CMDQ_ABORT; + +RUN_CMDQ_LOCK(sc); +sc->cmdq_run = sc->cmdq_key_set = RUN_CMDQ_ABORT; +RUN_CMDQ_UNLOCK(sc); -- end excerpt -- we also need to change this, otherwise key will be cleared. -- begin patch -- diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c index 017e4b0..f7abe17 100644 --- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -4670,8 +4670,6 @@ run_init_locked(struct run_softc *sc) if(ic->ic_nrunning > 1) return; -run_stop(sc); - for (ntries = 0; ntries < 100; ntries++) { if (run_read(sc, RT2860_ASIC_VER_ID, &tmp) != 0) goto fail; -- end patch -- > Also please compile a kernel with WITNESS enabled to catch any LOR's, hence we > > introduced another mutex. > The 2nd mutex did solve a deadlock, but doesn't solve the LOR. -- begin message -- lock order reversal: 1st 0xffffff8000a257d0 run0_node_lock (run0_node_lock) @ /usr/src/sys/net80211/ieee80211_node.c:1736 2nd 0xffffff8000a19348 run0 (network driver) @ /mnt/share/home/AK/FreeBSD/modules/usb/run/../../../../mnt/dev/usb/wlan/if_run.c:2212 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 run_key_delete() at run_key_delete+0x45 _ieee80211_crypto_delkey() at _ieee80211_crypto_delkey+0x9e ieee80211_crypto_delkey() at ieee80211_crypto_delkey+0x28 ieee80211_node_delucastkey() at ieee80211_node_delucastkey+0x78 ieee80211_sta_leave() at ieee80211_sta_leave+0x16 ieee80211_node_leave() at ieee80211_node_leave+0x11d hostap_recv_mgmt() at hostap_recv_mgmt+0x33f hostap_input() at hostap_input+0xc09 run_rx_frame() at run_rx_frame+0x13f run_bulk_rx_callback() at run_bulk_rx_callback+0x3b7 usbd_callback_wrapper() at usbd_callback_wrapper+0x12b usb_command_wrapper() at usb_command_wrapper+0x76 usb_callback_proc() at usb_callback_proc+0x76 usb_process() at usb_process+0xbb fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8029b4ed30, rbp = 0 --- -- end message -- or -- begin message -- lock order reversal: 1st 0xffffff8000a257d0 run0_node_lock (run0_node_lock) @ /usr/src/sys/net80211/ieee80211_node.c:1736 2nd 0xffffff8000a19348 run0 (network driver) @ /mnt/share/home/AK/FreeBSD/modules/usb/run/../../../../mnt/dev/usb/wlan/if_run.c:2212 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 run_key_delete() at run_key_delete+0x47 _ieee80211_crypto_delkey() at _ieee80211_crypto_delkey+0x9e ieee80211_crypto_delkey() at ieee80211_crypto_delkey+0x28 ieee80211_node_delucastkey() at ieee80211_node_delucastkey+0x78 ieee80211_sta_leave() at ieee80211_sta_leave+0x16 ieee80211_node_leave() at ieee80211_node_leave+0x11d ieee80211_node_timeout() at ieee80211_node_timeout+0x1d5 softclock() at softclock+0x2a0 intr_event_execute_handlers() at intr_event_execute_handlers+0x66 ithread_loop() at ithread_loop+0xb2 fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff8000052d30, rbp = 0 --- -- end message -- There are new warning, "acquiring duplicate lock." For example, -- begin message -- acquiring duplicate lock of same type: "network driver" 1st run0 @ /usr/src/sys/dev/usb/usb_request.c:691 2nd run0 @ /mnt/share/home/AK/FreeBSD/modules/usb/run/../../../../mnt/dev/usb/wlan/if_run.c:4831 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x8ef _mtx_lock_flags() at _mtx_lock_flags+0x78 run_init_locked() at run_init_locked+0x753 run_ioctl() at run_ioctl+0xad taskqueue_run() at taskqueue_run+0x91 taskqueue_thread_loop() at taskqueue_thread_loop+0x3f fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff803e5b2d30, rbp = 0 --- -- end message -- I don't know if it's worth patching or safe to patch (specially lock/unlock in run_bulk_tx_callbackN()), but here is one -- begin patch -- diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c index 017e4b0..2a0b5b6 100644 --- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -712,14 +712,14 @@ run_detach(device_t self) /* stop all USB transfers */ usbd_transfer_unsetup(sc->sc_xfer, RUN_N_XFER); -RUN_LOCK(sc); - -sc->ratectl_run = RUN_RATECTL_OFF; - RUN_CMDQ_LOCK(sc); sc->cmdq_run = sc->cmdq_key_set = RUN_CMDQ_ABORT; RUN_CMDQ_UNLOCK(sc); +RUN_LOCK(sc); + +sc->ratectl_run = RUN_RATECTL_OFF; + /* free TX list, if any */ for (i = 0; i != RUN_EP_QUEUES; i++) run_unsetup_tx_list(sc, &sc->sc_epq[i]); @@ -2865,6 +2865,9 @@ tr_setup: if ((error == USB_ERR_TIMEOUT) && (vap != NULL)) { uint8_t i; device_printf(sc->sc_dev, "device timeout\n"); + +RUN_UNLOCK(sc); + RUN_CMDQ_LOCK(sc); i = run_cmdq_append(sc); if (i < RUN_CMDQ_MAX) { @@ -2874,6 +2877,8 @@ tr_setup: RUN_CMDQ_UNLOCK(sc); if (i < RUN_CMDQ_MAX) ieee80211_runtask(ic, &sc->cmdq_task); + +RUN_LOCK(sc); } /* @@ -3134,6 +3139,8 @@ run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) */ uint8_t i; +RUN_UNLOCK(sc); + RUN_CMDQ_LOCK(sc); i = run_cmdq_append(sc); if (i < RUN_CMDQ_MAX) { @@ -3144,6 +3151,7 @@ run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) if (i < RUN_CMDQ_MAX) ieee80211_runtask(ic, &sc->cmdq_task); +RUN_LOCK(sc); } } @@ -4670,8 +4678,6 @@ run_init_locked(struct run_softc *sc) if(ic->ic_nrunning > 1) return; -run_stop(sc); - for (ntries = 0; ntries < 100; ntries++) { if (run_read(sc, RT2860_ASIC_VER_ID, &tmp) != 0) goto fail; @@ -4827,9 +4833,11 @@ run_init_locked(struct run_softc *sc) ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; ifp->if_drv_flags |= IFF_DRV_RUNNING; +RUN_UNLOCK(sc); RUN_CMDQ_LOCK(sc); sc->cmdq_run = RUN_CMDQ_GO; RUN_CMDQ_UNLOCK(sc); +RUN_LOCK(sc); for(i = 0; i != RUN_N_XFER; i++) usbd_xfer_set_stall(sc->sc_xfer[i]); @@ -4878,12 +4886,12 @@ run_stop(void *arg) sc->ratectl_run = RUN_RATECTL_OFF; +RUN_UNLOCK(sc); + RUN_CMDQ_LOCK(sc); sc->cmdq_run = sc->cmdq_key_set = RUN_CMDQ_ABORT; RUN_CMDQ_UNLOCK(sc); -RUN_UNLOCK(sc); - for(i = 0; i < RUN_N_XFER; i++) usbd_transfer_drain(sc->sc_xfer[i]); -- end patch -- There is a LOR between node lock and run lock in run_raw_xmit(), but I haven't been able to reproduce with the latest driver. This LOR has been around since addition of hostap mode. I didn't fix it because everyone would have objected if I had deferred run_raw_xmit(). Following LORs are also around from the beginning and not related to this change, but just for info -- begin message -- lock order reversal: 1st 0xffffff8000a257d0 run0_node_lock (run0_node_lock) @ /usr/src/sys/net80211/ieee80211_ioctl.c:1326 2nd 0xffffff8000a24018 run0_com_lock (run0_com_lock) @ /usr/src/sys/net80211/ieee80211_node.c:2486 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 ieee80211_node_leave() at ieee80211_node_leave+0x80 setmlme_common() at setmlme_common+0x27b ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x7e ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0xaba in_control() at in_control+0x1ff ifioctl() at ifioctl+0x1100 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xf0 syscallenter() at syscallenter+0x1b5 syscall() at syscall+0x4c Xfast_syscall() at Xfast_syscall+0xe2 --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x8008a8d4c, rsp = 0x7fffffffe898, rbp = 0x800ca6200 --- -- end message -- -- begin message -- lock order reversal: 1st 0xffffff8000a24018 run0_com_lock (run0_com_lock) @ /usr/src/sys/net80211/ieee80211_scan.c:683 2nd 0xffffff8000a25928 run0_scan_lock (run0_scan_lock) @ /usr/src/sys/net80211/ieee80211_node.c:2135 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 ieee80211_iterate_nodes() at ieee80211_iterate_nodes+0x3d hostap_newstate() at hostap_newstate+0x3a1 run_newstate() at run_newstate+0x1ef ieee80211_newstate_cb() at ieee80211_newstate_cb+0x71 taskqueue_run() at taskqueue_run+0x91 taskqueue_thread_loop() at taskqueue_thread_loop+0x3f fork_exit() at fork_exit+0x12a fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffff803e5b7d30, rbp = 0 --- -- end message -- AK From owner-freebsd-usb@FreeBSD.ORG Tue Jul 20 10:49:33 2010 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 B7A8F1065674; Tue, 20 Jul 2010 10:49:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id E617E8FC0A; Tue, 20 Jul 2010 10:49:32 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=HRj3ij7MtkgA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=BYtiyKqR4ApS3tB-cVAA:9 a=Tyssu-7BCdl8jOWnyjmdT0r4CX4A:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1376044727; Tue, 20 Jul 2010 12:49:30 +0200 From: Hans Petter Selasky To: PseudoCylon Date: Tue, 20 Jul 2010 12:46:34 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007141511.46190.hselasky@c2i.net> <201007192117.05034.hselasky@c2i.net> <504334.98385.qm@web51801.mail.re2.yahoo.com> In-Reply-To: <504334.98385.qm@web51801.mail.re2.yahoo.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007201246.34654.hselasky@c2i.net> Cc: Sam Leffler , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 20 Jul 2010 10:49:33 -0000 On Tuesday 20 July 2010 12:03:22 PseudoCylon wrote: > ----- Original Message ---- > > > From: Hans Petter Selasky > > To: freebsd-current@freebsd.org > > Cc: PseudoCylon ; Sam Leffler ; > > > >freebsd-usb@freebsd.org > > > > Sent: Mon, July 19, 2010 1:17:04 PM > > Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers > > > > Hi AK, > > > > I've committed your patches to USB P4. I've made some additional > > patches. > > > > Can you check and verify everything? > > > > http://p4web.freebsd.org/@@181189?ac=10 > > Hi > > If we change sc->cmdq_run = RUN_CMDQ_ABORT, > > -- begin excerpt -- > > > @@ -4890,7 +4877,10 @@ run_stop(void *arg) > ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); > > sc->ratectl_run = RUN_RATECTL_OFF; > -sc->cmdq_run = RUN_CMDQ_ABORT; > + > +RUN_CMDQ_LOCK(sc); > +sc->cmdq_run = sc->cmdq_key_set = RUN_CMDQ_ABORT; > +RUN_CMDQ_UNLOCK(sc); > > -- end excerpt -- > > > we also need to change this, otherwise key will be cleared. Ok. Try to give the second mutex a different name, and see how many warnings go away. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jul 20 16:10:03 2010 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 60CF6106566B for ; Tue, 20 Jul 2010 16:10: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 4F97D8FC20 for ; Tue, 20 Jul 2010 16:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6KGA3bO051366 for ; Tue, 20 Jul 2010 16:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6KGA3lK051365; Tue, 20 Jul 2010 16:10:03 GMT (envelope-from gnats) Date: Tue, 20 Jul 2010 16:10:03 GMT Message-Id: <201007201610.o6KGA3lK051365@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Derrick Brashear Cc: Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Derrick Brashear List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 16:10:03 -0000 The following reply was made to PR usb/140883; it has been noted by GNATS. From: Derrick Brashear To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic Date: Tue, 20 Jul 2010 11:39:28 -0400 Happens with non-gig adapters also: axe0: on usbus2 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto axe1: on usbus2 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto USB200M v2. USB_ERR_TIMEOUT until a reset is forced after a large amount of data passes, e.g. Jul 20 01:50:38 rtr kernel: axe_bulk_write_callback: transfer error, USB_ERR_TIMEOUT Jul 20 01:50:48 rtr kernel: axe_bulk_write_callback: transfer error, USB_ERR_TIMEOUT Jul 20 01:50:57 rtr kernel: axe_bulk_write_callback: transfer error, USB_ERR_TIMEOUT Jul 20 01:51:01 rtr kernel: axe_bulk_read_callback: bulk read error, USB_ERR_CANCELLED Jul 20 01:51:01 rtr kernel: axe_bulk_write_callback: transfer error, USB_ERR_CANCELLED Jul 20 01:51:13 rtr kernel: axe_bulk_read_callback: bulk read error, USB_ERR_CANCELLED and data continues to be able to be read after writing it fails, as described in the original PR. sysctl -a|grep date kern.osreldate: 801000 -- Derrick From owner-freebsd-usb@FreeBSD.ORG Wed Jul 21 09:27:41 2010 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 074F91065688 for ; Wed, 21 Jul 2010 09:27:41 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51803.mail.re2.yahoo.com (web51803.mail.re2.yahoo.com [206.190.38.234]) by mx1.freebsd.org (Postfix) with SMTP id ABE778FC24 for ; Wed, 21 Jul 2010 09:27:40 +0000 (UTC) Received: (qmail 78930 invoked by uid 60001); 21 Jul 2010 09:27:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1279704460; bh=t2bPSKJVM76DLSF2Ecb5PmytcQnRnzMFS/S5Esiflto=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=DtTlE5jiRAi4hzOOcnNvJmm5FuVvAmURbcVkwIbLCDcH3Dxj1uZBhjlBCcYrkQYoGixy2fzUbqA3QvLbGY91OpEWLEl3ZezolOiaxavr4ELlqPKEES60lKmVGJVitaedx+TBa7CB9Dd61VXBCho8Ou/f8eg3Z/WOKsRXwamyyoY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=MfHo59sZtt3ZlFGOVSQKk9GlNJlc9ZmuXMvMYILLmkJrmyaCen4j762ugKP30PlAhsXKHbQnanilaJRLMJXN45tF5MKx85owzZIlQA7pcdDQ9PnRxuuJAcPO38o0LXxumMUrJ1mfUfBuiRU0bRS21apgoYyPDYRxAut1QXhm4h8=; Message-ID: <105354.78909.qm@web51803.mail.re2.yahoo.com> X-YMail-OSG: 1f3OuQ4VM1kMGTQLXkioJpvFFG8eroo4G5Vi4cS3DBgBAlr fiCSjNmjZCxi19x7w_Wr5c4iEt0V4lmcXo.imez1woO7Ew4ZvIqheJOwlnTE jfbiLO0qaH7haO6Ebs6zhP5n3kElLYmYnCnJBgpQGTHt5Q9hSBpZ2Bsp_X50 PteL.5.JbABoe57Dxi6SaqB5ZnBbP5suQ7BgiuirvI4FB0qLfPjIBTKD9odu aKS3EogxXbDKWZdUS91uhNKNX_DEfSl7IkwP0INetxLJ4963xEfREMYfVJ9W FpB3pk32brAcDdejD36T2tm1KSKbWOIEuuk6o1ufogDo- Received: from [173.183.132.20] by web51803.mail.re2.yahoo.com via HTTP; Wed, 21 Jul 2010 02:27:40 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.105.277674 References: <201007141511.46190.hselasky@c2i.net> <201007192117.05034.hselasky@c2i.net> <504334.98385.qm@web51801.mail.re2.yahoo.com> <201007201246.34654.hselasky@c2i.net> Date: Wed, 21 Jul 2010 02:27:40 -0700 (PDT) From: PseudoCylon To: Hans Petter Selasky In-Reply-To: <201007201246.34654.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sam Leffler , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 21 Jul 2010 09:27:41 -0000 ----- Original Message ---- > From: Hans Petter Selasky > To: PseudoCylon > Cc: freebsd-current@freebsd.org; Sam Leffler ; >freebsd-usb@freebsd.org > Sent: Tue, July 20, 2010 4:46:34 AM > Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers > > On Tuesday 20 July 2010 12:03:22 PseudoCylon wrote: > > ----- Original Message ---- > > > > > From: Hans Petter Selasky > > > To: freebsd-current@freebsd.org > > > Cc: PseudoCylon ; Sam Leffler ; > > > > > >freebsd-usb@freebsd.org > > > > > > Sent: Mon, July 19, 2010 1:17:04 PM > > > Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers > > > > > > Hi AK, > > > > > > I've committed your patches to USB P4. I've made some additional > > > patches. > > > > > > Can you check and verify everything? > > > > > > http://p4web.freebsd.org/@@181189?ac=10 > > > > Hi > > > > If we change sc->cmdq_run = RUN_CMDQ_ABORT, > > > > -- begin excerpt -- > > > > > > @@ -4890,7 +4877,10 @@ run_stop(void *arg) > > ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); > > > > sc->ratectl_run = RUN_RATECTL_OFF; > > -sc->cmdq_run = RUN_CMDQ_ABORT; > > + > > +RUN_CMDQ_LOCK(sc); > > +sc->cmdq_run = sc->cmdq_key_set = RUN_CMDQ_ABORT; > > +RUN_CMDQ_UNLOCK(sc); > > > > -- end excerpt -- > > > > > > we also need to change this, otherwise key will be cleared. > > Ok. > > Try to give the second mutex a different name, and see how many warnings go > away. > > --HPS > Giving different name makes all of "duplicate lock" warnings away. Here is the patch includes all changes -- begin patch -- diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c index 017e4b0..da22077 100644 --- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -549,7 +549,7 @@ run_attach(device_t self) mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), MTX_NETWORK_LOCK, MTX_DEF); mtx_init(&sc->sc_cmdq_mtx, device_get_nameunit(sc->sc_dev), - MTX_NETWORK_LOCK, MTX_DEF); + "command queue", MTX_DEF); iface_index = RT2860_IFACE_INDEX; @@ -4670,8 +4670,6 @@ run_init_locked(struct run_softc *sc) if(ic->ic_nrunning > 1) return; -run_stop(sc); - for (ntries = 0; ntries < 100; ntries++) { if (run_read(sc, RT2860_ASIC_VER_ID, &tmp) != 0) goto fail; -- end patch -- From owner-freebsd-usb@FreeBSD.ORG Wed Jul 21 16:03:27 2010 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 3CE7F1065678; Wed, 21 Jul 2010 16:03:27 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 5884C8FC14; Wed, 21 Jul 2010 16:03:25 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=uQlts9P3TFIiE3mXDKsOajf6rXzGvPXEyWzE93HpGms= c=1 sm=1 a=HRj3ij7MtkgA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=J8iQn0Jttzh5f6AinwsA:9 a=11xdbiD2EiQeI-ETOWF-ntwWpM8A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1538330; Wed, 21 Jul 2010 18:03:14 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Wed, 21 Jul 2010 18:00:26 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007141511.46190.hselasky@c2i.net> <201007201246.34654.hselasky@c2i.net> <105354.78909.qm@web51803.mail.re2.yahoo.com> In-Reply-To: <105354.78909.qm@web51803.mail.re2.yahoo.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007211800.26198.hselasky@c2i.net> Cc: Sam Leffler , PseudoCylon , freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers 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, 21 Jul 2010 16:03:27 -0000 Hi, Please confirm that this patch is working for you: http://p4web.freebsd.org/@@181261?ac=10 --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 09:50:32 2010 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 40FE31065676 for ; Thu, 22 Jul 2010 09:50:32 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from web51804.mail.re2.yahoo.com (web51804.mail.re2.yahoo.com [206.190.38.235]) by mx1.freebsd.org (Postfix) with SMTP id D082B8FC13 for ; Thu, 22 Jul 2010 09:50:31 +0000 (UTC) Received: (qmail 45973 invoked by uid 60001); 22 Jul 2010 09:50:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1279792231; bh=sFm7QgZfHwWj+APH1hBIZHP946OMk9QtWKQ2w9/tWoM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=r7W3y3fYbv6jl3VydnSFoy7ZNG31BiPbJvEAYgzlbpztZ5+iTqZ5V8RMswXDnrNtxUHT598e2Og6mKHfy/xj67TTLgA2ieAQnAQ06kHwH8BISkANmy2tbSR2oj32N/0Zz1U2qg4+jdzyoqwDd2DtEupK9CtdJr05W+duW1q1nnc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=u3kHinCsCr1WJ2qCZW/CNaGarcLhqhroTNSc8/YN/hvYYvdVQROoIuNIykThGLYdRAP2JMcwZ5sZt+5uSmFV7J/QgrjmzudlyLyvIBCEE8BaglIeh/w381Og4pvys+i148puR3PsErJNrtx7LRe9QD/HitPIEacszEoF4GfVv6c=; Message-ID: <84548.45213.qm@web51804.mail.re2.yahoo.com> X-YMail-OSG: ES5c5qUVM1kDGq1GzYTvej2YFTVeOMYlIckCPq_lKtUvu6I MxXNlAUw.Po55_T7op1Lh8pcBMkI_rPwp1.TQrqwSKLf1Z0cHlDFx__aRnlQ 9TjC7ysXZ.bROf4sXdPMOeCNDoNiDRRQuI_JWWIpOuAbx_o2ib4W1xkOcDiU Ab2m9Su0bEHWwi_QexBjtV_3JDYNKT5oDDx6uUAQafatut7zkj73F6NYtR6b ESE_Lde9ptlquVWEX82nSSrcJakCDvTS5QzWAhjCYCvRXn6PvbZkPujE3F_2 2L87dB9ifKE8dKGzZYR12ZbxqgphI4RPsBn.MurmZzGYKRh2EVhR4TGXxKLv voQi5OAIE1dfg Received: from [173.183.132.20] by web51804.mail.re2.yahoo.com via HTTP; Thu, 22 Jul 2010 02:50:30 PDT X-Mailer: YahooMailRC/420.4 YahooMailWebService/0.8.105.277674 References: <201007141511.46190.hselasky@c2i.net> <201007201246.34654.hselasky@c2i.net> <105354.78909.qm@web51803.mail.re2.yahoo.com> <201007211800.26198.hselasky@c2i.net> Date: Thu, 22 Jul 2010 02:50:30 -0700 (PDT) From: PseudoCylon To: Hans Petter Selasky , freebsd-current@freebsd.org In-Reply-To: <201007211800.26198.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sam Leffler , freebsd-usb@freebsd.org Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 09:50:32 -0000 ---- "FreeBSD and all other open source projects are the Tower of Babel in computer era." --me So, join me @ git://dev.nasreddine.com/run.git (or http://dev.nasreddine.com/gitweb/?p=run.git;a=summary ) Just work on any of *_dev branches. ----- Original Message ---- > From: Hans Petter Selasky > To: freebsd-current@freebsd.org > Cc: PseudoCylon ; Sam Leffler ; >freebsd-usb@freebsd.org > Sent: Wed, July 21, 2010 10:00:26 AM > Subject: Re: [panic] Race in IEEE802.11 layer towards device drivers > > Hi, > > Please confirm that this patch is working for you: > > http://p4web.freebsd.org/@@181261?ac=10 > > --HPS > Confirmed it's properly been updated. AK From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 15:58:41 2010 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 DBACC106564A for ; Thu, 22 Jul 2010 15:58:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 3FBC38FC13 for ; Thu, 22 Jul 2010 15:58:40 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=L9UPml_oYG8A:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=iLytcjqFjSuzv4_5SHcA:9 a=yV3MsWaUAR-n0qCPi8_H9urxXJkA:4 a=PUjeQqilurYA:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1210319325; Thu, 22 Jul 2010 17:58:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Derrick Brashear Date: Thu, 22 Jul 2010 17:55:39 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007201610.o6KGA3lK051365@freefall.freebsd.org> In-Reply-To: <201007201610.o6KGA3lK051365@freefall.freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201007221755.39597.hselasky@c2i.net> Cc: Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 15:58:41 -0000 On Tuesday 20 July 2010 18:10:03 Derrick Brashear wrote: > The following reply was made to PR usb/140883; it has been noted by GNATS. > > From: Derrick Brashear > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after > short period of traffic > Date: Tue, 20 Jul 2010 11:39:28 -0400 > > Happens with non-gig adapters also: > axe0: on usbus2 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > axe1: on usbus2 > ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > USB200M v2. > > USB_ERR_TIMEOUT until a reset is forced after a large amount of data > passes, e.g. > Jul 20 01:50:38 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:50:48 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:50:57 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:51:01 rtr kernel: axe_bulk_read_callback: bulk read error, > USB_ERR_CANCELLED > Jul 20 01:51:01 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_CANCELLED > Jul 20 01:51:13 rtr kernel: axe_bulk_read_callback: bulk read error, > USB_ERR_CANCELLED > > and data continues to be able to be read after writing it fails, as > described in the original PR. > > sysctl -a|grep date > kern.osreldate: 801000 Have you tried with FreeBSD-9-current? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 16:00:30 2010 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 BE95F1065670 for ; Thu, 22 Jul 2010 16:00:30 +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 51A7C8FC15 for ; Thu, 22 Jul 2010 16:00:29 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8mUlEYGF/1ewVNyGLrc5XeWvvpKOEXP975HI1NO5ccA= c=1 sm=1 a=BTECrh14sJYA:10 a=kj9zAlcOel0A:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=q5dnCCQ5dagcteLsmn0A:9 a=JC4IWjMiPNRZdiNkN_krGeSaMOwA:4 a=CjuIK1q_8ugA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1509116 for freebsd-usb@freebsd.org; Thu, 22 Jul 2010 18:00:21 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 22 Jul 2010 17:57:29 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201007221757.29523.hselasky@c2i.net> Subject: USB 3.0 - super speed USB support (XHCI) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 16:00:30 -0000 Hi, I'm planning to add USB super speed support to FreeBSD before September 1st. Some work has already been done: http://p4web.freebsd.org/@@181320?ac=10 People that want to help, write code and test it, can contact me off or on this e-mail list. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 16:59:52 2010 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 9E5A21065670 for ; Thu, 22 Jul 2010 16:59:52 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC458FC13 for ; Thu, 22 Jul 2010 16:59:52 +0000 (UTC) Received: by pwj9 with SMTP id 9so3632091pwj.13 for ; Thu, 22 Jul 2010 09:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=WAIBJk0Uees9U70Z8kYcis9MX3ttro6nrqFKTqhMg38=; b=QjLWoGq+8mJhsy8wGLOu07s05QnBVQTY9PJSoG66rpZ5d5yBhzUlL7Z2bGqqeOwMpn WBm7P88aNEKQOXaqVGq+/GSg/kUGG5m0etA+h2DYa1wzWtr+ciqdy8wdkJ8XN6nDRV1l JOIlymb0QuQmLJhoUB/0SKTwOb1SbdOumsekk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=e8ZOUXakrwG85G4YmSAxA+fl1xdS9kT0eQLWAI0CfO8WXbSSnoQmmwXB+otDGYdIDn WB6ZsFJZ/tM3i7HItstBu/5rxOZu6fhypuSFh+NrLZLhrxmEWkEggbCtASAheipwUhZ4 Gi4gEvDopBcB+MwDXK9qeISstzCt3S0OLW+1s= Received: by 10.114.132.18 with SMTP id f18mr3484892wad.97.1279817991875; Thu, 22 Jul 2010 09:59:51 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id c11sm21187574rvf.3.2010.07.22.09.59.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 09:59:50 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 22 Jul 2010 09:59:05 -0700 From: Pyun YongHyeon Date: Thu, 22 Jul 2010 09:59:05 -0700 To: Derrick Brashear Message-ID: <20100722165905.GA16185@michelle.cdnetworks.com> References: <201007201610.o6KGA3lK051365@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201007201610.o6KGA3lK051365@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 16:59:52 -0000 On Tue, Jul 20, 2010 at 04:10:03PM +0000, Derrick Brashear wrote: > The following reply was made to PR usb/140883; it has been noted by GNATS. > > From: Derrick Brashear > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short > period of traffic > Date: Tue, 20 Jul 2010 11:39:28 -0400 > > Happens with non-gig adapters also: > axe0: on usbus2 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > axe1: on usbus2 > ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > USB200M v2. > > USB_ERR_TIMEOUT until a reset is forced after a large amount of data > passes, e.g. > Jul 20 01:50:38 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:50:48 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:50:57 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_TIMEOUT > Jul 20 01:51:01 rtr kernel: axe_bulk_read_callback: bulk read error, > USB_ERR_CANCELLED > Jul 20 01:51:01 rtr kernel: axe_bulk_write_callback: transfer error, > USB_ERR_CANCELLED > Jul 20 01:51:13 rtr kernel: axe_bulk_read_callback: bulk read error, > USB_ERR_CANCELLED > > and data continues to be able to be read after writing it fails, as > described in the original PR. > I think your issue is different from the PR. There are several AX88178 variants that use different PHY and each controller/PHY combination require different GPIO programming and PHY specific initialization. Hans committed that part to P4 but it's not in CURRENT yet. Your controller looks like AX88772A, a second generation of AX88172. It's known that there is AX88772B, another variant of AX88772A, which can offload TX/RX checksum computation from CPU. These controllers seem to require controller specific magic to power up PHY as well as new GPIO configuration. Unfortunately it looks hard to write patches without real hardware access and ASIX no more provide data sheet for these newer controllers. > sysctl -a|grep date > kern.osreldate: 801000 > From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 18:04:23 2010 Return-Path: Delivered-To: usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DD1F106566C; Thu, 22 Jul 2010 18:04:23 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from mail2.timeinc.net (mail2.timeinc.net [64.236.74.30]) by mx1.freebsd.org (Postfix) with ESMTP id 12F908FC13; Thu, 22 Jul 2010 18:04:22 +0000 (UTC) Received: from mail.timeinc.net (mail.timeinc.net [64.12.55.166]) by mail2.timeinc.net (8.13.8/8.13.8) with ESMTP id o6MHNtNm009233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Jul 2010 13:23:55 -0400 Received: from ws-mteterin.dev.pathfinder.com (ws-mteterin.dev.pathfinder.com [209.251.223.173]) by mail.timeinc.net (8.13.8/8.13.8) with SMTP id o6MHNtKt024199; Thu, 22 Jul 2010 13:23:55 -0400 Message-ID: <4C487EAB.50302@aldan.algebra.com> Date: Thu, 22 Jul 2010 13:23:55 -0400 From: mi@aldan.algebra.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; uk; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: x11@FreeBSD.org, usb@FreeBSD.org, hackers@FreeBSD.org X-Mailman-Approved-At: Thu, 22 Jul 2010 21:48:16 +0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: UCLogic tablets on FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 18:04:23 -0000 Hello! chuckr@ seems to have implemented support for UC-LOGIC tablets for FreeBSD. I have a user with just such a device using FreeBSD-8.1/i386. The device is seen by usbconfig(8) as: ugen1.4: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON but I can't find anything in ports, that mentions "UC-LOGIC"... How would I go about making the device usable? I tried e-mailing Chuck twice, but, evidently, am not reaching him :-( Thanks for any ideas. Yours, -mi From owner-freebsd-usb@FreeBSD.ORG Thu Jul 22 20:31:06 2010 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 0606C1065672 for ; Thu, 22 Jul 2010 20:31:06 +0000 (UTC) (envelope-from c.r.n.a@wanadoo.fr) Received: from smtp20.orange.fr (smtp20.orange.fr [80.12.242.26]) by mx1.freebsd.org (Postfix) with ESMTP id B3BF88FC13 for ; Thu, 22 Jul 2010 20:31:05 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id D31F42002666 for ; Thu, 22 Jul 2010 22:12:57 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id C478F2002693 for ; Thu, 22 Jul 2010 22:12:57 +0200 (CEST) Received: from [192.168.2.102] (ABordeaux-551-1-123-98.w92-156.abo.wanadoo.fr [92.156.146.98]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 8893C2002666 for ; Thu, 22 Jul 2010 22:12:57 +0200 (CEST) X-ME-UUID: 20100722201257559.8893C2002666@mwinf2017.orange.fr X-ME-User-Auth: c.r.n.a Message-ID: <4C48A5E4.1090303@wanadoo.fr> Date: Thu, 22 Jul 2010 22:11:16 +0200 From: Nicolas User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; fr-FR; rv:1.9.1.9) Gecko/20100610 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 22 Jul 2010 21:48:26 +0000 Subject: RE: Mouse and HDD problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 20:31:06 -0000 Hi, I'm using FreeBSD-9 current and i have a strange problem with my usb hard drive. My logitech usb mouse is plugged in and when i plug my hdd, i have this message: ugen3.2: at usbus3 (disconnected) ums0: at uhub3, port 1, addr 2 (disconnected) ugen7.4: at usbus7 umass0: on usbus7 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0:-1: Attached to scbus2 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) GEOM: da0s1: geometry does not match label (64h,32s != 255h,63s). GEOM: ufsid/4c0e3769aa2965dbs1: geometry does not match label (64h,32s != 255h,63s). ugen3.2: at usbus3 ums0: on usbus3 ums0: 16 buttons and [XYZT] coordinates ID=0 pid 1843 (Xorg), uid 0: exited on signal 6 (core dumped) pid 1888 (polkit-gnome-authen), uid 92: exited on signal 4 (core dumped) My mouse disconnects itself then reconnect and Xorg crash. Someone have this problem ? Thanks in advance, Nicolas. From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 07:04:49 2010 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 2C0E4106564A; Fri, 23 Jul 2010 07:04:49 +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 2283C8FC17; Fri, 23 Jul 2010 07:04:47 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=9IIj2yEt9mCpiLyep4f0BnD2ZC7rS3PjQbiokY3Mrg0= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=LaogzpLLAAAA:8 a=Vt2AcnKqAAAA:8 a=6I5d2MoRAAAA:8 a=Nt_ACCoGAAAA:8 a=HxvaxCTpGF_A6aDpUHkA:9 a=zBv2Xaw-z4498wxkYiqBDcjJ6vUA:4 a=wPNLvfGTeEIA:10 a=JDxsqQ4uBBwA:10 a=SV7veod9ZcQA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1658134; Fri, 23 Jul 2010 09:04:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 23 Jul 2010 09:01:45 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4C487EAB.50302@aldan.algebra.com> In-Reply-To: <4C487EAB.50302@aldan.algebra.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007230901.46080.hselasky@c2i.net> Cc: usb@freebsd.org, hackers@freebsd.org, x11@freebsd.org, mi@aldan.algebra.com Subject: Re: UCLogic tablets on FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 07:04:49 -0000 On Thursday 22 July 2010 19:23:55 mi@aldan.algebra.com wrote: > Hello! > > chuckr@ seems > > to have implemented support for UC-LOGIC tablets > for FreeBSD. I > have a user with just such a device using FreeBSD-8.1/i386. The device > is seen by usbconfig(8) as: > > ugen1.4: at usbus1, cfg=0 md=HOST spd=LOW > (1.5Mbps) pwr=ON > > but I can't find anything in ports, that mentions "UC-LOGIC"... > > How would I go about making the device usable? I tried e-mailing Chuck > twice, but, evidently, am not reaching him :-( > > Thanks for any ideas. Yours, I recommend using libusb (see man libusb) on FreeBSD 8+, to communicate with the device. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 07:04:49 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C0E4106564A; Fri, 23 Jul 2010 07:04:49 +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 2283C8FC17; Fri, 23 Jul 2010 07:04:47 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=9IIj2yEt9mCpiLyep4f0BnD2ZC7rS3PjQbiokY3Mrg0= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=LaogzpLLAAAA:8 a=Vt2AcnKqAAAA:8 a=6I5d2MoRAAAA:8 a=Nt_ACCoGAAAA:8 a=HxvaxCTpGF_A6aDpUHkA:9 a=zBv2Xaw-z4498wxkYiqBDcjJ6vUA:4 a=wPNLvfGTeEIA:10 a=JDxsqQ4uBBwA:10 a=SV7veod9ZcQA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1658134; Fri, 23 Jul 2010 09:04:39 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 23 Jul 2010 09:01:45 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4C487EAB.50302@aldan.algebra.com> In-Reply-To: <4C487EAB.50302@aldan.algebra.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007230901.46080.hselasky@c2i.net> Cc: usb@freebsd.org, hackers@freebsd.org, x11@freebsd.org, mi@aldan.algebra.com Subject: Re: UCLogic tablets on FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 07:04:49 -0000 On Thursday 22 July 2010 19:23:55 mi@aldan.algebra.com wrote: > Hello! > > chuckr@ seems > > to have implemented support for UC-LOGIC tablets > for FreeBSD. I > have a user with just such a device using FreeBSD-8.1/i386. The device > is seen by usbconfig(8) as: > > ugen1.4: at usbus1, cfg=0 md=HOST spd=LOW > (1.5Mbps) pwr=ON > > but I can't find anything in ports, that mentions "UC-LOGIC"... > > How would I go about making the device usable? I tried e-mailing Chuck > twice, but, evidently, am not reaching him :-( > > Thanks for any ideas. Yours, I recommend using libusb (see man libusb) on FreeBSD 8+, to communicate with the device. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 07:06:21 2010 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 D49F8106564A for ; Fri, 23 Jul 2010 07:06:21 +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 603D98FC24 for ; Fri, 23 Jul 2010 07:06:20 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=AloUlVQQLuutPgH7MSFGD/V8MYI3aUCj623mET0KTys= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=JRoJlsrwfaLSNyEjTCQA:9 a=qkkplKV0Yx1oi7CNaO4A:7 a=BYRB7J3PizkP1t99otkdVNkoMeYA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 701803; Fri, 23 Jul 2010 09:06:15 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 23 Jul 2010 09:03:20 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4C48A5E4.1090303@wanadoo.fr> In-Reply-To: <4C48A5E4.1090303@wanadoo.fr> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007230903.20659.hselasky@c2i.net> Cc: Nicolas Subject: Re: Mouse and HDD problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 07:06:21 -0000 On Thursday 22 July 2010 22:11:16 Nicolas wrote: > Hi, > > I'm using FreeBSD-9 current and i have a strange problem with my usb > hard drive. > My logitech usb mouse is plugged in and when i plug my hdd, i have this > message: > > ugen3.2: at usbus3 (disconnected) > ums0: at uhub3, port 1, addr 2 (disconnected) > ugen7.4: at usbus7 > umass0: > on usbus7 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:2:0:-1: Attached to scbus2 > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > da0: Fixed Direct Access SCSI-4 device > da0: 40.000MB/s transfers > da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) > GEOM: da0s1: geometry does not match label (64h,32s != 255h,63s). > GEOM: ufsid/4c0e3769aa2965dbs1: geometry does not match label (64h,32s > != 255h,63s). > ugen3.2: at usbus3 > ums0: on usbus3 > ums0: 16 buttons and [XYZT] coordinates ID=0 > pid 1843 (Xorg), uid 0: exited on signal 6 (core dumped) > pid 1888 (polkit-gnome-authen), uid 92: exited on signal 4 (core dumped) > > My mouse disconnects itself then reconnect and Xorg crash. > Someone have this problem ? I've also seen panics when inserting certain USB dongles. Probably there are some bugs in the HAL layer. Maybe there is some missing information about the USB device that makes it crash. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 07:07:04 2010 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 85A0A1065676 for ; Fri, 23 Jul 2010 07:07:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 10BEF8FC12 for ; Fri, 23 Jul 2010 07:07:03 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=+aufMl16ZjoZikD717oZHt/II3iOLg17uabV0d0CmU0= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=OjF59hhQLS5gMitrPnIA:9 a=KkCnoTxryErej9bOzowA:7 a=cG8SfEUsPQLt1maWavOTSBU4edEA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 2543370; Fri, 23 Jul 2010 09:06:52 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 23 Jul 2010 09:04:03 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4C48A5E4.1090303@wanadoo.fr> <201007230903.20659.hselasky@c2i.net> In-Reply-To: <201007230903.20659.hselasky@c2i.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007230904.03335.hselasky@c2i.net> Cc: Nicolas Subject: Re: Mouse and HDD problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 07:07:04 -0000 On Friday 23 July 2010 09:03:20 Hans Petter Selasky wrote: > On Thursday 22 July 2010 22:11:16 Nicolas wrote: > > Hi, > > > > I'm using FreeBSD-9 current and i have a strange problem with my usb > > hard drive. > > My logitech usb mouse is plugged in and when i plug my hdd, i have this > > message: > > > > ugen3.2: at usbus3 (disconnected) > > ums0: at uhub3, port 1, addr 2 (disconnected) > > ugen7.4: at usbus7 > > umass0: > > on usbus7 > > umass0: SCSI over Bulk-Only; quirks = 0x0000 > > umass0:2:0:-1: Attached to scbus2 > > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > da0: Fixed Direct Access SCSI-4 device > > da0: 40.000MB/s transfers > > da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) > > GEOM: da0s1: geometry does not match label (64h,32s != 255h,63s). > > GEOM: ufsid/4c0e3769aa2965dbs1: geometry does not match label (64h,32s > > != 255h,63s). > > ugen3.2: at usbus3 > > ums0: on > > usbus3 ums0: 16 buttons and [XYZT] coordinates ID=0 > > pid 1843 (Xorg), uid 0: exited on signal 6 (core dumped) > > pid 1888 (polkit-gnome-authen), uid 92: exited on signal 4 (core dumped) > > > > My mouse disconnects itself then reconnect and Xorg crash. > > Someone have this problem ? > > I've also seen panics when inserting certain USB dongles. Probably there ^^^^ I mean segfaults in hald > are some bugs in the HAL layer. Maybe there is some missing information > about the USB device that makes it crash. > --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 13:36:16 2010 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 B7119106566B for ; Fri, 23 Jul 2010 13:36:16 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 51DA58FC08 for ; Fri, 23 Jul 2010 13:36:15 +0000 (UTC) Received: by wwe15 with SMTP id 15so4224146wwe.31 for ; Fri, 23 Jul 2010 06:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=H/iCFMziKHt5zw0s+hmhsN2TA3YjEKL5iqAui0JY1fw=; b=trpLHlQtp91v+iz0JIWucNxmJhO1S8eo5+UtUq7ljvGS7/uu4ARt5pWJNmccSiiE/y qlbb1oSmkboRxzd8p3WihPTgd7J3n6t7rCy5kruz91CDs+soUn7ubtdNsAPvwyeISds1 jLdGl3+Z2d3atVyvFN0W/br/Z7odKs2h8Z6Pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vWAAKVTFGLgO/zAbU7sBxkBuLOC6cLRjImLxPLy5W1WMNka2oFikXXl5YCgVsKtrXc 9jOf0MZhkTFKarAR7cSS7K/vwK7URXv39wTAQ08gSMBpW03JBgxpjP5Imvql0O9XdFbE BEGlx8ivosXC1mqI7G0Gushjs6wred9nzD/30= MIME-Version: 1.0 Received: by 10.227.128.144 with SMTP id k16mr3520539wbs.196.1279892174921; Fri, 23 Jul 2010 06:36:14 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 06:36:14 -0700 (PDT) Date: Fri, 23 Jul 2010 15:36:14 +0200 Message-ID: From: Peer Stritzinger To: freebsd-usb Content-Type: text/plain; charset=ISO-8859-1 Subject: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 13:36:16 -0000 Hi, I'm using libusb to talk to a generic device (thats being also developed by me), synchronous works fine now. Asynchronous mode with blocking libusb_handle_events() works also. Now I'm trying to also talk to non USB file descriptors. For this I'm using select(2), filling the sets from libusb_get_pollfds() results. Somehow the select call never returns (no timeouts), if It gets some external trigger (like stopping in the debugger can continuing) it returns and has plausible return values. Looking into libusb I find that it uses poll(2) internally. Is select(2) supposed to work with libusb fd'? Should I rather use poll(2)? (I do like select more -- more BSDish). Best regards Peer Stritzinger From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 15:00:50 2010 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 199BC106566B for ; Fri, 23 Jul 2010 15:00:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 97DF18FC13 for ; Fri, 23 Jul 2010 15:00:49 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=6KUfmzbym87FxoMGRWTr46e60yW4QTEOPMCHQyBOt0U= c=1 sm=1 a=LKpx1GHAifUA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=Ic9AYebQkvOSOBomF6wA:9 a=74XnwA0x_MHJ_IfIWguVeN3zpsIA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1150878; Fri, 23 Jul 2010 17:00:46 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 23 Jul 2010 16:57:47 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007231657.47682.hselasky@c2i.net> Cc: Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 15:00:50 -0000 On Friday 23 July 2010 15:36:14 Peer Stritzinger wrote: > Hi, > > I'm using libusb to talk to a generic device (thats being also > developed by me), synchronous works fine now. > > Asynchronous mode with blocking libusb_handle_events() works also. > > Now I'm trying to also talk to non USB file descriptors. For this I'm > using select(2), filling the sets from libusb_get_pollfds() results. > > Somehow the select call never returns (no timeouts), if It gets some > external trigger (like stopping in the debugger can continuing) it > returns and has plausible return values. > > Looking into libusb I find that it uses poll(2) internally. > > Is select(2) supposed to work with libusb fd'? > > Should I rather use poll(2)? (I do like select more -- more BSDish). > What are the polling flags you are using? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 17:12:47 2010 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 DA0061065675 for ; Fri, 23 Jul 2010 17:12:47 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 710CA8FC12 for ; Fri, 23 Jul 2010 17:12:47 +0000 (UTC) Received: by wwe15 with SMTP id 15so4476399wwe.31 for ; Fri, 23 Jul 2010 10:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=+pJlHvR3YKoqKwruuq0wt0Yz6Ycpl8NZ1DOoVH6hBGM=; b=JGjbnD3iI1nrC9FBJEx2JDyPgEw45lQhxmjeSCaYGIuoxVEzMNzStwVUWFcEzKvPfL 8jK5k/HeZRtVwpraH4nTQCs0KpvLU7jOvINVUCDAl3H8WNvKcJW2j5ahpkuTBayBv4C9 1A8HPvCFPP76MTwCmvj+/n/hxUSWaLGqFO3AQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fFvr2tjfY/9MIDptsndZ6sYIr+tcitfd0eXUb+6ptnQ1McruNMKn2D0l9feeCZQgNt Xuo30DKtc+6CuCaWgukr8Etcq0sm1W2oc6GWoklYvYksSDPh5ACSOeGUkENUatB5drQO 2RbnJRA6mAGBd/fSQiMtrYUZoh4X4k1tmQFnM= MIME-Version: 1.0 Received: by 10.227.128.144 with SMTP id k16mr3789404wbs.196.1279905166246; Fri, 23 Jul 2010 10:12:46 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 10:12:46 -0700 (PDT) In-Reply-To: <201007231657.47682.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> Date: Fri, 23 Jul 2010 19:12:46 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 17:12:47 -0000 Hi, On Fri, Jul 23, 2010 at 4:57 PM, Hans Petter Selasky wrote: > > What are the polling flags you are using? Do you mean the libusb_pollfd entries? They are: {fd = 0x7, events = 0x1} {fd = 0xc, events = 0x45} I translate these into select(2) params like this: nfds = 0xc, readfds = {__fds_bits = {0x1080, 0x0 }}, writefds = {__fds_bits = {0x1000, 0x0 }}, exceptfds = { __fds_bits = {0x0 }}, And call select with timeout = NULL (since libusb_get_next_timeout returned 0) Regards -- Peer From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 17:24:48 2010 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 D3054106566C for ; Fri, 23 Jul 2010 17:24:48 +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 5F80B8FC17 for ; Fri, 23 Jul 2010 17:24:47 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=AloUlVQQLuutPgH7MSFGD/V8MYI3aUCj623mET0KTys= c=1 sm=1 a=LKpx1GHAifUA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=4d79Pp89qbVUHLkU1tUA:9 a=9aU92bICug9c7kJ7BTBGOi8A-5MA:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 847081; Fri, 23 Jul 2010 19:24:41 +0200 From: Hans Petter Selasky To: Peer Stritzinger Date: Fri, 23 Jul 2010 19:21:45 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201007231657.47682.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007231921.45803.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 17:24:48 -0000 On Friday 23 July 2010 19:12:46 Peer Stritzinger wrote: > Hi, > > On Fri, Jul 23, 2010 at 4:57 PM, Hans Petter Selasky wrote: > > What are the polling flags you are using? > > Do you mean the libusb_pollfd entries? > > They are: > > {fd = 0x7, events = 0x1} > {fd = 0xc, events = 0x45} > > I translate these into select(2) params like this: > > nfds = 0xc, readfds = {__fds_bits = {0x1080, 0x0 }}, > writefds = {__fds_bits = {0x1000, 0x0 }}, exceptfds = { > __fds_bits = {0x0 }}, > > And call select with timeout = NULL (since libusb_get_next_timeout returned > 0) Should work, but it might be that the second poll, when you try to process the events, don't work like expected. After any event on the two fd's you should call "libusb_handle_events_locked()" using a "tv = NULL". --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 17:37:46 2010 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 7B31F1065674 for ; Fri, 23 Jul 2010 17:37:46 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0EECB8FC0A for ; Fri, 23 Jul 2010 17:37:45 +0000 (UTC) Received: by wwe15 with SMTP id 15so4504329wwe.31 for ; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=3f7sWtchwqaEJI3mkHTl6M6SJKBac1Wc4zl0tY0AW2c=; b=DgqKjFLkBOClhULjmOhcy4h3ydQrcCrHxXHj5QQy/V0gFWyAhjqSaRoiifF6tskdaC P+I7QT1eKaMAIghNUjOlpAz/FGihkoB+DmWJuPoAYjKtQy/Lv2Lhlu61O2df8Z1U74mU wol8nwp3dwPuRTftHQ4TDBJ1DuiFjB5+AVN+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=H/AWURw6EN//idHpA9cnc27OaKmTWR/44sLJ0kF6OCHEKCWQ86TOvwUsa9f4kp7qqY 8hZoPipaDFgD//XRzxn/eLl2BLXsFXfO9zaOYm26LrbbWAnG8hA7H5qiqS9e9v8HFwtW BG3BAKZhMhDuj0jvoaffBm0mWmBe009D7VK6c= MIME-Version: 1.0 Received: by 10.227.147.203 with SMTP id m11mr3852998wbv.4.1279906664542; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) In-Reply-To: <201007231921.45803.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> <201007231921.45803.hselasky@c2i.net> Date: Fri, 23 Jul 2010 19:37:44 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 17:37:46 -0000 Hi, On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky wrote: > > Should work, but it might be that the second poll, when you try to process the > events, don't work like expected. After any event on the two fd's you should > call "libusb_handle_events_locked()" using a "tv = NULL". I was calling libusb_handle_events_timeout(ctx, NULL), does this make an difference (only running single threaded) -- Peer From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 18:21:50 2010 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 A70411065678 for ; Fri, 23 Jul 2010 18:21:50 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3AAC88FC16 for ; Fri, 23 Jul 2010 18:21:49 +0000 (UTC) Received: by wyj26 with SMTP id 26so565470wyj.13 for ; Fri, 23 Jul 2010 11:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Jbt1O8ZI9hUYhsT2lsWzKIoSJAjV7zPpcJTCJxyXtk8=; b=jpyhPfL17wmKe1JpkTbY8HMfs74MZF23gSv4/cwWSaTa0XBwkzck1pnGipSeDOT1Ls DTjwLZTlkYI/Q71B2Kx1/IrawB+EBZtNgeuit+4qx68UUtawhptyyPIhK7ctj3EM9uqn +N+fftvfLbf7Ma00l3rsvJYogCECZJg6T3w6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pHFnFLHUPZfImiIMVtDD1xLW6IIdnk8zk6Zjwdu13E01/PzZhlTHu+i9DiGTAaPAdb V/qAMuzQDSwDHZu37PC8/hzhk+QxUeYRjln9k3MPLbHJgcSZnQ5mStZBemLwOCpQPwde uDIZZsOtfY4YdhWxkPzCuSLsFbQKPxnuul2NU= MIME-Version: 1.0 Received: by 10.227.158.14 with SMTP id d14mr1040024wbx.33.1279909308826; Fri, 23 Jul 2010 11:21:48 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 11:21:48 -0700 (PDT) In-Reply-To: <201007231921.45803.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> <201007231921.45803.hselasky@c2i.net> Date: Fri, 23 Jul 2010 20:21:48 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 18:21:50 -0000 Hi, On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky wro= te: > Should work, but it might be that the second poll, when you try to proces= s the > events, don't work like expected. After any event on the two fd's you sho= uld > call "libusb_handle_events_locked()" using a "tv =3D NULL". Added some debug printing to make watching these easier: active config: num_interfaces: 1 interface 0: num_altsetting: 1 if_desc 0: n_ep=3D4 if_nr=3D0 max packet on 3.2.6 =3D 512 setup_usb_fds: read 3 setup_usb_fds: read 6 setup_usb_fds: write 6 setup_usb_fds: nfds 6 calling select ... returned 1 -> so select returns once (always as it looks) check_usb_fds: found desc 3 in readfds calling libusb_handle_events_timeout transfer_completed: actual_len: 52 -> and also gets a transfer from the usb (this resubmits the IN transfer) setup_usb_fds: read 3 setup_usb_fds: read 6 setup_usb_fds: write 6 setup_usb_fds: nfds 6 calling select ... -> but here it hangs until a signal The code that did output this still using libusb_handle_events_timeout() rv =3D libusb_submit_transfer(tr); assert(rv =3D=3D 0); sp.pollfds =3D libusb_get_pollfds(ctx); while (1) { timeout_pending =3D libusb_get_next_timeout(ctx, &timeout); setup_usb_fds (&sp); printf("calling select ...\n"); rv =3D select(sp.nfds, &sp.readfds, &sp.writefds, &sp.exceptfds, (timeout_pending) ? &timeout : NULL); printf("returned %d\n", rv); assert (rv >=3D 0 || errno =3D=3D EINTR); if (rv =3D=3D 0 || (rv > 0 && check_usb_fds (&sp))) { printf ("calling libusb_handle_events_timeout\n"); libusb_handle_events_timeout(ctx, NULL); } } =A0-- Peer From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 18:59:42 2010 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 134CA106566C for ; Fri, 23 Jul 2010 18:59:42 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC2D8FC1E for ; Fri, 23 Jul 2010 18:59:41 +0000 (UTC) Received: by wyj26 with SMTP id 26so605772wyj.13 for ; Fri, 23 Jul 2010 11:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=AUyHGMwS/b8tyzSkLqXQCUJ9Ac+qN2dZhF/y9QkH3fA=; b=BlTlw5xQjI5J/VMR2KhJZxXFFL2+Q/+4weeVM6vIgs1hKvUPr5lhFoo8T5CxmVvEYI w1u3Uo7EuTEyVVLZpBUm/ONo12sC6BlYrCJTdKq+Ax/0RQ4emmrbR9S6nZz5MHgYZpZY gOpVYd//hoaxSj0sL/L2MD54BSpBD4BWJCaA0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LCNy+gYQWNrTgIhAa58R/YGQE1eYhXI7/DpMjFio4mxzYzH2nm9w6ZLn4vTxxG3wEF oADRbMW3vbB0RJd4NlIoctd0FyKmdMSkzFSJlsg0e7Zu8idzCsFH9Rmkhw0rq7sElzEB BhaNyTkzf2SVwRU2+BUURwr+qzcq4SeneyWX8= MIME-Version: 1.0 Received: by 10.227.37.8 with SMTP id v8mr3930510wbd.37.1279911580515; Fri, 23 Jul 2010 11:59:40 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 11:59:40 -0700 (PDT) In-Reply-To: <201007231921.45803.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> <201007231921.45803.hselasky@c2i.net> Date: Fri, 23 Jul 2010 20:59:40 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 23 Jul 2010 18:59:42 -0000 On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky wrote: > Should work, but it might be that the second poll, when you try to process the > events, don't work like expected. After any event on the two fd's you should > call "libusb_handle_events_locked()" using a "tv = NULL". With libusb_handle_events_locked() instead of libusb_handle_events_timeout() there is no improvement ... It looks like if there is a IN alread pending on the bus when program runs the first select call returns the filedesc correctly but after this nothing triggers the second select. At least most of the time it looks like IN transfers that are received during the second select are somehow swallowed unhandled. If there is no IN pending on the bus the first select also returns but libusb_handle_events_locked() doesn't call a callback, then the second select also fails. Regards -- Peer Could it be that after the poll() in lib_usb_handle_events_*() libusb or the usb stack is somewhat in a corrupt state? From owner-freebsd-usb@FreeBSD.ORG Sat Jul 24 11:15:38 2010 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 1214F1065679 for ; Sat, 24 Jul 2010 11:15:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swipnet.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 99F0D8FC13 for ; Sat, 24 Jul 2010 11:15:37 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=xxRjoFt8DhHHVGMoyrcA:9 a=eIh59dNV3ISXhSV1Qre12q4SGewA:4 a=wPNLvfGTeEIA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1027931906; Sat, 24 Jul 2010 13:15:35 +0200 From: Hans Petter Selasky To: Nicolas Date: Sat, 24 Jul 2010 13:12:34 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4C4AAE09.2020409@wanadoo.fr> In-Reply-To: <4C4AAE09.2020409@wanadoo.fr> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007241312.34744.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Mouse and HDD problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2010 11:15:38 -0000 On Saturday 24 July 2010 11:10:33 Nicolas wrote: > Hi Hans, > > Thanks for your response. > After some test, i confirm the problem comes from hal. > If i kill hald, plug my hdd then my mouse does not disconnect. > > Do you have an idea how to solve the problem ? > > Thank you in advance, > Nicolas. Run hald from gdb. Probably a NULL pointer. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jul 24 11:44:55 2010 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 26DC7106566B for ; Sat, 24 Jul 2010 11:44:55 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id AF3818FC1A for ; Sat, 24 Jul 2010 11:44:53 +0000 (UTC) Received: by wwe15 with SMTP id 15so5148388wwe.31 for ; Sat, 24 Jul 2010 04:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=SOvr8Pz1aYxs/VG/qnu2nf6ztyvs8BnBbnyetg/yJYw=; b=OtsLXFEhXRExMQnYw5XxRoXmH8/k+kbuuEJcMTk3n3EpS2YRl0dV3DIDFRoBBorosa 9dKhLxVyTkQKaXyMeQMA8AFSN8o5pCkEUSvB5VKdtbPh/yfXexEqfdqCGDYQCUfJIkho 7vqW01g6JZJwm+aFdvJyq9LbnyN4wgRHFzKHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XQKKuKygOA8Hi13ylaLbtM7vzY8Uix+bEtR+gOaWSBQkL1C2iPNPSsUSH822cViAwx IVItIvGyqMoxGMvjhZXYrXdDeKtSYvnJplPNH9CQb9tWGKvGfFxKVRiMn3mP3APEX2D4 kHFG9pgERS8vhRP8BGsE5x2QkXmiNMthTiPS8= MIME-Version: 1.0 Received: by 10.227.7.131 with SMTP id d3mr4753997wbd.83.1279971892291; Sat, 24 Jul 2010 04:44:52 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Sat, 24 Jul 2010 04:44:52 -0700 (PDT) In-Reply-To: <201007231921.45803.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> <201007231921.45803.hselasky@c2i.net> Date: Sat, 24 Jul 2010 13:44:52 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? 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, 24 Jul 2010 11:44:55 -0000 Hi On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky wrote: > Should work, but it might be that the second poll, when you try to process the > events, don't work like expected. After any event on the two fd's you should > call "libusb_handle_events_locked()" using a "tv = NULL". Rewrote the program to use poll instead of select (which does fit libusb better even if I like select better generally) nothing else changed only poll instead of select. => Works like a charm So to sum it up: select + libusb seems not to work, poll + libusb works however. So is this a general FreeBSD select vs. poll issue or just with the USB stack? How can I help debug this further? Regards Peer Stritzinger From owner-freebsd-usb@FreeBSD.ORG Sat Jul 24 09:12:17 2010 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 E9FCC1065674 for ; Sat, 24 Jul 2010 09:12:17 +0000 (UTC) (envelope-from c.r.n.a@wanadoo.fr) Received: from smtp20.orange.fr (smtp20.orange.fr [80.12.242.26]) by mx1.freebsd.org (Postfix) with ESMTP id AF14C8FC1B for ; Sat, 24 Jul 2010 09:12:17 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 6B73C200039A; Sat, 24 Jul 2010 11:12:16 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 5C00020003A4; Sat, 24 Jul 2010 11:12:16 +0200 (CEST) Received: from [192.168.2.100] (ABordeaux-551-1-123-98.w92-156.abo.wanadoo.fr [92.156.146.98]) by mwinf2017.orange.fr (SMTP Server) with ESMTP id 1DD89200039A; Sat, 24 Jul 2010 11:12:16 +0200 (CEST) X-ME-UUID: 20100724091216122.1DD89200039A@mwinf2017.orange.fr X-ME-User-Auth: c.r.n.a Message-ID: <4C4AAE09.2020409@wanadoo.fr> Date: Sat, 24 Jul 2010 11:10:33 +0200 From: Nicolas User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; fr-FR; rv:1.9.1.9) Gecko/20100610 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org, hselasky@c2i.net References: 4C48A5E4.1090303@wanadoo.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 24 Jul 2010 12:14:25 +0000 Cc: Subject: RE: Mouse and HDD problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2010 09:12:18 -0000 Hi Hans, Thanks for your response. After some test, i confirm the problem comes from hal. If i kill hald, plug my hdd then my mouse does not disconnect. Do you have an idea how to solve the problem ? Thank you in advance, Nicolas. From owner-freebsd-usb@FreeBSD.ORG Sat Jul 24 20:40:29 2010 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 CA89E1065678 for ; Sat, 24 Jul 2010 20:40:29 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id 9460F8FC1A for ; Sat, 24 Jul 2010 20:40:29 +0000 (UTC) Received: from igor.geek.sh (196-209-37-66.dynamic.isadsl.co.za [196.209.37.66]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.geek.sh (Postfix) with ESMTPSA id 4A36F3C9FC for ; Sat, 24 Jul 2010 22:40:27 +0200 (SAST) Message-ID: <4C4B4FBA.6030009@phat.za.net> Date: Sat, 24 Jul 2010 22:40:26 +0200 From: Aragon Gouveia User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100426 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: M-Audio Transit in 8.1 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, 24 Jul 2010 20:40:29 -0000 Hi, I use an M-Audio Transit for sound and it was dependent on the hw.usb.uaudio.default_rate and hw.usb.uaudio.default_bits OIDs to get it recognised as a 44/16 device rather than 96/24. I see uaudio's implementation of USB_DEBUG changed recently, and those OIDs only get defined with a debug compile. Should those OIDs be considered debug options though? If so, is there any way to get uaudio to detect my hardware's 44/16 support automatically and without a debug build? Thanks, Aragon