From: Roland Dreier <roland@topspin.com>
To: long <tlnguyen@snoqualmie.dp.intel.com>
Cc: ak@muc.de, akpm@osdl.org, greg@kroah.com, jgazik@pobox.com,
linux-kernel@vger.kernel.org, tom.l.nguyen@intel.com,
zwane@linuxpower.ca
Subject: Re: [PATCH]2.6.7 MSI-X Update
Date: Wed, 14 Jul 2004 19:14:22 -0700 [thread overview]
Message-ID: <528ydmqao1.fsf@topspin.com> (raw)
In-Reply-To: <200407132202.i6DM2hRa007928@snoqualmie.dp.intel.com> (long's message of "Tue, 13 Jul 2004 15:02:43 -0700")
Long, welcome back. I will review your patch as soon as I have a
little free time.
Roland> 2) removing this overloaded function from free_irq() will
Roland> also make driver code clearer and easier to maintain.
long> I need this overloaded function to keep track of the state
long> of each MSI/MSI-X vector. This allows me to generate a
long> BUG_ON() if driver calls
long> pci_disable_msi()/pci_disable_msix() without calling
long> free_irq() for all MSI/MSI-X vector(s).
I think it's OK to keep track of which MSI/MSI-X vectors have ISRs
attached and which don't. However I don't think free_irq() should
return a vector to the free pool (that might be used by other
devices). In other words it should be OK for a correct driver to do
pci_enable_msix(pdev...);
request_irq(msix_vector1);
free_irq(msix_vector1);
request_irq(msix_vector1);
free_irq(msix_vector1);
pci_disable_msix(pdev...);
(obviously with some code in between operations).
I think we agree on this and I will read your code to find out what
you actually do but I just wanted to make my proposed interface clear.
Thanks,
Roland
next prev parent reply other threads:[~2004-07-15 2:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-13 22:02 Re:[PATCH]2.6.7 MSI-X Update long
2004-07-15 2:14 ` Roland Dreier [this message]
2004-07-18 1:25 ` [PATCH]2.6.7 " Roland Dreier
-- strict thread matches above, loose matches on Subject: below --
2004-07-19 15:36 Nguyen, Tom L
2004-07-15 15:46 Nguyen, Tom L
2004-06-26 1:21 long
2004-06-26 0:30 ` [PATCH]2.6.7 " Roland Dreier
2004-06-26 1:38 ` Roland Dreier
2004-06-26 8:27 ` Christoph Hellwig
2004-06-26 17:30 ` Roland Dreier
2004-06-24 16:29 Nguyen, Tom L
2004-06-23 22:03 Nguyen, Tom L
2004-06-24 1:42 ` Roland Dreier
2004-06-24 6:37 ` Zwane Mwaikambo
2004-06-24 7:27 ` Roland Dreier
2004-06-23 16:58 Nguyen, Tom L
2004-06-23 16:49 Nguyen, Tom L
2004-06-22 23:06 Nguyen, Tom L
2004-06-22 21:48 long
2004-06-22 23:57 ` Roland Dreier
2004-06-23 0:26 ` Jeff Garzik
2004-06-23 1:18 ` Roland Dreier
2004-06-23 3:45 ` Roland Dreier
2004-06-23 16:50 ` Roland Dreier
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=528ydmqao1.fsf@topspin.com \
--to=roland@topspin.com \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=jgazik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tlnguyen@snoqualmie.dp.intel.com \
--cc=tom.l.nguyen@intel.com \
--cc=zwane@linuxpower.ca \
/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.