From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Nick Warne" <nick@ukfsn.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.3 - 8139too timeout debug info
Date: Sun, 29 Feb 2004 17:09:17 +0900 [thread overview]
Message-ID: <87llmmtihe.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <87vflqtiz6.fsf@devron.myhome.or.jp>
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> writes:
> "Nick Warne" <nick@ukfsn.org> writes:
>
> > Thanks for your help. I have hell of a trouble doing this, as soon
> > as any network load happens, the box becomes unresponsive during
> > timeouts - but hopefully I have caught the info required.
>
> Umm.. Looks like chip registers is normal, but TX/RX interrupt doesn't
> happen. (BTW, there isn't rtl8139_open on debuginfo.txt. Was it already
> scrolled?)
>
> The following patch (incremental patch) is some part reverts to
> 2.6.2. Is behavior changed?
Oops, wrong patches. Please try these.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 8139too-revert01.patch --]
[-- Type: text/x-patch, Size: 1429 bytes --]
---
drivers/net/8139too.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff -puN drivers/net/8139too.c~8139too-revert01 drivers/net/8139too.c
--- linux-2.6.3/drivers/net/8139too.c~8139too-revert01 2004-02-29 17:02:32.000000000 +0900
+++ linux-2.6.3-hirofumi/drivers/net/8139too.c 2004-02-29 17:02:59.000000000 +0900
@@ -1374,6 +1374,7 @@ static int rtl8139_open (struct net_devi
rtl8139_start_thread(dev);
+ printk("%s: revert01\n", dev->name);
spin_lock_irq(&tp->lock);
RTL8139_DUMP(dev);
spin_unlock_irq(&tp->lock);
@@ -2043,12 +2044,10 @@ static int rtl8139_rx(struct net_device
skb_put (skb, pkt_size);
skb->protocol = eth_type_trans (skb, dev);
-
+ netif_rx (skb);
dev->last_rx = jiffies;
tp->stats.rx_bytes += pkt_size;
tp->stats.rx_packets++;
-
- netif_receive_skb (skb);
} else {
if (net_ratelimit())
printk (KERN_WARNING
@@ -2204,11 +2203,10 @@ static irqreturn_t rtl8139_interrupt (in
/* Receive packets are processed by poll routine.
If not running start it now. */
- if (status & RxAckBits){
- if (netif_rx_schedule_prep(dev)) {
- RTL_W16_F (IntrMask, rtl8139_norx_intr_mask);
- __netif_rx_schedule (dev);
- }
+ if (status & RxAckBits) {
+ RTL_W16_F(IntrMask, rtl8139_norx_intr_mask);
+ rtl8139_rx(dev, tp, dev->weight);
+ RTL_W16_F(IntrMask, rtl8139_intr_mask);
}
/* Check uncommon events with one test. */
_
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 8139too-revert02.patch --]
[-- Type: text/x-patch, Size: 1052 bytes --]
---
drivers/net/8139too.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff -puN drivers/net/8139too.c~8139too-revert02 drivers/net/8139too.c
--- linux-2.6.3/drivers/net/8139too.c~8139too-revert02 2004-02-29 17:04:38.000000000 +0900
+++ linux-2.6.3-hirofumi/drivers/net/8139too.c 2004-02-29 17:04:58.000000000 +0900
@@ -1374,7 +1374,7 @@ static int rtl8139_open (struct net_devi
rtl8139_start_thread(dev);
- printk("%s: revert01\n", dev->name);
+ printk("%s: revert02\n", dev->name);
spin_lock_irq(&tp->lock);
RTL8139_DUMP(dev);
spin_unlock_irq(&tp->lock);
@@ -2203,11 +2203,8 @@ static irqreturn_t rtl8139_interrupt (in
/* Receive packets are processed by poll routine.
If not running start it now. */
- if (status & RxAckBits) {
- RTL_W16_F(IntrMask, rtl8139_norx_intr_mask);
+ if (status & RxAckBits)
rtl8139_rx(dev, tp, dev->weight);
- RTL_W16_F(IntrMask, rtl8139_intr_mask);
- }
/* Check uncommon events with one test. */
if (unlikely(status & (PCIErr | PCSTimeout | RxUnderrun | RxErr)))
_
next prev parent reply other threads:[~2004-02-29 8:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 17:31 2.6.3 - 8139too timeout debug info Nick Warne
2004-02-27 17:40 ` Matt H.
2004-02-27 17:50 ` Nick Warne
2004-02-28 17:41 ` OGAWA Hirofumi
2004-02-28 18:47 ` Nick Warne
2004-02-29 7:58 ` OGAWA Hirofumi
2004-02-29 8:09 ` OGAWA Hirofumi [this message]
2004-02-29 11:09 ` Nick Warne
[not found] <4041BAA6.28283.2CEC419B@localhost>
[not found] ` <87fzcut9ua.fsf@devron.myhome.or.jp>
2004-02-29 11:57 ` Nick Warne
2004-02-29 12:38 ` OGAWA Hirofumi
2004-02-29 13:05 ` Nick Warne
2004-02-29 18:28 ` OGAWA Hirofumi
2004-03-01 18:29 ` Nick Warne
2004-03-22 21:17 ` Jeff Garzik
2004-03-22 22:51 ` OGAWA Hirofumi
2004-03-31 19:42 ` Christian Gut
2004-04-01 3:56 ` OGAWA Hirofumi
2004-04-04 17:02 ` OGAWA Hirofumi
-- strict thread matches above, loose matches on Subject: below --
2004-03-23 21:07 Nick Warne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87llmmtihe.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=nick@ukfsn.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox