]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
[PATCH] tg3: fix ASF heartbeat
authorMichael Chan <mchan@broadcom.com>
Wed, 26 Oct 2005 22:48:35 +0000 (15:48 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 20:07:30 +0000 (16:07 -0400)
commit28fbef78a420acdea20570d31f3bdcbfa0cac0d2
treeef68381a6e776a802038e39529e89a0d1390fae0
parenta4e2b347848bf626b822599329933887dc90e50f
[PATCH] tg3: fix ASF heartbeat

Change the ASF heart beat to 5 seconds for faster detection of system
crash. The driver sends the heartbeat every 2 seconds and the ASF
firmware will timeout and reset the device if no heartbeat is received
after 5 seconds. The old scheme of 2 minutes is ineffective.

tg3_write_mem_fast() is added to speed up the IO to send the heartbeat.
When no workaround is needed, it will use direct MMIO to memory space
to write to memory.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/tg3.c
drivers/net/tg3.h