From: Manfred Spraul <manfred@colorfullife.com>
To: Frank de Lange <frank@unternet.org>
Cc: dwmw2@infradead.org, linux-kernel@vger.kernel.org, mingo@elte.hu,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
torvalds@transmeta.com
Subject: Re: QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware related?
Date: Fri, 12 Jan 2001 20:04:24 +0100 [thread overview]
Message-ID: <3A5F5538.57F3FDC5@colorfullife.com> (raw)
In-Reply-To: <3A5F3BF4.7C5567F8@colorfullife.com> <20010112183314.A24174@unternet.org> <3A5F4428.F3249D2@colorfullife.com> <20010112192500.A25057@unternet.org>
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
Linus wrote:
> Does this seem to happen mainly with drivers that use "disable_irq()"
> and "enable_irq()"? I know the ne drivers do (through the 8390 module),
> and some others do too (3c59x).
I removed the disable_irq lines from 8390.c, and that fixed the problem:
no hang within 2 minutes - the test is still running.
Frank, could you double check it?
--
Manfred
[-- Attachment #2: patch-frank --]
[-- Type: text/plain, Size: 1620 bytes --]
// $Header$
// Kernel Version:
// VERSION = 2
// PATCHLEVEL = 4
// SUBLEVEL = 0
// EXTRAVERSION =
--- 2.4/drivers/net/8390.c Thu Jan 4 22:00:55 2001
+++ build-2.4/drivers/net/8390.c Fri Jan 12 19:53:47 2001
@@ -242,15 +242,15 @@
/* Ugly but a reset can be slow, yet must be protected */
- disable_irq_nosync(dev->irq);
- spin_lock(&ei_local->page_lock);
+/* disable_irq_nosync(dev->irq);*/
+ spin_lock_irqsave(&ei_local->page_lock, flags);
/* Try to restart the card. Perhaps the user has fixed something. */
ei_reset_8390(dev);
NS8390_init(dev, 1);
- spin_unlock(&ei_local->page_lock);
- enable_irq(dev->irq);
+ spin_unlock_irqrestore(&ei_local->page_lock, flags);
+/* enable_irq(dev->irq); */
netif_wake_queue(dev);
}
@@ -285,9 +285,9 @@
* Slow phase with lock held.
*/
- disable_irq_nosync(dev->irq);
+/* disable_irq_nosync(dev->irq);*/
- spin_lock(&ei_local->page_lock);
+ spin_lock_irqsave(&ei_local->page_lock, flags);
ei_local->irqlock = 1;
@@ -327,8 +327,8 @@
ei_local->irqlock = 0;
netif_stop_queue(dev);
outb_p(ENISR_ALL, e8390_base + EN0_IMR);
- spin_unlock(&ei_local->page_lock);
- enable_irq(dev->irq);
+ spin_unlock_irqrestore(&ei_local->page_lock, flags);
+/* enable_irq(dev->irq);*/
ei_local->stat.tx_errors++;
return 1;
}
@@ -383,8 +383,8 @@
ei_local->irqlock = 0;
outb_p(ENISR_ALL, e8390_base + EN0_IMR);
- spin_unlock(&ei_local->page_lock);
- enable_irq(dev->irq);
+ spin_unlock_irqrestore(&ei_local->page_lock, flags);
+/* enable_irq(dev->irq); */
dev_kfree_skb (skb);
ei_local->stat.tx_bytes += send_length;
next prev parent reply other threads:[~2001-01-12 19:05 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-12 17:16 QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware related? Manfred Spraul
2001-01-12 17:33 ` Frank de Lange
2001-01-12 17:51 ` Manfred Spraul
2001-01-12 18:25 ` Frank de Lange
2001-01-12 19:04 ` Manfred Spraul [this message]
2001-01-12 19:07 ` Frank de Lange
2001-01-12 19:21 ` Frank de Lange
2001-01-12 19:33 ` Manfred Spraul
2001-01-12 19:52 ` Frank de Lange
2001-01-12 19:59 ` Linus Torvalds
2001-01-12 20:03 ` Ingo Molnar
2001-01-14 0:13 ` Roeland Th. Jansen
2001-01-14 0:23 ` Frank de Lange
2001-01-12 20:05 ` Frank de Lange
2001-01-12 20:11 ` QUESTION: Network hangs with BP6 and 2.4.x kernels, hardwarerelated? Manfred Spraul
2001-01-12 20:16 ` Frank de Lange
2001-01-12 20:19 ` Ingo Molnar
2001-01-12 20:26 ` Frank de Lange
2001-01-12 20:31 ` Ingo Molnar
2001-01-12 20:35 ` Frank de Lange
2001-01-12 20:37 ` Ingo Molnar
2001-01-12 20:46 ` David Woodhouse
2001-01-12 20:46 ` Frank de Lange
2001-01-12 20:51 ` Ingo Molnar
2001-01-12 21:05 ` Frank de Lange
2001-01-15 2:00 ` Jorge Nerin
2001-01-13 0:15 ` Linus Torvalds
2001-01-13 0:19 ` Frank de Lange
2001-01-13 0:29 ` Alan Cox
2001-01-12 20:54 ` Manfred Spraul
2001-01-12 21:07 ` Frank de Lange
2001-01-12 21:31 ` Manfred Spraul
2001-01-12 23:50 ` Alan Cox
2001-01-12 21:21 ` QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware related? Frank de Lange
2001-01-12 23:35 ` QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware Alan Cox
2001-01-13 0:06 ` Manfred Spraul
2001-01-13 0:36 ` Linus Torvalds
2001-01-13 0:48 ` Frank de Lange
2001-01-13 0:56 ` Linus Torvalds
2001-01-13 1:27 ` Frank de Lange
2001-01-13 1:51 ` Manfred Spraul
2001-01-13 2:11 ` Frank de Lange
2001-01-13 1:49 ` Jens Axboe
2001-01-13 2:12 ` Andrew Morton
2001-01-13 2:48 ` Linus Torvalds
2001-01-13 3:24 ` Andrew Morton
2001-01-13 12:37 ` Russell King
2001-01-13 15:18 ` Call for testers: ne2k-pci and io apic (was: Re: QUESTION: Network hangs with BP6...) Manfred Spraul
2001-01-13 23:55 ` Manfred Spraul
2001-01-14 0:18 ` Call for testers: ne2k-pci and io apic J . A . Magallon
2001-01-14 0:23 ` Call for testers: ne2k-pci and io apic (was: Re: QUESTION: Network hangs with BP6...) J . A . Magallon
2001-01-14 2:14 ` Call for testers: ne2k-pci and io apic J . A . Magallon
2001-01-15 16:15 ` QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware Zdenek Kabelac
2001-01-13 1:38 ` Manfred Spraul
2001-01-13 2:10 ` Andrew Morton
2001-01-12 17:49 ` Alan Cox
2001-01-12 18:08 ` Manfred Spraul
2001-01-12 18:16 ` Ingo Molnar
2001-01-12 18:45 ` Manfred Spraul
2001-01-12 18:48 ` Ingo Molnar
2001-01-12 18:28 ` Linus Torvalds
2001-01-12 23:27 ` Alan Cox
2001-01-13 0:35 ` Linus Torvalds
2001-01-13 0:43 ` Alan Cox
2001-01-13 0:48 ` Linus Torvalds
2001-01-12 19:05 ` Frank de Lange
2001-01-12 20:04 ` Linus Torvalds
2001-01-15 14:36 ` Roeland Th. Jansen
2001-01-12 22:03 ` Latest status of IDE patches from Andre Jeff Nguyen
[not found] <20010112165104.A22465@unternet.org>
2001-01-16 19:23 ` QUESTION: Network hangs with BP6 and 2.4.x kernels, hardware related? Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
2001-01-12 16:53 Manfred Spraul
2001-01-12 17:02 ` David Woodhouse
2001-01-10 21:30 Frank de Lange
2001-01-10 22:21 ` Manfred Spraul
2001-01-10 22:29 ` Frank de Lange
2001-01-10 22:40 ` Frank de Lange
2001-01-11 11:48 ` Andrew Morton
2001-01-11 15:22 ` Frank de Lange
2001-01-11 16:55 ` Frank de Lange
2001-01-11 19:18 ` Frank de Lange
[not found] ` <3A5E0849.EB428D70@mandrakesoft.com>
2001-01-12 0:28 ` Frank de Lange
2001-01-12 11:40 ` Andrew Morton
2001-01-12 15:06 ` Frank de Lange
2001-01-12 15:36 ` Frank de Lange
2001-01-11 19:38 ` Frank de Lange
2001-01-11 19:49 ` Frank de Lange
2001-01-11 21:09 ` Frank de Lange
2001-01-11 21:47 ` Jeff Garzik
2001-01-11 21:53 ` Frank de Lange
2001-01-12 14:35 ` David Woodhouse
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=3A5F5538.57F3FDC5@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dwmw2@infradead.org \
--cc=frank@unternet.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.