PCI: device not available (can't reserve [mem 0x00000000-0x0003ffff])

Ravi Gupta dceravigupta at gmail.com
Thu Sep 2 01:07:53 EST 2010


Hi,

I am facing a strange problem with a PCI express device. I have written a
simple PCI driver(pci_skel sample driver for LDD book) just to detect a PCI
device and read its vender and device id from its configuration space. When
I connect the device on a standard i386 based PC, it works fine, as
expected. But when I run the same driver on the MPC837xERDB board(powerpc
arch based processor from freescale), it gives me error. Below is the O/P on
both the architectures. Could anyone suggest what can be the cause of this
problem? I am new to linux device driver development.

i386 output.

[  921.097050] PCI driver: Init function
[  921.097415] PCI driver: Probe function
[  921.097442] pci_skel 0000:04:00.0: PCI INT A -> GSI 18 (level, low) ->
IRQ 18
[  921.097453] PCI driver Vendor ID = 1204
[  921.097462] PCI driver Device ID = e250
[  921.097471] PCI driver Revision = 0


Powerpc output

PCI driver: Init function
PCI driver: Probe function
pci_skel 0001:02:00.0: device not available (can't reserve [mem
0x00000000-0x0003ffff])
Unable to Enable PCI device:-22
pci_skel: probe of 0001:02:00.0 failed with error -22


Thanks in advance
Ravi Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100901/45015220/attachment.html>


More information about the Linuxppc-dev mailing list