Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125937 Details for
Bug 186282
Changes on 2.6.23 git for sky2 driver backport to gs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
2.6.22 patch
sky2.patch (text/plain), 1.70 KB, created by
Daniel Drake (RETIRED)
on 2007-07-24 23:10:00 UTC
(
hide
)
Description:
2.6.22 patch
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2007-07-24 23:10:00 UTC
Size:
1.70 KB
patch
obsolete
>From: Stephen Hemminger <shemminger@linux-foundation.org> >Date: Mon, 9 Jul 2007 22:33:33 +0000 (-0700) >Subject: sky2: restore workarounds for lost interrupts >X-Git-Tag: v2.6.23-rc1~1151^2~39 >X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=c59697e06058fc2361da8cefcfa3de85ac107582 > >sky2: restore workarounds for lost interrupts > >This patch restores a couple of workarounds from 2.6.16: > * restart transmit moderation timer in case it expires during IRQ routine > * default to having 10 HZ watchdog timer. >At this point it more important not to hang than to worry about the >power cost. > >Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> >Signed-off-by: Jeff Garzik <jeff@garzik.org> >--- > >diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c >index b51d73c..77abf89 100644 >--- a/drivers/net/sky2.c >+++ b/drivers/net/sky2.c >@@ -96,7 +96,7 @@ static int disable_msi = 0; > module_param(disable_msi, int, 0); > MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)"); > >-static int idle_timeout = 0; >+static int idle_timeout = 100; > module_param(idle_timeout, int, 0); > MODULE_PARM_DESC(idle_timeout, "Watchdog timer for lost interrupts (ms)"); > >@@ -2490,6 +2490,13 @@ static int sky2_poll(struct net_device *dev0, int *budget) > > work_done = sky2_status_intr(hw, work_limit); > if (work_done < work_limit) { >+ /* Bug/Errata workaround? >+ * Need to kick the TX irq moderation timer. >+ */ >+ if (sky2_read8(hw, STAT_TX_TIMER_CTRL) == TIM_START) { >+ sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_STOP); >+ sky2_write8(hw, STAT_TX_TIMER_CTRL, TIM_START); >+ } > netif_rx_complete(dev0); > > /* end of interrupt, re-enables also acts as I/O synchronization */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186282
: 125937 |
126105