login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
16
Re: MSI interrupts and disable_irq
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: MSI interrupts and disable_irq
Date: Tuesday, October 16, 2007 - 11:01 am
On 10/16/07, Jeff Garzik <jgarzik@pobox.com> wrote:
quoted text
> Yinghai Lu wrote: > > On 10/15/07, Jeff Garzik <jgarzik@pobox.com> wrote: > >> Manfred Spraul wrote: > >>> Jeff Garzik wrote: > >>>> I think the scenario you outline is an illustration of the approach's > >>>> fragility: disable_irq() is a heavy hammer that originated with INTx, > >>>> and it relies on a chip-specific disable method (kernel/irq/manage.c) > >>>> that practically guarantees behavior will vary across MSI/INTx/etc. > >>>> > >>> I checked the code: IRQ_DISABLE is implemented in software, i.e. > >>> handle_level_irq() only calls handle_IRQ_event() [and then the nic irq > >>> handler] if IRQ_DISABLE is not set. > >>> OTHO: The last trace looks as if nv_do_nic_poll() is interrupted by an irq. > >>> > >>> Perhaps something corrupts dev->irq? The irq is requested with > >>> request_irq(np->pci_dev->irq, handler, IRQF_SHARED, dev->name, dev) > >>> and disabled with > >>> disable_irq_lockdep(dev->irq); > >>> > >>> Someone around with a MSI capable board? The forcedeth driver does > >>> dev->irq = pci_dev->irq > >>> in nv_probe(), especially before pci_enable_msi(). > >>> Does pci_enable_msi() change pci_dev->irq? Then we would disable the > >>> wrong interrupt.... > >> Remember, fundamentally MSI-X is a one-to-many relationship, when you > >> consider a single PCI device might have multiple vectors. > > > > msi-x is using other entry > > > > if (np->msi_flags & NV_MSI_X_ENABLED) > > > > enable_irq_lockdep(np->msi_x_entry[NV_MSI_X_VECTOR_ALL].vector); > > Correct, but the overall point was that MSI-X conceptually conflicts > with the existing "lockless" disable_irq() schedule, which was written > when there was a one-one relationship between irq, PCI device, and work > to be done.
at this point, nic in mcp55 is using msi or INTx. YH -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: MSI interrupts and disable_irq
, Jeff Garzik
, (Fri Sep 28, 7:47 pm)
Re: MSI interrupts and disable_irq
, Stephen Hemminger
, (Fri Sep 28, 8:08 pm)
Re: MSI interrupts and disable_irq
, Eric W. Biederman
, (Fri Oct 5, 3:12 pm)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Fri Oct 5, 11:23 pm)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Sat Oct 6, 10:43 am)
Re: MSI interrupts and disable_irq
, Jeff Garzik
, (Sat Oct 6, 10:59 am)
Re: MSI interrupts and disable_irq
, Manfred Spraul
, (Sun Oct 7, 9:54 am)
Re: MSI interrupts and disable_irq
, Manfred Spraul
, (Sat Oct 13, 2:30 am)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Sat Oct 13, 10:59 pm)
Re: MSI interrupts and disable_irq
, Manfred Spraul
, (Sun Oct 14, 12:15 am)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Sun Oct 14, 12:55 pm)
Re: MSI interrupts and disable_irq
, Benjamin Herrenschmidt
, (Sun Oct 14, 2:47 pm)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Sun Oct 14, 4:15 pm)
Re: MSI interrupts and disable_irq
, Benjamin Herrenschmidt
, (Sun Oct 14, 4:36 pm)
Re: MSI interrupts and disable_irq
, Jeff Garzik
, (Mon Oct 15, 3:17 pm)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Tue Oct 16, 10:23 am)
Re: MSI interrupts and disable_irq
, Jeff Garzik
, (Tue Oct 16, 10:39 am)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Tue Oct 16, 10:59 am)
Re: MSI interrupts and disable_irq
, Yinghai Lu
, (Tue Oct 16, 11:01 am)
Re: MSI interrupts and disable_irq
, Jeff Garzik
, (Tue Oct 16, 12:44 pm)
Re: MSI interrupts and disable_irq
, Manfred Spraul
, (Wed Oct 17, 12:43 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate