From owner-freebsd-current@FreeBSD.ORG Sun Jan 30 13:57:50 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 C91CC1065672 for ; Sun, 30 Jan 2011 13:57:50 +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 5EE618FC15 for ; Sun, 30 Jan 2011 13:57:50 +0000 (UTC) Received: from p57918c42.dip.t-dialin.net ([87.145.140.66] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PjXmj-0000cy-2K; Sun, 30 Jan 2011 14:57:45 +0100 Message-ID: <4D456E51.3040207@gwdg.de> Date: Sun, 30 Jan 2011 14:57:37 +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: Hans Petter Selasky References: <4D30125C.70607@gwdg.de> <4D3069DC.5040304@gwdg.de> <201101142010.25172.hselasky@c2i.net> In-Reply-To: <201101142010.25172.hselasky@c2i.net> 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: freebsd-current@freebsd.org, marcus@freebsd.org 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: Sun, 30 Jan 2011 13:57:51 -0000 On 14.01.2011 20:10 (UTC+1), Hans Petter Selasky wrote: > Marcus, > > Can you have a look at this? Are there any news? Thanks, Rainer > --HPS > > On Friday 14 January 2011 16:21:00 Rainer Hurling wrote: >> 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 >> >> >> >> >> >> >> >> >> >> > int="0x0716"> >> > type="bool">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.