From: Frederik Himpe <fhimpe@vub.ac.be>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Hannes Reinecke <hare@suse.de>,
linux-kernel@vger.kernel.org, Oliver Neukum <oneukum@suse.de>,
David Haerdeman <david@hardeman.nu>,
linux-usb@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH] pci: do not try to assign irq 255
Date: Tue, 19 Feb 2013 23:36:22 +0100 [thread overview]
Message-ID: <20130219223622.GA31434@artipc10.vub.ac.be> (raw)
In-Reply-To: <CAErSpo5j5WXx-Y4ML22yzsVzXgXnT9JoD1EGvGRMy55GGRdn6A@mail.gmail.com>
On Tue, Feb 19, 2013 at 12:47:32PM -0700, Bjorn Helgaas wrote:
> On Mon, Feb 18, 2013 at 3:09 AM, Hannes Reinecke <hare@suse.de> wrote:
> > The PCI config space reseves a byte for the interrupt line,
> > so irq 255 actually refers to 'not set'.
> > However, the 'irq' field for struct pci_dev is an integer,
> > so the original meaning is lost, causing the system to
> > assign an interrupt '255', which fails.
> >
> > So we should _not_ assign an interrupt value here, and
> > allow upper layers to fixup things.
> >
> > This patch make PCI devices with MSI interrupts only
> > (like the xhci device on certain HP laptops) work properly.
> >
> > Cc: Frederik Himpe <fhimpe@vub.ac.be>
> > Cc: Oliver Neukum <oneukum@suse.de>
> > Cc: David Haerdeman <david@hardeman.nu>
> > Cc: linux-usb@vger.kernel.org
> > Cc: linux-pci@vger.kernel.org
> > Signed-off-by: Hannes Reinecke <hare@suse.de>
> >
> > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
> > index 6186f03..a2db887f 100644
> > --- a/drivers/pci/probe.c
> > +++ b/drivers/pci/probe.c
> > @@ -923,7 +923,8 @@ static void pci_read_irq(struct pci_dev *dev)
> > dev->pin = irq;
> > if (irq)
> > pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq);
> > - dev->irq = irq;
> > + if (irq < 255)
> > + dev->irq = irq;
> > }
> >
> > void set_pcie_port_type(struct pci_dev *pdev)
>
> Is there a bugzilla or other URL with more information (problem
> description, hardware involved, dmesg logs, acpidump, etc)?
https://bugzilla.kernel.org/show_bug.cgi?id=52591
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1072918
Basically it looks like most HP Probook/Elitebook of the Ivy Bridge
generation are affected.
--
Frederik Himpe
prev parent reply other threads:[~2013-02-19 22:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-18 10:09 [PATCH] pci: do not try to assign irq 255 Hannes Reinecke
2013-02-19 1:13 ` David Härdeman
2013-02-19 19:40 ` Yinghai Lu
2013-02-20 7:58 ` Hannes Reinecke
2013-02-20 16:57 ` Yinghai Lu
2013-02-21 6:53 ` Hannes Reinecke
2013-02-26 13:29 ` David Härdeman
2013-02-26 13:50 ` Hannes Reinecke
2013-02-27 21:13 ` Bjorn Helgaas
2013-02-28 16:13 ` Hannes Reinecke
2013-03-01 7:41 ` Hannes Reinecke
2013-03-05 22:41 ` Sarah Sharp
2013-03-26 21:54 ` Bjorn Helgaas
2013-03-26 23:34 ` Yinghai Lu
2013-09-10 21:53 ` Bjorn Helgaas
2013-02-19 19:47 ` Bjorn Helgaas
2013-02-19 22:36 ` Frederik Himpe [this message]
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=20130219223622.GA31434@artipc10.vub.ac.be \
--to=fhimpe@vub.ac.be \
--cc=bhelgaas@google.com \
--cc=david@hardeman.nu \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oneukum@suse.de \
/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).