[realtek] Device or resource busy

tk timk@harbornet.com
Mon, 24 Sep 2001 22:13:08 -0700


FYI,
Linux 2.2.14-5.0
PnP OS not enabled in Bios (Award Modular Bios v6.00PG)

I ran rtl8139-diag with the '-p' and '-t' options because it would not work
otherwise.
So, I first used the i/o address found in windows, where the card works:
    ./rtl8139-diag -t 2 -p 1400 -e >& diag-1.log
This returned the following which I piped into a file:
--------
rtl8139-diag.c:v2.04 8/08/2001 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Assuming a SMC1211TX EZCard 10/100 (RealTek RTL8139) adapter at 0x1400.
Decoded EEPROM contents:
   PCI IDs -- Vendor 0xffff, Device 0xffff.
   PCI Subsystem IDs -- Vendor 0xffff, Device 0xffff.
   PCI timer settings -- minimum grant 255, maximum latency 255.
  General purpose pins --  direction 0xff  value 0xff.
  Station Address FF:FF:FF:FF:FF:FF.
  Configuration register 0/1 -- 0xff / 0xff.
 EEPROM active region checksum is 17e8.
-----

Then I looked at /proc/pci:
------
  Bus  0, device  13, function  0:
    Ethernet controller: Unknown vendor Unknown device (rev 16).
      Vendor id=1. Device id=1211.
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master Capable.
Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xdc00 [0xdc01].
      Non-prefetchable 32 bit memory at 0xde008000 [0xde008000].
------
and used the i/o address of the card found there:
    ./rtl8139-diag -p 0xdc00 -t 2 -e >& diag-3.log

This returned the following which I piped into a file:
------
rtl8139-diag.c:v2.04 8/08/2001 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Assuming a SMC1211TX EZCard 10/100 (RealTek RTL8139) adapter at 0xdc00.
Decoded EEPROM contents:
   PCI IDs -- Vendor 0x0001, Device 0x1211.
   PCI Subsystem IDs -- Vendor 0x1113, Device 0x1211.
   PCI timer settings -- minimum grant 32, maximum latency 64.
  General purpose pins --  direction 0xe1  value 0x10.
  Station Address 00:E0:29:88:BC:C7.
  Configuration register 0/1 -- 0x4d / 0xc2.
 EEPROM active region checksum is 0798.
------

and adding -ee options gives:
------
rtl8139-diag.c:v2.04 8/08/2001 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Assuming a SMC1211TX EZCard 10/100 (RealTek RTL8139) adapter at 0xdc00.
Decoded EEPROM contents:
   PCI IDs -- Vendor 0x0001, Device 0x1211.
   PCI Subsystem IDs -- Vendor 0x1113, Device 0x1211.
   PCI timer settings -- minimum grant 32, maximum latency 64.
  General purpose pins --  direction 0xe1  value 0x10.
  Station Address 00:E0:29:88:BC:C7.
  Configuration register 0/1 -- 0x4d / 0xc2.
 EEPROM active region checksum is 0798.
EEPROM contents (64 words):
0x00:  8129 0001 1211 1113 1211 4020 e110 e000
0x08:  8829 c7bc 4d10 ffc2 8401 b388 58fa 8708
0x10:  d843 ad38 d843 ad38 d843 ad38 d843 ad38
0x18:  0000 0000 0000 0000 0000 0000 0000 0000
0x20:  0000 0000 0000 0000 0000 0000 0000 0000
0x28:  0000 0000 0000 0000 0000 0000 0000 0000
0x30:  0000 0000 0000 0000 0000 0000 0000 0000
0x38:  0000 0000 0000 0000 0000 0000 0000 0000
------

So, now I am lost.  The card appears to be found on a pci scan but linux and the
rtl8139 driver cannot access the card.  What should be in the EEPROM?
Also, I noticed that IRQ=11 is assigned to both the ethernet card and a scsi card -
I believe IRQ sharing is now handled by OS's (Windows and Linux).

Thanks for any help, TK


Donald Becker wrote:

> On Sun, 23 Sep 2001, tk wrote:
>
> > I was having MB problems.  I had this replaced.  At some point either during
> > the problems or thereafter I booted linux and the auto-config whatever removed
> > this device.  I have since reloaded Redhat but it still will not recognize
> > device.
> > I may have the card in a different slot now, but I tried moving the card
> > through all slots with no outcome.
>
> What does 'rtl8139-diag' report?
>
> It may be that the PCI ID, which is stored in the EEPROM, has been corrupted.
>
> Donald Becker                           becker@scyld.com
> Scyld Computing Corporation             http://www.scyld.com
> 410 Severn Ave. Suite 210               Second Generation Beowulf Clusters
> Annapolis MD 21403                      410-990-9993
>
> _______________________________________________
> realtek mailing list
> realtek@scyld.com
> http://www.scyld.com/mailman/listinfo/realtek