linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Olaf Hering <olh@suse.de>, Bjorn Helgaas <bjorn.helgaas@hp.com>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	Andrew Morton <akpm@osdl.org>, Stian Jordet <liste@jordet.nu>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: bogus VIA IRQ fixup in drivers/pci/quirks.c
Date: Mon, 26 Sep 2005 14:59:24 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0509261446590.3308@g5.osdl.org> (raw)
In-Reply-To: <20050926184451.GB11752@suse.de>



On Mon, 26 Sep 2005, Olaf Hering wrote:
> 
> Why is the irq changed from 24 to 0, and why does uhci use irq 24
> anyway? I dont have the /proc/interrupts output from this box, maybe no
> interrupt is handled for the controller? None of the attached usb
> devices is recognized with 2.6.13.

Did that USB controller use to work in older kernels?

> <6>USB Universal Host Controller Interface driver v2.3
> <4>PCI: Enabling device 0000:00:0e.0 (0094 ->0095)
> <6>PCI:Via IRQ fixup for 0000:00:0e.0, from 24 to 0

That does seem to be seriously broken.

The old code wouldn't do that IRQ fixup for IO-APIC users, and I think 
that's correct.

The commit (93cffffa19960464a52f9c78d9a6150270d23785) says:

    [PATCH] PCI: do VIA IRQ fixup always, not just in PIC mode

    At least some VIA chipsets require the fixup even in IO-APIC mode.

    This was found and debugged with the patient assistance of Stian
    Jordet <liste@jordet.nu> on an Asus CUV266-DLS motherboard.

and I've cc'd the guilty parties. 

Bjorn: there's no way that "& 15" can be correct. There is no reason to
believe that the APIC interrupt number bears any relation to the legacy 
number or the low four bits.

Others (Mathieu Berard) have reported problems with that patch too, I
think we should revert it.

What are the numbers for Stian Jordet? It might make more sense to instead 
of comparing for ACPI/IO-APIC, just compare the irq against 16. Ie just do

	if (dev->irq > 15)
		return;

in quirk_via_irq(), since if it's not a legacy mode interrupt, we simply
don't know what to do. That "&15" is just a total guess, and makes little 
or no sense at all.

		Linus

  reply	other threads:[~2005-09-26 22:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-26 18:44 bogus VIA IRQ fixup in drivers/pci/quirks.c Olaf Hering
2005-09-26 21:59 ` Linus Torvalds [this message]
2005-09-27  6:09   ` Olaf Hering
2005-09-27 12:29   ` Olaf Hering
2005-09-27 14:27   ` Stian Jordet
2005-09-27 14:42     ` Linus Torvalds
2005-09-27 21:19       ` Stian Jordet
2005-09-27 21:36         ` Linus Torvalds
2005-09-27 21:48           ` Stian Jordet
2005-09-27 22:58             ` Linus Torvalds
2005-09-28  7:28               ` Matthieu CASTET
2005-09-28 15:32                 ` Matthieu CASTET
2005-09-27 21:52           ` Stian Jordet

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=Pine.LNX.4.58.0509261446590.3308@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=akpm@osdl.org \
    --cc=bjorn.helgaas@hp.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liste@jordet.nu \
    --cc=olh@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).