2006-02-24 07:43:18

by Vitezslav Samel

[permalink] [raw]
Subject: [libata] CD on PATA: "ReadCD MMC 12" command fails

Hi!

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.

Cheers,
Vita


Attachments:
(No filename) (547.00 B)
cdda2wav.output (4.37 kB)
cdda2wav.strace (4.49 kB)
Download all attachments

2006-02-25 15:13:21

by Matthias Andree

[permalink] [raw]
Subject: Re: [libata] CD on PATA: "ReadCD MMC 12" command fails

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