Re: [PATCH] VIA IRQ quirk fixup only in XT_PIC mode Take 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-08-29 at 23:46 -0400, Daniel Drake wrote:
> Sergio Monteiro Basto wrote:
> > I remember check my emails that I send to Len Brown about this subject.
> > And I found, what I want, is just revert one patch of Bjorn Helgaas :)
> > between kernel 2.6.12-rc5 and 6.13.
> 
> It does look like this patch was under discussion of being reverted 
> before. See http://lkml.org/lkml/2005/9/26/183

To be honest, I prefer put again this :

 +#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

about Linus suggestion : 
-	new_irq = dev->irq & 0xf;
+	new_irq = dev->irq;
+	if (!new_irq || new_irq >= 15)
+		return;

no, we have problem with VIA SATA controllers which have irq lower than
15 

Thanks,

> 
> The following comment still stands when we just revert Bjorn's change:
> 
> >> I'm reasonably certain that this patch will apply the quirks on the 
> >> affected systems again, so I'm happy for it to be applied, people will 
> >> be able to use their hardware again. However I'm not sure how good a 
> >> solution it is, because in some circumstances it will apply the quirks 
> >> to VIA PCI cards on non-VIA boards, which was the reason we messed with 
> >> this code in the first place. We could possibly merge it with the 
> >> southbridge detection hack, but it gets a bit silly at that point...
> 
> So perhaps the best solution is a combination of reverting Bjorn's 
> patch, adding Linus' suggested change, and adding my southbridge hack.
> 
> Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux