9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Rtl8139 NIC detection..
Date: Sat,  1 May 2004 12:24:36 -0400	[thread overview]
Message-ID: <4a91b7c59453f3bf4dcd3fb3437611db@plan9.bell-labs.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0405011129320.19607@pali.cps.cmich.edu>

that all looks fine.
a recent change to the driver was to time out on the initial
hardware reset. this was due to some systems coming up with the
chip in deep sleep mode and the reset code would loop forever
(as an aside i have the code to take chips out of sleep mode if
necessary, but it's not distributed yet).
perhaps the timout is too short. put some prints in here


static int
rtl8139reset(Ctlr* ctlr)
{
	int timeo;

	/*
	 * Soft reset the controller.
	 */
	csr8w(ctlr, Cr, Rst);
	for(timeo = 0; timeo < 1000; timeo++){
		if(!(csr8r(ctlr, Cr) & Rst))
			return 0;
		delay(1);
	}

	return -1;
}

and try it.

--jim

On Sat May  1 11:40:42 EDT 2004, ishwar@pali.cps.cmich.edu wrote:
> output of pci command
>
> -ishwar
> --
> term% pci
> 0.0.0:	06.00.00  8086/7190  0
> 0.1.0:  06.04.00  8086/7191  0
> 0.11.0: 03.00.00  5333/8811  11  0:e6000000  8368808
> 0.15.0: 02.00.00  10ec/8139  10  0:0000d401 256 1:e6800000 256
> 0.19.0: 01.80.00  1103/0004  11  0:0000d801 16 1:0000dc01 16 4:0000e001 256
> 0.19.1: 01.80.00  1103/0004  11  0:0000e401 16 1:0000e801 16 4:0000ec01 256
> 0.7.0:  06.01.00  8086/7110  0
> 0.7.1:  01.01.80  8086/7111  0   4:0000f001 16
> 0.7.2:  0c.03.00  8086/7112  5   4:0000d001 32
> 0.7.3:  06.80.00  8086/7113  0
> --
> A
> On Sat, 1 May 2004, Russ Cox wrote:
>
> > What does the "pci" command say when you run it?
> >


  reply	other threads:[~2004-05-01 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-29 12:54 Richard C Bilson
2004-05-01 12:45 ` I RATTAN
2004-05-01 13:59   ` Russ Cox
2004-05-01 15:30     ` Ishwar Rattan
2004-05-01 16:24       ` jmk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-04-29  3:06 Ishwar Rattan
2004-04-29  3:19 ` Geoff Collyer
2004-04-29  3:21   ` jmk
2004-04-29  3:43     ` Geoff Collyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a91b7c59453f3bf4dcd3fb3437611db@plan9.bell-labs.com \
    --to=jmk@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).