[Linux-ia64] pci/pci bus not seen with kernel 2.4.10

From: Xavier Bru <Xavier.Bru_at_bull.net>
Date: 2001-10-03 02:24:51
I have problems with pci/pci bridge not seen with kernel 2.4.10 on
ia64 (was OK on 2.4.9). This is due to modifications in ACPI driver:
the acpi_cf_associate_prt_to_bus() routine calls 
    acpi_os_read_pci_configuration()  with width = 1, but the
acpi_os_read_pci_configuration() routine expects width = 8 for 1 byte.

I patched and could get the pci/pci buses configured.

--- acpiconf.c-orig    Mon Oct  1 18:39:26 2001
+++ acpiconf.c  Tue Oct  2 18:32:23 2001
@@ -364,7 +364,7 @@
        pci_id.function = (u16)(devfn & 0xffff);
 
        status = acpi_os_read_pci_configuration(&pci_id, PCI_PRIMARY_BUS,
-                                               &bn, 1);
+                                             &bn, 8);
        if (ACPI_FAILURE(status)) {
                *retbusnum = rpb->rpb_busnum + 1;
                printk("Acpi cfg:%s pci read fail=0x%x. b:df:a=%x:%x:%x\n",
@@ -378,7 +378,7 @@
 
 
        status = acpi_os_read_pci_configuration(&pci_id, PCI_SECONDARY_BUS,
-                                               &bn, 1);
+                                               &bn, 8);
        if (ACPI_FAILURE(status)) {
                *retbusnum = rpb->rpb_busnum + 1;
                printk("Acpi cfg:%s pci read fail=0x%x. b:df:a=%x:%x:%x\n",

-- 

 Sincères salutations.
_____________________________________________________________________
 
Xavier BRU                 BULL ISD/R&D/INTEL office:     FREC B1-297
tel : +33 (0)4 76 29 77 45                    http://www-frec.bull.fr
fax : +33 (0)4 76 29 77 70                 mailto:Xavier.Bru@bull.net
addr: BULL, 1 rue de Provence, BP 208, 38432 Echirolles Cedex, FRANCE
_____________________________________________________________________
Received on Tue Oct 02 09:25:03 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:05 EST