Discussion:
linux kernel not seeing pci device
(too old to reply)
m***@gmail.com
2007-01-06 02:07:03 UTC
Permalink
i have a home grown pci card that can be detected by u-boot.
('pci' command shows vendor and device id of my card)

but linux kernel doens't detect the card. (lspci or scanpci command
doesn't display the card)

what's the best way to troubleshoot this problem?

thank you in advance..
Michael Schnell
2007-01-07 07:36:48 UTC
Permalink
If you use a standard distribution the card's parameters should be
available in the /proc file system. With SUSE even visible with Yast.

-Michael
e***@no.spam
2007-01-08 05:39:43 UTC
Permalink
Post by Michael Schnell
If you use a standard distribution the card's parameters should be
available in the /proc file system. With SUSE even visible with Yast.
But lspci is already reading /proc/bus/pci/devices for him. If it's
not showing up there, he probably doesn't have the hardware working.

--
http://www.spinics.net/lists/
Michael Schnell
2007-01-08 09:48:15 UTC
Permalink
Post by e***@no.spam
But lspci is already reading /proc/bus/pci/devices for him. If it's
not showing up there, he probably doesn't have the hardware working.
I suppose in a PC, all these don't do hardware access themselves but
just gather informations from the PCI-Bios that probes the hardware when
starting the PC. I don't know how hot-plugging PCI works.

Maybe the PCI-Bios can/needs to be configured for PCI accesses and/or
somehow shows what it finds.

-Michael
m***@gmail.com
2007-01-08 17:37:53 UTC
Permalink
hi everyone, i know the hardware is working because uboot can read the
card's vendor id/and device id. forgot to mention that i am on MIPS
platform.

lastweek i downloaded scanpci utility to scan pci and the card didn't
show up.
i am wondering at this point --may be uboot takes all pci devices out
of reset but linux doesn't.

i will probably have to look into the uboot and kernel code and
compare...
Post by Michael Schnell
Post by e***@no.spam
But lspci is already reading /proc/bus/pci/devices for him. If it's
not showing up there, he probably doesn't have the hardware working.
I suppose in a PC, all these don't do hardware access themselves but
just gather informations from the PCI-Bios that probes the hardware when
starting the PC. I don't know how hot-plugging PCI works.
Maybe the PCI-Bios can/needs to be configured for PCI accesses and/or
somehow shows what it finds.
-Michael
e***@no.spam
2007-01-09 04:28:49 UTC
Permalink
Post by m***@gmail.com
hi everyone, i know the hardware is working because uboot can read the
card's vendor id/and device id.
Have you looked at the uboot source to see what it is doing?
Post by m***@gmail.com
forgot to mention that i am on MIPS platform.
That shouldn't matter.
Post by m***@gmail.com
lastweek i downloaded scanpci utility to scan pci and the card didn't
show up.
i am wondering at this point --may be uboot takes all pci devices out
of reset but linux doesn't.
Check the source.
Post by m***@gmail.com
i will probably have to look into the uboot and kernel code and
compare...
Yep.

--
http://www.spinics.net/lists/mips/

John Fusco
2007-01-09 02:28:26 UTC
Permalink
Post by m***@gmail.com
i have a home grown pci card that can be detected by u-boot.
('pci' command shows vendor and device id of my card)
but linux kernel doens't detect the card. (lspci or scanpci command
doesn't display the card)
what's the best way to troubleshoot this problem?
thank you in advance..
Is it safe to assume that lspci works? You do see devices listed with
lspci. I have seen lspci fail to work because of kernel config changes.
Just for grins, you might want to check sysfs.

grep <your vendor ID in hex> /sys/bus/pci/devices/*/vendor

Also look at /var/log/dmesg and see if your device is mentioned there.

Good luck.
John
e***@no.spam
2007-01-09 04:22:21 UTC
Permalink
Post by m***@gmail.com
but linux kernel doens't detect the card.
Which linux kernel?

--
http://www.spinics.net/lists/kernel/
Continue reading on narkive:
Loading...