Re: weird PCI problems...

From: Tigran Aivazian (tigran@veritas.com)
Date: Mon Sep 18 2000 - 07:14:16 EST


On Mon, 18 Sep 2000, Tigran Aivazian wrote:
> But one needs to understand your fix first. Shouldn't that
> !is_cardbus be is_cardbus instead?

Yes, doing it like this works:

--- linux/drivers/pci/pci.c Mon Sep 18 12:35:11 2000
+++ work/drivers/pci/pci.c Mon Sep 18 13:12:20 2000
@@ -714,7 +714,7 @@
                  * We need to blast all three values with a single write.
                  */
                 pci_write_config_dword(dev, PCI_PRIMARY_BUS, buses);
- if (!is_cardbus) {
+ if (is_cardbus) {
                         /* Now we can scan all subordinate buses... */
                         max = pci_do_scan_bus(child);
                 } else {

Martin, is this totally wrong? I.e. will it break the case of multiple
peer PCI buses? Note that with the above I see absolutely all my devices,
like this:

# lspci -tv
-+-[03]---00.0 3Com Corporation: Unknown device 5257
 \-[00]-+-00.0 Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
        +-01.0-[01]----00.0 ATI Technologies Inc 3D Rage P/M Mobility AGP
2x
        +-03.0 Texas Instruments PCI1225
        +-03.1 Texas Instruments PCI1225
        +-07.0 Intel Corporation 82371AB PIIX4 ISA
        +-07.1 Intel Corporation 82371AB PIIX4 IDE
        +-07.2 Intel Corporation 82371AB PIIX4 USB
        +-07.3 Intel Corporation 82371AB PIIX4 ACPI
        +-08.0 ESS Technology ES1978 Maestro 2E
        \-11.0-[02]--+-01.0 Realtek Semiconductor Co., Ltd. RTL-8139
                     +-02.0 Intel Corporation 82557 [Ethernet Pro 100]
                     +-05.0 CMD Technology Inc PCI0646
                     +-07.0 Adaptec AIC-7880U
                     \-08.0 3Com Corporation 3c905C-TX [Fast Etherlink]

Regards,
Tigran

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



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:17 EST