Skip to contentSkip to conversation

SATA ICH6M problems on Sharp M4000

DISCUSSION Josh Litherland 4 participants 6 messages Nov 21, 2005 – Nov 22, 2005

lore
Share & tools
lore
#0 lore raw

Trying to get this laptop operational; it has SATA for the hard disc and PATA for the optical drive. The hard drive is wired to the secondary IDE interface, the optical to the primary. As it stands, driving the whole system with the PATA (piix) driver works, but performance for the hard disc is (predictably) extremely poor. With ata_piix driving the hard drive, performance is great, but the optical device is never enumerated. When the piix driver tries to load, the following occurs:

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

We have tried to resolve this through a wide variety of kernel command line options. Tried every combination we could think of of ide0=0x1f0, ide1=0x170, ide0=noprobe, ide1=noprobe, acpi=off, noapic, lapic, pci=routeirq. Tried shaking up module load order and using ide-generic instead of piix. ahci won't bind to the device; throws error -12.

Some information about this system including dmesg and lspci:

http://downloads.emperorlinux.com/research/lkml/sharp_m4000/

Thanks in advance for any advice you can give.

Signature · 2 lines
Josh Litherland ([email protected])
Emperor Linux, Inc.
#1 lore raw
Quoted 20 lines · Josh Litherland

Trying to get this laptop operational; it has SATA for the hard disc and PATA for the optical drive. The hard drive is wired to the secondary IDE interface, the optical to the primary. As it stands, driving the whole system with the PATA (piix) driver works, but performance for the hard disc is (predictably) extremely poor. With ata_piix driving the hard drive, performance is great, but the optical device is never enumerated. When the piix driver tries to load, the following occurs:

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

We have tried to resolve this through a wide variety of kernel command line options. Tried every combination we could think of of ide0=0x1f0, ide1=0x170, ide0=noprobe, ide1=noprobe, acpi=off, noapic, lapic, pci=routeirq. Tried shaking up module load order and using ide-generic instead of piix. ahci won't bind to the device; throws error -12.

Quoted 5 lines

Some information about this system including dmesg and lspci:

http://downloads.emperorlinux.com/research/lkml/sharp_m4000/

Thanks in advance for any advice you can give.

Is there a BIOS option for SATA or AHCI modes, like Compatible mode or Enhanced mode? If so, which mode is it in?

Signature · 1 line
~Randy
#2 lore raw
Quoted 22 lines · Randy.Dunlap
Quoted 21 lines · Josh Litherland

Trying to get this laptop operational; it has SATA for the hard disc and PATA for the optical drive. The hard drive is wired to the secondary IDE interface, the optical to the primary. As it stands, driving the whole system with the PATA (piix) driver works, but performance for the hard disc is (predictably) extremely poor. With ata_piix driving the hard drive, performance is great, but the optical device is never enumerated. When the piix driver tries to load, the following occurs:

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

We have tried to resolve this through a wide variety of kernel command line options. Tried every combination we could think of of ide0=0x1f0, ide1=0x170, ide0=noprobe, ide1=noprobe, acpi=off, noapic, lapic, pci=routeirq. Tried shaking up module load order and using ide-generic instead of piix. ahci won't bind to the device; throws error -12.

Some information about this system including dmesg and lspci:

Quoted 7 lines
Quoted 3 lines

http://downloads.emperorlinux.com/research/lkml/sharp_m4000/

Thanks in advance for any advice you can give.

Is there a BIOS option for SATA or AHCI modes, like Compatible mode or Enhanced mode? If so, which mode is it in?

I have exactly the same problem with Asus W3030V which is also equipped with the ICH6M using the 2.6.14 kernel. There are no SATA/PATA options in BIOS for my laptop.

kernel options used libata.atapi_enabled=1 ide0=noprobe ide1=noprobe

Signature · 3 lines
-
Marek W
Send instant messages to your online friends http://au.messenger.yahoo.com 
#3 lore raw
In reply to Josh Litherland
Quoted 5 lines · Josh Litherland

Trying to get this laptop operational; it has SATA for the hard disc and PATA for the optical drive. The hard drive is wired to the secondary IDE interface, the optical to the primary. As it stands, driving the whole system with the PATA (piix) driver works, but performance for the hard disc is (predictably) extremely poor.

Expected behavior for combined mode, which only allows DMA for SATA.

Disabling legacy mode in BIOS should fix the performance problem, by allowing IDE driver to fully drive PATA (including DMA), and libata to fully drive SATA.

Quoted 3 lines

With ata_piix driving the
hard drive, performance is great, but the optical device is never enumerated.

Expected behavior, since the default for module option atapi_enabled is zero (disabled).

Quoted 7 lines

When the piix driver tries to load, the following occurs:

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

Quoted 5 lines

We have tried to resolve this through a wide variety of kernel command line options. Tried every combination we could think of of ide0=0x1f0, ide1=0x170, ide0=noprobe, ide1=noprobe, acpi=off, noapic, lapic, pci=routeirq. Tried shaking up module load order and using ide-generic instead of piix.

So far everything seems to be expected behavior.

Quoted 1 line

ahci won't bind to the device; throws error -12.

Expected behavior, since your hardware doesn't seem to support AHCI.

Quoted 3 lines

Some information about this system including dmesg and lspci:

http://downloads.emperorlinux.com/research/lkml/sharp_m4000/

In the future, 'lspci -n' and 'lspci -nvvv' is more useful.

Jeff

#4 lore raw
Quoted 2 lines · Jeff Garzik

Expected behavior, since the default for module option atapi_enabled is zero (disabled).

Thanks, turning this on makes everything work as expected. Out of curiosity, in your opinion is atapi in libata still not quite ready for production use ?

Thanks to everyone who helped us track this down.

Signature · 2 lines
Josh Litherland ([email protected])
Emperor Linux, Inc.
#5 lore raw
Quoted 8 lines · Josh Litherland
Quoted 2 lines · Jeff Garzik

Expected behavior, since the default for module option atapi_enabled is zero (disabled).

Thanks, turning this on makes everything work as expected. Out of curiosity, in your opinion is atapi in libata still not quite ready for production use ?

If it was ready for production use, it would be enabled by default.

Jeff