From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NJ3k4-0001IY-45 for garchives@archives.gentoo.org; Fri, 11 Dec 2009 11:33:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A738E04D2; Fri, 11 Dec 2009 11:32:30 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id DFDB1E04D2 for ; Fri, 11 Dec 2009 11:32:29 +0000 (UTC) Received: from math.princeton.edu ([128.112.18.16] helo=sep.dynalias.net) by sentinel.math.Princeton.EDU with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NJ3jY-0006rA-MG for gentoo-user@lists.gentoo.org; Fri, 11 Dec 2009 06:32:29 -0500 Received: by sep.dynalias.net (Postfix, from userid 1001) id 7BE36589B43; Fri, 11 Dec 2009 06:36:06 -0500 (EST) Date: Fri, 11 Dec 2009 06:36:06 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] 2.6.31 vfat driver broken? Message-ID: <20091211113606.GA18458@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <200912092317.41998.Warp_7@gmx.de> <20091210110926.GA113@princeton.edu> <200912110318.23113.Warp_7@gmx.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912110318.23113.Warp_7@gmx.de> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 87ab00cd-1908-4173-aff5-c00fa7399256 X-Archives-Hash: b4fe632ad7ade4bf847ec1cd2bfa095c On Fri, Dec 11, 2009 at 03:18:20AM +0100, Penguin Lover Frank Steinmetzger squawked: > Am Donnerstag, 10. Dezember 2009 schrieb Willie Wong: > > > When you plug-in your device, what does > > /sys/block/sdb/queue/max_hw_sectors_kb say? > > 120 Okay, this checks out with the > hw_sector_size says 512 > > I did another "test": I opened the syslog in continuous output (tail -f) and > watched it while copying a file of 350 MB. Coincidentally it started getting > said error "bio too big device sdb (248 > 240)" at about 120 MB (according to > the progress bar of KDE's copy dialogue). Sorry, I may not have been clear in my previous e-mail. You showed me /sys/..../max_hw_sectors_kb and /sys/..../hw_sector_size But what does /sys/..../max_sectors_kb contain? (Also, if possible, can you also show me the same values for the 2.6.30 kernel?) If the max_sectors_kb is bigger than max_hw_sectors_kb, then something that shouldn't happen happened and the kernel is trying to send more data than the driver can handle. And that might be where you got your error from. If that is the case, a work around is to manually, as root, 'echo 120 > /sys/block/sdb/queue/max_sectors_kb'. Now, like I said, it shouldn't happen that max_sectors is > max_hw_sectors, since they should've been set equal the the block device is detected. If the two values both show 120, please try changing max_sectors_kb to a smaller multiple of 8 (64 is a candidate), and see if the problem persists. If this fixes the error, there is an off-by-one kernel bug, and you should file it either at b.g.o. to pass it upstream, or if you are brave (and running a vanilla kernel) send it directly to LKML. If neither of these works, then I am on the completely wrong track. Cheers, W -- Where do you get Mercury? H.G. Wells Sortir en Pantoufles: up 1099 days, 10:14