From owner-freebsd-current@FreeBSD.ORG Fri Jan 14 15:21:07 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 41E0D1065670 for ; Fri, 14 Jan 2011 15:21:07 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id CBED78FC14 for ; Fri, 14 Jan 2011 15:21:06 +0000 (UTC) Received: from p57918e5f.dip.t-dialin.net ([87.145.142.95] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PdlSa-0002AL-Re; Fri, 14 Jan 2011 16:21:05 +0100 Message-ID: <4D3069DC.5040304@gwdg.de> Date: Fri, 14 Jan 2011 16:21:00 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.2.13) Gecko/20101218 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4D30125C.70607@gwdg.de> In-Reply-To: <4D30125C.70607@gwdg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: Hans Petter Selasky Subject: Re: Endless CAM messages with recent CURRENT 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: Fri, 14 Jan 2011 15:21:07 -0000 After looking around I had been able to localise the cause for the described messages, see below: On 14.01.2011 10:07 (UTC+1), Rainer Hurling wrote: > Today I updated my 9.0-CURRENT system (amd64) to revision 199506: After > rebooting I get the following messages two times per second in an > endless run: > > > --------------------------------------------- > ... > Jan 14 09:37:47 krabat kernel: (sg1:umass-sim0:0:0:0): > cam_periph_release_locked: release 0xfffffe0009f41200 when refcount is zero > Jan 14 09:37:47 krabat kernel: > Jan 14 09:37:48 krabat kernel: (sg2:umass-sim0:0:0:1): > cam_periph_release_locked: release 0xfffffe0009f41100 when refcount is zero > Jan 14 09:37:48 krabat kernel: > ... > --------------------------------------------- When turning off hald no more of these messages appear. hald is trying to poll the card reader, but it does not like this. So prohibiting the polling in /usr/local/share/hal/fdi/preprobe/20thirdparty/ solves my problem: #cat 10-broken-usb-card-reader.fdi false > sg1 and sg2 are devices from my front panel card reader Silverstone > SST-FP35B: > > #camcontrol devlist > [..snip..] > at scbus6 target 0 lun 0 (sg1,pass3,da0) > at scbus6 target 0 lun 1 (sg2,pass4,da1) > > > Is it possible that the last changes in usb code (xhci) or in cam code > are responsible for this? Does anyone else observe this behaviour? A more generic approach would be to integrate the polling info into /usr/local/share/hal/fdi/preprobe/10osvendor/20-broken-usb-sticks.fdi. Is anyone willing to integrate the code (.fdi file or some quirks) in the usb stuff? In that case Linux is offering some more info about this device: #lssub Bus 002 Device 002: ID05e3:0716 Genesys Logic, Inc. USB2.0 Multislot Card Reader/Writer idVendor 0x05e3 Genesys Logic, Inc. #usb-devices T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver=2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=05e3 ProdID=0176 Rev=97.44 S: Product=USB Storage S: SerialNumber=000000009744 C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage Note, that the card reader from Benesys Logic is only one device of some more (firewire, eSATA, USB slots ...), which are provided from the 'Silverstone SST-FP35B' front panel access unit. > Please let me know if you need more info or if I can test something. Thanks in advance, Rainer Hurling