From owner-freebsd-usb@FreeBSD.ORG Sun Oct 14 15:10:02 2007 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 9ED9F16A421 for ; Sun, 14 Oct 2007 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4105213C481 for ; Sun, 14 Oct 2007 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9EFA19V009267 for ; Sun, 14 Oct 2007 15:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9EFA1F1009266; Sun, 14 Oct 2007 15:10:01 GMT (envelope-from gnats) Resent-Date: Sun, 14 Oct 2007 15:10:01 GMT Resent-Message-Id: <200710141510.l9EFA1F1009266@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30C9B16A417 for ; Sun, 14 Oct 2007 15:06:09 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.166]) by mx1.freebsd.org (Postfix) with ESMTP id 3C59713C47E for ; Sun, 14 Oct 2007 15:06:07 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.1/8.14.1) with ESMTP id l9EF66Q1001549 for ; Sun, 14 Oct 2007 23:06:06 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.1/8.14.1/Submit) id l9EF66X2001548; Sun, 14 Oct 2007 23:06:06 +0800 (KRAST) (envelope-from eugen) Message-Id: <200710141506.l9EF66X2001548@grosbein.pp.ru> Date: Sun, 14 Oct 2007 23:06:06 +0800 (KRAST) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/117185: [umodem] Add support for UNION interface descriptor X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 15:10:02 -0000 >Number: 117185 >Category: usb >Synopsis: [umodem] Add support for UNION interface descriptor >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 14 15:10:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 7.0-PRERELEASE i386 >Organization: Svyaz-Service >Environment: System: FreeBSD grosbein.pp.ru 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Sun Oct 14 20:41:31 KRAST 2007 eu@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 >Description: Currently, umodem(4) does not attach USB modems not having CM interface descriptor but having UNION interface descriptor instead. Examples are Nokia smartphones like E50, N73 etc. >How-To-Repeat: Attach Nokia E50 using its USB data cable (choose 'PC Suite mode') and see that it's detected as 'ugen' device. >Fix: The following patch teaches umodem(4) to use UNION descriptor, it creates /dev/cuaU0 device node that works just fine for PPP over GPRS. This obsoletes usb/91546 containing incomplete patch by PR originator and version of this patch for 6.2-STABLE by me. --- sys/dev/usb/umodem.c.orig 2007-10-14 20:51:58.000000000 +0800 +++ sys/dev/usb/umodem.c 2007-10-14 21:03:58.000000000 +0800 @@ -172,13 +172,14 @@ struct task sc_task; }; -static void *umodem_get_desc(usbd_device_handle dev, int type, int subtype); +static void *umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *, int type, int subtype); +static usbd_interface_handle umodem_get_interface(struct usb_attach_arg *uaa, int ifcno); static usbd_status umodem_set_comm_feature(struct umodem_softc *sc, int feature, int state); static usbd_status umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t *state); -static void umodem_get_caps(usbd_device_handle, int *, int *); +static int umodem_get_caps(struct usb_attach_arg *, int, int *, int *); static void umodem_get_status(void *, int portno, u_char *lsr, u_char *msr); static void umodem_set(void *, int, int, int); @@ -262,10 +263,7 @@ if (ret == UMATCH_NONE) return (ret); - umodem_get_caps(uaa->device, &cm, &acm); - if (!(cm & USB_CDC_CM_DOES_CM) || - !(cm & USB_CDC_CM_OVER_DATA) || - !(acm & USB_CDC_ACM_HAS_LINE)) + if (umodem_get_caps(uaa, -1, &cm, &acm) == -1) return (UMATCH_NONE); return ret; @@ -279,7 +277,6 @@ usbd_device_handle dev = uaa->device; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; - usb_cdc_cm_descriptor_t *cmd; int data_ifcno; int i; struct ucom_softc *ucom; @@ -297,15 +294,14 @@ device_printf(self, "iclass %d/%d\n", id->bInterfaceClass, id->bInterfaceSubClass); - umodem_get_caps(dev, &sc->sc_cm_cap, &sc->sc_acm_cap); - /* Get the data interface no. */ - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); - if (cmd == NULL) { - device_printf(sc->sc_dev, "no CM descriptor\n"); + sc->sc_data_iface_no = data_ifcno = + umodem_get_caps(uaa, sc->sc_ctl_iface_no, &sc->sc_cm_cap, &sc->sc_acm_cap); + + if (data_ifcno == -1) { + device_printf(sc->sc_dev,"%s: no pointer to data interface\n"); goto bad; } - sc->sc_data_iface_no = data_ifcno = cmd->bDataInterface; device_printf(sc->sc_dev, "data interface %d, has %sCM over data, has %sbreak\n", @@ -530,27 +526,50 @@ ucom_status_change(&sc->sc_ucom); } -void -umodem_get_caps(usbd_device_handle dev, int *cm, int *acm) +static int +umodem_get_caps(struct usb_attach_arg *uaa, int ctl_iface_no, int *cm, int *acm) { usb_cdc_cm_descriptor_t *cmd; usb_cdc_acm_descriptor_t *cad; + usb_cdc_union_descriptor_t *cud; + usbd_device_handle dev = uaa->device; + usbd_interface_handle iface; + int iface_no = 0; *cm = *acm = 0; - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); + cmd = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); if (cmd == NULL) { DPRINTF(("umodem_get_desc: no CM desc\n")); - return; + } else { + *cm = cmd->bmCapabilities; } - *cm = cmd->bmCapabilities; - cad = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); + cad = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); if (cad == NULL) { DPRINTF(("umodem_get_desc: no ACM desc\n")); - return; + } else { + *acm = cad->bmCapabilities; + } + + cud = NULL; + while ((cud = umodem_get_desc(dev, (usb_descriptor_t *)cud, + UDESC_CS_INTERFACE, UDESCSUB_CDC_UNION))) + { + iface_no = cud->bSlaveInterface[0]; + if (ctl_iface_no == -1) + break; + + iface = umodem_get_interface(uaa,iface_no); + if (ctl_iface_no == cud->bMasterInterface && + usbd_get_interface_descriptor(iface)->bNumEndpoints >= 2) + break; + } + if (cud == NULL) { + DPRINTF(("umodem_get_caps: no UNION desc\n")); } - *acm = cad->bmCapabilities; + + return cmd ? cmd->bDataInterface : cud ? iface_no : -1; } void @@ -566,6 +585,23 @@ *msr = sc->sc_msr; } +static usbd_interface_handle +umodem_get_interface(struct usb_attach_arg *uaa, int ifcno) +{ + int i; + usb_interface_descriptor_t *id; + + for (i = 0; i < uaa->nifaces; i++) { + if (uaa->ifaces[i] != NULL) { + id = usbd_get_interface_descriptor(uaa->ifaces[i]); + if (id != NULL && id->bInterfaceNumber == ifcno) { + return uaa->ifaces[i]; + } + } + } + return NULL; +} + int umodem_param(void *addr, int portno, struct termios *t) { @@ -756,14 +792,17 @@ return (USBD_NORMAL_COMPLETION); } -void * -umodem_get_desc(usbd_device_handle dev, int type, int subtype) +static void * +umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *restart, int type, int subtype) { usb_descriptor_t *desc; usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev); uByte *p = (uByte *)cd; uByte *end = p + UGETW(cd->wTotalLength); + if (restart) + p = (uByte *)(restart) + restart->bLength; + while (p < end) { desc = (usb_descriptor_t *)p; if (desc->bDescriptorType == type && >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Oct 14 17:32:17 2007 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 71B5016A419 for ; Sun, 14 Oct 2007 17:32:17 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 33DCC13C45A for ; Sun, 14 Oct 2007 17:32:17 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 952CE1CC0C5 for ; Sun, 14 Oct 2007 19:15:34 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id CFCDD1701C; Sun, 14 Oct 2007 19:15:33 +0200 (CEST) Date: Sun, 14 Oct 2007 19:15:33 +0200 From: Henrik Brix Andersen To: freebsd-usb@freebsd.org Message-ID: <20071014171533.GA6950@tirith.brixandersen.dk> Mail-Followup-To: freebsd-usb@freebsd.org References: <200710131700.35048.hselasky@c2i.net> <20071013235956.GA31826@elvis.mu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20071013235956.GA31826@elvis.mu.org> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: New mailing list for USB P4 project ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 17:32:17 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 13, 2007 at 04:59:56PM -0700, Alfred Perlstein wrote: > At this time the FreeBSD project has a committer assigned "full time" > to integration of your stack. At the time that the integration is > complete there will be no need for such a list. Who, if you don't mind me asking? :) Regards, Brix --=20 Henrik Brix Andersen --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFHEk61v+Q4flTiePgRAuBcAKC95LscFFBifUdbXkAmfmHfJ/NS0wCfRVQH +MxjIGTwnVruTi/yZBbIE24= =pGVw -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 02:41:09 2007 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 2A7D216A41A for ; Mon, 15 Oct 2007 02:41:09 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 12FF013C461 for ; Mon, 15 Oct 2007 02:41:08 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id CC6B11A4D7C; Sun, 14 Oct 2007 19:41:08 -0700 (PDT) Date: Sun, 14 Oct 2007 19:41:08 -0700 From: Alfred Perlstein To: freebsd-usb@freebsd.org Message-ID: <20071015024108.GE31826@elvis.mu.org> References: <200710131700.35048.hselasky@c2i.net> <20071013235956.GA31826@elvis.mu.org> <20071014171533.GA6950@tirith.brixandersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071014171533.GA6950@tirith.brixandersen.dk> User-Agent: Mutt/1.4.2.3i Subject: Re: New mailing list for USB P4 project ? 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, 15 Oct 2007 02:41:09 -0000 * Henrik Brix Andersen [071014 10:32] wrote: > On Sat, Oct 13, 2007 at 04:59:56PM -0700, Alfred Perlstein wrote: > > At this time the FreeBSD project has a committer assigned "full time" > > to integration of your stack. At the time that the integration is > > complete there will be no need for such a list. > > Who, if you don't mind me asking? :) Me. -- - Alfred Perlstein From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 03:19:47 2007 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 D6FB416A419 for ; Mon, 15 Oct 2007 03:19:47 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id 508A913C468 for ; Mon, 15 Oct 2007 03:19:46 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l9F2fb1g023514 for ; Mon, 15 Oct 2007 12:11:37 +0930 (CST) Received: from fmbex510.dsto.defence.gov.au (fmbex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Mon, 15 Oct 2007 12:23:24 +0930 Received: from stlex510.dsto.defence.gov.au ([203.6.60.184]) by fmbex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Oct 2007 12:53:23 +1000 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by stlex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Oct 2007 10:53:23 +0800 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.14.1/8.14.1) with ESMTP id l9F2rNCR007889 for ; Mon, 15 Oct 2007 10:53:23 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.14.1/8.14.1/Submit) id l9F2rMuA007888 for freebsd-usb@freebsd.org; Mon, 15 Oct 2007 10:53:22 +0800 (WST) (envelope-from wilkinsa) Date: Mon, 15 Oct 2007 10:53:22 +0800 From: "Wilkinson, Alex" To: freebsd-usb@freebsd.org Message-ID: <20071015025322.GJ4884@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-usb@freebsd.org References: <200710131700.35048.hselasky@c2i.net> <20071013235956.GA31826@elvis.mu.org> <20071014171533.GA6950@tirith.brixandersen.dk> <20071015024108.GE31826@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20071015024108.GE31826@elvis.mu.org> Organisation: Defence Science Technology Organisation User-Agent: Mutt/1.5.16 (2007-06-09) X-OriginalArrivalTime: 15 Oct 2007 02:53:23.0206 (UTC) FILETIME=[8D098260:01C80ED6] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-5.0.1023-15480.001 X-TM-AS-Result: No--0.037700-0.000000-31 Content-Transfer-Encoding: 7bit Subject: Re: New mailing list for USB P4 project ? 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, 15 Oct 2007 03:19:47 -0000 0n Sun, Oct 14, 2007 at 07:41:08PM -0700, Alfred Perlstein wrote: >* Henrik Brix Andersen [071014 10:32] wrote: >> On Sat, Oct 13, 2007 at 04:59:56PM -0700, Alfred Perlstein wrote: >> > At this time the FreeBSD project has a committer assigned "full time" >> > to integration of your stack. At the time that the integration is >> > complete there will be no need for such a list. >> >> Who, if you don't mind me asking? :) > >Me. Nice! Can we have regular updates on progress ? -aW IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 04:13:51 2007 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 1965016A419; Mon, 15 Oct 2007 04:13:51 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DB2DB13C461; Mon, 15 Oct 2007 04:13:50 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9F4DoFe057442; Mon, 15 Oct 2007 04:13:50 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9F4DosU057438; Mon, 15 Oct 2007 04:13:50 GMT (envelope-from linimon) Date: Mon, 15 Oct 2007 04:13:50 GMT Message-Id: <200710150413.l9F4DosU057438@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/117183: USB/fusefs -- Fatal trap 12: page fault while in kernel mode 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, 15 Oct 2007 04:13:51 -0000 Synopsis: USB/fusefs -- Fatal trap 12: page fault while in kernel mode Responsible-Changed-From-To: freebsd-i386->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 15 04:13:26 UTC 2007 Responsible-Changed-Why: This does not sound i386-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=117183 From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 04:55:54 2007 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 9EB6316A502 for ; Mon, 15 Oct 2007 04:55:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 8844C13C45D for ; Mon, 15 Oct 2007 04:55:54 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 608B61A4D7C; Sun, 14 Oct 2007 21:55:54 -0700 (PDT) Date: Sun, 14 Oct 2007 21:55:54 -0700 From: Alfred Perlstein To: freebsd-usb@freebsd.org Message-ID: <20071015045554.GF31826@elvis.mu.org> References: <200710131700.35048.hselasky@c2i.net> <20071013235956.GA31826@elvis.mu.org> <20071014171533.GA6950@tirith.brixandersen.dk> <20071015024108.GE31826@elvis.mu.org> <20071015025322.GJ4884@obelix.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071015025322.GJ4884@obelix.dsto.defence.gov.au> User-Agent: Mutt/1.4.2.3i Subject: Re: New mailing list for USB P4 project ? 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, 15 Oct 2007 04:55:54 -0000 * Wilkinson, Alex [071014 20:19] wrote: > 0n Sun, Oct 14, 2007 at 07:41:08PM -0700, Alfred Perlstein wrote: > > >* Henrik Brix Andersen [071014 10:32] wrote: > >> On Sat, Oct 13, 2007 at 04:59:56PM -0700, Alfred Perlstein wrote: > >> > At this time the FreeBSD project has a committer assigned "full time" > >> > to integration of your stack. At the time that the integration is > >> > complete there will be no need for such a list. > >> > >> Who, if you don't mind me asking? :) > > > >Me. > > Nice! Can we have regular updates on progress ? No. I do not have time for that. -- - Alfred Perlstein From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 08:37:18 2007 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 48DEC16A41B for ; Mon, 15 Oct 2007 08:37:18 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id 0A03413C43E for ; Mon, 15 Oct 2007 08:37:17 +0000 (UTC) (envelope-from henrik@brixandersen.dk) Received: from tirith.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189]) by solow.pil.dk (Postfix) with ESMTP id 58D951CC0FA for ; Mon, 15 Oct 2007 10:37:17 +0200 (CEST) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id AE9A217036; Mon, 15 Oct 2007 10:37:16 +0200 (CEST) Date: Mon, 15 Oct 2007 10:37:16 +0200 From: Henrik Brix Andersen To: freebsd-usb@freebsd.org Message-ID: <20071015083716.GC1290@tirith.brixandersen.dk> Mail-Followup-To: freebsd-usb@freebsd.org References: <200710131700.35048.hselasky@c2i.net> <20071013235956.GA31826@elvis.mu.org> <20071014171533.GA6950@tirith.brixandersen.dk> <20071015024108.GE31826@elvis.mu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <20071015024108.GE31826@elvis.mu.org> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: New mailing list for USB P4 project ? 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, 15 Oct 2007 08:37:18 -0000 --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 14, 2007 at 07:41:08PM -0700, Alfred Perlstein wrote: > * Henrik Brix Andersen [071014 10:32] wrote: > > On Sat, Oct 13, 2007 at 04:59:56PM -0700, Alfred Perlstein wrote: > > > At this time the FreeBSD project has a committer assigned "full time" > > > to integration of your stack. At the time that the integration is > > > complete there will be no need for such a list. > >=20 > > Who, if you don't mind me asking? :) >=20 > Me. Ah, that's good to hear :) Thank you. Regards, Brix --=20 Henrik Brix Andersen --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFHEya8v+Q4flTiePgRAk8BAJ45fB3jDXoZVQDfgz9+gZPSkXDDaQCbBMRw 5rWgVVkWZBdvBILRpvKpotE= =YIhf -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 11:06:17 2007 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 DAD7916A504 for ; Mon, 15 Oct 2007 11:06:17 +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 B10A513C4A5 for ; Mon, 15 Oct 2007 11:06:17 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FB6HfN080591 for ; Mon, 15 Oct 2007 11:06:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9FB6Hgd080589 for freebsd-usb@FreeBSD.org; Mon, 15 Oct 2007 11:06:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Oct 2007 11:06:17 GMT Message-Id: <200710151106.l9FB6Hgd080589@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 you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 11:06:18 -0000 From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 11:20:04 2007 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 869B716A417 for ; Mon, 15 Oct 2007 11:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 61BFB13C459 for ; Mon, 15 Oct 2007 11:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FBK3SY082973 for ; Mon, 15 Oct 2007 11:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9FBK3f6082972; Mon, 15 Oct 2007 11:20:03 GMT (envelope-from gnats) Date: Mon, 15 Oct 2007 11:20:03 GMT Message-Id: <200710151120.l9FBK3f6082972@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Eugene M. Zheganin" Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Eugene M. Zheganin" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 11:20:04 -0000 The following reply was made to PR usb/85257; it has been noted by GNATS. From: "Eugene M. Zheganin" To: bug-followup@FreeBSD.org, cwf-ml@arcor.de Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Mon, 15 Oct 2007 17:17:56 +0600 Reproduceable also on 6.2-RELEASE and on IPKVM-attached device, detected by BIOS as an USB generic DVD-ROM. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 12:00:05 2007 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 7657516A419 for ; Mon, 15 Oct 2007 12:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5BE2813C474 for ; Mon, 15 Oct 2007 12:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FC05qX085305 for ; Mon, 15 Oct 2007 12:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9FC05Sr085304; Mon, 15 Oct 2007 12:00:05 GMT (envelope-from gnats) Resent-Date: Mon, 15 Oct 2007 12:00:05 GMT Resent-Message-Id: <200710151200.l9FC05Sr085304@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Artem Naluzhnyy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57E4016A41A for ; Mon, 15 Oct 2007 11:53:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4AA7D13C45B for ; Mon, 15 Oct 2007 11:53:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FBr9rM049552 for ; Mon, 15 Oct 2007 11:53:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9FBr99R049551; Mon, 15 Oct 2007 11:53:09 GMT (envelope-from nobody) Message-Id: <200710151153.l9FBr99R049551@www.freebsd.org> Date: Mon, 15 Oct 2007 11:53:09 GMT From: Artem Naluzhnyy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/117205: [patch] uscanner support for HP ScanJet 4470c 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, 15 Oct 2007 12:00:05 -0000 >Number: 117205 >Category: usb >Synopsis: [patch] uscanner support for HP ScanJet 4470c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Oct 15 12:00:05 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Artem Naluzhnyy >Release: 7.0-PRERELEASE >Organization: >Environment: >Description: The patch result: $ sudo usbdevs -vd Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 uhub0 port 2 addr 4: full speed, self powered, config 1, HP ScanJet 4470c(0x0805), Hewlett-Packard(0x03f0), rev 1.00 uscanner0 >How-To-Repeat: >Fix: Patch attached with submission follows: --- sys/dev/usb/usbdevs.orig 2007-10-15 13:26:12.000000000 +0300 +++ sys/dev/usb/usbdevs 2007-10-15 13:25:42.000000000 +0300 @@ -1365,6 +1365,7 @@ product HP 2200C 0x0605 ScanJet 2200C product HP 5300C 0x0701 Scanjet 5300C product HP 4400C 0x0705 Scanjet 4400C +product HP 4470C 0x0805 Scanjet 4470C product HP 82x0C 0x0b01 Scanjet 82x0C product HP 2300D 0x0b17 Laserjet 2300d product HP 970CSE 0x1004 Deskjet 970Cse --- sys/dev/usb/uscanner.c.orig 2007-10-09 12:25:25.000000000 +0300 +++ sys/dev/usb/uscanner.c 2007-10-15 13:28:44.000000000 +0300 @@ -132,6 +132,7 @@ {{ USB_VENDOR_HP, USB_PRODUCT_HP_4100C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4200C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4300C }, 0 }, + {{ USB_VENDOR_HP, USB_PRODUCT_HP_4470C }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_4670V }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_S20 }, 0 }, {{ USB_VENDOR_HP, USB_PRODUCT_HP_5200C }, 0 }, --- share/man/man4/uscanner.4.orig 2007-10-09 12:24:36.000000000 +0300 +++ share/man/man4/uscanner.4 2007-10-15 14:51:01.000000000 +0300 @@ -111,6 +111,7 @@ Hewlett Packard Scanjet: 2200C, 3300C, 3400CSE, 4100C, 4200C, 4300C, +4470C, 5200C, 5300C, 5400C, 6200C, 6300C, 8200C, 8250C, 8290C; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 17:47:19 2007 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 B656416A496 for ; Mon, 15 Oct 2007 17:47:19 +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 8B54513C448 for ; Mon, 15 Oct 2007 17:47:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FHlJXL015136 for ; Mon, 15 Oct 2007 17:47:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9FHlIFa015132 for freebsd-usb@FreeBSD.org; Mon, 15 Oct 2007 17:47:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Oct 2007 17:47:18 GMT Message-Id: <200710151747.l9FHlIFa015132@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, 15 Oct 2007 17:47:19 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb [umass] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb o usb/114682 usb USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb Turning off USB printer panics kernel o usb/116561 usb RELENG_6 umodem panic "trying to sleep while sleeping o usb/116947 usb [patch] enable boot protocol on the USB keyboards 101 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass p usb/114860 usb if_udav / ShanTou ST268 USB NIC o usb/114916 usb USB Maxtor drive (L300RO) requires quirk. o usb/115080 usb using a Hercules HWGUSB2-54-V2 wifi usb adapter o usb/115197 usb can not install from USB stick drive o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115737 usb uplcom doesn't identify my Prolific 2303 any more o usb/115933 usb RATOC REX-USB60F (usb serial converter) is working o usb/115935 usb [patch] kernel counterproductively attaches to Cyber P o usb/116057 usb [patch] Update quirks for the MetaGeek Wi-Spy o usb/116282 usb Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [patch] Add device ids for ICH8 USB chipsets o usb/116898 usb panic: sleeping thread while using USB hard drive o usb/117183 usb USB/fusefs -- Fatal trap 12: page fault while in kerne o usb/117185 usb [umodem] Add support for UNION interface descriptor o usb/117205 usb [patch] uscanner support for HP ScanJet 4470c 107 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 15 21:03:05 2007 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 39B3216A417 for ; Mon, 15 Oct 2007 21:03:05 +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 BCECD13C45B for ; Mon, 15 Oct 2007 21:03:04 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 653066770; Mon, 15 Oct 2007 23:03:03 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Mon, 15 Oct 2007 23:03:28 +0200 User-Agent: KMail/1.9.7 References: <200710121912.03585.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710152303.29294.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 15 Oct 2007 21:03:05 -0000 On Saturday 13 October 2007, Xiaofan Chen wrote: > On 10/13/07, Hans Petter Selasky wrote: > > Resource temporarily unavailable maps to EAGAIN > > according to "man errno". From what I can see from the log > > you have provided this means that the "msleep()" > > call in "ugenread" timed out. > > > > What timeout have you programmed in your PICkit ? > > It is 1000ms. I change it to 10000ms but this does not help. Do you see this timeout ? Does the code actually wait 10 seconds ? In the file "ugen.c" in the function "ugen_open_pipe_read()" you will find a "case UE_INTERRUPT:". Some lines further down you will find: /* first transfer clears stall */ sce->read_stall = 1; This you can set to "0". Then recompile and install the "ugen" module and/or kernel. Does your USB hardware work now ? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 03:20:07 2007 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 0F19216A417 for ; Tue, 16 Oct 2007 03:20:07 +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 00CA613C458 for ; Tue, 16 Oct 2007 03:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9G3K6FY049119 for ; Tue, 16 Oct 2007 03:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9G3K6Dn049118; Tue, 16 Oct 2007 03:20:06 GMT (envelope-from gnats) Date: Tue, 16 Oct 2007 03:20:06 GMT Message-Id: <200710160320.l9G3K6Dn049118@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Rashid N. Achilov" Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Rashid N. Achilov" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2007 03:20:07 -0000 The following reply was made to PR usb/85257; it has been noted by GNATS. From: "Rashid N. Achilov" To: bug-followup@freebsd.org, cwf-ml@arcor.de Cc: Subject: Re: usb/85257: [boot] BTX boot loader fails on USB CDROM (HP DL145 Opteron) Date: Tue, 16 Oct 2007 10:05:49 +0700 Reproduceable also at 6.2-RELEASE when trying to boot from USB Flash drive. BTX failed with this dump: (sorry, I have to type dump manually) int=0000000d err=00000000 efl=00030002 eip=00004023 eax=00000000 ebx=00000700 ecx=00000000 edx=00000001 esi=00000000 edi=00000000 ebp=00000000 esp=000003f4 cs=f000 ds=0000 es=0000 fs=0000 gs=0000 ss=9e39 cs:eip= 2e 0f 01 16 48 43 0f 20-c0 0c 01 0f 22 c0 b8 20 00 8e d8 0f 20 c0 24 fe-0f 22 c0 eb 00 66 58 c3 ss:esp= 00 00 00 00 e3 37 00 08-00 00 00 00 86 9d 47 91 00 00 46 02 3d e5 02 00-43 00 00 00 00 00 00 00 I have a snap, taken by phone, can mail on request -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 12:42:38 2007 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 0D20B16A418 for ; Tue, 16 Oct 2007 12:42:38 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 00D0013C469 for ; Tue, 16 Oct 2007 12:42:37 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2403711waf for ; Tue, 16 Oct 2007 05:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9DLHRo3saaBAb26pCHKFMZylIbz7bTsLGJmbj3WSa0g=; b=eO9w4sMLsCb66diR+CVxe2DTbtUTFDWf3sIj93LWZb5nZf71r9+y2RObAtuTxJwzqKaONcccNWHvVdaAkZmAKGHdHGaLiaEjgsnoUiP5ah+/eS5Z/uaENP1cYQG13AnQsSCIn73GCxiLZMSjqroBpSVPosh7nINVi5jn8UiQrZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MLspG+AqwLlAGYHppTamOg3u72ljYA5VQG1FFV1KM34ivhUPjfWwIpuF4x51WutCHFyXch9xkopYg/t9WDkZ23eq2d2nRYB7VdtrRwKMTZYF2HH3lvulcw1wWu95FzBDeHdBFxPcjPtMJCp4uuF1jehlLFsIYJAkyktMXCPMjQk= Received: by 10.114.13.1 with SMTP id 1mr8377764wam.1192538531925; Tue, 16 Oct 2007 05:42:11 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Tue, 16 Oct 2007 05:42:11 -0700 (PDT) Message-ID: Date: Tue, 16 Oct 2007 20:42:11 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710152303.29294.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121912.03585.hselasky@c2i.net> <200710152303.29294.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 16 Oct 2007 12:42:38 -0000 On 10/16/07, Hans Petter Selasky wrote: > On Saturday 13 October 2007, Xiaofan Chen wrote: > > On 10/13/07, Hans Petter Selasky wrote: > > > Resource temporarily unavailable maps to EAGAIN > > > according to "man errno". From what I can see from the log > > > you have provided this means that the "msleep()" > > > call in "ugenread" timed out. > > > > > > What timeout have you programmed in your PICkit ? > > > > It is 1000ms. I change it to 10000ms but this does not help. > > Do you see this timeout ? Does the code actually wait 10 seconds ? I think so. > In the file "ugen.c" in the function "ugen_open_pipe_read()" you will find > a "case UE_INTERRUPT:". Some lines further down you will find: > > /* first transfer clears stall */ > sce->read_stall = 1; > > This you can set to "0". Then recompile and install the "ugen" module and/or > kernel. > > Does your USB hardware work now ? > Yes with the changes, PICkit 2 is happy again under Linux. ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py set Configuration 1 claim Interface 0 Turing power on by USB interrupt write Sending version command by USB interrupt write Getting version command by USB interrupt read (2, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) Thanks a lot. So it seems there is still a bug in the firmware. Maybe two. The first one caused the stall (why?). The second one is still related to dealing with clear stall feature request. Right? Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 12:47:50 2007 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 744D616A41A for ; Tue, 16 Oct 2007 12:47:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6969613C45A for ; Tue, 16 Oct 2007 12:47:50 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2405060waf for ; Tue, 16 Oct 2007 05:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7nre4biftbkrs6K+9e5UL8HsDOFjxZcYy88S8MSO1RI=; b=NliN7TXorSgPR9sWC/EPv07yr84amuS2Sxc4vXaDby3vk+dWPIHRRZKwlVIWVH7tvPV42fmjrxRhPQNZfd2aiWdOxoZSQPJQ41ETCMWN7gOpwp6g5MfdAy0P+Jnv2v6hrwGb9AMPFa4rYaK8idoIieOHZc9PBdOBqdCykASQpyw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bWNNu95VVqrjGr390rgj5an9W+kdWs40Yl2kzFtcR6nukFzPR6cUz2RgsvP/ZUvkcqUOypW3BM7h3Vm2/br7b/sfxH8rYKcnddtVz9oFrqI+Fft4vySK6yXwwBTYPcLQgAGYaO3i+2Asa2gK7uhHAdY08J5S4yT9H1LMQI/lkxc= Received: by 10.114.160.1 with SMTP id i1mr8397051wae.1192538869399; Tue, 16 Oct 2007 05:47:49 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Tue, 16 Oct 2007 05:47:49 -0700 (PDT) Message-ID: Date: Tue, 16 Oct 2007 20:47:49 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: PICDEM FS USB Demo under FreeBSD with HPS Stack 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, 16 Oct 2007 12:47:50 -0000 On 10/13/07, Xiaofan Chen wrote: > Today I checked the Demo mode of PICDEM FS USB demo board. > it does not work either. Again this uses interrupt transfer. This is with the latest HPS USB stack and 6.2 Stable. On 10/16/07, Hans Petter Selasky wrote: > On Saturday 13 October 2007, Xiaofan Chen wrote: > > On 10/13/07, Hans Petter Selasky wrote: > In the file "ugen.c" in the function "ugen_open_pipe_read()" you will find > a "case UE_INTERRUPT:". Some lines further down you will find: > > /* first transfer clears stall */ > sce->read_stall = 1; > > This you can set to "0". Then recompile and install the "ugen" module and/or > kernel. > > Does your USB hardware work now ? > This also solved the problem with PICDEM FS USB demo board. Thanks! ===[mcuee] ~/Desktop/build/fsusb/Demo # sudo ./fsusb_demo --readpot Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe9a8 8 1000 usb_control_msg: 128 6 512 0 0x8051040 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe9a8 8 1000 usb_control_msg: 128 6 513 0 0x804b120 32 1000 usb_control_msg: 128 6 512 0 0xbfbfe9a8 8 1000 usb_control_msg: 128 6 512 0 0x804b160 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen1' on USB bus /dev/usb1 Communication established. answer was correct! Onboard firmware version is 1.0 Potentiometer now reads 263 usb_os_close: closing endpoint 4 Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 13:34:23 2007 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 AD93716A418 for ; Tue, 16 Oct 2007 13:34:23 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 55C1213C47E for ; Tue, 16 Oct 2007 13:34:23 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2418917waf for ; Tue, 16 Oct 2007 06:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=dLiERwn5uHaC1ycVJ7bxCzPWR1fECj6K0HJzntk5QjE=; b=C6I0GzMeGg5MsQC/0jajWec3pICJYndD3w2BRBck7/9G1taAHPpIWootiDRizoQWqzIKld7JpiVXHLJkwyRPRypt4IR8whHvSVVs7K/gzOj4WMuXRjJ5GHfsOD9bsmDJX/80wncwK81vyboUThK0DD9weAUm7VSx7n6mlMHndao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hq6u3X6/lZGC9TKnrz6SXxSp1XJsP9ji9pCb0xHuSnZiYQN6CBPBxZO0hmNxyMDbqhcw2d9HmTBREYLIwy05cyqCU20GEgiijheGPg33D/ZHJ5b+RZVOg/uqVpF39j39tFgtSuNIYrW11RHwgwrY23HBcYOpOKx04zH2mdQiHGE= Received: by 10.114.79.1 with SMTP id c1mr8424666wab.1192541660239; Tue, 16 Oct 2007 06:34:20 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Tue, 16 Oct 2007 06:34:20 -0700 (PDT) Message-ID: Date: Tue, 16 Oct 2007 21:34:20 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710121919.36175.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICDEM FS USB Bootloader under 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: Tue, 16 Oct 2007 13:34:23 -0000 On 10/13/07, Xiaofan Chen wrote: > On 10/13/07, Hans Petter Selasky wrote: > > I think that the write STALLED. You can check this by turning on > > debugging on the OHCI controller by: > > > > systctl hw.usb.ohci.debug=15 > > > > Replace "ohci" by "ehci" or "uhci" if you are using such controllers. > > Strange today reading seems to work. I will check other functionality > later. This bootloader device uses bulk transfer. > So this is the last one I want to make to work under FreeBSD right now. Unfortunately verifying and writing are still not working. Reading is working. The bootloader firmware uses a cut-down version of the USB firmware framework. Maybe it is even buggier. ===[mcuee] ~/Desktop/build/fsusb/fsusb-0.1.11-2 # sudo ./fsusb newdemo.hex usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip(tm) PICDEM-FS USB(tm) (vendor 0x04d8/product 0x000b) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe988 8 1000 usb_control_msg: 128 6 512 0 0x804d0e0 32 1000 Found USB PICDEM-FS USB as device '/dev/ugen0' on USB bus /dev/usb1 Communication established. Onboard firmware version is 1.0 ^C CTRL-C since it hanges here. ===[mcuee] ~/Desktop # dmesg ... ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x0002 wValue=0x0301 wIndex=0x0001 ohci_device_done: xfer=0xc41a9a20, pipe=0xc3053100 length=10 error=0 ohci_device_done: xfer=0xc41a9a20, pipe=0xc3053100 length=10 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x000e wValue=0x0301 wIndex=0x0001 ohci_device_done: xfer=0xc41aa420, pipe=0xc3053100 length=22 error=0 ohci_device_done: xfer=0xc41aa420, pipe=0xc3053100 length=22 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x0002 wValue=0x0302 wIndex=0x0001 ohci_device_done: xfer=0xc41a9820, pipe=0xc3053100 length=10 error=0 ohci_device_done: xfer=0xc41a9820, pipe=0xc3053100 length=10 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x001c wValue=0x0302 wIndex=0x0001 ohci_device_done: xfer=0xc41a9c20, pipe=0xc3053100 length=36 error=0 ohci_device_done: xfer=0xc41a9c20, pipe=0xc3053100 length=36 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x0002 wValue=0x0301 wIndex=0x0001 ohci_device_done: xfer=0xc3cdaa20, pipe=0xc3054900 length=10 error=0 ohci_device_done: xfer=0xc3cdaa20, pipe=0xc3054900 length=10 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x000e wValue=0x0301 wIndex=0x0001 ohci_device_done: xfer=0xc41a9e20, pipe=0xc3054900 length=22 error=0 ohci_device_done: xfer=0xc41a9e20, pipe=0xc3054900 length=22 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x0002 wValue=0x0302 wIndex=0x0001 ohci_device_done: xfer=0xc41a9420, pipe=0xc3054900 length=10 error=0 ohci_device_done: xfer=0xc41a9420, pipe=0xc3054900 length=10 error=5 ohci_root_ctrl_task_td: type=0x80 request=0x06 wLen=0x001c wValue=0x0302 wIndex=0x0001 ohci_device_done: xfer=0xc41a9020, pipe=0xc3054900 length=36 error=0 ohci_device_done: xfer=0xc41a9020, pipe=0xc3054900 length=36 error=5 ohci_setup_standard_chain: addr=126 endpt=0 len=16 speed=2 ohci_setup_standard_chain: nexttog=1; data before transfer: TD(0xe6a8b080) at 0x3eb13080: -TOG0 delay=7 ec=0 cc=15 cbp=0x3eb13000 next=0x3eb13060 be=0x3eb13007 TD(0xe6a8b060) at 0x3eb13060: -R-IN-TOG1 delay=7 ec=0 cc=15 cbp=0x3eb13008 next=0x3eb13040 be=0x3eb1300f TD(0xe6a8b040) at 0x3eb13040: -OUT-TOG1 delay=1 ec=0 cc=15 cbp=0x00000000 next=0x00000000 be=0xffffffff _ohci_append_qh: 0xe6a8b0a0 to 0xc3007100 ohci_check_transfer: xfer=0xc3cd9c20 checking transfer ohci_non_isoc_done: xfer=0xc3cd9c20 pipe=0xc41a2900 transfer done TD(0xe6a8b080) at 0x3eb13080: -TOG1 delay=7 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3eb13007 ohci_non_isoc_done: len=8 ohci_non_isoc_done: len=8 ohci_non_isoc_done: len=0 ohci_non_isoc_done: actlen=16 ohci_device_done: xfer=0xc3cd9c20, pipe=0xc41a2900 length=16 error=0 _ohci_remove_qh: 0xe6a8b0a0 from 0xe6a8b0a0 ohci_device_done: xfer=0xc3cd9c20, pipe=0xc41a2900 length=16 error=5 _ohci_remove_qh: 0xe6a8b0a0 from 0xc3007100 ohci_setup_standard_chain: addr=126 endpt=0 len=40 speed=2 ohci_setup_standard_chain: nexttog=1; data before transfer: TD(0xe6a8b0a0) at 0x3eb130a0: -TOG0 delay=7 ec=0 cc=15 cbp=0x3eb13000 next=0x3eb13080 be=0x3eb13007 TD(0xe6a8b080) at 0x3eb13080: -R-IN-TOG1 delay=7 ec=0 cc=15 cbp=0x3eb13008 next=0x3eb13060 be=0x3eb13027 TD(0xe6a8b060) at 0x3eb13060: -OUT-TOG1 delay=1 ec=0 cc=15 cbp=0x00000000 next=0x00000000 be=0xffffffff _ohci_append_qh: 0xe6a8b0c0 to 0xc3007100 ohci_check_transfer: xfer=0xc41a9220 checking transfer ohci_non_isoc_done: xfer=0xc41a9220 pipe=0xc41a2900 transfer done TD(0xe6a8b0a0) at 0x3eb130a0: -TOG1 delay=7 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3eb13007 ohci_non_isoc_done: len=8 ohci_non_isoc_done: len=32 ohci_non_isoc_done: len=0 ohci_non_isoc_done: actlen=40 ohci_device_done: xfer=0xc41a9220, pipe=0xc41a2900 length=40 error=0 _ohci_remove_qh: 0xe6a8b0c0 from 0xe6a8b0c0 ohci_device_done: xfer=0xc41a9220, pipe=0xc41a2900 length=40 error=5 _ohci_remove_qh: 0xe6a8b0c0 from 0xc3007100 ohci_setup_standard_chain: addr=126 endpt=0 len=8 speed=2 ohci_setup_standard_chain: nexttog=1; data before transfer: TD(0xe6a9b520) at 0x3e816520: -TOG0 delay=7 ec=0 cc=15 cbp=0x3e8164b0 next=0x3e816500 be=0x3e8164b7 TD(0xe6a9b500) at 0x3e816500: -IN-TOG1 delay=1 ec=0 cc=15 cbp=0x00000000 next=0x00000000 be=0xffffffff _ohci_append_qh: 0xe6a9b540 to 0xc3007100 ohci_check_transfer: xfer=0xc42020e8 checking transfer ohci_non_isoc_done: xfer=0xc42020e8 pipe=0xc41a2900 transfer done TD(0xe6a9b520) at 0x3e816520: -TOG1 delay=7 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3e8164b7 ohci_non_isoc_done: len=8 ohci_non_isoc_done: len=0 ohci_non_isoc_done: actlen=8 ohci_device_done: xfer=0xc42020e8, pipe=0xc41a2900 length=8 error=21 _ohci_remove_qh: 0xe6a9b540 from 0xe6a9b540 ohci_device_bulk_start: xfer=0xc41f2020 len=5 ohci_setup_standard_chain: addr=126 endpt=1 len=5 speed=2 ohci_setup_standard_chain: nexttog=0; data before transfer: TD(0xe6a9b460) at 0x3e816460: -OUT-TOG0 delay=1 ec=0 cc=15 cbp=0x3eb13000 next=0x00000000 be=0x3eb13004 _ohci_append_qh: 0xe6a9b480 to 0xc3007130 ohci_check_transfer: xfer=0xc41f2020 checking transfer ohci_non_isoc_done: xfer=0xc41f2020 pipe=0xc41a2914 transfer done TD(0xe6a9b460) at 0x3e816460: -OUT-TOG1 delay=1 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3eb13004 ohci_non_isoc_done: len=5 ohci_non_isoc_done: actlen=5 ohci_device_done: xfer=0xc41f2020, pipe=0xc41a2914 length=5 error=0 _ohci_remove_qh: 0xe6a9b480 from 0xe6a9b480 ohci_setup_standard_chain: addr=126 endpt=0 len=8 speed=2 ohci_setup_standard_chain: nexttog=1; data before transfer: TD(0xe6aac520) at 0x3e7fb520: -TOG0 delay=7 ec=0 cc=15 cbp=0x3e7fb4b0 next=0x3e7fb500 be=0x3e7fb4b7 TD(0xe6aac500) at 0x3e7fb500: -IN-TOG1 delay=1 ec=0 cc=15 cbp=0x00000000 next=0x00000000 be=0xffffffff _ohci_append_qh: 0xe6aac540 to 0xc3007100 ohci_check_transfer: xfer=0xc42130e8 checking transfer ohci_non_isoc_done: xfer=0xc42130e8 pipe=0xc41a2900 transfer done TD(0xe6aac520) at 0x3e7fb520: -TOG1 delay=7 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3e7fb4b7 ohci_non_isoc_done: len=8 ohci_non_isoc_done: len=0 ohci_non_isoc_done: actlen=8 ohci_device_done: xfer=0xc42130e8, pipe=0xc41a2900 length=8 error=21 _ohci_remove_qh: 0xe6aac540 from 0xe6aac540 ohci_device_bulk_start: xfer=0xc4203020 len=4 ohci_setup_standard_chain: addr=126 endpt=1 len=4 speed=2 ohci_setup_standard_chain: nexttog=0; data before transfer: TD(0xe6aac460) at 0x3e7fb460: -R-IN-TOG0 delay=1 ec=0 cc=15 cbp=0x3e815000 next=0x00000000 be=0x3e815003 _ohci_append_qh: 0xe6aac480 to 0xc3007130 ohci_check_transfer: xfer=0xc4203020 checking transfer ohci_non_isoc_done: xfer=0xc4203020 pipe=0xc41a2928 transfer done TD(0xe6aac460) at 0x3e7fb460: -R-IN-TOG1 delay=1 ec=0 cc=0 cbp=0x00000000 next=0x00000000 be=0x3e815003 ohci_non_isoc_done: len=4 ohci_non_isoc_done: actlen=4 ohci_device_done: xfer=0xc4203020, pipe=0xc41a2928 length=4 error=0 _ohci_remove_qh: 0xe6aac480 from 0xe6aac480 ohci_device_done: xfer=0xc4203020, pipe=0xc41a2928 length=4 error=5 _ohci_remove_qh: 0xe6aac480 from 0xc3007130 ohci_device_done: xfer=0xc42130e8, pipe=0xc41a2900 length=8 error=5 _ohci_remove_qh: 0xe6aac540 from 0xc3007100 ohci_device_done: xfer=0xc41f2020, pipe=0xc41a2914 length=5 error=5 _ohci_remove_qh: 0xe6a9b480 from 0xc3007130 ohci_device_done: xfer=0xc42020e8, pipe=0xc41a2900 length=8 error=5 _ohci_remove_qh: 0xe6a9b540 from 0xc3007100 Any suggestions to fix the problem will be greatly appreciated. Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 16:43:56 2007 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 49C0616A417 for ; Tue, 16 Oct 2007 16:43:56 +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 B3AF413C461 for ; Tue, 16 Oct 2007 16:43:55 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 633417882; Tue, 16 Oct 2007 18:43:53 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Tue, 16 Oct 2007 18:44:19 +0200 User-Agent: KMail/1.9.7 References: <200710152303.29294.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710161844.20468.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 16 Oct 2007 16:43:56 -0000 On Tuesday 16 October 2007, Xiaofan Chen wrote: > On 10/16/07, Hans Petter Selasky wrote: > > On Saturday 13 October 2007, Xiaofan Chen wrote: > > > On 10/13/07, Hans Petter Selasky wrote: > > > > Resource temporarily unavailable maps to EAGAIN > > > > according to "man errno". From what I can see from the log > > > > you have provided this means that the "msleep()" > > > > call in "ugenread" timed out. > > > > > > > > What timeout have you programmed in your PICkit ? > > > > > > It is 1000ms. I change it to 10000ms but this does not help. > > > > Do you see this timeout ? Does the code actually wait 10 seconds ? > > I think so. > > > In the file "ugen.c" in the function "ugen_open_pipe_read()" you will > > find a "case UE_INTERRUPT:". Some lines further down you will find: > > > > /* first transfer clears stall */ > > sce->read_stall = 1; > > > > This you can set to "0". Then recompile and install the "ugen" module > > and/or kernel. > > > > Does your USB hardware work now ? > > Yes with the changes, PICkit 2 is happy again under Linux. > > ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py > set Configuration 1 > claim Interface 0 > Turing power on by USB interrupt write > Sending version command by USB interrupt write > Getting version command by USB interrupt read > (2, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) > Hi, > Thanks a lot. So it seems there is still a bug in the firmware. Maybe two. > The first one caused the stall (why?). I think that the clear-stall command will flush the FIFO of the interrupt endpoint. Is it possible that you can open the interrupt endpoint which is a file, /dev/ugenX.X, before sending the version command ? So that we don't end up clearing the stall after sending the command, but before. > The second one is still related to > dealing with clear stall feature request. Right? Yes. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 21:50:03 2007 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 84DEC16A421 for ; Tue, 16 Oct 2007 21:50: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 63AB713C455 for ; Tue, 16 Oct 2007 21:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9GLo3VZ023720 for ; Tue, 16 Oct 2007 21:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9GLo3b9023711; Tue, 16 Oct 2007 21:50:03 GMT (envelope-from gnats) Date: Tue, 16 Oct 2007 21:50:03 GMT Message-Id: <200710162150.l9GLo3b9023711@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Oles Hnatkevych Cc: Subject: Re: usb/117183: USB/fusefs -- Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oles Hnatkevych List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2007 21:50:03 -0000 The following reply was made to PR usb/117183; it has been noted by GNATS. From: Oles Hnatkevych To: bug-followup@FreeBSD.org, mail@shankerbalan.net Cc: Subject: Re: usb/117183: USB/fusefs -- Fatal trap 12: page fault while in kernel mode Date: Wed, 17 Oct 2007 00:22:43 +0300 Seems like I am having similar problem on 6.2-STABLE. Using 'mv' to move file from NTFS mounted partiion (using either ntfs-3g or ntfsmount suite) causes "Panic String: page fault" (kgdb can not read vmcore file, only info file available). Drive /dev/da0 is a USB-mounted drive. System/kenel recompiled after cvsup on Monday, 17.10.2007. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 16 23:36:22 2007 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 DAFF516A419 for ; Tue, 16 Oct 2007 23:36:22 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id B703313C442 for ; Tue, 16 Oct 2007 23:36:22 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2607606waf for ; Tue, 16 Oct 2007 16:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LpOQq+HXOUKAGW3w5LO38lmKMP2FiAq5K4XeB5OTtSg=; b=CjiyI+hg4qxjqGxEQF7hJJCV+50TF2pYhNuiEIlWMHhSa4zCxm7zGBgpRi6X+1JRBzWKmq5lMK+oK+VVS0qxeuCqZKxvLybRiMsSNvqw7YsVOWovkfgXANiQL78rfMXzIbiDa9DZatChW8UeSeRHaHQS25HwZU/F0ryfGuV7wmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WhvmfZHQDhYEyqjMzXoY0s49koKoLCD5NWSHVZveeJozCndIHWMzm95vdLkylhSI4AphdBF1418je8ppXa34KWHcPfYytyMIw9Ue4gQ/6OUgQj1J9RJGaDSSRYIiia9RNAohxfnJXCROMhY1ZD+JFSHYjV+Vkaq+yF4HuCB39wk= Received: by 10.115.75.1 with SMTP id c1mr9074817wal.1192577781472; Tue, 16 Oct 2007 16:36:21 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Tue, 16 Oct 2007 16:36:21 -0700 (PDT) Message-ID: Date: Wed, 17 Oct 2007 07:36:21 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200710161844.20468.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710152303.29294.hselasky@c2i.net> <200710161844.20468.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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, 16 Oct 2007 23:36:22 -0000 On 10/17/07, Hans Petter Selasky wrote: > > Thanks a lot. So it seems there is still a bug in the firmware. Maybe two. > > The first one caused the stall (why?). The second one is still related to > > dealing with clear stall feature reques > > I think that the clear-stall command will flush the FIFO of the interrupt > endpoint. > > Is it possible that you can open the interrupt endpoint which is a > file, /dev/ugenX.X, before sending the version command ? So that we > don't end up clearing the stall after sending the command, but before. > PICkit 2 applications I am testing now are all using libusb. I have not really looked into the libusb FreeBSD codes (I am not good at programming) but I will try. I have the following codes from a FreeBSD user. He is trying not to use libusb. I will try to add his codes to see if it helps. static void check_device_id(void) { usb_device_descriptor_t udd; ioctl(fdpk2, USB_GET_DEVICE_DESC, &udd); if (udd.idVendor != vidMicrochip || udd.idProduct != pidPICkit2) die("device isn't a PICkit2"); } void pk2open(char *devname) { printf("pk2open =>\n"); fdpk2 = open(devname, O_RDWR); if (fdpk2 < 0) die_errno("open failed"); check_device_id(); printf("pk2open <=\n"); } static char *pk2dev = "/dev/ugen0.1"; int main(int argc, char **argv) { pk2open(pk2dev); ... } Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Thu Oct 18 21:30:02 2007 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 3A81A16A419 for ; Thu, 18 Oct 2007 21:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D7D0F13C465 for ; Thu, 18 Oct 2007 21:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9ILU1kI093564 for ; Thu, 18 Oct 2007 21:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9ILU1Hj093563; Thu, 18 Oct 2007 21:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 18 Oct 2007 21:30:01 GMT Resent-Message-Id: <200710182130.l9ILU1Hj093563@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "moose@opera.com" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18E8A16A41A for ; Thu, 18 Oct 2007 21:27:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 096FF13C468 for ; Thu, 18 Oct 2007 21:27:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9ILRT4s023404 for ; Thu, 18 Oct 2007 21:27:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9ILRT2E023403; Thu, 18 Oct 2007 21:27:29 GMT (envelope-from nobody) Message-Id: <200710182127.l9ILRT2E023403@www.freebsd.org> Date: Thu, 18 Oct 2007 21:27:29 GMT From: "moose@opera.com" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/117313: panic on usb camera attachment 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, 18 Oct 2007 21:30:02 -0000 >Number: 117313 >Category: usb >Synopsis: panic on usb camera attachment >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 18 21:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: moose@opera.com >Release: FreeBSD 7.0-PRERELEASE >Organization: Opera Software >Environment: FreeBSD 7.0-PRERELEASE #2: Thu Oct 18 22:16:05 CEST 2007 moose@evangelista:/usr/obj/usr/src/sys/EVANGELISTA amd64 >Description: I get an always-reproducible panic when the digital camera is attached via USB, and activated. On RELENG_6: umass0: KONICA MINOLTA DIMAGE CAMERA, rev 2.00/0.01, addr 2 umass0: Get Max Lun not supported (SHORT_XFER) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 488MB (1000944 512 byte sectors: 64H 32S/T 488C) On RELENG_7, the panic occurs immediately after the first two lines above. ------------------------- Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x20 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff802b6250 stack pointer = 0x10:0xffffffffabda5770 frame pointer = 0x10:0xffffffffabda5780 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 30 (usb1) [ thread pid 30 tid 1000022 ] Stopped at _mtx_assert+0x70: morq 0x20(%rdi),%rax backtrace: -------------------------------- Tracing pid 30 tid 1000022 td 0xffffff00182350 _mtx_assert() at _mtx_assert+0x70 xpt_release_ccb() at xpt_release_ccb+0x49 probedone() at probedone+0x9c camisr_runqueue() at camisr_runqueue+0x1a3 xpt_bus_deregister() at xpt_bus_deregister+0x185 umass_cam_detach_sim() at umass_cam_detach_sim+0x1f umass_detach() at umass_detach+0xcf device_detach() at device_detach+0xa4 usb_disconnect_port() at usb_disconnect_port+0x86 uhub_explore)_ at uhub_explore+0x101 usb_discover() at usb_discover+0x38 usb_event_thread() at usb_event_thread+0x7c fork_exit)_ at fork_exit+0x128 fork_trampoline() at fork_trampoline+0xe --- trap 0, rip=0, rsp=0xffffffffabda5d30, rbp=0 --- >How-To-Repeat: -- attach the camera to the machine via USB -- turn the camera on --> panic >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Oct 20 17:22:17 2007 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 1424B16A417 for ; Sat, 20 Oct 2007 17:22:17 +0000 (UTC) (envelope-from emdgaurav@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by mx1.freebsd.org (Postfix) with ESMTP id 9525513C46E for ; Sat, 20 Oct 2007 17:22:08 +0000 (UTC) (envelope-from emdgaurav@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so565139wra for ; Sat, 20 Oct 2007 10:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=4YswOcl69CoJg/uUrjsxd9CVDtFbn2IQhxVrdZeKq2s=; b=b2ypeMZuKM2iN/MCDCoarb1TdB35dKLkEMSwLd8mTt+axGpik8HP5ht5U6GwDZwt4KGGjBXoQVbchhC1JJrRWvfxWhxbO6K4UfWfroIJ9UlnGpY29ICf3JKbkN8/Oor63WBvgwPD4MdDw4TVXBBRP0pjW31q4i+vkcJdvVfJWfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Nbain3htbzjVRfZNKbFXNSTzETskjOaLiyUPXyXf4PgBKx93/+s8Xe1bXSIXGRz2k7Fc3VYFOnMoZJhMhP5v6LOk5ffdj3Hg5xRh/Gq1lv67b3NXGK/qqCOxPsqCAXZ1/lH+yDQNdu3PHScYFtVSQ1x9dr3uzOEpYbKZbOCOrhs= Received: by 10.150.149.19 with SMTP id w19mr593166ybd.1192900921373; Sat, 20 Oct 2007 10:22:01 -0700 (PDT) Received: by 10.150.178.13 with HTTP; Sat, 20 Oct 2007 10:22:01 -0700 (PDT) Message-ID: Date: Sat, 20 Oct 2007 22:52:01 +0530 From: "GAURAV GUPTA" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: need help 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, 20 Oct 2007 17:22:17 -0000 Hi all, Can anyone explain me the functionality of this standard function. I am beginner in this BSD area,so cudn'n get the details clear. #define usb_init_task(t, f, a) ((t)->fun = (f), (t)->arg = (a), (t)->onqueue = 0) Thanks , Gaurav (Tarru) From owner-freebsd-usb@FreeBSD.ORG Sat Oct 20 17:27:34 2007 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 BC02416A418 for ; Sat, 20 Oct 2007 17:27:34 +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 5FA4713C448 for ; Sat, 20 Oct 2007 17:27:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 659867728; Sat, 20 Oct 2007 19:27:24 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 20 Oct 2007 19:27:50 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710201927.51983.hselasky@c2i.net> Cc: Subject: Re: need help 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, 20 Oct 2007 17:27:34 -0000 On Saturday 20 October 2007, GAURAV GUPTA wrote: > Hi all, > > Can anyone explain me the functionality of this standard function. > I am beginner in this BSD area,so cudn'n get the details clear. > > #define usb_init_task(t, f, a) ((t)->fun = (f), (t)->arg = (a), > (t)->onqueue = 0) > The macro initialises a task structure. --HPS