Re: [2.6.18-git] Lost all PCI devices
- From: Andi Kleen <ak@xxxxxxx>
- Date: Sat, 30 Sep 2006 20:11:13 +0200
On Saturday 30 September 2006 19:42, Luca Tettamanti wrote:
Hi Andi,
I'm testing current git on my notebook, but kernel doesn't find any
PCI device: no video card, no IDE, nothing.
Can you test it with this patch please?
-Andi
Fix PCI BIOS config space access
Got broken by a earlier change.
Signed-off-by: Andi Kleen <ak@xxxxxxx>
Index: linux/arch/i386/pci/direct.c
===================================================================
--- linux.orig/arch/i386/pci/direct.c
+++ linux/arch/i386/pci/direct.c
@@ -256,6 +256,8 @@ static int __init pci_check_type2(void)
void __init pci_direct_init(int type)
{
+ if (type == 0)
+ return;
printk(KERN_INFO "PCI: Using configuration type %d\n", type);
if (type == 1)
raw_pci_ops = &pci_direct_conf1;
Index: linux/arch/i386/pci/init.c
===================================================================
--- linux.orig/arch/i386/pci/init.c
+++ linux/arch/i386/pci/init.c
@@ -28,6 +28,10 @@ static __init int pci_access_init(void)
#ifdef CONFIG_PCI_DIRECT
pci_direct_init(type);
#endif
+ if (!raw_pci_ops)
+ printk(KERN_ERR
+ "PCI: Fatal: No config space access function found\n");
+
return 0;
}
arch_initcall(pci_access_init);
-
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/
- Follow-Ups:
- Re: [2.6.18-git] Lost all PCI devices
- From: Luca Tettamanti
- Re: [2.6.18-git] Lost all PCI devices
- References:
- [2.6.18-git] Lost all PCI devices
- From: Luca Tettamanti
- [2.6.18-git] Lost all PCI devices
- Prev by Date: Re: 2.6.18-rt1
- Next by Date: [patch] espfix cleanup take 3
- Previous by thread: [2.6.18-git] Lost all PCI devices
- Next by thread: Re: [2.6.18-git] Lost all PCI devices
- Index(es):
Relevant Pages
- Re: [2.6.18-git] Lost all PCI devices
... I'm testing current git on my notebook, but kernel doesn't find any ...
PCI device: no video card, no IDE, nothing. ... (Linux-Kernel) - PROBLEM: Panic booting from USB disk in ioremap.c (line 81)
... appears to be PCI device enumeration, ... This does not occur when booting
from the hard disk, ... We have tried to circumvent the problem by changing the kernel PCI
... 0dfff000-0dffffff: ACPI Non-volatile Storage ... (Linux-Kernel) - PROBLEM: in.tftpd + iptables kernel panic
... I am running a stable debian install with tftpd 0.17-9 kernel 2.4.26 ... While
backing up cisco configs via tftp I caused a kernel panic ... Before first symbol
... 4000-400f: PCI device 1039:5513 ... (Linux-Kernel) - Re: rmmod while module is in use
... > - a PCI device ... > any clue as to how to protect from module unloading
while there is still some ... The kernel code is supposed to prevent module removal when
it ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH] Add PCI_DEVICE_TABLE macro
... the same pattern across the entire kernel. ... array as static const and puts
it into the __devinitconst section. ... PCI_DEVICE - macro used to describe a specific
pci device ... (Linux-Kernel)