* acpi_pci_irq_enable called for all PCI devices
@ 2004-08-04 0:39 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847070ED5D8-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Grover, Andrew @ 2004-08-04 0:39 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi Bjorn, Len, & all,
I'm looking at the code in pci_acpi_init that unconditionally calls
acpi_pci_irq_enable for all PCI devices. The comment says this is to
work around drivers that do not call pci_enable_device.
Do we know if there are any drivers broken in this manner? I think it
would be good to take advantage of the work done here and not do all IRQ
allocation at init.
I've admittedly been out of the loop - was there discussion about this I
missed?
Thanks -- Regards -- Andy
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: acpi_pci_irq_enable called for all PCI devices
[not found] ` <F760B14C9561B941B89469F59BA3A847070ED5D8-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-08-04 3:42 ` Len Brown
2004-08-04 14:21 ` Bjorn Helgaas
0 siblings, 1 reply; 3+ messages in thread
From: Len Brown @ 2004-08-04 3:42 UTC (permalink / raw)
To: Andrew Grover, Bjorn Helgaas; +Cc: ACPI Developers
On Tue, 2004-08-03 at 20:39, Grover, Andrew wrote:
> Hi Bjorn, Len, & all,
>
> I'm looking at the code in pci_acpi_init that unconditionally calls
> acpi_pci_irq_enable for all PCI devices. The comment says this is to
> work around drivers that do not call pci_enable_device.
>
> Do we know if there are any drivers broken in this manner? I think it
> would be good to take advantage of the work done here and not do all IRQ
> allocation at init.
>
I think this was just to be conservative (retain old behaviour) during
2.6.8. Perhaps we should delete that upon the start of 2.6.9...
-Len
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: acpi_pci_irq_enable called for all PCI devices
2004-08-04 3:42 ` Len Brown
@ 2004-08-04 14:21 ` Bjorn Helgaas
0 siblings, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2004-08-04 14:21 UTC (permalink / raw)
To: Len Brown; +Cc: Andrew Grover, ACPI Developers
On Tuesday 03 August 2004 9:42 pm, Len Brown wrote:
> On Tue, 2004-08-03 at 20:39, Grover, Andrew wrote:
> > I'm looking at the code in pci_acpi_init that unconditionally calls
> > acpi_pci_irq_enable for all PCI devices. The comment says this is to
> > work around drivers that do not call pci_enable_device.
> >
> > Do we know if there are any drivers broken in this manner? I think it
> > would be good to take advantage of the work done here and not do all IRQ
> > allocation at init.
>
> I think this was just to be conservative (retain old behaviour) during
> 2.6.8. Perhaps we should delete that upon the start of 2.6.9...
Yes, this was just to be conservative. In fact, I'm in the middle of a
little audit for this problem, and have found a few drivers that are
clearly broken. The following drivers use pci_dev->irq without calling
pci_enable_device():
drivers/atm/idt77252.c
drivers/char/ip2main.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/isdn/tpam/tpam_main.c
drivers/misc/ibmasm/module.c
drivers/net/hp100.c
drivers/net/ioc3-eth.c
drivers/net/tulip/de4x5.c
drivers/net/wan/sdladrv.c
drivers/scsi/cpqfcTSinit.c
I have patches for the above that I started posting yesterday. But
somebody pointed out that I really should add pci_disable_device()
calls at the same time, so I'm going back to do that. After posting
these driver patches, I'll post a patch to remove the unconditional
acpi_pci_irq_enable() calls in pci_acpi_init(). I'll probably add
a temporary "pci=routeirq" flag to retain the old behavior in case
I missed any drivers.
There are many others that don't call pci_enable_device() but don't
use pci_dev->irq. Those shouldn't be affected, so I haven't worried
too much about them.
Bjorn
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-04 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-04 0:39 acpi_pci_irq_enable called for all PCI devices Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A847070ED5D8-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-04 3:42 ` Len Brown
2004-08-04 14:21 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox