Intel PRO/1000 Gigabit Ethernet Adapters

Brecht Vermeulen brecht.vermeulen at rug.ac.be
Thu May 31 01:07:13 EDT 2001


Benjie,

I've removed in the Makefile the -DHAVE_INTEL_CPU (because it runs on an
AMD-K6)
and in e1000_main.c, I've put #define E1000_DEBUG_DEFAULT 10 , to get
some debugging info

results in syslog :

insmod e1000.o :

May 30 23:58:13 helios100 kernel: e1000_probe()
May 30 23:58:13 helios100 kernel: e1000_probe: vendor = 0x8086, device =
0x1001
May 30 23:58:13 helios100 kernel: Intel(R) PRO/1000 Gigabit Ethernet
Adapter - Loadable driver, ver. 2.5.11
May 30 23:58:13 helios100 kernel:          Copyright (c) 1999-2000 Intel
Corporation
May 30 23:58:13 helios100 kernel:
May 30 23:58:13 helios100 kernel: e1000_alloc_space: begin
May 30 23:58:13 helios100 kernel: bdp = 0xc0593600
May 30 23:58:13 helios100 kernel: First one
May 30 23:58:13 helios100 kernel: bdp->bddp = 0xc0593c00
May 30 23:58:13 helios100 kernel: bdp->mc_data = 0xc3f7cc00
May 30 23:58:13 helios100 kernel: e1000_alloc_space: end
May 30 23:58:13 helios100 kernel: e1000_find_pci_device
May 30 23:58:13 helios100 kernel: pcid is ours, vendor = 0x8086, device
= 0x1001
May 30 23:58:13 helios100 kernel: PciTrdyTimeOut = 0x0
May 30 23:58:13 helios100 kernel: PciRetryTimeOut = 0x0
May 30 23:58:13 helios100 kernel: RevID = 0x2
May 30 23:58:13 helios100 kernel: SUBSYSTEM_ID = 0x1003
May 30 23:58:13 helios100 kernel: SUBSYSTEM_VENDOR_ID = 0x8086
May 30 23:58:13 helios100 kernel: PciCommandWord = 0x6
May 30 23:58:13 helios100 kernel: DeviceNum = 0x48
May 30 23:58:13 helios100 kernel: find_pci: end, status = 0x1
May 30 23:58:13 helios100 kernel: Intel(R) PRO/1000 F Server Adapter
May 30 23:58:13 helios100 kernel: memstart = 0xf6000000, virt_addr =
0xc403a000
May 30 23:58:13 helios100 kernel: e1000_init()
May 30 23:58:13 helios100 kernel: DisableInterrupts: SOR
May 30 23:58:13 helios100 kernel: Node addr is: 0:3:47:71:45:eb
May 30 23:58:13 helios100 kernel:  e1000_init: end
May 30 23:58:13 helios100 kernel: eth4: Mem:0xf6000000  IRQ:11 
Speed:1000 Mbps  Dx:Full FlowCtl:00May 30 23:58:13 helios100 kernel:
May 30 23:58:13 helios100 kernel: dev = 0xc1ea3000   priv = 0xc0593600
May 30 23:58:13 helios100 kernel:   irq = 0xb   next = 0x00000000  
flags = 0x1002
May 30 23:58:13 helios100 kernel:   bdp = 0xc0593600
May 30 23:58:13 helios100 kernel:   irq_level = 0xb
May 30 23:58:13 helios100 kernel: e1000_probe: vendor = 0x8086, device =
0x1001
May 30 23:58:13 helios100 kernel: e1000_alloc_space: begin
May 30 23:58:13 helios100 kernel: bdp = 0xc0593a00
May 30 23:58:13 helios100 kernel: Not first one
May 30 23:58:13 helios100 kernel: bdp->bddp = 0xc0593800
May 30 23:58:13 helios100 kernel: bdp->mc_data = 0xc3f7c000
May 30 23:58:13 helios100 kernel: e1000_alloc_space: end
May 30 23:58:13 helios100 kernel: e1000_find_pci_device
May 30 23:58:13 helios100 kernel: pcid is ours, vendor = 0x8086, device
= 0x1001
May 30 23:58:13 helios100 kernel: PciTrdyTimeOut = 0x0
May 30 23:58:13 helios100 kernel: PciRetryTimeOut = 0x0
May 30 23:58:13 helios100 kernel: RevID = 0x2
May 30 23:58:13 helios100 kernel: SUBSYSTEM_ID = 0x1003
May 30 23:58:13 helios100 kernel: SUBSYSTEM_VENDOR_ID = 0x8086
May 30 23:58:13 helios100 kernel: PciCommandWord = 0x6
May 30 23:58:13 helios100 kernel: DeviceNum = 0x50
May 30 23:58:13 helios100 kernel: find_pci: end, status = 0x1
May 30 23:58:13 helios100 kernel: Intel(R) PRO/1000 F Server Adapter
May 30 23:58:13 helios100 kernel: memstart = 0xf6020000, virt_addr =
0xc405b000
May 30 23:58:13 helios100 kernel: e1000_init()
May 30 23:58:13 helios100 kernel: DisableInterrupts: SOR
May 30 23:58:13 helios100 kernel: Node addr is: 0:3:47:71:58:ef
May 30 23:58:13 helios100 kernel:  e1000_init: end
May 30 23:58:13 helios100 kernel: eth5: Mem:0xf6020000  IRQ:10 
Speed:1000 Mbps  Dx:Full FlowCtl:00May 30 23:58:13 helios100 kernel:
May 30 23:58:13 helios100 kernel: dev = 0xc0593e00   priv = 0xc0593a00
May 30 23:58:13 helios100 kernel:   irq = 0xa   next = 0x00000000  
flags = 0x1002
May 30 23:58:13 helios100 kernel:   bdp = 0xc0593a00
May 30 23:58:13 helios100 kernel:   irq_level = 0xa
May 30 23:58:13 helios100 kernel: e1000_probe: vendor = 0x1011, device =
0x19
May 30 23:58:13 helios100 last message repeated 3 times

./make-ip-conf_helios_gbit.pl > /proc/click/config :

May 31 00:00:20 helios100 kernel: e1000_poll_on
May 31 00:00:20 helios100 kernel: DisableInterrupts: SOR
May 31 00:00:20 helios100 kernel: e1000_poll_on
May 31 00:00:20 helios100 kernel: DisableInterrupts: SOR
May 31 00:00:20 helios100 kernel: chatter: starting 1 thread
May 31 00:00:20 helios100 kernel: click: starting router thread pid 1361
(c000f540)
May 31 00:00:20 helios100 kernel: Unable to handle kernel NULL pointer
dereference at virtual address 00000000
May 31 00:00:20 helios100 kernel: current->tss.cr3 = 00101000, %%cr3 =
00101000
May 31 00:00:20 helios100 kernel: *pde = 00000000
May 31 00:00:20 helios100 kernel: Oops: 0000
May 31 00:00:20 helios100 kernel: CPU:    0
May 31 00:00:20 helios100 kernel: EIP:   
0010:[click:__insmod_click_O/lib/modules/2.2.18/net/click.o_M3B14A3DD_V+-299614/96]
May 31 00:00:20 helios100 kernel: EFLAGS: 00010256
May 31 00:00:20 helios100 kernel: eax: 00000000   ebx: 00000080   ecx:
c399a04c   edx: 00000000
May 31 00:00:20 helios100 kernel: esi: c0593c00   edi: 00000000   ebp:
c2729f2c   esp: c2729f0c
May 31 00:00:20 helios100 kernel: ds: 0018   es: 0018   ss: 0018
May 31 00:00:20 helios100 kernel: Process click (pid: 1361, process nr:
37, stackpage=c2729000)
May 31 00:00:20 helios100 kernel: Stack: c399a000 c019848c c021c10a
00000031 00000000 00000000 00000000 00000000
May 31 00:00:20 helios100 kernel:        c2729f6c c4153b0c c1ea3000
c2729f68 c2729f5c c01105c8 00000080 00000000
May 31 00:00:20 helios100 kernel:        c2728000 00000282 00000000
00000100 c2729f7c c0110b37 00000000 00000008
May 31 00:00:20 helios100 kernel: Call Trace: [set_cursor+76/144]
[e1000:__insmod_e1000_S.bss_L4+1159716/159561464]
[wake_up_process+64/76] [__wake_up+59/68]
[e1000:__insmod_e1000_S.bss_L4+996711/159724469] [printk+345/360]
[e1000:__insmod_e1000_S.bss_L4+1371896/159349284]
May 31 00:00:20 helios100 kernel:       
[e1000:__insmod_e1000_S.bss_L4+1269526/159451654]
[e1000:__insmod_e1000_S.bss_L4+1371928/159349252]
[e1000:__insmod_e1000_S.bss_L4+1269538/159451642]
[e1000:__insmod_e1000_S.bss_L4+1371891/159349289]
[e1000:__insmod_e1000_S.bss_L4+1269448/159451732] [kernel_thread+40/56]
May 31 00:00:20 helios100 kernel: Code: 8b 1c b8 85 db 0f 85 b4 fe ff ff
8b 45 fc 8b 55 0c 89 02 8b


rmmod click
May 31 00:00:36 helios100 kernel: click: Following threads still active,
expect a crash:
May 31 00:00:36 helios100 kernel: click:   router thread pid 1361
May 31 00:00:36 helios100 kernel: click module exiting
May 31 00:00:36 helios100 kernel: click error: 47 elements still
allocated
May 31 00:00:36 helios100 kernel: click error: 317 outstanding news
May 31 00:00:50 helios100 kernel: cleanup_module: SOR, dev = 0xc1ea3000
May 31 00:00:50 helios100 kernel:
May 31 00:00:50 helios100 kernel:
May 31 00:00:50 helios100 kernel: --Cleanup, unreg_netdev
May 31 00:00:50 helios100 kernel: --Cleanup, iounmap
May 31 00:00:50 helios100 kernel: --Cleanup, e1000_dealloc_space
May 31 00:00:50 helios100 kernel: e1000_dealloc_space, bdp = 0xc0593600
May 31 00:00:50 helios100 kernel: --Cleanup, unreg_netdev
May 31 00:00:50 helios100 kernel: --Cleanup, iounmap
May 31 00:00:50 helios100 kernel: --Cleanup, e1000_dealloc_space
May 31 00:00:50 helios100 kernel: e1000_dealloc_space, bdp = 0xc0593a00

how can I check that Click did check dev->pollable using the dev
associated with the 
e1000 driver?

brecht



More information about the click mailing list