Re: [PATCH] ACPI driver support for pata

From: Robert Hancock
Date: Thu Feb 22 2007 - 00:47:38 EST


Alan wrote:
- Add a driver for motherboard ACPI method devices
- Link it after normal drivers so ACPI is not preferred
- Hook the AMD driver to prefer ACPI for the Nvidia devices if ACPI is
active
- While we are at it fix up the simplex clear the AMD driver.

Depends upon the set_mode -> do_set_mode wrapper patch

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>

I tried out 2.6.21-rc1 with the pata_acpi patch. First off, when you enable pata_acpi, it appears that the Fedora mkinitrd stuff decides that that should be loaded as the first driver. On boot it promptly attempts to attach to all of the ATA controllers, including the nForce SATA controllers, which somehow it fails to actually drive causing a failure to mount the root filesystem. I got around that by blacklisting pata_acpi in /etc/modprobe.conf before installing the kernel and un-blacklisting it afterwards, so it wouldn't make the initrd try and load it, but there must be a better solution.

It does seem to drive the PATA controllers, but the cable detection doesn't seem to be working:

scsi5 : pata_acpi
ata5.00: ATAPI, max UDMA/66
ata5.00: limited to UDMA/33 due to 40-wire cable
ata5.00: configured for UDMA/33

I can assure you that is an 80-wire cable on that device :-) I suppose next step is adding debug to see where it is having issues?

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/