LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-23-2011, 12:34 PM   #1
Rosuav
LQ Newbie
 
Registered: Jul 2011
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
PCI device recognized in BIOS but not always in lspci


Hi! I'm having a spot of trouble getting a second NIC to work in my new Linux box, and was wondering whether there's a way to ascertain whether the card's faulty without installing Windows on the box.

Going into BIOS prior to booting the system shows a card in the slot with vendor and device IDs 10EC:0021, which makes sense since the card is a Realtek RTL8029 (yeah, fairly old but I just need any working NIC to set up a basic router/firewall). The card is one that I've used in the past, but not with Linux (it came out of one of our OS/2 boxes some years ago).

When I boot into Linux, the device sometimes doesn't appear in lspci at all. It seems to appear and disappear.

(It's up now, and lspci is saying that the device id is 8021. I'm going to assume that I misread it off the BIOS screen.)

When it's not there:
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1d.0 USB Controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation Device 1040 (rev a1)
01:00.1 Audio device: nVidia Corporation HDMI Audio stub (rev a1)
02:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 10)
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)

When it is:
$ lspci
... all identical above ...
02:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 10)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8021
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)

So my question has two parts: Firstly, is there a way to force Linux to show me a lower-level view of the PCI bus? It's seemingly not finding the device when the BIOS is. And secondly, where can I find out if device 10EC:8021 is supported by Linux? It seems to be an unrecognized device id; I looked it up on http://www.pcidatabase.com/search.ph...earch_str=8021 and got no results. Other people have reported RTL8029 cards being recognized under Ubuntu (http://ubuntuforums.org/showthread.php?t=1284781 has lspci showing "Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)"), so perhaps this is a different chipset.

I'm using Ubuntu 10.10 amd64, 2.6.35-30-generic kernel.

If it turns out that I need to go buy myself a NIC, so be it. It'd save a lot of hassle if I can use this one though, and Realtek cards have generally been fairly reliable for us.

Any assistance will be much appreciated!
 
Old 07-23-2011, 01:18 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
My guess is the nic is dodgey but you may want to check out your bios setup and make sure plug & play is disabled if there is such a setting. It's not used in linux and has been known to cause problems on occasion.
 
Old 07-23-2011, 01:35 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
/Thinks back 10 years
They disappear when they get an interrupt they don't like. There are a couple of saved options (Update EDID or something like that in the bios). Using 'noapic' on the boot line cut the messing to 16 irqs and they worked - 10 years ago. It's the half assed irqs (22, 47 ) they can't cope with. That hardware was a 90s design.
 
Old 07-23-2011, 04:37 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
lspci doesn't read the bios as far as I recall. It re-reads the pci bus for it's own use.

I'd move the cards around to different slots and re-test.
 
Old 07-24-2011, 08:25 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
8029 is from the last millenium.

The pci cards save irq values etc, and the 8029 won't work with an irq it hasn't saved as one of it's defaults. I had this 10 years back - the thing would work on irq 11 but was invisible on irq 12. It won't like the half-assed irqs things run on these days. I forget how you check this. run lspci -vv and see what it says about the nic when it's not working. Compare this with cat /proc/interrupts
 
Old 08-01-2011, 05:47 AM   #6
Rosuav
LQ Newbie
 
Registered: Jul 2011
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: Disabled
In the end I gave up on trying to get this card going and brute-forced the issue by getting a new one. Thanks for the advice, all; unfortunately I couldn't pinpoint the cause any better. I'll call this "problem solved" even though technically it's just "problem dodged".
 
Old 08-01-2011, 05:54 AM   #7
Rosuav
LQ Newbie
 
Registered: Jul 2011
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hmm. The email told me to use Thread Tools, Mark as Solved, but I'm not finding that there. Perhaps I need to earn the right to mark threads as solved? In any case, the issue's closed unless someone has some brilliant ideas - I do still have the card, if anything needs to be tried, but it's now a mere curiosity.
 
Old 08-01-2011, 07:05 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Hmm. The email told me to use Thread Tools, Mark as Solved, but I'm not finding that there. Perhaps I need to earn the right to mark threads as solved? In any case, the issue's closed unless someone has some brilliant ideas - I do still have the card, if anything needs to be tried, but it's now a mere curiosity.
It's usually above the first post on right side.
 
Old 08-01-2011, 07:12 AM   #9
Rosuav
LQ Newbie
 
Registered: Jul 2011
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ah, strange. I had Thread Tools there with only three entries in it (Show Printable, Email this Page, and Unsubscribe), but now the same menu is there with more options. There's also another drop-down there, Rate Thread, which wasn't there before. Perhaps it's something to do with my having made enough posts, or maybe it's a difference with no longer being the last poster in the thread... anyway, there it is.

Worked now. Thanks EDDY1.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does This Board Have PCI Express (lspci) ezekieldas Linux - Hardware 3 03-31-2010 01:40 PM
PCI Card not detected by lspci dsledge Linux - Hardware 5 11-21-2007 08:11 AM
Audio in lspci; but not recognized in /var/log/dmesg fof3 Linux - General 3 11-04-2007 08:30 AM
pci card not coming up in lspci stabu Linux - Wireless Networking 7 09-10-2004 06:07 PM
pci: bios reporting unknown device thegman54 Linux - Networking 0 08-05-2001 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration