From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 04:40:51 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C0EA1065674 for ; Sun, 24 Aug 2008 04:40:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D50628FC1F for ; Sun, 24 Aug 2008 04:40:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7O4dI8f009625; Sat, 23 Aug 2008 22:39:18 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 23 Aug 2008 22:39:51 -0600 (MDT) Message-Id: <20080823.223951.-962047221.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <10826.1219511738@critter.freebsd.dk> References: <20080823.100155.1310242209.imp@bsdimp.com> <10826.1219511738@critter.freebsd.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb4bsd patch review 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, 24 Aug 2008 04:40:51 -0000 In message: <10826.1219511738@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <20080823.100155.1310242209.imp@bsdimp.com>, "M. Warner Losh" writes : : : : >While this may be a good idea, I'm hesitant about races that it may : >introduce. This is the classic point of attack: do something between : >steps of a formerly atomic operation that was made non-atomic. I : >can't think of anything off the top of my head, but I'm still : >concerned. : : We have ways of closing the race if need be, but they're all slightly : kludgy, but I am not overly concerned about those races as long as : the default is to not give access. I guess I'm worried about a device that comes and goes and comes back and there being some difference between the two that causes us to bogusly do something to the new device that was appropriate for the old one, but not the new one... Wraner From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 04:57:16 2008 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 1264E1065674; Sun, 24 Aug 2008 04:57:16 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by mx1.freebsd.org (Postfix) with ESMTP id 173438FC0A; Sun, 24 Aug 2008 04:57:14 +0000 (UTC) (envelope-from fbsd-current@mawer.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjABANSGsEh8qk4q/2dsb2JhbAAIs06Bag X-IronPort-AV: E=Sophos;i="4.32,261,1217779200"; d="scan'208";a="357987134" Received: from unknown (HELO [10.4.1.1]) ([124.170.78.42]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 24 Aug 2008 12:57:23 +0800 Message-ID: <48B0EA50.2090105@mawer.org> Date: Sun, 24 Aug 2008 14:57:52 +1000 From: Antony Mawer User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Volker References: <20080819211814.6CD685B4D@mail.bitblocks.com> <20080819.160510.104119134.imp@bsdimp.com> <48AB566B.5010507@mawer.org> <20080819.180450.-867152686.imp@bsdimp.com> <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> In-Reply-To: <48AFE196.7050100@vwsoft.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, freebsd-usb@freebsd.org, current@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 04:57:16 -0000 On 23/08/2008 8:08 PM, Volker wrote: > On 12/23/-58 20:59, Antony Mawer wrote: >> M. Warner Losh wrote: >>> In message: <48AB566B.5010507@mawer.org> >>> Antony Mawer writes: >>> : Warner Losh wrote: >>> : > From: Bakul Shah >>> : > Subject: Re: HEADSUP new usb code coming in. : > Date: Tue, 19 Aug >>> 2008 14:18:13 -0700 >>> : > : >> On Tue, 19 Aug 2008 22:44:20 +0200 Hans Petter Selasky >>> wrote: >>> : >>> New stuff (all of which I can remember right now): >>> : >> ... >>> : >> >>> : >> Accidentally unplugging a mounted USB disk (without >>> : >> unmounting it) resulted in a hang or a crash. Is this fixed? >>> : > : > That's fixed in -current right now with the old stack. It >>> isn't a usb >>> : > issue at all, but a buffer cache issue. >>> : : Is this change that is likely to be MFC'd in time for 7.1? And/or >>> is : there a specific patch that can manually be applied to -STABLE to >>> fix this? >>> >>> I should spend the time to dig into the changes in current. There >>> turned out to be several little changes... And I need to verify all >>> the edge cases were covered... >> I'd be happy to test patches if you do end up doing this.. it would be >> really nice to have in 7.1, or at least available as a patchset if it >> isn't suitable for MFC (eg. ABI changes)... > > I'm a bit behind with reading emails. Please forgive me if this has > already been answered. > > Don't expect the new USB stack for 7.1-R. It's too short and the new USB > stack will introduce an ABI breakage. For that, all drivers written for > the old USB stack need to be rewritten and I guess, we need to take care > about 3rd party developers and inform them in advance about that massive > change. I would not wonder if this will never get MFC'd but I don't know > actually. This wasn't about the new USB stack -- we were discussing the buffer cache and CAM-related fixes that prevents the system from panic'ing when a USB device is unplugged without first unmounting the filesystem. These patches are in HEAD with the existing USB stack. :-) --Antony From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 04:57:16 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1264E1065674; Sun, 24 Aug 2008 04:57:16 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by mx1.freebsd.org (Postfix) with ESMTP id 173438FC0A; Sun, 24 Aug 2008 04:57:14 +0000 (UTC) (envelope-from fbsd-current@mawer.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjABANSGsEh8qk4q/2dsb2JhbAAIs06Bag X-IronPort-AV: E=Sophos;i="4.32,261,1217779200"; d="scan'208";a="357987134" Received: from unknown (HELO [10.4.1.1]) ([124.170.78.42]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 24 Aug 2008 12:57:23 +0800 Message-ID: <48B0EA50.2090105@mawer.org> Date: Sun, 24 Aug 2008 14:57:52 +1000 From: Antony Mawer User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Volker References: <20080819211814.6CD685B4D@mail.bitblocks.com> <20080819.160510.104119134.imp@bsdimp.com> <48AB566B.5010507@mawer.org> <20080819.180450.-867152686.imp@bsdimp.com> <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> In-Reply-To: <48AFE196.7050100@vwsoft.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org, freebsd-usb@freebsd.org, current@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 04:57:16 -0000 On 23/08/2008 8:08 PM, Volker wrote: > On 12/23/-58 20:59, Antony Mawer wrote: >> M. Warner Losh wrote: >>> In message: <48AB566B.5010507@mawer.org> >>> Antony Mawer writes: >>> : Warner Losh wrote: >>> : > From: Bakul Shah >>> : > Subject: Re: HEADSUP new usb code coming in. : > Date: Tue, 19 Aug >>> 2008 14:18:13 -0700 >>> : > : >> On Tue, 19 Aug 2008 22:44:20 +0200 Hans Petter Selasky >>> wrote: >>> : >>> New stuff (all of which I can remember right now): >>> : >> ... >>> : >> >>> : >> Accidentally unplugging a mounted USB disk (without >>> : >> unmounting it) resulted in a hang or a crash. Is this fixed? >>> : > : > That's fixed in -current right now with the old stack. It >>> isn't a usb >>> : > issue at all, but a buffer cache issue. >>> : : Is this change that is likely to be MFC'd in time for 7.1? And/or >>> is : there a specific patch that can manually be applied to -STABLE to >>> fix this? >>> >>> I should spend the time to dig into the changes in current. There >>> turned out to be several little changes... And I need to verify all >>> the edge cases were covered... >> I'd be happy to test patches if you do end up doing this.. it would be >> really nice to have in 7.1, or at least available as a patchset if it >> isn't suitable for MFC (eg. ABI changes)... > > I'm a bit behind with reading emails. Please forgive me if this has > already been answered. > > Don't expect the new USB stack for 7.1-R. It's too short and the new USB > stack will introduce an ABI breakage. For that, all drivers written for > the old USB stack need to be rewritten and I guess, we need to take care > about 3rd party developers and inform them in advance about that massive > change. I would not wonder if this will never get MFC'd but I don't know > actually. This wasn't about the new USB stack -- we were discussing the buffer cache and CAM-related fixes that prevents the system from panic'ing when a USB device is unplugged without first unmounting the filesystem. These patches are in HEAD with the existing USB stack. :-) --Antony From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 05:10:43 2008 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 0F73B106567A; Sun, 24 Aug 2008 05:10:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A69688FC1A; Sun, 24 Aug 2008 05:10:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7O5AO8b010004; Sat, 23 Aug 2008 23:10:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 23 Aug 2008 23:10:58 -0600 (MDT) Message-Id: <20080823.231058.-1605553760.imp@bsdimp.com> To: fbsd-current@mawer.org From: "M. Warner Losh" In-Reply-To: <48B0EA50.2090105@mawer.org> References: <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> <48B0EA50.2090105@mawer.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 05:10:43 -0000 In message: <48B0EA50.2090105@mawer.org> Antony Mawer writes: : On 23/08/2008 8:08 PM, Volker wrote: : > On 12/23/-58 20:59, Antony Mawer wrote: : >> M. Warner Losh wrote: : >>> In message: <48AB566B.5010507@mawer.org> : >>> Antony Mawer writes: : >>> : Warner Losh wrote: : >>> : > From: Bakul Shah : >>> : > Subject: Re: HEADSUP new usb code coming in. : > Date: Tue, 19 Aug : >>> 2008 14:18:13 -0700 : >>> : > : >> On Tue, 19 Aug 2008 22:44:20 +0200 Hans Petter Selasky : >>> wrote: : >>> : >>> New stuff (all of which I can remember right now): : >>> : >> ... : >>> : >> : >>> : >> Accidentally unplugging a mounted USB disk (without : >>> : >> unmounting it) resulted in a hang or a crash. Is this fixed? : >>> : > : > That's fixed in -current right now with the old stack. It : >>> isn't a usb : >>> : > issue at all, but a buffer cache issue. : >>> : : Is this change that is likely to be MFC'd in time for 7.1? And/or : >>> is : there a specific patch that can manually be applied to -STABLE to : >>> fix this? : >>> : >>> I should spend the time to dig into the changes in current. There : >>> turned out to be several little changes... And I need to verify all : >>> the edge cases were covered... : >> I'd be happy to test patches if you do end up doing this.. it would be : >> really nice to have in 7.1, or at least available as a patchset if it : >> isn't suitable for MFC (eg. ABI changes)... : > : > I'm a bit behind with reading emails. Please forgive me if this has : > already been answered. : > : > Don't expect the new USB stack for 7.1-R. It's too short and the new USB : > stack will introduce an ABI breakage. For that, all drivers written for : > the old USB stack need to be rewritten and I guess, we need to take care : > about 3rd party developers and inform them in advance about that massive : > change. I would not wonder if this will never get MFC'd but I don't know : > actually. : : This wasn't about the new USB stack -- we were discussing the buffer : cache and CAM-related fixes that prevents the system from panic'ing when : a USB device is unplugged without first unmounting the filesystem. These : patches are in HEAD with the existing USB stack. :-) The best I can do is say "Maybe" and the answer is closer to yes if somebody data-mines the changes I've made in this area in -current. That's the hard part of back porting them.. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 05:10:43 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F73B106567A; Sun, 24 Aug 2008 05:10:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A69688FC1A; Sun, 24 Aug 2008 05:10:42 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7O5AO8b010004; Sat, 23 Aug 2008 23:10:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 23 Aug 2008 23:10:58 -0600 (MDT) Message-Id: <20080823.231058.-1605553760.imp@bsdimp.com> To: fbsd-current@mawer.org From: "M. Warner Losh" In-Reply-To: <48B0EA50.2090105@mawer.org> References: <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> <48B0EA50.2090105@mawer.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 05:10:43 -0000 In message: <48B0EA50.2090105@mawer.org> Antony Mawer writes: : On 23/08/2008 8:08 PM, Volker wrote: : > On 12/23/-58 20:59, Antony Mawer wrote: : >> M. Warner Losh wrote: : >>> In message: <48AB566B.5010507@mawer.org> : >>> Antony Mawer writes: : >>> : Warner Losh wrote: : >>> : > From: Bakul Shah : >>> : > Subject: Re: HEADSUP new usb code coming in. : > Date: Tue, 19 Aug : >>> 2008 14:18:13 -0700 : >>> : > : >> On Tue, 19 Aug 2008 22:44:20 +0200 Hans Petter Selasky : >>> wrote: : >>> : >>> New stuff (all of which I can remember right now): : >>> : >> ... : >>> : >> : >>> : >> Accidentally unplugging a mounted USB disk (without : >>> : >> unmounting it) resulted in a hang or a crash. Is this fixed? : >>> : > : > That's fixed in -current right now with the old stack. It : >>> isn't a usb : >>> : > issue at all, but a buffer cache issue. : >>> : : Is this change that is likely to be MFC'd in time for 7.1? And/or : >>> is : there a specific patch that can manually be applied to -STABLE to : >>> fix this? : >>> : >>> I should spend the time to dig into the changes in current. There : >>> turned out to be several little changes... And I need to verify all : >>> the edge cases were covered... : >> I'd be happy to test patches if you do end up doing this.. it would be : >> really nice to have in 7.1, or at least available as a patchset if it : >> isn't suitable for MFC (eg. ABI changes)... : > : > I'm a bit behind with reading emails. Please forgive me if this has : > already been answered. : > : > Don't expect the new USB stack for 7.1-R. It's too short and the new USB : > stack will introduce an ABI breakage. For that, all drivers written for : > the old USB stack need to be rewritten and I guess, we need to take care : > about 3rd party developers and inform them in advance about that massive : > change. I would not wonder if this will never get MFC'd but I don't know : > actually. : : This wasn't about the new USB stack -- we were discussing the buffer : cache and CAM-related fixes that prevents the system from panic'ing when : a USB device is unplugged without first unmounting the filesystem. These : patches are in HEAD with the existing USB stack. :-) The best I can do is say "Maybe" and the answer is closer to yes if somebody data-mines the changes I've made in this area in -current. That's the hard part of back porting them.. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 06:00:13 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 233781065684 for ; Sun, 24 Aug 2008 06:00:13 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id D7D628FC17 for ; Sun, 24 Aug 2008 06:00:12 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 66B79170E5; Sun, 24 Aug 2008 06:00:11 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m7O60ADf013746; Sun, 24 Aug 2008 06:00:11 GMT (envelope-from phk@critter.freebsd.dk) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 23 Aug 2008 22:39:51 CST." <20080823.223951.-962047221.imp@bsdimp.com> Date: Sun, 24 Aug 2008 06:00:10 +0000 Message-ID: <13745.1219557610@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-usb@freebsd.org Subject: Re: usb4bsd patch review 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, 24 Aug 2008 06:00:13 -0000 In message <20080823.223951.-962047221.imp@bsdimp.com>, "M. Warner Losh" writes : >In message: <10826.1219511738@critter.freebsd.dk> > "Poul-Henning Kamp" writes: >: In message <20080823.100155.1310242209.imp@bsdimp.com>, "M. Warner Losh" writes >: : >: >: >While this may be a good idea, I'm hesitant about races that it may >: >introduce. This is the classic point of attack: do something between >: >steps of a formerly atomic operation that was made non-atomic. I >: >can't think of anything off the top of my head, but I'm still >: >concerned. >: >: We have ways of closing the race if need be, but they're all slightly >: kludgy, but I am not overly concerned about those races as long as >: the default is to not give access. > >I guess I'm worried about a device that comes and goes and comes back >and there being some difference between the two that causes us to >bogusly do something to the new device that was appropriate for the >old one, but not the new one... That scenario is always present as far as I can tell... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 10:00:13 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ECE21065699 for ; Sun, 24 Aug 2008 10:00:13 +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 CAC5A8FC16 for ; Sun, 24 Aug 2008 10:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7OA0BT3057566 for ; Sun, 24 Aug 2008 10:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7OA0BE2057565; Sun, 24 Aug 2008 10:00:11 GMT (envelope-from gnats) Resent-Date: Sun, 24 Aug 2008 10:00:11 GMT Resent-Message-Id: <200808241000.m7OA0BE2057565@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, Daniel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 945FC106566B for ; Sun, 24 Aug 2008 09:51:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 735FC8FC18 for ; Sun, 24 Aug 2008 09:51:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7O9pXRA029388 for ; Sun, 24 Aug 2008 09:51:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m7O9pX3m029387; Sun, 24 Aug 2008 09:51:33 GMT (envelope-from nobody) Message-Id: <200808240951.m7O9pX3m029387@www.freebsd.org> Date: Sun, 24 Aug 2008 09:51:33 GMT From: Daniel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/126776: [umass/geom] confusing mixed output (but no panic!) after removing unmounted usb device 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, 24 Aug 2008 10:00:13 -0000 >Number: 126776 >Category: usb >Synopsis: [umass/geom] confusing mixed output (but no panic!) after removing unmounted usb device >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 24 10:00:11 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Daniel >Release: FreeBSD 7.0-RELEASE >Organization: >Environment: FreeBSD xyz 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Removing the usb flash drive produces a confusing output. There is NO kernel panic! To see it better I label the usb device "XXXXXXXXXXX". It does not matter if the device was mounted+unmount before removing. Problem occurs in FreeBSD 7.0 i386+amd64 with two different usb flash drives (128MB Twinmos and 1GB Sandisk). No problem with FreeBSD 6.3 on the same machine. plug in usb device: ------------------- root: Unknown USB device: vendor 0x126f product 0x1325 bus uhub1 kernel: umass0: on uhub1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C) kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/XXXXXXXXXXX. mount -t msdosfs /dev/da0s1 /mnt/usb ------------------------------------ kernel: GEOM_LABEL: Label msdosfs/XXXXXXXXXXX removed. umount /mnt/usb --------------- kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/XXXXXXXXXXX. remove the usb device - output on FreeBSD 7.0 ------------------------------------------------- kernel: umass0: at uhub1 port 4 (addr 2) disconnected kernel: (da0:uGmEaOsMs_-LsAiBmE0L::0 :La0b:e0l) : mlsodsots fdse/vXiXcXeXX kernel: XX(XdXaX0X: urmeamsosv-esdim.0:0:0:0): removing device entry kernel: kernel: umass0: detached It looks like the GEOM output ("GEOM_LABEL: Label msdosfs/XXXXXXXXXXX removed.") is written over the UMASS output. remove the usb device - output on FreeBSD 6.3 ------------------------------------------------- kernel: umass0: at uhub1 port 4 (addr 2) disconnected kernel: (da0:umass-sim0:0:0:0): lost device kernel: (da0:umass-sim0:0:0:0): removing device entry kernel: umass0: detached >How-To-Repeat: plug in and remove the usb flash drive >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 10:50:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5DB01065678 for ; Sun, 24 Aug 2008 10:50: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 B32B38FC0A for ; Sun, 24 Aug 2008 10:50: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.2/8.14.2) with ESMTP id m7OAo5Vs062473 for ; Sun, 24 Aug 2008 10:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7OAo5V5062472; Sun, 24 Aug 2008 10:50:05 GMT (envelope-from gnats) Date: Sun, 24 Aug 2008 10:50:05 GMT Message-Id: <200808241050.m7OAo5V5062472@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Rink Springer Cc: Subject: Re: usb/126776: [umass/geom] confusing mixed output (but no panic!) after removing unmounted usb device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rink Springer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2008 10:50:05 -0000 The following reply was made to PR usb/126776; it has been noted by GNATS. From: Rink Springer To: Daniel Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/126776: [umass/geom] confusing mixed output (but no panic!) after removing unmounted usb device Date: Sun, 24 Aug 2008 12:33:47 +0200 Hi Daniel, On Sun, Aug 24, 2008 at 09:51:33AM +0000, Daniel wrote: > It looks like the GEOM output ("GEOM_LABEL: Label msdosfs/XXXXXXXXXXX removed.") is written over the UMASS output. Yes, this is a FAQ - look at http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues, "Kernel". Regards, -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 12:19:19 2008 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 4AE4B106564A; Sun, 24 Aug 2008 12:19:19 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150]) by mx1.freebsd.org (Postfix) with ESMTP id 752318FC0C; Sun, 24 Aug 2008 12:19:17 +0000 (UTC) (envelope-from fbsd-current@mawer.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8BAAzosEh8qk4q/2dsb2JhbAAIsliBag X-IronPort-AV: E=Sophos;i="4.32,262,1217779200"; d="scan'208";a="262942823" Received: from unknown (HELO [10.4.1.1]) ([124.170.78.42]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 24 Aug 2008 19:49:26 +0800 Message-ID: <48B14AEC.2020609@mawer.org> Date: Sun, 24 Aug 2008 21:50:04 +1000 From: Antony Mawer User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: "M. Warner Losh" References: <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> <48B0EA50.2090105@mawer.org> <20080823.231058.-1605553760.imp@bsdimp.com> In-Reply-To: <20080823.231058.-1605553760.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 12:19:19 -0000 On 24/08/2008 3:10 PM, M. Warner Losh wrote: > In message: <48B0EA50.2090105@mawer.org> > Antony Mawer writes: ... > : This wasn't about the new USB stack -- we were discussing the buffer > : cache and CAM-related fixes that prevents the system from panic'ing when > : a USB device is unplugged without first unmounting the filesystem. These > : patches are in HEAD with the existing USB stack. :-) > > The best I can do is say "Maybe" and the answer is closer to yes if > somebody data-mines the changes I've made in this area in -current. > That's the hard part of back porting them.. I'm going to try and do just that - is there a particular date that this must be done by in order to make sure these would make it in for the 7.1 release cycle? --Antony From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 12:19:19 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AE4B106564A; Sun, 24 Aug 2008 12:19:19 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150]) by mx1.freebsd.org (Postfix) with ESMTP id 752318FC0C; Sun, 24 Aug 2008 12:19:17 +0000 (UTC) (envelope-from fbsd-current@mawer.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8BAAzosEh8qk4q/2dsb2JhbAAIsliBag X-IronPort-AV: E=Sophos;i="4.32,262,1217779200"; d="scan'208";a="262942823" Received: from unknown (HELO [10.4.1.1]) ([124.170.78.42]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 24 Aug 2008 19:49:26 +0800 Message-ID: <48B14AEC.2020609@mawer.org> Date: Sun, 24 Aug 2008 21:50:04 +1000 From: Antony Mawer User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: "M. Warner Losh" References: <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> <48B0EA50.2090105@mawer.org> <20080823.231058.-1605553760.imp@bsdimp.com> In-Reply-To: <20080823.231058.-1605553760.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 12:19:19 -0000 On 24/08/2008 3:10 PM, M. Warner Losh wrote: > In message: <48B0EA50.2090105@mawer.org> > Antony Mawer writes: ... > : This wasn't about the new USB stack -- we were discussing the buffer > : cache and CAM-related fixes that prevents the system from panic'ing when > : a USB device is unplugged without first unmounting the filesystem. These > : patches are in HEAD with the existing USB stack. :-) > > The best I can do is say "Maybe" and the answer is closer to yes if > somebody data-mines the changes I've made in this area in -current. > That's the hard part of back porting them.. I'm going to try and do just that - is there a particular date that this must be done by in order to make sure these would make it in for the 7.1 release cycle? --Antony From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 14:50:02 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 918401065685 for ; Sun, 24 Aug 2008 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 526B08FC08 for ; Sun, 24 Aug 2008 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7OEo1b4085555 for ; Sun, 24 Aug 2008 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7OEo14k085554; Sun, 24 Aug 2008 14:50:01 GMT (envelope-from gnats) Resent-Date: Sun, 24 Aug 2008 14:50:01 GMT Resent-Message-Id: <200808241450.m7OEo14k085554@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, Eugen Konkov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BBC31065676 for ; Sun, 24 Aug 2008 14:41:37 +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 67C6A8FC12 for ; Sun, 24 Aug 2008 14:41:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7OEfaSo096968 for ; Sun, 24 Aug 2008 14:41:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m7OEfahO096967; Sun, 24 Aug 2008 14:41:36 GMT (envelope-from nobody) Message-Id: <200808241441.m7OEfahO096967@www.freebsd.org> Date: Sun, 24 Aug 2008 14:41:36 GMT From: Eugen Konkov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/126788: Can not boot FreeBSDv7.0.iso from USB formated as FAT? 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, 24 Aug 2008 14:50:02 -0000 >Number: 126788 >Category: usb >Synopsis: Can not boot FreeBSDv7.0.iso from USB formated as FAT? >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 24 14:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Eugen Konkov >Release: 7.0release >Organization: >Environment: do not know yet >Description: I am trying to use SYSLINUX to load *.iso Actually I format and install to USB key syslinux I copy memdisk to root of USB key I unpack content to root of USB key When I boot from USB I get SYSLINUX loaded then I do: memdisk initrd/boot/boot I get invalid label so I da(0,a) and I get registry dump in loop How to boot iso installed to USB disk formatted as FAT! not BSD native >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 16:26:12 2008 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 AB4FE1065674; Sun, 24 Aug 2008 16:26:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 225098FC19; Sun, 24 Aug 2008 16:26:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7OGMWE9023447; Sun, 24 Aug 2008 10:22:34 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 24 Aug 2008 10:23:07 -0600 (MDT) Message-Id: <20080824.102307.439579517.imp@bsdimp.com> To: fbsd-current@mawer.org From: "M. Warner Losh" In-Reply-To: <48B14AEC.2020609@mawer.org> References: <48B0EA50.2090105@mawer.org> <20080823.231058.-1605553760.imp@bsdimp.com> <48B14AEC.2020609@mawer.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 16:26:12 -0000 In message: <48B14AEC.2020609@mawer.org> Antony Mawer writes: : On 24/08/2008 3:10 PM, M. Warner Losh wrote: : > In message: <48B0EA50.2090105@mawer.org> : > Antony Mawer writes: : ... : > : This wasn't about the new USB stack -- we were discussing the buffer : > : cache and CAM-related fixes that prevents the system from panic'ing when : > : a USB device is unplugged without first unmounting the filesystem. These : > : patches are in HEAD with the existing USB stack. :-) : > : > The best I can do is say "Maybe" and the answer is closer to yes if : > somebody data-mines the changes I've made in this area in -current. : > That's the hard part of back porting them.. : : I'm going to try and do just that - is there a particular date that this : must be done by in order to make sure these would make it in for the 7.1 : release cycle? End of this month would be ideal. By the middle of next would be acceptable, I think. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Aug 24 16:26:12 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB4FE1065674; Sun, 24 Aug 2008 16:26:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 225098FC19; Sun, 24 Aug 2008 16:26:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7OGMWE9023447; Sun, 24 Aug 2008 10:22:34 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 24 Aug 2008 10:23:07 -0600 (MDT) Message-Id: <20080824.102307.439579517.imp@bsdimp.com> To: fbsd-current@mawer.org From: "M. Warner Losh" In-Reply-To: <48B14AEC.2020609@mawer.org> References: <48B0EA50.2090105@mawer.org> <20080823.231058.-1605553760.imp@bsdimp.com> <48B14AEC.2020609@mawer.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 24 Aug 2008 16:26:12 -0000 In message: <48B14AEC.2020609@mawer.org> Antony Mawer writes: : On 24/08/2008 3:10 PM, M. Warner Losh wrote: : > In message: <48B0EA50.2090105@mawer.org> : > Antony Mawer writes: : ... : > : This wasn't about the new USB stack -- we were discussing the buffer : > : cache and CAM-related fixes that prevents the system from panic'ing when : > : a USB device is unplugged without first unmounting the filesystem. These : > : patches are in HEAD with the existing USB stack. :-) : > : > The best I can do is say "Maybe" and the answer is closer to yes if : > somebody data-mines the changes I've made in this area in -current. : > That's the hard part of back porting them.. : : I'm going to try and do just that - is there a particular date that this : must be done by in order to make sure these would make it in for the 7.1 : release cycle? End of this month would be ideal. By the middle of next would be acceptable, I think. Warner From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 02:40:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A387106564A for ; Mon, 25 Aug 2008 02:40: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 1AC148FC0A for ; Mon, 25 Aug 2008 02:40: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.2/8.14.2) with ESMTP id m7P2e4fj047377 for ; Mon, 25 Aug 2008 02:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7P2e4kb047376; Mon, 25 Aug 2008 02:40:04 GMT (envelope-from gnats) Date: Mon, 25 Aug 2008 02:40:04 GMT Message-Id: <200808250240.m7P2e4kb047376@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/121184: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 02:40:05 -0000 The following reply was made to PR usb/121184; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/121184: commit references a PR Date: Mon, 25 Aug 2008 02:36:44 +0000 (UTC) imp 2008-08-25 02:36:27 UTC FreeBSD src repository Modified files: sys/dev/usb uipaq.c Log: SVN rev 182138 on 2008-08-25 02:36:27Z by imp Greatly expand the devices listed as being supported. This list was taken from PR/121184 which was mechanically generated from similar lists in the Linux ipaq driver. I then took the numbers we had in usbdevs and filled in the right symbols and eliminated duplicates. PR: 121184 Revision Changes Path 1.14 +449 -0 src/sys/dev/usb/uipaq.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 02:50:08 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27F3A1065670 for ; Mon, 25 Aug 2008 02:50:08 +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 388CF8FC08 for ; Mon, 25 Aug 2008 02:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7P2o7SJ047813 for ; Mon, 25 Aug 2008 02:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7P2o7dm047812; Mon, 25 Aug 2008 02:50:07 GMT (envelope-from gnats) Date: Mon, 25 Aug 2008 02:50:07 GMT Message-Id: <200808250250.m7P2o7dm047812@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/121184: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 02:50:08 -0000 The following reply was made to PR usb/121184; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/121184: commit references a PR Date: Mon, 25 Aug 2008 02:42:35 +0000 (UTC) imp 2008-08-25 02:42:13 UTC FreeBSD src repository Modified files: sys/dev/usb uipaq.c Log: SVN rev 182140 on 2008-08-25 02:42:13Z by imp Send the magic unlock packet the linux driver claims to have sniffed to enable line control. PR: 121184 Submitted by: Andriy Gapon Revision Changes Path 1.15 +16 -1 src/sys/dev/usb/uipaq.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 11:07:01 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C412A1065674 for ; Mon, 25 Aug 2008 11:06:59 +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 C57E08FC32 for ; Mon, 25 Aug 2008 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7PB6xkM027931 for ; Mon, 25 Aug 2008 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7PB6xfS027927 for freebsd-usb@FreeBSD.org; Mon, 25 Aug 2008 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Aug 2008 11:06:59 GMT Message-Id: <200808251106.m7PB6xfS027927@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, 25 Aug 2008 11:07:01 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f 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 i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd(8) and multi-function devices o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] [hang] mounting write-protected umass device a o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa a usb/79656 usb [ehci] RHSC interrupts lost o usb/79722 usb [ehci] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80829 usb [modules] [panic] possible panic when loading USB-modu o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d f usb/83677 usb [usb] [request] usb controller often not detected (Sun 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/89954 usb [umass] [panic] 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 [boot] [regression] booting very slow with usb devices o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb 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/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion 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/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 s usb/96120 usb [ums] [request] USB mouse not always detected o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync o usb/96457 usb [umass] [panic] fatback on umass = reboot s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan 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 f usb/102096 usb [patch] usbd(8) does not handle multiple devices in on o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse s 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 [ohci] [panic] ohci_add_done addr not found o usb/107848 usb [umass] [request] 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 s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114682 usb [umass] generic USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120786 usb Kernel panic when forced umount of a dettached USB Har o usb/121232 usb remove PCCARD rebooted system o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/123690 usb Panic on USB device insertion when usb loaded as a mod o usb/123714 usb Panic when hald-storage-probe runs with umass device i o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124758 usb rum panics SMP kernel o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o usb/125088 usb Touchpad not detected on Adesso AKB-430UG USB kbd/pad o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125631 usb [usb][ums] kernel panic during bootup while 'Logitech o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/126519 usb [usb] [panic] panic when plugging in an iphone o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be 137 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 [umass] [request] USB HP CDW8200 does not work s usb/51958 usb [urio] [patch] update for urio driver s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [umct] [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 [umass] Slow USB umass performance of 5.3 s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R a usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL 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 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade 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 o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ s usb/80777 usb [request] usb_rem_task() should wait for callback to c o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device 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 [umass] Compact Flash in HP Photosmart 2610 return " o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96599 usb [usb] [patch] Sony Handycam DCR-HC32E memory stick slo o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103418 usb [usbhidctl] [patch] [request] usbhidctl: add ability t o usb/103917 usb [uhub] 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 [umass] [request] Rave C-201 MP3 player does not commu o usb/105065 usb [ata] SATA - USB Bridge o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear 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 [cam] [patch] Apacer USB Flash Drive quirk o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af 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 o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117546 usb [uftdi] [patch] Add MaxStream ZigBee product ID to uft o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/121169 usb [umass] Issues with usb mp3 player o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/122025 usb [patch] uscanner does not attach to Epson RX620 printe o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122547 usb [ehci] USB Printer not being recognized after reboot p usb/122610 usb Add Verizon v740 support to ubsa(4) o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122712 usb [usbdevs] [patch] Sony Vaio RF keyboard/mouse receiver o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122819 usb Patch to provide dynamic additions to the usb quirks t o usb/122936 usb [ucom][ubsa] Device does not receive interrupt o usb/122956 usb Support for Novatel Wireless XU870 3G Card o usb/122992 usb MotoROKR Z6 Phone not recognised by umass as USB disk. p usb/123148 usb [uscanner] [patch] Epson DX8400/50 needs uscanner to s p usb/123211 usb [udav] if_udav driver doesn't support Davicom 9601 USB o usb/123351 usb Add Reiner SCT cyberJack, Omnikey [26]020, Fujitsu Sie o usb/123352 usb Add Option GTMAX3.6/7.2 and Quallcomm MMC module devic o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123691 usb usbd(8): usbd hangs o usb/123969 usb Supermicro H8SMi-2 usb problem o usb/124604 usb Wireless Mouse doesn't work o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/125238 usb Habu Mouse turns off in X o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125510 usb repeated plug and unplug of USB mass storage devices l o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/126776 usb [umass/geom] confusing mixed output (but no panic!) af o usb/126788 usb Can not boot FreeBSDv7.0.iso from USB formated as FAT? 136 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 14:21:58 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 596771065671; Mon, 25 Aug 2008 14:21:58 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 142508FC1A; Mon, 25 Aug 2008 14:21:58 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7PELwZW049628; Mon, 25 Aug 2008 14:21:58 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7PELvTr049624; Mon, 25 Aug 2008 14:21:57 GMT (envelope-from gavin) Date: Mon, 25 Aug 2008 14:21:57 GMT Message-Id: <200808251421.m7PELvTr049624@freefall.freebsd.org> To: kes-kes@yandex.ru, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: kern/126788: [boot] Can not boot FreeBSDv7.0.iso from USB formated as FAT? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 14:21:58 -0000 Old Synopsis: Can not boot FreeBSDv7.0.iso from USB formated as FAT? New Synopsis: [boot] Can not boot FreeBSDv7.0.iso from USB formated as FAT? State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Mon Aug 25 14:18:53 UTC 2008 State-Changed-Why: To submitter: Can you try with one of the ISO images from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200808/ and see if that works? Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Mon Aug 25 14:18:53 UTC 2008 Responsible-Changed-Why: TracK http://www.freebsd.org/cgi/query-pr.cgi?pr=126788 From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 14:26:13 2008 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 E5A72106567B for ; Mon, 25 Aug 2008 14:26:13 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.190]) by mx1.freebsd.org (Postfix) with ESMTP id 855AC8FC21 for ; Mon, 25 Aug 2008 14:26:13 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so368822rne.12 for ; Mon, 25 Aug 2008 07:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=C8bUPkw/BMDrB+QxNLPXoKsd/xWc8KDHPM23WX4obK4=; b=MZX6MW+cfqIeK7e1pV3VtFvrPLWUezMyQLtxlb0LJcGbfglsZz+dhQIYSPWsWuc30y IDgU5pyFSc4knCs+xT2rSZ9My+4HYRsfd1Rn0un0DyMUlKSvUnHYc2Dgjiw+bksEOAFQ eLN6cMlqjxWnU61peuUqydXMHPYzsuxn4fH3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=aDqayPA6Ks8P7dvgoANxWl6NM5a0RPbZ3CPlEOmXOZzKXMWYz0JIwdwcqI/D5e0srp uy7yz/axv6Cgl/kt08IXtJPSPzWg6/MFQelKeAd9x6vHfn05su7rgY2dMRecFLFBXTqj SMsc5dMuxQ3ZSObjhJhiraCpY1MPJHEXXxyVw= Received: by 10.114.25.3 with SMTP id 3mr3341589way.22.1219672525812; Mon, 25 Aug 2008 06:55:25 -0700 (PDT) Received: by 10.115.94.8 with HTTP; Mon, 25 Aug 2008 06:55:25 -0700 (PDT) Message-ID: Date: Mon, 25 Aug 2008 15:55:25 +0200 From: "Rene Ladan" To: usb@freebsd.org In-Reply-To: <48B1AEB5.7050903@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B11C77.3060708@gmx.de> <48B1A73F.7070301@gmail.com> <48B1AEB5.7050903@gmx.de> Cc: Subject: Fwd: Patch for libusb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 14:26:14 -0000 Hi, this is about a one-line patch for libusb-0.1.12 which is available in the ports tree as devel/libusb. Is it ok to send a problem report for this? Regards, Rene ---------- Forwarded message ---------- From: Volker Theile Date: 2008/8/24 Subject: Re: Patch for libusb To: Rene Ladan -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rene Ladan wrote: | Volker Theile schreef: |> Hello, |> |> i had to modify the bsd.c patch to get NUT (Network UPS tools) working correctly when i attach an UPS via USB to my FreeBSD machine. Without the patch the communication breaks every few seconds because of an full read buffer. NUT checks the input buffer too fast, so the kernel or something else blocks which will cause an communication break to the UPS. Don't know if i have explained it correctly, but it works. |> | The only difference between this patch and the one in devel/libusb/files is | that the fd is opened in non-blocking mode, right? | | Regards, | Rene Yes, that's correct. I've found the origin article where i've read about that patch for NetBSD. http://wiki.botka.homeunix.org/bin/view/Main/NetworkUpsToolsUsb - ------ cut -------------------------------- ~ todo: ~ 1. upsmon section ~ 2. Install libusb 0.1.12 ,0.1.11 includes a bug fix for *BSD to allow short reads. Without thisvarious status is not returned from UPS. ~ 3. Problem with libusb on netBSD in that the Function usb_interrupt_read() calls read() which blocks on read from usb until buffer is full. Change bsd.c in libusb Fd = ensure_ep_open(dev, ep, 0, O_RDONLY) To Fd = ensure_ep_open(dev, ep, 0, O_RDONLY | O_NONBLOCK) - ------ cut -------------------------------- I don't know whether this fix has any consequences for other applications, but for NUT it helps and now i can use my UPS via USB. Regards Volker -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkixrrQACgkQzsRXLGDcg0pMugCeKg2BtXAx+PjneOUKRhp+j5Bk +kAAn3DabDmqu9OSLrG1zoO0tupgeqqZ =ksxG -----END PGP SIGNATURE----- -- http://www.rene-ladan.nl/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 15:15:26 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59EDB1065674 for ; Mon, 25 Aug 2008 15:15:26 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from mother.ludd.ltu.se (mother.ludd.ltu.se [130.240.16.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9C0538FC0C for ; Mon, 25 Aug 2008 15:15:25 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from brother.ludd.ltu.se (root@brother.ludd.ltu.se [130.240.16.78]) by mother.ludd.ltu.se (8.13.6+Sun/8.12.10) with ESMTP id m7PFFL6E023702 for ; Mon, 25 Aug 2008 17:15:21 +0200 (MEST) Received: from brother.ludd.ltu.se (pb@localhost [127.0.0.1]) by brother.ludd.ltu.se (8.13.6+Sun/8.12.2) with ESMTP id m7PFFLPS017902 for ; Mon, 25 Aug 2008 17:15:21 +0200 (MEST) Received: (from pb@localhost) by brother.ludd.ltu.se (8.13.6+Sun/8.13.6/Submit) id m7PFFL1j017900 for freebsd-usb@freebsd.org; Mon, 25 Aug 2008 17:15:21 +0200 (MEST) From: Peter B Message-Id: <200808251515.m7PFFL1j017900@brother.ludd.ltu.se> To: freebsd-usb@freebsd.org Date: Mon, 25 Aug 2008 17:15:21 +0200 (MEST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: usbd_add_drv_event() ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 15:15:26 -0000 What does 'usbd_add_drv_event()' kernel function do? Trying to understand the code ;) no man page.. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 20:31:21 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4168106566C for ; Mon, 25 Aug 2008 20:31:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 6FC6F8FC13 for ; Mon, 25 Aug 2008 20:31:21 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6MIg2jpqvhTpo/gR8GzG7Q==:17 a=kH1H0asJV9jC7zS_jzEA:9 a=Zi0hKoFrYQTi1PP7XHKT9Rbce4wA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.243] (account mc467741@c2i.net [62.113.133.243] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1052277890; Mon, 25 Aug 2008 22:31:13 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 25 Aug 2008 22:33:00 +0200 User-Agent: KMail/1.9.7 References: <200808251515.m7PFFL1j017900@brother.ludd.ltu.se> In-Reply-To: <200808251515.m7PFFL1j017900@brother.ludd.ltu.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808252233.00933.hselasky@c2i.net> Cc: Peter B Subject: Re: usbd_add_drv_event() ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 20:31:22 -0000 On Monday 25 August 2008, Peter B wrote: > What does 'usbd_add_drv_event()' kernel function do? > Trying to understand the code ;) > > no man page.. Hi, This function sends events to usbd, but is going to be removed. Replaced by devd. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 25 21:53:04 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497BD1065671; Mon, 25 Aug 2008 21:53:04 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id BAD228FC1A; Mon, 25 Aug 2008 21:53:03 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7dfe.q.ppp-pool.de [89.53.125.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id 75FFA128846; Mon, 25 Aug 2008 23:52:55 +0200 (CEST) Received: from cesar.sz.vwsoft.com (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id D7BE42E90F; Mon, 25 Aug 2008 23:50:30 +0200 (CEST) Message-ID: <48B3299F.5080101@vwsoft.com> Date: Mon, 25 Aug 2008 23:52:31 +0200 From: Volker User-Agent: Thunderbird 2.0.0.16 (X11/20080727) MIME-Version: 1.0 To: Antony Mawer References: <20080819211814.6CD685B4D@mail.bitblocks.com> <20080819.160510.104119134.imp@bsdimp.com> <48AB566B.5010507@mawer.org> <20080819.180450.-867152686.imp@bsdimp.com> <48ABB1FA.5070609@mawer.org> <48AFE196.7050100@vwsoft.com> <48B0EA50.2090105@mawer.org> In-Reply-To: <48B0EA50.2090105@mawer.org> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit MailScanner-NULL-Check: 1220305842.00919@x/DaCVpOl1HmdZkgJgl71w X-MailScanner-ID: D7BE42E90F.DB2EA X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-usb@freebsd.org, current@freebsd.org Subject: Re: "legacy" usb stack fixes (was: Re: HEADSUP new usb code coming in.) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 21:53:04 -0000 On 08/24/08 06:57, Antony Mawer wrote: > On 23/08/2008 8:08 PM, Volker wrote: >> On 12/23/-58 20:59, Antony Mawer wrote: >>> M. Warner Losh wrote: >>>> In message: <48AB566B.5010507@mawer.org> >>>> Antony Mawer writes: >>>> : Warner Losh wrote: >>>> : > From: Bakul Shah >>>> : > Subject: Re: HEADSUP new usb code coming in. : > Date: Tue, 19 Aug >>>> 2008 14:18:13 -0700 >>>> : > : >> On Tue, 19 Aug 2008 22:44:20 +0200 Hans Petter Selasky >>>> wrote: >>>> : >>> New stuff (all of which I can remember right now): >>>> : >> ... >>>> : >> >>>> : >> Accidentally unplugging a mounted USB disk (without >>>> : >> unmounting it) resulted in a hang or a crash. Is this fixed? >>>> : > : > That's fixed in -current right now with the old stack. It >>>> isn't a usb >>>> : > issue at all, but a buffer cache issue. >>>> : : Is this change that is likely to be MFC'd in time for 7.1? And/or >>>> is : there a specific patch that can manually be applied to -STABLE to >>>> fix this? >>>> >>>> I should spend the time to dig into the changes in current. There >>>> turned out to be several little changes... And I need to verify all >>>> the edge cases were covered... >>> I'd be happy to test patches if you do end up doing this.. it would be >>> really nice to have in 7.1, or at least available as a patchset if it >>> isn't suitable for MFC (eg. ABI changes)... >> >> I'm a bit behind with reading emails. Please forgive me if this has >> already been answered. >> >> Don't expect the new USB stack for 7.1-R. It's too short and the new USB >> stack will introduce an ABI breakage. For that, all drivers written for >> the old USB stack need to be rewritten and I guess, we need to take care >> about 3rd party developers and inform them in advance about that massive >> change. I would not wonder if this will never get MFC'd but I don't know >> actually. > > This wasn't about the new USB stack -- we were discussing the buffer > cache and CAM-related fixes that prevents the system from panic'ing when > a USB device is unplugged without first unmounting the filesystem. These > patches are in HEAD with the existing USB stack. :-) > > --Antony > Antony, please forgive me. While re-reading the thread partially, I've also seen your question was about the old usb stack. That does happen if $SUBJECT does not match $CONTENT (you could have changed $SUBJECT when driving the discussion into another direction). Anyway, I've already had those crashes even with the "new" usb stack (but it doesn't happen everytime - YMMV). Volker From owner-freebsd-usb@FreeBSD.ORG Tue Aug 26 05:39:10 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B04471065677 for ; Tue, 26 Aug 2008 05:39:10 +0000 (UTC) (envelope-from omar@heedme.com) Received: from obstinate.heedme.com (obstinate.heedme.com [64.194.244.229]) by mx1.freebsd.org (Postfix) with ESMTP id 5BEC18FC20 for ; Tue, 26 Aug 2008 05:39:10 +0000 (UTC) (envelope-from omar@heedme.com) Received: from obstinate.heedme.com (localhost [127.0.0.1]) by obstinate.heedme.com (8.14.3/8.14.3) with ESMTP id m7Q5FmoS084464 for ; Tue, 26 Aug 2008 01:15:48 -0400 (EDT) Received: from localhost (omar@localhost) by obstinate.heedme.com (8.14.3/8.14.3/Submit) with ESMTP id m7Q5Fmhu084461 for ; Tue, 26 Aug 2008 01:15:48 -0400 (EDT) Date: Tue, 26 Aug 2008 01:15:48 -0400 (EDT) From: Omar Siddique To: freebsd-usb@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: USB audio CDs? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 05:39:10 -0000 Is AUDIO from USB optical drives supported? See below for what I've tried under 6.3-RELEASE (unsuccessfully). (I tried freebsd-questions without any reply and only saw a couple of unanswered posts on the topic when searching the archives for this list.) Thanks for any advice! -omar ---------- Forwarded message ---------- Subject: USB audio CDs? I have a USB DVD-RW drive that I'd like to use to rip music under 6.3-RELEASE, but I don't seem to have a /dev/acd0 (and can't get "grip" (from ports) to work from /dev/cd0). /dev/cd0 shows up fine, but audio CDs log errors and "grip" can't do much with /dev/cd0. Using /dev/cd0, grip is able to see the TOC for the CD, but attempting to rip only generates errors: 006: Could not read any data from drive (repeats per track) Repeatable for different CDs. I was able to mount a cd9660 disc from this drive without a problem. I've previously done this (using grip) with ATA/SATA optical drives of various sorts, as well as used various (non-audio) USB mass-storage devices without any problems, but this is my first shot under *BSD at getting audio off a USB optical drive. I read through the USB related man pages, FB handbook, and googled without finding any answers... Would appreciate any advice! I have all of these in my running kernel: device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) device ugen # Generic device umass # Disks/Mass storage - Requires scbus and da device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device pass # Passthrough device (direct SCSI access) device cd # scsi cd for cd-r/burner on USB device atapicam I tried it both w/ and w/o atapicam. Attaching device with audio CD loaded logs the following: Jul 20 01:28:20 mine kernel: umass0: Sony DRX-500UL, rev 2.00/1.04, addr 2 Jul 20 01:28:30 mine kernel: cd0 at umass-sim0 bus 0 target 0 lun 0 Jul 20 01:28:30 mine kernel: cd0: Removable CD-ROM SCSI-0 device Jul 20 01:28:30 mine kernel: cd0: 40.000MB/s transfers Jul 20 01:28:30 mine kernel: cd0: cd present [198012 x 2048 byte records] Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 2 0 Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:64,0 Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): Illegal mode for this track Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): Unretryable error Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): cddone: got error 0x6 back Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 3 5 7b 0 0 1 0 Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jul 20 01:28:30 mine kernel: (cd0:umass-sim0:0:0:0): SCSI Status: Check Condition (etc...) Thanks! -omar From owner-freebsd-usb@FreeBSD.ORG Tue Aug 26 10:06:33 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34A7E1065673; Tue, 26 Aug 2008 10:06:33 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 16F758FC12; Tue, 26 Aug 2008 10:06:33 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7QA6WuF090365; Tue, 26 Aug 2008 10:06:32 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7QA6W7Q090361; Tue, 26 Aug 2008 10:06:32 GMT (envelope-from gavin) Date: Tue, 26 Aug 2008 10:06:32 GMT Message-Id: <200808261006.m7QA6W7Q090361@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 10:06:33 -0000 Synopsis: Cyberpower UPS is attached as uhid instead of ugen Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: gavin Responsible-Changed-When: Tue Aug 26 10:06:13 UTC 2008 Responsible-Changed-Why: Over to maintainers http://www.freebsd.org/cgi/query-pr.cgi?pr=126845 From owner-freebsd-usb@FreeBSD.ORG Tue Aug 26 10:10:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5833A106566C for ; Tue, 26 Aug 2008 10:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 53CE58FC1F for ; Tue, 26 Aug 2008 10:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7QAA4iA090479 for ; Tue, 26 Aug 2008 10:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7QAA4hF090478; Tue, 26 Aug 2008 10:10:04 GMT (envelope-from gnats) Date: Tue, 26 Aug 2008 10:10:04 GMT Message-Id: <200808261010.m7QAA4hF090478@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Gavin Atkinson Cc: Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 10:10:04 -0000 The following reply was made to PR usb/126845; it has been noted by GNATS. From: Gavin Atkinson To: bug-followup@FreeBSD.org Cc: Mattias Lindgren Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen Date: Tue, 26 Aug 2008 11:08:43 +0100 (BST) Can you try this patch please? Index: src/sys/dev/usb/usb_quirks.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usb_quirks.c,v retrieving revision 1.63.2.2 diff -u -r1.63.2.2 usb_quirks.c --- src/sys/dev/usb/usb_quirks.c 12 Aug 2008 19:40:18 -0000 1.63.2.2 +++ src/sys/dev/usb/usb_quirks.c 26 Aug 2008 10:05:03 -0000 @@ -96,6 +96,8 @@ ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR, ANY, { UQ_HID_IGNORE }}, + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_1500CAVRLCD, + ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE, ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_ITUNERNET, USB_PRODUCT_ITUNERNET_USBLCD2X20, Index: src/sys/dev/usb/usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.328.2.16 diff -u -r1.328.2.16 usbdevs --- src/sys/dev/usb/usbdevs 19 Aug 2008 01:51:37 -0000 1.328.2.16 +++ src/sys/dev/usb/usbdevs 26 Aug 2008 10:04:01 -0000 @@ -364,6 +364,7 @@ vendor DIGITALSTREAM 0x074e Digital Stream vendor AUREAL 0x0755 Aureal Semiconductor vendor MIDIMAN 0x0763 Midiman +vendor CYBERPOWER 0x0764 CyberPower vendor SURECOM 0x0769 Surecom Technology vendor LINKSYS2 0x077b Linksys vendor GRIFFIN 0x077d Griffin Technology @@ -1063,6 +1064,9 @@ product CURITEL HX57XB 0x2101 CDMA 2000 1xRTT USB modem (HX-570/575B/PR-600) product CURITEL PC5740 0x3701 Broadband Wireless modem +/* CyberPower products */ +product CYBERPOWER 1500CAVRLCD 0x0501 1500CAVRLCD + /* CyberTAN Technology products */ product CYBERTAN TG54USB 0x1666 TG54USB From owner-freebsd-usb@FreeBSD.ORG Tue Aug 26 15:55:47 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F37A01065680; Tue, 26 Aug 2008 15:55:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A8CDC8FC23; Tue, 26 Aug 2008 15:55:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m7QFtTrH072299; Tue, 26 Aug 2008 09:55:29 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 26 Aug 2008 09:56:00 -0600 (MDT) Message-Id: <20080826.095600.-1297659289.imp@bsdimp.com> To: gavin@freebsd.org From: "M. Warner Losh" In-Reply-To: <200808261010.m7QAA4hF090478@freefall.freebsd.org> References: <200808261010.m7QAA4hF090478@freefall.freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 15:55:47 -0000 In message: <200808261010.m7QAA4hF090478@freefall.freebsd.org> Gavin Atkinson writes: : +vendor CYBERPOWER 0x0764 CyberPower 0x764 is 1892 decimal and listed in the usb database as: 1892|Cyber Power Systems, Inc. So maybe that's what should be where "CyberPower" is now? Other than that, it looks good. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Aug 26 16:49:10 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07557106564A for ; Tue, 26 Aug 2008 16:49:10 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from buffy.york.ac.uk (buffy.york.ac.uk [144.32.226.160]) by mx1.freebsd.org (Postfix) with ESMTP id 967708FC0C for ; Tue, 26 Aug 2008 16:49:09 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.2/8.14.2) with ESMTP id m7QGJl1W037070; Tue, 26 Aug 2008 17:19:47 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.2/8.14.2/Submit) id m7QGJlbC037069; Tue, 26 Aug 2008 17:19:47 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: "M. Warner Losh" In-Reply-To: <20080826.095600.-1297659289.imp@bsdimp.com> References: <200808261010.m7QAA4hF090478@freefall.freebsd.org> <20080826.095600.-1297659289.imp@bsdimp.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 26 Aug 2008 17:19:46 +0100 Message-Id: <1219767586.34348.66.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Cc: freebsd-usb@FreeBSD.org Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 16:49:10 -0000 On Tue, 2008-08-26 at 09:56 -0600, M. Warner Losh wrote: > In message: <200808261010.m7QAA4hF090478@freefall.freebsd.org> > Gavin Atkinson writes: > : +vendor CYBERPOWER 0x0764 CyberPower > > 0x764 is 1892 decimal and listed in the usb database as: > > 1892|Cyber Power Systems, Inc. > > So maybe that's what should be where "CyberPower" is now? Thanks for noticing! I always forget that list is in decimal whenever I grep it. The submitter wanted extra info on how to apply it, so I've given them an updated patch, and I'll check through the other patches I've made to make sure I didn't make the same mistake with any of them. Gavin From owner-freebsd-usb@FreeBSD.ORG Wed Aug 27 06:34:15 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D570D106567F; Wed, 27 Aug 2008 06:34:15 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 919418FC12; Wed, 27 Aug 2008 06:34:15 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7R6YFID067932; Wed, 27 Aug 2008 06:34:15 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7R6YFiR067928; Wed, 27 Aug 2008 06:34:15 GMT (envelope-from remko) Date: Wed, 27 Aug 2008 06:34:15 GMT Message-Id: <200808270634.m7R6YFiR067928@freefall.freebsd.org> To: f0ng@hotmail.com, remko@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-usb@FreeBSD.org From: remko@FreeBSD.org Cc: Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 06:34:15 -0000 Old Synopsis: USB Keyboard hangs during Installation New Synopsis: [usb]: USB Keyboard hangs during Installation State-Changed-From-To: open->feedback State-Changed-By: remko State-Changed-When: Wed Aug 27 06:33:46 UTC 2008 State-Changed-Why: I asked for feedback Responsible-Changed-From-To: freebsd-i386->freebsd-usb Responsible-Changed-By: remko Responsible-Changed-When: Wed Aug 27 06:33:46 UTC 2008 Responsible-Changed-Why: Move to the USB team http://www.freebsd.org/cgi/query-pr.cgi?pr=126848 From owner-freebsd-usb@FreeBSD.ORG Wed Aug 27 11:10:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33875106568F for ; Wed, 27 Aug 2008 11: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 1A19A8FC21 for ; Wed, 27 Aug 2008 11:10: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.2/8.14.2) with ESMTP id m7RBA2cp018934 for ; Wed, 27 Aug 2008 11:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7RBA2KP018933; Wed, 27 Aug 2008 11:10:02 GMT (envelope-from gnats) Date: Wed, 27 Aug 2008 11:10:02 GMT Message-Id: <200808271110.m7RBA2KP018933@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Gavin Atkinson Cc: Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 11:10:03 -0000 The following reply was made to PR usb/126845; it has been noted by GNATS. From: Gavin Atkinson To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/126845: Cyberpower UPS is attached as uhid instead of ugen Date: Wed, 27 Aug 2008 12:02:41 +0100 --=-NPzv00iMx66t2hTUfOpS Content-Type: text/plain Content-Transfer-Encoding: 7bit Submitter confirms that the attached patch fixes things for him. (Patch slightly updated to match the official company name as registered in usb.if) --=-NPzv00iMx66t2hTUfOpS Content-Disposition: attachment; filename=126845.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=126845.diff; charset=ASCII SW5kZXg6IHNyYy9zeXMvZGV2L3VzYi91c2JfcXVpcmtzLmMNCj09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxl OiAvaG9tZS9uY3ZzL3NyYy9zeXMvZGV2L3VzYi91c2JfcXVpcmtzLmMsdg0KcmV0cmlldmluZyBy ZXZpc2lvbiAxLjYzLjQuMQ0KZGlmZiAtdSAtcjEuNjMuNC4xIHVzYl9xdWlya3MuYw0KLS0tIHNy Yy9zeXMvZGV2L3VzYi91c2JfcXVpcmtzLmMJNyBKYW4gMjAwOCAyMzoxMjo0NSAtMDAwMAkxLjYz LjQuMQ0KKysrIHNyYy9zeXMvZGV2L3VzYi91c2JfcXVpcmtzLmMJMjYgQXVnIDIwMDggMTc6NDQ6 MDkgLTAwMDANCkBAIC05Niw2ICs5Niw4IEBADQogCUFOWSwgeyBVUV9ISURfSUdOT1JFIH19LA0K ICB7IFVTQl9WRU5ET1JfQkVMS0lOLCBVU0JfUFJPRFVDVF9CRUxLSU5fRjZDNTUwQVZSLA0KIAlB TlksIHsgVVFfSElEX0lHTk9SRSB9fSwNCisgeyBVU0JfVkVORE9SX0NZQkVSUE9XRVIsIFVTQl9Q Uk9EVUNUX0NZQkVSUE9XRVJfMTUwMENBVlJMQ0QsDQorCUFOWSwgeyBVUV9ISURfSUdOT1JFIH19 LA0KICB7IFVTQl9WRU5ET1JfREVMT1JNRSwgVVNCX1BST0RVQ1RfREVMT1JNRV9FQVJUSE1BVEUs DQogCUFOWSwgeyBVUV9ISURfSUdOT1JFIH19LA0KICB7IFVTQl9WRU5ET1JfSVRVTkVSTkVULCBV U0JfUFJPRFVDVF9JVFVORVJORVRfVVNCTENEMlgyMCwNCkluZGV4OiBzcmMvc3lzL2Rldi91c2Iv dXNiZGV2cw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQ0KUkNTIGZpbGU6IC9ob21lL25jdnMvc3JjL3N5cy9kZXYvdXNi L3VzYmRldnMsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjMyOC4yLjEuMi4xDQpkaWZmIC11IC1y MS4zMjguMi4xLjIuMSB1c2JkZXZzDQotLS0gc3JjL3N5cy9kZXYvdXNiL3VzYmRldnMJNyBKYW4g MjAwOCAyMzoxMjo0NSAtMDAwMAkxLjMyOC4yLjEuMi4xDQorKysgc3JjL3N5cy9kZXYvdXNiL3Vz YmRldnMJMjYgQXVnIDIwMDggMTc6NDQ6MDkgLTAwMDANCkBAIC0zNjQsNiArMzY0LDcgQEANCiB2 ZW5kb3IgRElHSVRBTFNUUkVBTQkweDA3NGUJRGlnaXRhbCBTdHJlYW0NCiB2ZW5kb3IgQVVSRUFM CQkweDA3NTUJQXVyZWFsIFNlbWljb25kdWN0b3INCiB2ZW5kb3IgTUlESU1BTgkJMHgwNzYzCU1p ZGltYW4NCit2ZW5kb3IgQ1lCRVJQT1dFUgkweDA3NjQJQ3liZXIgUG93ZXIgU3lzdGVtcywgSW5j Lg0KIHZlbmRvciBTVVJFQ09NCQkweDA3NjkJU3VyZWNvbSBUZWNobm9sb2d5DQogdmVuZG9yIExJ TktTWVMyCQkweDA3N2IJTGlua3N5cw0KIHZlbmRvciBHUklGRklOCQkweDA3N2QJR3JpZmZpbiBU ZWNobm9sb2d5DQpAQCAtMTA1Niw2ICsxMDU3LDkgQEANCiBwcm9kdWN0IENVUklURUwgSFg1N1hC CQkweDIxMDEJQ0RNQSAyMDAwIDF4UlRUIFVTQiBtb2RlbSAoSFgtNTcwLzU3NUIvUFItNjAwKQ0K IHByb2R1Y3QgQ1VSSVRFTCBQQzU3NDAJCTB4MzcwMQlCcm9hZGJhbmQgV2lyZWxlc3MgbW9kZW0N CiANCisvKiBDeWJlclBvd2VyIHByb2R1Y3RzICovDQorcHJvZHVjdCBDWUJFUlBPV0VSIDE1MDBD QVZSTENECTB4MDUwMQkxNTAwQ0FWUkxDRA0KKw0KIC8qIEN5YmVyVEFOIFRlY2hub2xvZ3kgcHJv ZHVjdHMgKi8NCiBwcm9kdWN0IENZQkVSVEFOIFRHNTRVU0IJMHgxNjY2CVRHNTRVU0INCiANCg== --=-NPzv00iMx66t2hTUfOpS-- From owner-freebsd-usb@FreeBSD.ORG Wed Aug 27 11:40:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4337106568F for ; Wed, 27 Aug 2008 11:40: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 7B3FF8FC28 for ; Wed, 27 Aug 2008 11:40: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.2/8.14.2) with ESMTP id m7RBe3hK023278 for ; Wed, 27 Aug 2008 11:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7RBe39c023272; Wed, 27 Aug 2008 11:40:03 GMT (envelope-from gnats) Resent-Date: Wed, 27 Aug 2008 11:40:03 GMT Resent-Message-Id: <200808271140.m7RBe39c023272@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, "Daan Vreeken [PA4DAN]" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9B831065689 for ; Wed, 27 Aug 2008 11:30:34 +0000 (UTC) (envelope-from pa4dan@TVlottePert.VEHosting.nl) Received: from TVlottePert.VEHosting.nl (tvlottepert.vehosting.nl [85.17.51.143]) by mx1.freebsd.org (Postfix) with ESMTP id 592BE8FC20 for ; Wed, 27 Aug 2008 11:30:34 +0000 (UTC) (envelope-from pa4dan@TVlottePert.VEHosting.nl) Received: from TVlottePert.VEHosting.nl (localhost [127.0.0.1]) by TVlottePert.VEHosting.nl (8.14.2/8.14.2) with ESMTP id m7RAwdO2043131; Wed, 27 Aug 2008 12:58:39 +0200 (CEST) (envelope-from pa4dan@TVlottePert.VEHosting.nl) Received: (from pa4dan@localhost) by TVlottePert.VEHosting.nl (8.14.2/8.14.2/Submit) id m7RAwd0P043130; Wed, 27 Aug 2008 12:58:39 +0200 (CEST) (envelope-from pa4dan) Message-Id: <200808271058.m7RAwd0P043130@TVlottePert.VEHosting.nl> Date: Wed, 27 Aug 2008 12:58:39 +0200 (CEST) From: "Daan Vreeken [PA4DAN]" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: FreeBSD@VEHosting.nl Subject: usb/126884: [patch] Bug in buffer handling in ugen.c X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Daan Vreeken \[PA4DAN\]" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 11:40:04 -0000 >Number: 126884 >Category: usb >Synopsis: [patch] Bug in buffer handling in ugen.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 27 11:40:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Daan Vreeken [PA4DAN] >Release: FreeBSD 7.0-STABLE amd64 >Organization: VEHosting.nl >Environment: System: FreeBSD TVlottePert.VEHosting.nl 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri Jun 13 18:02:09 CEST 2008 root@TVlottePert.VEHosting.nl:/usr/obj/usr/src/sys/GENERIC amd64 >Description: In ugen_isoc_rintr() old data is thrown away when the fifo is full. This code contains multiple errors : o Only in the case of sce->fill < sce->cur data is thrown away. (No data is discarded when sce->fill is near the end of the buffer and sce->cur is near the beginning of the buffer.) o Too much data is discarded. If 10 bytes need to be written with only space left for 8 bytes, 10 bytes of input are discarded instead of just 2. o When sce->cur reaches/passes the end of the buffer, the pointer is set to sce->ibuf + (sce->limit - sce->cur) instead of to sce->ibuf + (sce->cur - sce->limit). This could leave the sce->cur pointer ahead of the buffer pointing to unknown memory. >How-To-Repeat: Try to use the ugen interface to read data from a device with an isochronous endpoint that delivers isochronous packets of varying length and see that data gets corrupted. >Fix: The attached patch is to -CURRENT, but the bug is found in other branches too. The patch moves the deletion of data into the while loop that copies data from the incoming packet. This way data is also discarded in the case where sce->fill >= sce->cur initially (because the while loop already breaks filling the end & beginning of the buffer into two itterations). --- ugen.c.patch begins here --- --- ugen.c-1.112 2008-08-27 11:48:37.000000000 +0200 +++ ugen.c 2008-08-27 12:08:10.000000000 +0200 @@ -1054,15 +1054,6 @@ DPRINTFN(5,("ugen_isoc_rintr: xfer %td, count=%d\n", req - sce->isoreqs, count)); - /* throw away oldest input if the buffer is full */ - if(sce->fill < sce->cur && sce->cur <= sce->fill + count) { - sce->cur += count; - if(sce->cur >= sce->limit) - sce->cur = sce->ibuf + (sce->limit - sce->cur); - DPRINTFN(5, ("ugen_isoc_rintr: throwing away %d bytes\n", - count)); - } - isize = UGETW(sce->edesc->wMaxPacketSize); for (i = 0; i < UGEN_NISORFRMS; i++) { u_int32_t actlen = req->sizes[i]; @@ -1071,6 +1062,22 @@ /* copy data to buffer */ while (actlen > 0) { n = min(actlen, sce->limit - sce->fill); + + /* throw away oldest input if the buffer is full */ + if(sce->fill < sce->cur && + sce->cur <= sce->fill + n) { + u_int32_t drop; + + /* calculate fow many bytes we have to drop */ + drop = scr->cur - sce->fill; + + sce->cur += drop; + if(sce->cur >= sce->limit) + sce->cur = sce->ibuf; + DPRINTFN(5, ("ugen_isoc_rintr: throwing " + "away %d bytes\n", drop)); + } + memcpy(sce->fill, buf, n); buf += n; --- ugen.c.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Aug 27 18:10:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 366D810656C1 for ; Wed, 27 Aug 2008 18: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 2E89F8FC18 for ; Wed, 27 Aug 2008 18:10: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.2/8.14.2) with ESMTP id m7RIA22T056070 for ; Wed, 27 Aug 2008 18:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7RIA2qG056069; Wed, 27 Aug 2008 18:10:02 GMT (envelope-from gnats) Date: Wed, 27 Aug 2008 18:10:02 GMT Message-Id: <200808271810.m7RIA2qG056069@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Tarn Alcock" Cc: Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tarn Alcock List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 18:10:03 -0000 The following reply was made to PR kern/126848; it has been noted by GNATS. From: "Tarn Alcock" To: , Cc: Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation Date: Wed, 27 Aug 2008 19:09:08 +0200 This is a multi-part message in MIME format. ------=_NextPart_000_0002_01C90878.61CFDD00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable HI. Thanks for the prompt response. I have tried both USB ports. Problem = still occures with both of them. I have noticed that htey keyboard = lights flash as the keyboard is detected and then i think that is when = it dies. ------=_NextPart_000_0002_01C90878.61CFDD00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
HI. Thanks for the prompt response. I = have tried=20 both USB ports. Problem still occures with both of them. I have noticed = that=20 htey keyboard lights flash as the keyboard is detected and then i think = that is=20 when it dies.
------=_NextPart_000_0002_01C90878.61CFDD00-- From owner-freebsd-usb@FreeBSD.ORG Wed Aug 27 21:44:55 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8251F106568A for ; Wed, 27 Aug 2008 21:44:55 +0000 (UTC) (envelope-from stone.creek.114@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE4E8FC18 for ; Wed, 27 Aug 2008 21:44:54 +0000 (UTC) (envelope-from stone.creek.114@gmail.com) Received: by gxk10 with SMTP id 10so4560051gxk.19 for ; Wed, 27 Aug 2008 14:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=/HaPPlfErbFfMgNB8xyEXGc+UPP0nszWCINEFDQ/Xu4=; b=I/1+l10C8YNE5GC9DLnAfe5Qqu7aGNSQZiaZ6SFaalIn3vI3DCRfQ9qa8wbKC8FxRt R2JZ4rMkiUFOmhAgUokww2EP6F/L0JdpD4F93HjsXFHZZkvhTnKLBtYIssMdeOhzj8Hn 2GQ6Fjv6aMjRpz0cLBIo/9b7heeWAr7LPXCco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=CKQ9D+v7WGxs9qyhYfywFpgNhJxjNhI7TOvMxrVJc89a1pU92gEqdIyg0sJBd6JTZ5 2GuypmMq0KsIAUVL7W4drb/a2j7dS0+MRJWQDyr6+xoldni+Vcdi7+GdT2QKvyslibpA F3+Rvfcp81sgxStkZkud0OJm6HU9QsL4vMPns= Received: by 10.151.145.21 with SMTP id x21mr785433ybn.233.1219871951775; Wed, 27 Aug 2008 14:19:11 -0700 (PDT) Received: by 10.151.78.4 with HTTP; Wed, 27 Aug 2008 14:19:11 -0700 (PDT) Message-ID: <42877e8a0808271419v5e68c79alae4c9dc080dbec02@mail.gmail.com> Date: Wed, 27 Aug 2008 14:19:11 -0700 From: "C Hwang" 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: make error after add 'device zyd' into MYKERNEL X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 21:44:55 -0000 Hi There, My first post! I install a fresh 7.0 release a week ago. I get two wireless USB adapter from Frys'. One is Linksys WUSB54GC which is working beautifully( I love Linksys). The 2nd USB adapter is Trendnet TEW-424UB. I want to add this device into the kernel so I add a line in MYKERNEL(derive from /usr/src/sys/i386/conf/GENERIC, make work with GENERIC) device zyd #for Trendnet TEW-424U. I also add a line in /usr/src/sys/conf/files (make can find the device without complain) dev/usb/if_zyd optional zyd then do #make buildkernel KERNCONF=MYKERNEL The make process good all the way to if_rum.c but fail at if_zyd.c there is a long error list but it seems all related to the same thing so I will just list it what I think is enough. printout of the make: ====================================================== ....before this all good cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissin g-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions - nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -i nclude opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-f unction-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mn o-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/dev/usb/if_rum.c cc -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-p rototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nos tdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -incl ude opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-func tion-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-s se -mno-sse2 -mno-sse3 -ffreestanding /usr/src/sys/dev/usb/if_zyd.c -o /usr/src/sys/dev/usb/if_z yd /usr/lib/crt1.o(.text+0x85): In function `_start': : undefined reference to `main' /var/tmp//ccwgxp7Y.o(.text+0xf7): In function `zyd_free_rx_list': /usr/src/sys/dev/usb/if_zyd.c:652: undefined reference to `usbd_free_xfer' /var/tmp//ccwgxp7Y.o(.text+0x129): In function `zyd_cmd': /usr/src/sys/dev/usb/if_zyd.c:760: undefined reference to `usbd_alloc_xfer' /var/tmp//ccwgxp7Y.o(.text+0x1e0):/usr/src/sys/dev/usb/if_zyd.c:776: undefined reference to `usbd_ setup_xfer' /var/tmp//ccwgxp7Y.o(.text+0x1eb):/usr/src/sys/dev/usb/if_zyd.c:778: undefined reference to `usbd_ transfer' ================================================== I notice that there is an -o /usr/src/sys/dev/usb/if_zyd for compiler option. I don't know why it will use different compiler option for this module. I can do make at /usr/src/sys/modules/zyd and generate if_zyd.ko. I can maually load it with kldload ./if_zyd.ko and see it with kldstat. It can not be seen by ifconfig zyd0. I have been spend about two day to mess around the if_zyd.c, /usr/src/sys/NOTES,GENERIC.hint, /usr/src/sys/modules/Makefile, /usr/src/sys/dev/usb/usbdevs None change the result of make error. Someone has experience on adding zyd into kernel with this make problem? I read some other post it seems that there are more work need to be done but I don't think it will make compile error like this. Thanks, Ching From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 04:40:14 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 127BA106568A for ; Thu, 28 Aug 2008 04:40:14 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id 908078FC0A for ; Thu, 28 Aug 2008 04:40:13 +0000 (UTC) (envelope-from ws@au.dyndns.ws) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwBAPnCtUiWZWdv/2dsb2JhbAAIuXyBaA X-IronPort-AV: E=Sophos;i="4.32,284,1217773800"; d="scan'208";a="192110501" Received: from ppp103-111.static.internode.on.net (HELO [192.168.1.157]) ([150.101.103.111]) by ipmail05.adl2.internode.on.net with ESMTP; 28 Aug 2008 13:54:56 +0930 From: Wayne Sierke To: Tarn Alcock In-Reply-To: <200808271810.m7RIA2qG056069@freefall.freebsd.org> References: <200808271810.m7RIA2qG056069@freefall.freebsd.org> Content-Type: text/plain Date: Thu, 28 Aug 2008 13:54:51 +0930 Message-Id: <1219897491.49053.256.camel@predator-ii.buffyverse> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation 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, 28 Aug 2008 04:40:14 -0000 On Wed, 2008-08-27 at 18:10 +0000, Tarn Alcock wrote: > The following reply was made to PR kern/126848; it has been noted by GNATS. > > From: "Tarn Alcock" > To: , > > Cc: > Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation > Date: Wed, 27 Aug 2008 19:09:08 +0200 > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0002_01C90878.61CFDD00 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > HI. Thanks for the prompt response. I have tried both USB ports. Problem = > still occures with both of them. I have noticed that htey keyboard = > lights flash as the keyboard is detected and then i think that is when = > it dies. Probably a long-shot. My Gigabyte 8SQ800 has a problem with my Logitech MX500 mice and more recently with a Logitech USB keyboard. I've had to connect both of these via a hub to avoid frequent disconnects that occur when they are connected directly to the motherboard's USB ports. Not as severe as your issue but might be worth a shot. From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 08:17:40 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2B291065670 for ; Thu, 28 Aug 2008 08:17:40 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 1EB828FC2D for ; Thu, 28 Aug 2008 08:17:39 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.13.1) with ESMTP id m7S7ku9N058690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 28 Aug 2008 14:46:56 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.2/8.12.11) id m7S7kuJV018511; Thu, 28 Aug 2008 14:46:56 +0700 (ICT) Date: Thu, 28 Aug 2008 14:46:56 +0700 (ICT) Message-Id: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd-usb@freebsd.org X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Subject: How to eject an USB disk 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, 28 Aug 2008 08:17:40 -0000 Hello, Is there a command in FreeBSD that ejects a USB disk like in Windows? I mount the USB disk with automount daemone (amd). I have a script that access this disk and force an umount at the end of the script. But anyone accessing the disk will have amd re'mount the disk and at the time I unplu the disk, problem may occur because the disk is still mounted and in use. I would like to have a command that makes the disk/USB port physically inaccessible, so at the end of the script a user cannot access the disk again. Like in Windows after stopping a USB mass storage device, one has to unplg and replug the disk if he wants to access it again. TIA, Olivier From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 13:40:01 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08D5E1065674; Thu, 28 Aug 2008 13:40:01 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D68B28FC2E; Thu, 28 Aug 2008 13:40:00 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7SDe0V6093413; Thu, 28 Aug 2008 13:40:00 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7SDe0P0093409; Thu, 28 Aug 2008 13:40:00 GMT (envelope-from maxim) Date: Thu, 28 Aug 2008 13:40:00 GMT Message-Id: <200808281340.m7SDe0P0093409@freefall.freebsd.org> To: eu@grosbein.pp.ru, maxim@FreeBSD.org, freebsd-usb@FreeBSD.org From: maxim@FreeBSD.org Cc: Subject: Re: usb/96599: [usb] [patch] Sony Handycam DCR-HC32E memory stick slot 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, 28 Aug 2008 13:40:01 -0000 Synopsis: [usb] [patch] Sony Handycam DCR-HC32E memory stick slot State-Changed-From-To: open->closed State-Changed-By: maxim State-Changed-When: Thu Aug 28 13:39:30 UTC 2008 State-Changed-Why: Committed to HEAD and RELENG_7. http://www.freebsd.org/cgi/query-pr.cgi?pr=96599 From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 16:10:02 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26C83106564A for ; Thu, 28 Aug 2008 16:10:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id B5C348FC17 for ; Thu, 28 Aug 2008 16:10:01 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4WCD8KwRn_EA:10 a=6MIg2jpqvhTpo/gR8GzG7Q==:17 a=v1mGmhcigQ52SgSPJWcA:9 a=8YRBGTGzgz4kG8QNz4NlD0MNxHEA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.243] (account mc467741@c2i.net [62.113.133.243] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 314785594; Thu, 28 Aug 2008 18:09:59 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 28 Aug 2008 18:11:46 +0200 User-Agent: KMail/1.9.7 References: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th> In-Reply-To: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808281811.46885.hselasky@c2i.net> Cc: Subject: Re: How to eject an USB disk 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, 28 Aug 2008 16:10:02 -0000 On Thursday 28 August 2008, Olivier Nicole wrote: > Hello, > > Is there a command in FreeBSD that ejects a USB disk like in Windows? > > I mount the USB disk with automount daemone (amd). > > I have a script that access this disk and force an umount at the end > of the script. > > But anyone accessing the disk will have amd re'mount the disk and at > the time I unplu the disk, problem may occur because the disk is still > mounted and in use. > > I would like to have a command that makes the disk/USB port physically > inaccessible, so at the end of the script a user cannot access the > disk again. > > Like in Windows after stopping a USB mass storage device, one has to > unplg and replug the disk if he wants to access it again. > Hi, Maybe the following will help: man camcontrol --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 17:05:02 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED1C010656A6 for ; Thu, 28 Aug 2008 17:04:59 +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 AD1468FC1B for ; Thu, 28 Aug 2008 17:04:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4WCD8KwRn_EA:10 a=6MIg2jpqvhTpo/gR8GzG7Q==:17 a=hf_Ql0cjO-jROIgJFkEA:9 a=yUjoHA1p6lo42OY_xO3BooGz79EA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.243] (account mc467741@c2i.net [62.113.133.243] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 953116769; Thu, 28 Aug 2008 19:04:56 +0200 From: Hans Petter Selasky To: Halit Canbazoglu Date: Thu, 28 Aug 2008 19:06:41 +0200 User-Agent: KMail/1.9.7 References: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th> <200808281811.46885.hselasky@c2i.net> <48B6D108.8010405@vicor.com> In-Reply-To: <48B6D108.8010405@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808281906.41700.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: How to eject an USB disk 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, 28 Aug 2008 17:05:03 -0000 On Thursday 28 August 2008, Halit Canbazoglu wrote: > we, at vicor, use freebsd and redhat, it will be good for us > to be able to use the linux compatible interface for USB devices. > we still use FreeBSD 4.11, i wonder anybody is planning to > back port this new USB interface. since it's separated from the > earlier USB layer, i believe it might not be that hard, at the same > time not easy to say. > > thanks .. halit .. Hi, It might be some work to do the backport, but it is not impossible. Personally I have no plans to backport the code to FreeBSD 4.11. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 17:17:20 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03E3F1065680 for ; Thu, 28 Aug 2008 17:17:20 +0000 (UTC) (envelope-from halit@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id E0BB98FC14 for ; Thu, 28 Aug 2008 17:17:19 +0000 (UTC) (envelope-from halit@vicor.com) Received: from [208.206.78.86] (port=1715 helo=[208.206.78.86]) by postoffice.vicor.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.43) id 1KYkHz-0005en-Us; Thu, 28 Aug 2008 09:24:05 -0700 Message-ID: <48B6D108.8010405@vicor.com> Date: Thu, 28 Aug 2008 09:23:36 -0700 From: Halit Canbazoglu User-Agent: Mozilla Thunderbird 1.0 (X11/20050214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hans Petter Selasky References: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th> <200808281811.46885.hselasky@c2i.net> In-Reply-To: <200808281811.46885.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scan-Signature: 3c10c258e2e023679e0cc136e96bfe90 X-Scan-Host: postoffice.vicor.com Cc: freebsd-usb@freebsd.org Subject: Re: How to eject an USB disk 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, 28 Aug 2008 17:17:20 -0000 we, at vicor, use freebsd and redhat, it will be good for us to be able to use the linux compatible interface for USB devices. we still use FreeBSD 4.11, i wonder anybody is planning to back port this new USB interface. since it's separated from the earlier USB layer, i believe it might not be that hard, at the same time not easy to say. thanks .. halit .. -- Halit Canbazoglu | Senior Engineer 510-621-2196(work) | 510-621-2020(fax) halit@vicor.com | VICOR, a Metavante Company This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. From owner-freebsd-usb@FreeBSD.ORG Thu Aug 28 21:20:02 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5962C1065691 for ; Thu, 28 Aug 2008 21:20: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 2FCA08FC21 for ; Thu, 28 Aug 2008 21:20: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.2/8.14.2) with ESMTP id m7SLK2sW035535 for ; Thu, 28 Aug 2008 21:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7SLK2NH035534; Thu, 28 Aug 2008 21:20:02 GMT (envelope-from gnats) Resent-Date: Thu, 28 Aug 2008 21:20:02 GMT Resent-Message-Id: <200808282120.m7SLK2NH035534@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, Gavin Atkinson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6160E1065673 for ; Thu, 28 Aug 2008 21:16:29 +0000 (UTC) (envelope-from ga9@buffy.york.ac.uk) Received: from buffy.york.ac.uk (buffy.york.ac.uk [144.32.226.160]) by mx1.freebsd.org (Postfix) with ESMTP id F1C3F8FC0C for ; Thu, 28 Aug 2008 21:16:28 +0000 (UTC) (envelope-from ga9@buffy.york.ac.uk) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.2/8.14.2) with ESMTP id m7SLGSMm050742 for ; Thu, 28 Aug 2008 22:16:28 +0100 (BST) (envelope-from ga9@buffy.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.2/8.14.2/Submit) id m7SLGS4C050741; Thu, 28 Aug 2008 22:16:28 +0100 (BST) (envelope-from ga9) Message-Id: <200808282116.m7SLGS4C050741@buffy.york.ac.uk> Date: Thu, 28 Aug 2008 22:16:28 +0100 (BST) From: Gavin Atkinson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/126927: [zyd] [patch] Support ZyDAS G202 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 21:20:02 -0000 >Number: 126927 >Category: usb >Synopsis: [zyd] [patch] Support ZyDAS G202 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 28 21:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gavin Atkinson >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD buffy.york.ac.uk 7.0-STABLE FreeBSD 7.0-STABLE #3: Fri Jun 20 09:21:51 UTC 2008 root@buffy.york.ac.uk:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Add support for the USB dongle I've got in my hand >How-To-Repeat: Take adapter out of my hand. Plug adapter into my laptop. >Fix: --- zyd_g202.diff begins here --- Index: src/sys/dev/usb/if_zyd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/if_zyd.c,v retrieving revision 1.18 diff -u -r1.18 if_zyd.c --- src/sys/dev/usb/if_zyd.c 7 Jun 2008 18:38:02 -0000 1.18 +++ src/sys/dev/usb/if_zyd.c 13 Aug 2008 17:29:35 -0000 @@ -140,6 +140,7 @@ ZYD_ZD1211B_DEV(VTECH, ZD1211B), ZYD_ZD1211B_DEV(ZCOM, ZD1211B), ZYD_ZD1211B_DEV(ZYDAS, ZD1211B), + ZYD_ZD1211B_DEV(ZYXEL, G202), ZYD_ZD1211B_DEV(ZYXEL, M202), ZYD_ZD1211B_DEV(ZYXEL, G220V2), }; Index: src/sys/dev/usb/usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.367 diff -u -r1.367 usbdevs --- src/sys/dev/usb/usbdevs 21 Aug 2008 20:37:38 -0000 1.367 +++ src/sys/dev/usb/usbdevs 28 Aug 2008 20:12:09 -0000 @@ -2440,3 +2440,4 @@ product ZYXEL AG225H 0x3409 AG-225H product ZYXEL M202 0x340a M-202 product ZYXEL G220V2 0x340f G-220 v2 +product ZYXEL G202 0x3410 G-202 --- zyd_g202.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Aug 29 09:30:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 320301065671 for ; Fri, 29 Aug 2008 09:30: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 08ADB8FC13 for ; Fri, 29 Aug 2008 09:30: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.2/8.14.2) with ESMTP id m7T9U3el029674 for ; Fri, 29 Aug 2008 09:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7T9U340029671; Fri, 29 Aug 2008 09:30:03 GMT (envelope-from gnats) Date: Fri, 29 Aug 2008 09:30:03 GMT Message-Id: <200808290930.m7T9U340029671@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Artis Caune" Cc: Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Artis Caune List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 09:30:04 -0000 The following reply was made to PR kern/126848; it has been noted by GNATS. From: "Artis Caune" To: bug-followup@FreeBSD.org Cc: f0ng@hotmail.com Subject: Re: kern/126848: [usb]: USB Keyboard hangs during Installation Date: Fri, 29 Aug 2008 12:28:58 +0300 could you try with: set hint.kbdmux.0.disabled="1" -- regards, Artis Caune <----. CCNA <----|==================== <----' didii FreeBSD