mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: sergio@sergiomb.no-ip.org
Cc: bjorn.helgaas@hp.com, linux-kernel@vger.kernel.org,
	Alan Cox <alan@lxorguk.ukuu.org.uk>, Chris Wedgwood <cw@f00f.org>,
	greg@kroah.com, jeff@garzik.org, harmon@ksu.edu,
	Daniel Drake <dsd@gentoo.org>, Len Brown <len.brown@intel.com>
Subject: Re: VIA IRQ quirk fixup only in XT-PIC mode Take 3
Date: Sun, 3 Sep 2006 17:58:41 -0700	[thread overview]
Message-ID: <20060903175841.7a84c63c.akpm@osdl.org> (raw)
In-Reply-To: <1157330567.3046.24.camel@localhost.portugal>

On Mon, 04 Sep 2006 01:42:47 +0100
Sergio Monteiro Basto <sergio@sergiomb.no-ip.org> wrote:

> Hi, this patch (now for 2.6.18-rc5).
> 
> 
> I found, on my new VIA with IO-APIC working well, that quirks aren't
> good/needed.
> After, I found this interesting email http://lkml.org/lkml/2005/8/13/30
> by Karsten Wiese, after, Alan Cox writes this
> http://lkml.org/lkml/2005/8/16/160 (on same thread) and Karsten Wiese
> end ups with the solution on http://lkml.org/lkml/2005/8/18/92, which I
> want try to implement.  
> I have 2 VIAs with almost same IDs (others reporters have
> with exactly the same IDs) and in ones I need the quirks and in others
> don't, because one don't have APIC enabled, the other have it !?!
> 
> we have other reported of the same problem
> http://lkml.org/lkml/2006/7/30/59
> and 
> http://lkml.org/lkml/2006/9/1/106
> 
> Checking my emails that I send to Len Brown on May of 2005 about this
> subject. I found, what I want, is just revert one patch of Bjorn
> Helgaas, between kernel 2.6.12-rc5 and 6.14.
> Check this out
> http://sourceforge.net/mailarchive/message.php?msg_id=11858102
> 
> To finish I want put clear, the great work of Bjorn Helgaas which have
> made all of this, but at the end, I suspect with one false positive
> report introduce this regression, that I hopefully found.
> 

This thing is getting embarrassing.

> diff linux-2.6.17.x86_64/drivers/pci/quirks.c.orig linux-2.6.17.x86_64/drivers/pci/quirks.c -up
> --- linux-2.6.17.x86_64/drivers/pci/quirks.c.orig       2006-09-04 01:37:09.000000000 +0100
> +++ linux-2.6.17.x86_64/drivers/pci/quirks.c    2006-09-04 01:40:16.000000000 +0100
> @@ -654,22 +654,24 @@ static void quirk_via_irq(struct pci_dev
>  {
>         u8 irq, new_irq;
> 
> +#ifdef CONFIG_X86_IO_APIC
> +       if (nr_ioapics && !skip_ioapic_setup)
> +               return;
> +#endif
> +#ifdef CONFIG_ACPI
> +       if (acpi_irq_model != ACPI_IRQ_MODEL_PIC)
> +               return;
> +#endif
>         new_irq = dev->irq & 0xf;
>         pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq);
>         if (new_irq != irq) {
> -               printk(KERN_INFO "PCI: VIA IRQ fixup for %s, from %d to %d\n",
> +               printk(KERN_INFO "PCI: VIA PIC IRQ fixup for %s, from %d to %d\n",
>                         pci_name(dev), irq, new_irq);
>                 udelay(15);     /* unknown if delay really needed */
>                 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, new_irq);
>         }
>  }
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_0, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_2, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_3, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4, quirk_via_irq);
> -DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_5, quirk_via_irq);
> +DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_ANY_ID, quirk_via_irq);
> 
>  /*
>   * VIA VT82C598 has its device ID settable and many BIOSes
> 

There's a similar patch in -mm: pci-quirk_via_irq-behaviour-change.patch. 
Does that work for you?
  

-- 
VGER BF report: H 0

  reply	other threads:[~2006-09-04  0:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04  0:42 Sergio Monteiro Basto
2006-09-04  0:58 ` Andrew Morton [this message]
2006-09-04  5:44   ` Jeff Garzik
2006-09-03 13:52     ` Daniel Drake
2006-09-04  5:55     ` VIA IRQ quirk, another (embarrassing) suggestion Chris Wedgwood
2006-09-04  7:43       ` Jeff Garzik
2006-09-04 11:54       ` Sergio Monteiro Basto
2006-09-04 12:14         ` Jeff Garzik
2006-09-04 18:33         ` Chris Wedgwood
2006-09-05 14:55           ` Sergio Monteiro Basto
2006-09-05 15:13             ` Jeff Garzik
2006-09-06  1:14               ` [PATCH] take 4 " Sergio Monteiro Basto
2006-09-06  1:47                 ` Jeff Garzik
2006-09-05 15:46             ` Alan Cox
2006-09-04 16:25   ` VIA IRQ quirk fixup only in XT-PIC mode Take 3 Sergio Monteiro Basto

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=20060903175841.7a84c63c.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=bjorn.helgaas@hp.com \
    --cc=cw@f00f.org \
    --cc=dsd@gentoo.org \
    --cc=greg@kroah.com \
    --cc=harmon@ksu.edu \
    --cc=jeff@garzik.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sergio@sergiomb.no-ip.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®