Re: if_re does not work

From: Yoshikazu GOTO <goto_at_snowy.to>
Date: Tue, 11 Jul 2006 19:38:33 +0900 (JST)
Hi Paul,

Thank you for your reply.

Please see inline.

In Message-ID: <20060711053000.94DB016A4E1_at_hub.freebsd.org>
wpaul_at_FreeBSD.ORG (Bill Paul) wrote :

> > Jul 10 22:54:33 x40 kernel: re0: couldn't set up irq
> 
> If you really think this is related to the driver, prove it: back out
> the changes (while keeping the rest of your kernel the same) and see if
> it works again. I don't think it will.

Ok. I tried to make a new if_re module with revision 1.67 and It
works fine.

They are my sources:

/usr/src/sys/dev/re/if_re.c:__FBSDID("$FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.67 2006/05/24 11:55:25 glebius Exp $");
/usr/src/sys/pci/if_rlreg.h: * $FreeBSD: /repoman/r/ncvs/src/sys/pci/if_rlreg.h,v 1.56 2006/05/24 11:55:25 glebius Exp $

This is my sequence:

1. Download if_re.c and if_rlreg.h from Web.
2. Move to /usr/src/sys/dev/re and /usr/src/sys/pci.
3. Run "make modules" in my kernel build place (All other kernel modules
   have built).
4. Run "make install".

And I got some logs as follows:

Jul 11 19:21:58 x40 kernel: pcib1: (null) requested memory range 0xd0200000-0xdfffffff: good
Jul 11 19:21:58 x40 kernel: cbb0: Opening memory:
Jul 11 19:21:58 x40 kernel: cbb0: Normal: 0xd0211000-0xd0211fff
Jul 11 19:21:58 x40 kernel: unknown: Lazy allocation of 0x200 bytes rid 0x14 type 3 at 0xd0211000
Jul 11 19:21:58 x40 kernel: cbb0: Opening memory:
Jul 11 19:21:58 x40 kernel: map[10]: type 4, range 32, base 00000000, size  8, port disabled
Jul 11 19:21:58 x40 kernel: pcib1: (null) requested I/O range 0x3000-0x7fff: in range
Jul 11 19:21:58 x40 kernel: map[14]: type 1, range 32, base d0211000, size  9, enabled
Jul 11 19:21:58 x40 kernel: pcib1: (null) requested memory range 0xd0211000-0xd02111ff: good
Jul 11 19:21:58 x40 kernel: found->    vendor=0x10ec, dev=0x8169, revid=0x10
Jul 11 19:21:58 x40 kernel: bus=3, slot=0, func=0
Jul 11 19:21:58 x40 kernel: class=02-00-00, hdrtype=0x00, mfdev=0
Jul 11 19:21:58 x40 kernel: cmdreg=0x0002, statreg=0x02b8, cachelnsz=8 (dwords)
Jul 11 19:21:58 x40 kernel: lattimer=0xa8 (5040 ns), mingnt=0x20 (8000 ns), maxlat=0x40 (16000 ns)
Jul 11 19:21:58 x40 kernel: intpin=a, irq=255
Jul 11 19:21:58 x40 kernel: powerspec 2  supports D0 D1 D2 D3  current D0
Jul 11 19:21:58 x40 kernel: re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x3000
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: re0: <RealTek 8169SB Single-chip Gigabit Ethernet> port 0x3000-0x30ff mem 0xd0211000-0xd02111ff at device 0.0 on cardbus0
Jul 11 19:21:58 x40 kernel: pcib1: re0 requested I/O range 0x3000-0x30ff: in range
Jul 11 19:21:58 x40 kernel: cbb0: Opening I/O: 0x3000-0x30ff
Jul 11 19:21:58 x40 kernel: miibus0: <MII bus> on re0
Jul 11 19:21:58 x40 kernel: rgephy0: <RTL8169S/8110S media interface> on miibus0
Jul 11 19:21:58 x40 kernel: rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
Jul 11 19:21:58 x40 kernel: re0: bpf attached
Jul 11 19:21:58 x40 kernel: re0: Ethernet address: 00:0f:b5:41:30:3c
Jul 11 19:21:58 x40 kernel: re0: [GIANT-LOCKED]
Jul 11 19:21:58 x40 kernel: re0: link state changed to DOWN


If you have any comments, please let us know.

Goto


-=-=-=-
// Yoshikazu GOTO
// E-mail: goto_at_snowy.to
-=-=-=-
\e
Received on Tue Jul 11 2006 - 08:38:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC