主题 : 网卡驱动问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
楼主  发表于: 2013-01-11 20:59

 网卡驱动问题

移植网卡DM9000时,遇到这样一个问题:
NETDEV WATCHDOG: eth0 (dm9000): transmit timed out
------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:226 dev_watchdog+0x1c4/0x2dc()
NETDEV WATCHDOG: eth0 (dm9000): transmit timed out
Modules linked in:
[<c002cd50>] (dump_stack+0x0/0x14) from [<c003b104>] (warn_slowpath+0x5c/0x78)
[<c003b0a8>] (warn_slowpath+0x0/0x78) from [<c01e3608>] (dev_watchdog+0x1c4/0x2dc)
r3:c6c2f800 r2:c02e6b80
r6:00000001 r5:c6c2f800 r4:00000001
[<c01e3444>] (dev_watchdog+0x0/0x2dc) from [<c0045ba0>] (run_timer_softirq+0x198/0x22c)
r8:c0307e98 r7:c01e3444 r6:00000103 r5:c032bdc0 r4:c0306000
[<c0045a08>] (run_timer_softirq+0x0/0x22c) from [<c0040260>] (__do_softirq+0x68/0x10c)
[<c00401f8>] (__do_softirq+0x0/0x10c) from [<c0040580>] (irq_exit+0x4c/0x9c)
[<c0040534>] (irq_exit+0x0/0x9c) from [<c002806c>] (asm_do_IRQ+0x6c/0x84)
r4:00000020
[<c0028000>] (asm_do_IRQ+0x0/0x84) from [<c0028a28>] (__irq_svc+0x48/0x88)
Exception stack(0xc0307f40 to 0xc0307f88)
7f40: 00000000 0005317f 0005217f 60000013 c0306000 c0029f3c c0309fa0 c0309d30
7f60: 800210ec 41069265 800210b8 c0307f94 600000d3 c0307f88 c0029f80 c0029f8c
7f80: 60000013 ffffffff
r6:c0309fa0 r5:fec48000 r4:ffffffff
[<c0029f3c>] (default_idle+0x0/0x58) from [<c0029ff4>] (cpu_idle+0x60/0xa8)
[<c0029f94>] (cpu_idle+0x0/0xa8) from [<c02553b0>] (rest_init+0x74/0x88)
r6:c0022f00 r5:c0326148 r4:c0306000
[<c025533c>] (rest_init+0x0/0x88) from [<c0008980>] (start_kernel+0x2c0/0x32c)
r4:c032e77c
[<c00086c0>] (start_kernel+0x0/0x32c) from [<80008034>] (0x80008034)
r5:c032660c r4:00053175
---[ end trace f07d5504355e76da ]---


这种情况一般是由于中断类型设置的不对,我修改了中断类型就ok了。。。
但是最近在移植LAN911C111时,也是遇到这样的问题,但是修改中断类型问题依旧,请问下还有什么原因导致这种问题呢??
谢谢!!!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-01-11 21:03

 回 楼主(wdunfeng) 的帖子

我想你最好先确认一下LAN911C111驱动里的中断处理函数是不是能正常进入。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 6518
精华: 0
发帖: 45
金钱: 230 两
威望: 49 点
综合积分: 90 分
注册时间: 2009-06-04
最后登录: 2017-05-30
2楼  发表于: 2013-01-11 21:33
可以正常进入   但是总是发送超时