From: Matthias Andree Subject: Re: [libata] CD on PATA: "ReadCD MMC 12" command fails Date: Sat, 25 Feb 2006 16:13:16 +0100 Message-ID: <20060225151315.GA21887@merlin.emma.line.org> References: <20060224074310.GA1311@pc11.op.pod.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060224074310.GA1311@pc11.op.pod.cz> Sender: linux-kernel-owner@vger.kernel.org To: Jeff Garzik , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Alan Cox List-Id: linux-ide@vger.kernel.org On Fri, 24 Feb 2006, =?ISO-8859-2?Q?V=EDt=ECzslav?= Samel wrote: > I'm trying to rip some music CD with cdda2wav, but that fails. I have "LG > GSA-4165B" (PATA drive) connected on 8086:24db (Intel ICH5 IDE controller) > using ata_piix. > > cdda2wav first fails with ENOMEM (16 times) and then with EDOM till the end of > the track in response to the "ReadCD MMC 12" (code 0xbe) SG_IO command (see > attached output and strace). Ripping on plain SCSI CD drive works OK. > > Tested on 2.6.16-rc4 and alans 2.6.16-rc4-ide2. I also applied your fix > mailed to LKML on Tue, 21 Feb 2006 00:17:14 -0500. Is cdda2wav installed setuid-root? If so, try removing that flag and running cdda2wav with sudo. The ENOMEM might be related to libscg making bogus assumptions about mlockall(). -- Matthias Andree