kernel_optimize_test/arch/i386/pci
Alan Cox 368c73d4f6 PCI: quirks: fix the festering mess that claims to handle IDE quirks
The number of permutations of crap we do is amazing and almost all of it
has the wrong effect in 2.6.

At the heart of this is the PCI SFF magic which says that compatibility
mode PCI IDE controllers use ISA IRQ routing and hard coded addresses
not the BAR values. The old quirks variously clears them, sets them,
adjusts them and then IDE ignores the result.

In order to drive all this garbage out and to do it portably we need to
handle the SFF rules directly and properly. Because we know the device
BAR 0-3 are not used in compatibility mode we load them with the values
that are implied (and indeed which many controllers actually
thoughtfully put there in this mode anyway).

This removes special cases in the IDE layer and libata which now knows
that bar 0/1/2/3 always contain the correct address. It means our
resource allocation map is accurate from boot, not "mostly accurate"
after ide is loaded, and it shoots lots of code. There is also lots more
code and magic constant knowledge to shoot once this is in and settled.

Been in my test tree for a while both with drivers/ide and with libata.
Wants some -mm shakedown in case I've missed something dumb or there are
corner cases lurking.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-12-01 14:36:56 -08:00
..
acpi.c [PATCH] PCI: arch/i386/pci/acpi.c: use for_each_pci_dev 2006-01-09 12:13:15 -08:00
common.c PCI: Revert "PCI: i386/x86_84: disable PCI resource decode on device disable" 2006-11-02 23:02:24 -08:00
direct.c [PATCH] i386: Fix PCI BIOS config space access 2006-10-05 18:47:22 +02:00
early.c [PATCH] x86: Allow disabling early pci scans with pci=noearly or disallowing conf1 2006-09-26 10:52:41 +02:00
fixup.c PCI: quirks: fix the festering mess that claims to handle IDE quirks 2006-12-01 14:36:56 -08:00
i386.c PCI: Revert "PCI: i386/x86_84: disable PCI resource decode on device disable" 2006-11-02 23:02:24 -08:00
init.c [PATCH] i386: Fix PCI BIOS config space access 2006-10-05 18:47:22 +02:00
irq.c [PATCH] fix via586 irq routing for pirq 5 2006-11-14 09:09:27 -08:00
legacy.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
Makefile [PATCH] x86: Move direct PCI scanning functions out of line 2006-09-26 10:52:41 +02:00
mmconfig.c Revert "[PATCH] i386: Add MMCFG resources to i386 too" 2006-11-08 10:09:28 -08:00
numa.c [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
pcbios.c [PATCH] arch: use list_move() 2006-06-26 09:58:17 -07:00
pci.h PCI: Revert "PCI: i386/x86_84: disable PCI resource decode on device disable" 2006-11-02 23:02:24 -08:00
visws.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00