From owner-freebsd-current@FreeBSD.ORG Sun Jun 26 16:35:24 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 18019106564A for ; Sun, 26 Jun 2011 16:35:24 +0000 (UTC) (envelope-from gcr+freebsd-current@tharned.org) Received: from roadkill.tharned.org (roadkill.tharned.org [75.145.12.185]) by mx1.freebsd.org (Postfix) with ESMTP id C97808FC0A for ; Sun, 26 Jun 2011 16:35:23 +0000 (UTC) Received: from badger.tharned.org (badger.tharned.org [10.10.10.23]) (authenticated bits=0) by roadkill.tharned.org (8.14.4/8.14.4) with ESMTP id p5QGZHGB090935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Jun 2011 11:35:17 -0500 (CDT) (envelope-from gcr+freebsd-current@tharned.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tharned.org; s=2011; t=1309106118; bh=dKeSZFG35tS7TO7zjyLPLJISf8HV8+DYli4H/lNHkQs=; l=1009; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=VLJQpEsBCCaGSe7Mw3SlVTqtb9X2zc3q4OjYIJMRGe2JMOrwFnkogDxbovEYi3mrC tWZmJyCw950V7uNuS6x76eBTskQBn4amqKOrQM7gQMmAJ4ic2eGGuZrYldpdNQ7mUW hvRVOTkf2xS/bbMcG2Rm6Hx8lnyoDDxqoVJt4Mmc= Date: Sun, 26 Jun 2011 11:35:17 -0500 (CDT) From: Greg Rivers To: Hans Petter Selasky In-Reply-To: <201106261343.53522.hselasky@c2i.net> 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; format=flowed; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (roadkill.tharned.org [75.145.12.185]); Sun, 26 Jun 2011 11:35:18 -0500 (CDT) Cc: freebsd-current@freebsd.org 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: Sun, 26 Jun 2011 16:35:24 -0000 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