Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156816 Details for
Bug 242572
Realtek 8169 (Netgear GA311 etc.) based gigabit cards freeze startup
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
/tmp/99f252b097a3bd6280047ba2175b605671da4a23.patch
99f252b097a3bd6280047ba2175b605671da4a23.patch (text/plain), 2.90 KB, created by
Andy Gospodarek
on 2007-06-12 18:46:34 UTC
(
hide
)
Description:
/tmp/99f252b097a3bd6280047ba2175b605671da4a23.patch
Filename:
MIME Type:
Creator:
Andy Gospodarek
Created:
2007-06-12 18:46:34 UTC
Size:
2.90 KB
patch
obsolete
>commit 99f252b097a3bd6280047ba2175b605671da4a23 >Author: Francois Romieu <romieu@fr.zoreil.com> >Date: Mon Apr 2 22:59:59 2007 +0200 > > r8169: issue request_irq after the private data are completely initialized > > The irq handler schedules a NAPI poll request unconditionally as soon as > the status register is not clean. It has been there - and wrong - for > ages but a recent timing change made it apparently easier to trigger. > > Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> > Cc: Jay Cliburn <jacliburn@bellsouth.net> > Signed-off-by: Jeff Garzik <jeff@garzik.org> > >diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c >index 521b5f0..60f630e 100644 >--- a/drivers/net/r8169.c >+++ b/drivers/net/r8169.c >@@ -66,6 +66,7 @@ VERSION 2.2LK <2005/01/25> > #include <linux/init.h> > #include <linux/dma-mapping.h> > >+#include <asm/system.h> > #include <asm/io.h> > #include <asm/irq.h> > >@@ -486,6 +487,7 @@ static int rtl8169_rx_interrupt(struct net_device *, struct rtl8169_private *, > void __iomem *); > static int rtl8169_change_mtu(struct net_device *dev, int new_mtu); > static void rtl8169_down(struct net_device *dev); >+static void rtl8169_rx_clear(struct rtl8169_private *tp); > > #ifdef CONFIG_R8169_NAPI > static int rtl8169_poll(struct net_device *dev, int *budget); >@@ -1751,16 +1753,10 @@ static int rtl8169_open(struct net_device *dev) > { > struct rtl8169_private *tp = netdev_priv(dev); > struct pci_dev *pdev = tp->pci_dev; >- int retval; >+ int retval = -ENOMEM; > >- rtl8169_set_rxbufsize(tp, dev); >- >- retval = >- request_irq(dev->irq, rtl8169_interrupt, IRQF_SHARED, dev->name, dev); >- if (retval < 0) >- goto out; > >- retval = -ENOMEM; >+ rtl8169_set_rxbufsize(tp, dev); > > /* > * Rx and Tx desscriptors needs 256 bytes alignment. >@@ -1769,19 +1765,26 @@ static int rtl8169_open(struct net_device *dev) > tp->TxDescArray = pci_alloc_consistent(pdev, R8169_TX_RING_BYTES, > &tp->TxPhyAddr); > if (!tp->TxDescArray) >- goto err_free_irq; >+ goto out; > > tp->RxDescArray = pci_alloc_consistent(pdev, R8169_RX_RING_BYTES, > &tp->RxPhyAddr); > if (!tp->RxDescArray) >- goto err_free_tx; >+ goto err_free_tx_0; > > retval = rtl8169_init_ring(dev); > if (retval < 0) >- goto err_free_rx; >+ goto err_free_rx_1; > > INIT_DELAYED_WORK(&tp->task, NULL); > >+ smp_mb(); >+ >+ retval = request_irq(dev->irq, rtl8169_interrupt, IRQF_SHARED, >+ dev->name, dev); >+ if (retval < 0) >+ goto err_release_ring_2; >+ > rtl8169_hw_start(dev); > > rtl8169_request_timer(dev); >@@ -1790,14 +1793,14 @@ static int rtl8169_open(struct net_device *dev) > out: > return retval; > >-err_free_rx: >+err_release_ring_2: >+ rtl8169_rx_clear(tp); >+err_free_rx_1: > pci_free_consistent(pdev, R8169_RX_RING_BYTES, tp->RxDescArray, > tp->RxPhyAddr); >-err_free_tx: >+err_free_tx_0: > pci_free_consistent(pdev, R8169_TX_RING_BYTES, tp->TxDescArray, > tp->TxPhyAddr); >-err_free_irq: >- free_irq(dev->irq, dev); > goto out; > } >
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 242572
:
156603
|
156759
|
156815
| 156816 |
156817
|
158726
|
159748
|
160162
|
160173
|
160185
|
160277
|
160280
|
160474
|
160507
|
161084