Skip to contentSkip to conversation

PCI on MPC8265

DISCUSSION Tamas Bara 2 participants 2 messages Oct 21, 2003

lore
Share & tools
lore

Tamas Bara

author
#0 lore raw

Hi,

I´m running Linux 2.4.4 on a TQM8260 board with an MPC8265 on it and an Ethernet controller on the PCI Bus.

When Linux scans the PCI Bus it detects the controller multiple times. I could change the for loop to devfn < 9 since I only got the internal host bridge and the controller on the bus:

/* Go find them, Rover! */

for (devfn = 0; devfn < 0x100; devfn += 8) {
	dev0.devfn = devfn;
	pci_scan_slot(&dev0);
}

This works, but I don´t want to change the kernel. So I´m looking for a different solution.

How does the kernel know that it already detected a device before?

Thanks

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hi

I think problen is with the idselect on pci back plane.
Looks like same card is connected to more than one ideselect, so when kernel is doing enumertaion for different idselect, same card is responding and kernel thinks that you have multiple card sitting on pci back plane. In place of changing the kernel, you shall fix your hardware....that is a better solution...

Bhupi

Linux +Hypertransport --> Silicon
www.gdatech.com

Quoted 18 lines · --- Tamas Bara

Hi,

I´m running Linux 2.4.4 on a TQM8260 board with an MPC8265 on it and an Ethernet controller on the PCI Bus.

When Linux scans the PCI Bus it detects the controller multiple times. I could change the for loop to devfn < 9 since I only got the internal host bridge and the controller on the bus:

/* Go find them, Rover! */

for (devfn = 0; devfn < 0x100; devfn += 8) {
	dev0.devfn = devfn;
	pci_scan_slot(&dev0);
}
Quoted 10 lines

This works, but I don´t want to change the kernel. So I´m looking for a different solution.

How does the kernel know that it already detected a device before?

Thanks

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/