From owner-freebsd-current@FreeBSD.ORG Fri Jan 14 19:10: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 A4DE510656A4; Fri, 14 Jan 2011 19:10:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id A3C928FC13; Fri, 14 Jan 2011 19:10:23 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=uKwGHVgX/XpzFB6WQV71hE8vVR+wz8PlNBntNPh/OpQ= c=1 sm=1 a=dSpJOiu3KQYA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=mLayC3d9PHenl3CEIBsA:9 a=b50nIr-tBGx3ohjRpBUA:7 a=dFbuIgVa5M2sQNMxO6gTjbqCALEA:4 a=PUjeQqilurYA:10 a=SV7veod9ZcQA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 73868592; Fri, 14 Jan 2011 20:10:21 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 14 Jan 2011 20:10:25 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <4D30125C.70607@gwdg.de> <4D3069DC.5040304@gwdg.de> In-Reply-To: <4D3069DC.5040304@gwdg.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201101142010.25172.hselasky@c2i.net> Cc: 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: Fri, 14 Jan 2011 19:10:24 -0000 Marcus, Can you have a look at this? --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. > > Thanks in advance, > Rainer Hurling > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"