AMD 79c970 (aka LANCE) PCI card

AMD 79c970 (aka LANCE) PCI card

Post by David Be » Tue, 04 Nov 1997 04:00:00



--
Hello!

I am having a problem with an onboard AMD 89c970 PCI card on a Hitachi MX
laptop, running kernel 2.0.31.

The device IRQ and base address are detected, but the driver fails to
initialize, exiting in lance_probe1 in lance.c:

        outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */
        if (inw(ioaddr+LANCE_DATA) != 0x0004)
                return;

Anyone have an idea how I can get this device working under linux, so
I don't have to keep exiting to Win95 to use ethernet?

-David

------------------------------------------------------------------------------

Class of '99                                                    (916) 455-0325
UC-Davis School of Medicine                    http://www.math.ucla.edu/~dbetz

 
 
 

AMD 79c970 (aka LANCE) PCI card

Post by Jay Thorn » Wed, 05 Nov 1997 04:00:00




> >--
> >Hello!

> >I am having a problem with an onboard AMD 89c970 PCI card on a Hitachi MX
> >laptop, running kernel 2.0.31.

> >The device IRQ and base address are detected, but the driver fails to
> >initialize, exiting in lance_probe1 in lance.c:

> >        outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */
> >        if (inw(ioaddr+LANCE_DATA) != 0x0004)
> >                return;

You should be running lance32.c as well, since it
is responsible for finding the PCI addresses. There is a config
option there for it.  I use this chip, though not in a Hitachi.

--
Jay Thorne    The Net Result System Services

Zoom 505 Effect page http://net.result.com/~jay

 
 
 

AMD 79c970 (aka LANCE) PCI card

Post by Donald Beck » Fri, 07 Nov 1997 04:00:00




>I am having a problem with an onboard AMD 89c970 PCI card on a Hitachi MX
>laptop, running kernel 2.0.31.

>The device IRQ and base address are detected, but the driver fails to
>initialize, exiting in lance_probe1 in lance.c:

>        outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */
>        if (inw(ioaddr+LANCE_DATA) != 0x0004)
>                return;

>Anyone have an idea how I can get this device working under linux, so
>I don't have to keep exiting to Win95 to use ethernet?

Several people have reported this problem with the Hitachi laptop.

I have an idea what is happening.

I suspect that you have a BIOS that does not enable the I/O space flag in
the PCI command register.
This flag can be set in the same section of code that the bus master flag is
set.

Try this -- in lance32.c around line 180
________________
        if ( ! (pci_command & PCI_COMMAND_MASTER)) {
-               printk("PCI Master Bit has not been set. Setting...\n");
-                       pci_command |= PCI_COMMAND_MASTER;
+               printk("PCI command word was %4.4x, setting...\n", pci_command);
+                       pci_command |= PCI_COMMAND_MASTER|PCI_COMMAND_IO;
                        pcibios_write_config_word(pci_bus, pci_device_fn,
________________

If this works I'll update the code to look (note -- you must also
add 'new_command' to the declaration list).

        pcibios_read_config_word(pci_bus, pci_device_fn,
                               PCI_COMMAND, &pci_command);
        new_command = pci_command | PCI_COMMAND_MASTER|PCI_COMMAND_IO;
        if (pci_command != new_command) {
                printk(KERN_INFO "  The PCI BIOS has not enabled this"
                       " device!  Updating PCI command %4.4x->%4.4x.\n",
                       pci_command, new_command);
                pcibios_write_config_word(pci_bus, pci_device_fn,
                                          PCI_COMMAND, new_command);
        }

Please send me a report if you try this.

--

USRA-CESDIS, Center of Excellence in Space Data and Information Sciences.
Code 930.5, Goddard Space Flight Center,  Greenbelt, MD.  20771
301-286-0882         http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html

 
 
 

1. Adaptec 2940 PCI SCSI controller; AMD 79C970 PCI ethernet card

I plan to get a Pentium 90 with 32MB RAM and 1GB SCSI-2 HD, with PCI/ISA
Bus and running Linux. After reading the various FAQs and HOWTOs, I still
have the following questions:

1. Does the latest Slackware Distribution 2.1.0 comes with the necessary
driver if I use the Adaptec 2940 PCI SCSI controller card? I would like
to hear the experiences of netters who have actually use this card. Does it
install and work smoothly?

2. Similarly, does the latest release of Linux suport the AMD 79C970
(PCnet-PCI) ethernet card? Is it reliable? Experiences with the actual
use of this card (both positive and negative) would be most helpful.

3. Please suggest alternative PCI SCSI controller card and PCI ethernet
card if you know of any other that will work better.

4. I have come across questions similar to mine being asked on linux
newsgroup before. Please email your reply to me and I will post a summary of
responses later. Thanks!

Hwee Tou Ng

2. linux from scratch (DOS, modem & floppies)

3. Adaptec 2940 PCI SCSI; AMD 79C970 PCI ethernet card

4. Cyrix 5x86 & Linux?

5. performance problems with AMD 79c970, pcnet32 lance driver

6. building a server ussing asus

7. RH 7.1 problem with PCI card AMD 79c970 (pcnet32)

8. Error 407 Proxy Access Denied

9. AMD 79C970 (PCNet-PCI) can't receive?

10. Problem with Red Hat Linux 7.3 & the AMD PCI Pcnet 79C970

11. PCI amd ethercard with lance driver

12. PCI Ethernet (BOCA AMD LANCE) not detected

13. Major problems with AMD Lance (PCI) Ethernet adapters