From owner-freebsd-current@FreeBSD.ORG Mon Jun 27 04:06:11 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 340C81065670 for ; Mon, 27 Jun 2011 04:06:11 +0000 (UTC) (envelope-from vkushnir@bigmir.net) Received: from ex.volia.net (ex.volia.net [82.144.192.10]) by mx1.freebsd.org (Postfix) with ESMTP id DE65F8FC0A for ; Mon, 27 Jun 2011 04:06:10 +0000 (UTC) Received: from em.volia.net ([82.144.192.9]) by ex.volia.net with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Qb2FT-000F8g-GS; Mon, 27 Jun 2011 06:12:31 +0300 Received: from enough.saddler.volia.net ([93.72.207.82] helo=kushnir1.kiev.ua) by em.volia.net with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Qb2FT-000EZC-A7; Mon, 27 Jun 2011 06:12:31 +0300 Received: from localhost (localhost [IPv6:::1]) by kushnir1.kiev.ua (8.14.5/8.14.5) with ESMTP id p5R3CuXx010027; Mon, 27 Jun 2011 06:12:56 +0300 (EEST) (envelope-from vkushnir@bigmir.net) Date: Mon, 27 Jun 2011 06:12:56 +0300 (EEST) From: Vladimir Kushnir X-X-Sender: vkushnir@kushnir1.kiev.ua To: Greg Rivers In-Reply-To: Message-ID: References: <201106241531.19375.hselasky@c2i.net> <201106252054.38056.hselasky@c2i.net> <201106261343.53522.hselasky@c2i.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Volia-Original-IP: 93.72.207.82 Cc: freebsd-current@freebsd.org, Hans Petter Selasky Subject: Re: [Testing wanted] USB patch for HAL X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2011 04:06:11 -0000 Sorry for slightly off-topic post but (see below) On Sun, 26 Jun 2011, Greg Rivers wrote: > On Sun, 26 Jun 2011, Hans Petter Selasky wrote: >> On Sunday 26 June 2011 09:27:22 Greg Rivers wrote: >>> With this change, the USB bus continued to operate as expected while >>> attaching and detaching a USB flash drive. On start up, hald was not >>> detecting the attach/detach events, but started working and kept working >>> after restarting it. In summary, with both of the above changes, >>> everything worked pretty much correctly. >> >> Try this patch to hald: >> >> cd /usr/ports/sysutils/hal/files >> fetch http://hselasky.homeunix.org:8192/patch-hald_freebsd_hf-usb2.c >> >> cd .. >> make all deinstall install clean >> > > With this patch, and the CAM patches still in place, the USB bus works fine, > but hald never sees any attach/detach events, even after restarting it. > > I reverted the CAM patches and tested again with the same result. So this > patch to hald does stop the CAM sg errors, and prevents the USB from wedging. > It just doesn't detect attach events. > > -- > Greg Rivers > _______________________________________________ I'm fairly aware this would be only a workaround rather than a proper solution but isn't it enough to just tell hald to ignore /dev/sg*? What I did was put into /usr/local/etc/hal/fdi/preprobe an fdi I've spotted some time ago (sorry can't recall the original URL) and so far everything works with patched HAL but without any changes to kernel. amd64-CURRENT, desktop, USB mouse and storage devices (flash and HDD). Hope this helps (and sorry for OT again), Vladimir //// 30-ignore-sg.fdi true true true