linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jingoo Han <jg1.han@samsung.com>,
	Mohit Kumar <mohit.kumar@st.com>,
	linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: designware: reject MSI-X irqs
Date: Tue, 27 Jan 2015 10:22:30 +0100	[thread overview]
Message-ID: <1422350550.15206.8.camel@pengutronix.de> (raw)
In-Reply-To: <20150126181236.GA4063@google.com>

Hi Bjorn,

Am Montag, den 26.01.2015, 12:12 -0600 schrieb Bjorn Helgaas:
> On Mon, Jan 26, 2015 at 11:54:44AM +0100, Lucas Stach wrote:
> > The DW PCIe MSI hardware does not support MSI-X irqs. Setting those up
> > failed as a side effect of a bug which was fixed by 91f8ae823f2b
> > (PCI: designware: Setup and clear exactly one MSI at a time).
> > 
> > Now that this bug is fixed MSI-X irqs need to be rejected explicitly,
> > otherwise devices trying to use them may end up with incorrectly working
> > interrupts.
> > 
> > Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> 
> Applied with Jingoo's ack to pci/host-designware for v3.20, thanks!
> 
I would be happier if this could still find its way into v3.19 if you
are going to send another fixes pull, as this is clearly a regression
even if it was already introduced with v3.18.

> > Cc: <stable@vger.kernel.org> # 3.18
> > ---
> >  drivers/pci/host/pcie-designware.c | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c
> > index df781cdf13c1..17ca98657a28 100644
> > --- a/drivers/pci/host/pcie-designware.c
> > +++ b/drivers/pci/host/pcie-designware.c
> > @@ -283,6 +283,9 @@ static int dw_msi_setup_irq(struct msi_controller *chip, struct pci_dev *pdev,
> >  	struct msi_msg msg;
> >  	struct pcie_port *pp = sys_to_pcie(pdev->bus->sysdata);
> >  
> > +	if (desc->msi_attrib.is_msix)
> > +		return -EINVAL;
> > +
> >  	irq = assign_irq(1, desc, &pos);
> >  	if (irq < 0)
> >  		return irq;
> > -- 
> > 2.1.4
> > 



  reply	other threads:[~2015-01-27  9:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-26 10:54 [PATCH] PCI: designware: reject MSI-X irqs Lucas Stach
2015-01-26 11:19 ` Jingoo Han
2015-01-26 18:12 ` Bjorn Helgaas
2015-01-27  9:22   ` Lucas Stach [this message]
2015-01-27 16:38     ` Bjorn Helgaas

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=1422350550.15206.8.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=bhelgaas@google.com \
    --cc=jg1.han@samsung.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=mohit.kumar@st.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;
as well as URLs for NNTP newsgroup(s).