public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Varun Prakash <varun@chelsio.com>
To: Christoph Hellwig <hch@lst.de>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] csiostor: switch to pci_alloc_irq_vectors
Date: Mon, 3 Apr 2017 20:21:26 +0530	[thread overview]
Message-ID: <20170403145124.GA1743@chelsio.com> (raw)
In-Reply-To: <20170331065527.GA3024@lst.de>

On Fri, Mar 31, 2017 at 12:25:27PM +0530, Christoph Hellwig wrote:
> On Fri, Jan 20, 2017 at 07:27:02PM -0500, Martin K. Petersen wrote:
> > >>>>> "Christoph" == Christoph Hellwig <hch@lst.de> writes:
> >
> > Christoph> And get automatic MSI-X affinity for free.
> >
> > Chelsio folks: Please review and test!
>
> ping!

csiostor driver is triggering WARN_ON with this patch
drivers/pci/msi.c:1193

1172 int pci_alloc_irq_vectors_affinity(struct pci_dev *dev, unsigned int min_vecs,
1173                                    unsigned int max_vecs, unsigned int flags,
1174                                    const struct irq_affinity *affd)
1175 {
1176         static const struct irq_affinity msi_default_affd;
1177         int vecs = -ENOSPC;
1178
1179         if (flags & PCI_IRQ_AFFINITY) {
		...
1192         } else {
1193                 if (WARN_ON(affd))
1194                         affd = NULL;
1195         }


PCI_IRQ_AFFINITY flag is missing

+	cnt = pci_alloc_irq_vectors_affinity(hw->pdev, min, cnt, PCI_IRQ_MSIX,
+			&desc);
+	if (cnt < 0)
 		return cnt;
-	}

  reply	other threads:[~2017-04-03 14:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 16:30 [PATCH] csiostor: switch to pci_alloc_irq_vectors Christoph Hellwig
2017-01-21  0:27 ` Martin K. Petersen
2017-03-31  6:55   ` Christoph Hellwig
2017-04-03 14:51     ` Varun Prakash [this message]
2017-04-04  6:46       ` Christoph Hellwig
2017-04-04  8:19         ` Varun Prakash
2017-04-05  6:26           ` Christoph Hellwig
2017-04-05 15:39             ` Varun Prakash
2017-04-06  7:58               ` Christoph Hellwig
2017-04-06 15:26                 ` Varun Prakash
2017-04-06 16:58                 ` Martin K. Petersen

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=20170403145124.GA1743@chelsio.com \
    --to=varun@chelsio.com \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox