| To: | jamal <hadi@xxxxxxxxxx> |
|---|---|
| Subject: | Re: NAPI note |
| From: | Jeff Garzik <jgarzik@xxxxxxxxx> |
| Date: | Tue, 18 Feb 2003 22:14:55 -0500 |
| Cc: | Manfred Spraul <manfred@xxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, zaitcev@xxxxxxxxxx, jbourne@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20030218212441.M25195@shell.cyberus.ca> |
| Organization: | none |
| References: | <3E4D66DF.3040800@colorfullife.com> <3E4D8295.2050400@pobox.com> <20030217.185719.28797590.davem@redhat.com> <3E525FD8.1060009@colorfullife.com> <20030218212441.M25195@shell.cyberus.ca> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk |
jamal wrote:
tg3 shuts down all interrupt sources, and handles all interrupt events in dev->poll(). David and I hashed it out a bit on IRC. The problem is that deliver_to_old_ones() waits, and thus the deadlock that Manfred described. For 2.4.x, the solution is simply to avoid the deadlock in the driver. For 2.5.x, David hinted that deliver_to_old_ones() may be going away. But what about media error interrupts, or tx interrupts? Or MIB counter overflow, etc. What about shared pci interrupts? Normally, yes. However tg3 grabs a lock just about anytime it does anything. ;-) A long term project of mine is to slowly remove these locks, but that must wait until the driver stabilizes, and is overall a long process. Most of the locks _are_ removeable, but we keep hit deadlock bugs like this, and hardware bugs which need workarounds, so those come first. All of them could occur, and if they take a spinlock that is held across netif_receive_skb(), then it can deadlock.
The locks can be removed eventually, but such is the state of life right now. Jeff |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: NAPI note, jamal |
|---|---|
| Next by Date: | Re: Getting details about an 802.1q VLAN interface from userspace, David S. Miller |
| Previous by Thread: | Re: NAPI note, jamal |
| Next by Thread: | Re: NAPI note, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |