2004-10-11 18:04:38

by Douglas McNaught

[permalink] [raw]
Subject: CDROM support in ata_piix?

I have an IBM server with a SATA controller listed as:

0000:00:1f.2 IDE interface: Intel Corp. 6300ESB SATA Storage Controller (rev 02)

Debian's 2.6.8 kernel with libata works fine, except that the CDROM
(which is on a PATA port) does not appear as a SCSI device. It's also
not seen by the regular IDE driver, because ata_piix has already
grabbed the i/o resources--I get:

ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
ide1: I/O resource 0x170-0x177 not free.
ide1: ports already in use, skipping probe

Is there any way to get ata_piix to register my CDROM, or
alternatively to have the regular IDE driver handle it?

This seems to be a known problem (it's filed as a Debian bug)--is it
fixed in 2.6.9-rc4? I had a look at the -rc4 patch but couldn't tell
from the diff whether there's anything CDROM-related in there...

Thanks,
Doug


2004-10-15 19:23:08

by Jeff Garzik

[permalink] [raw]
Subject: Re: CDROM support in ata_piix?

Doug McNaught wrote:
> I have an IBM server with a SATA controller listed as:
>
> 0000:00:1f.2 IDE interface: Intel Corp. 6300ESB SATA Storage Controller (rev 02)
>
> Debian's 2.6.8 kernel with libata works fine, except that the CDROM
> (which is on a PATA port) does not appear as a SCSI device. It's also
> not seen by the regular IDE driver, because ata_piix has already
> grabbed the i/o resources--I get:
>
> ide0: I/O resource 0x1F0-0x1F7 not free.
> ide0: ports already in use, skipping probe
> ide1: I/O resource 0x170-0x177 not free.
> ide1: ports already in use, skipping probe
>
> Is there any way to get ata_piix to register my CDROM, or
> alternatively to have the regular IDE driver handle it?
>
> This seems to be a known problem (it's filed as a Debian bug)--is it
> fixed in 2.6.9-rc4? I had a look at the -rc4 patch but couldn't tell
> from the diff whether there's anything CDROM-related in there...

Well, two things are going on:

You may need to set CONFIG_BLK_DEV_SATA (or unset it) depending on your
configuration.

Once you get past that, you need to apply the latest libata patch to fix
a related combined mode bug.

http://lkml.org/lkml/2004/10/14/336

Jeff



2004-10-15 20:56:00

by Douglas McNaught

[permalink] [raw]
Subject: Re: CDROM support in ata_piix?

Jeff Garzik <[email protected]> writes:

> Doug McNaught wrote:
>> Is there any way to get ata_piix to register my CDROM, or
>> alternatively to have the regular IDE driver handle it? This seems
>> to be a known problem (it's filed as a Debian bug)--is it
>> fixed in 2.6.9-rc4? I had a look at the -rc4 patch but couldn't tell
>> from the diff whether there's anything CDROM-related in there...
>
> Well, two things are going on:
>
> You may need to set CONFIG_BLK_DEV_SATA (or unset it) depending on
> your configuration.

I will look into this.

> Once you get past that, you need to apply the latest libata patch to
> fix a related combined mode bug.
>
> http://lkml.org/lkml/2004/10/14/336

I will probably wait until this trickles into a Linus kernel--I don't
have an immediate need for the CDROM (and I can boot 2.4 if I have
to).

Thanks very much for the response!

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863