mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ravinandan Arakali" <ravinandan.arakali@neterion.com>
To: <linux-kernel@vger.kernel.org>
Cc: "Ananda. Raju" <ananda.raju@neterion.com>,
	<netdev@vger.kernel.org>,
	"Leonid Grossman" <Leonid.Grossman@neterion.com>
Subject: pci_enable_msix throws up error
Date: Thu, 4 May 2006 16:16:13 -0700	[thread overview]
Message-ID: <MAEEKMLDLDFEGKHNIJHIOECKCEAA.ravinandan.arakali@neterion.com> (raw)

Hi,
I am seeing the following problem with MSI/MSI-X.

Note: I am copying netdev since other network drivers use
this feature and somebody on the list could throw light.

Our 10G network card(Xframe II) supports MSI and MSI-X.
When I load/unload the driver with MSI support followed
by an attempt to load with MSI-X, I get the following
message from pci_enable_msix:

"Can't enable MSI-X.  Device already has an MSI vector assigned"

I seem to be doing the correct things when unloading the
MSI driver. Basically, I do free_irq() followed by pci_disable_msi().
Any idea what I am missing ?

Further analysis:
Looking at the code, the following check(when it finds a match) in
msi_lookup_vector(called by pci_enable_msix) seems to throw up this
message:
if (!msi_desc[vector] || msi_desc[vector]->dev != dev ||
    msi_desc[vector]->msi_attrib.type != type ||
    msi_desc[vector]->msi_attrib.default_vector != dev->irq)

pci_enable_msi, on successful completion will populate the
fields in msi_desc. But neither pci_disable_msi nor free_irq
seems to undo/unpopulate the msi_desc table.
Could this be the cause for the problem ?

Thanks,
Ravi



             reply	other threads:[~2006-05-04 23:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-04 23:16 Ravinandan Arakali [this message]
2006-05-15 17:44 ` MSI-X support on AMD 8132 platforms ? Ravinandan Arakali
2006-05-15 19:01   ` Andi Kleen
2006-05-16 15:01     ` Petr Vandrovec
2006-05-16 18:44       ` Ravinandan Arakali
2006-05-05  5:14 pci_enable_msix throws up error Ayaz Abdulla
2006-05-05  8:44 ` Andi Kleen
2006-06-01 19:08 Ravinandan Arakali

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=MAEEKMLDLDFEGKHNIJHIOECKCEAA.ravinandan.arakali@neterion.com \
    --to=ravinandan.arakali@neterion.com \
    --cc=Leonid.Grossman@neterion.com \
    --cc=ananda.raju@neterion.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.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

all inboxes | Powered by JetHome®