Re: [PATCH 2.6.7] new NVIDIA libata SATA driver

From: Jeff Garzik
Date: Wed Jun 16 2004 - 20:48:45 EST


Andrew Chew wrote:
From: Jeff Garzik [mailto:jgarzik@xxxxxxxxx]


If silicon isn't available yet, let's just remove those PCI IDs. That way we can ensure that these are libata only, without two drivers sharing the same PCI ids.


If that's the case, I'd rather the CK804 and MCP04 SATA device IDs be
added to sata_nv, since we want distributions to support these SATA
controllers when silicon does become available.

OK


Removing IDs from amd74xx.c is a bad idea,
it breaks boot on systems already using these IDs.

I assume these systems will be able to boot using the libata subsystem. Is that a bad assumption?

They can, but consider a system that uses 2.6.7 (IDE driver) then boots into 2.6.8 (libata driver): the drives move from /dev/hdX to /dev/sdX. That breaks stuff not using LABEL= in bootloader config and fstab.


That's true. I kinda chalk this up as an inevitable kernel upgrade
issue (they'll be getting support for NVIDIA SATA under libata with
eventual device hotplug support, at the cost of some system
reconfiguration). Is there a good solution?

None really, other than trying to make sure we only add new SATA hardware support under libata.

Most users with Red Hat or SuSE or whatever don't know enough other than "I booted the new Fedora 2.6.x kernel, and it panic'd when it tried to mount root filesystem"

Your patch represented the _ideal_, but unfortunately once added to the IDE driver, those PCI ids should not be removed in the middle of a stable kernel series. If both drivers were /dev/sdX, or /dev/hdX, moving the PCI ids to another driver wouldn't be as big of a deal.


Overall... no worries. I have to deal with this issue for a couple other chipsets, so I'll handle them all at the same time.

Jeff

-
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/