From owner-freebsd-current@FreeBSD.ORG Thu Jun 17 08:14:48 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 08A6116A4CE; Thu, 17 Jun 2004 08:14:48 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i5H8ElZe016121; Thu, 17 Jun 2004 04:14:47 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i5H8ElhU016120; Thu, 17 Jun 2004 04:14:47 -0400 (EDT) (envelope-from green) Date: Thu, 17 Jun 2004 04:14:46 -0400 From: Brian Fundakowski Feldman To: current@FreeBSD.org Message-ID: <20040617081446.GA15918@green.homeunix.org> References: <20040615055940.GA1016@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040615055940.GA1016@green.homeunix.org> User-Agent: Mutt/1.5.6i cc: sos@FreeBSD.org Subject: Re: ATAPICAM hangs with cdparanoia X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 17 Jun 2004 08:14:48 -0000 On Tue, Jun 15, 2004 at 01:59:40AM -0400, Brian Feldman wrote: > Trying to rip a brand new CD with cdparanoia today, I've run into hangs > during the rip (read/seek within a track) process. Sometimes it's a > "cbwait" hang, but it seems I can also get it to lock hard at the console. > Does anyone have experience debugging ATAPICAM/ATA/CAM that will come in > handy trying to figure out why this happens? > > The most information I have right now is that it was a generic IO (read) > CCB, and when I looked at the union ccb inside the process doing the > xpt read request, "entries" was 0. Doing a camcontrol reset all locked > things up at that point. Alright, so I figured out parts of the problem. After upgrading my Pioneer DVR-107's firmware *, I was able to get FreeBSD to boot most of the time (instead of hang/error out most of the time), with a CD in the drive. Next, I found out that the timeouts were 1000 times too long with atapicam, so fixing that certainly helped. There's still a lock-up issue somewhere, and it's hard to pin down. Cdparanoia eventually falls back to trying to read where it's erroring out one sector at a time, then after that finally fails it ends up closing the device or resetting it or something (obtuse code, that program is), and this is causing the REAL hang. I can't get any further because even though I have CAMDEBUG in the kernel, it does me a fat lot of good when -CURRENT can't even output printf() to the console anymore. I'd like to see the request that was made right before the system hangs fully, but I never see bold output on ttyv0 anymore on any of my systems and I REALLY NEED THIS UNBROKEN :( Is this related to kern.log_console_output, which is undocumented? Any help would once again be much appreciated. * I ended up having to take mtools, mformat a new 2.88MB disk with an MS-DOS boot disk boot sector and set of system files, mcopy over and set up HIMEM64.EXE, TDSK.EXE, and the firmware flash stuff, and mkisofs -b it into a bootable CD image.... -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\