From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4a91b7c59453f3bf4dcd3fb3437611db@plan9.bell-labs.com> From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] Rtl8139 NIC detection.. In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sat, 1 May 2004 12:24:36 -0400 Topicbox-Message-UUID: 71fdd616-eacd-11e9-9e20-41e7f4b1d025 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? > >