Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 00:18:33 -0700
From:      Wes Peters <wes@softweyr.com>
To:        "John W. DeBoskey" <jwd@unx.sas.com>
Cc:        freebsd-hackers@freebsd.org, Charles Tudor <sascht@unx.sas.com>
Subject:   Re: fxp driver causing lockup
Message-ID:  <36EF5749.2B1A8D21@softweyr.com>
References:  <199903170620.BAA54317@bb01f39.unx.sas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"John W. DeBoskey" wrote:
> 
> Hi,
> 
>    I beleive you are correct. The following code fragment from
> if_fxp.c is the lockup:
> 
>         /*
>          * Start the config command/DMA.
>          */
>         fxp_scb_wait(sc);
>         CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, vtophys(&cbp->cb_status));
>         CSR_WRITE_1(sc, FXP_CSR_SCB_COMMAND, FXP_SCB_COMMAND_CU_START);
>         /* ...and wait for it to complete. */
>         while (!(cbp->cb_status & FXP_CB_STATUS_C));

Yup, that's it.  I initially tracked this down under 3.0, but moved the
machine back to 2.2.7 because I needed it to get work done.  I've now
stuffed two 3c905Bs into it for my main and test network, and can play
with the Pro 100B without losing a network connection.

>    according to doc at Dell's website (they have a machine with this
> problem), the bios is not enabling dma on the adapter board. I beleive
> the person I copied on this mail can provide the precise web page
> that documents this.
> 
>    According to them, it is possible to discreetly turn on dma on
> the adapter. This is were someone with the appropriate doc needs
> to jump in...
> 
>    Basically, the driver needs to check that dma is enabled and
> enable it if not.

Any hints as to how to do that?  I've got the machine, the lockups,
and a (little) bit of driver knowlege.  Plus a fair bit of tenacity.
The Linux 2.2 driver exhibits the same problem on these machines, so I
can either share the fix with them or just convince them to upgrade
to FreeBSD once I get this nailed.  ;^)

-- 
       "Where am I, and what am I doing in this handbasket?"

Wes Peters                                                 Softweyr LLC
http://www.softweyr.com/~softweyr                      wes@softweyr.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36EF5749.2B1A8D21>