RE: [patch] PCI: disable MSI on more ATI NorthBridges

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Gaarenstroom <david.gaarenstroom@...>, <linux-kernel@...>
Cc: Linas Vepstas <linas@...>, <davem@...>, <gregkh@...>, <htejun@...>, <brice.goglin@...>, <linux-pci@...>, <jgarzik@...>, Shane Huang <Shane.Huang@...>
Date: Tuesday, October 23, 2007 - 6:56 am

> If the pci_intx change will be applied to the SATA driver, can it be

I checked the USB MSI problem above(also has reported to our hardware
team),
the cause seems same as our SB700 SATA controller MSI problem.

I also did some small USB MSI debug on our SB700 board with 2.6.23-rc5:
The USB part of the second patch(attached at the end of this mail)
does not work for SB700 USB EHCI/OHCI controllers, no matter INTx is
enabled or disabled before enter MSI. The USB host controllers are
always using IO-APIC, which is different from SB400. I don't know why.

[root@localhost ~]# cat /proc/interrupts 
           CPU0       CPU1  
17:          0        133   IO-APIC-fasteoi   ohci_hcd:usb1,
ohci_hcd:usb2, ehci_hcd:usb6
18:          1          2   IO-APIC-fasteoi   ohci_hcd:usb3,
ohci_hcd:usb4, ohci_hcd:usb5
19:          0          0   IO-APIC-fasteoi   ehci_hcd:usb7

Also I wonder why the USB MSI patch is not added into kernel at last?
Will it lead to other bugs?


Thanks
Best Regards
Shane


======> USB part of the second patch in lkml.org/lkml/2006/12/21/47
diff -uprdN linux/drivers/usb/core/hcd-pci.c
linux/drivers/usb/core/hcd-pci.c
--- linux/drivers/usb/core/hcd-pci.c	2006-12-16 13:34:57.000000000
-0800
+++ linux/drivers/usb/core/hcd-pci.c	2006-12-16 13:57:09.000000000
-0800
@@ -69,6 +69,7 @@ int usb_hcd_pci_probe (struct pci_dev *d
 
 	if (pci_enable_device (dev) < 0)
 		return -ENODEV;
+	pci_enable_msi(dev);
 	dev->current_state = PCI_D0;
 	dev->dev.power.power_state = PMSG_ON;
 	
@@ -139,6 +140,7 @@ int usb_hcd_pci_probe (struct pci_dev *d
 		release_region (hcd->rsrc_start, hcd->rsrc_len);
  err2:
 	usb_put_hcd (hcd);
+	pci_disable_msi (dev);
  err1:
 	pci_disable_device (dev);
 	dev_err (&dev->dev, "init %s fail, %d\n", pci_name(dev),
retval);
@@ -177,6 +179,7 @@ void usb_hcd_pci_remove (struct pci_dev 
 		release_region (hcd->rsrc_start, hcd->rsrc_len);
 	}
 	usb_put_hcd (hcd);
+	pci_disable_msi(dev);
 	pci_disable_device(dev);
 }
 EXPORT_SYMBOL (usb_hcd_pci_remove);
@@ -391,6 +394,7 @@ int usb_hcd_pci_resume (struct pci_dev *
 			"can't re-enable after resume, %d!\n", retval);
 		return retval;
 	}
+	pci_enable_msi (dev);
 	pci_set_master (dev);
 	pci_restore_state (dev);






-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [patch] PCI: disable MSI on more ATI NorthBridges, Shane Huang, (Fri Oct 19, 9:17 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Linas Vepstas, (Fri Oct 19, 3:57 pm)
RE: [patch] PCI: disable MSI on more ATI NorthBridges, Shane Huang, (Sat Oct 20, 10:50 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Gaarenstroom, (Sat Oct 20, 4:52 pm)
RE: [patch] PCI: disable MSI on more ATI NorthBridges, Shane Huang, (Tue Oct 23, 6:56 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Miller, (Tue Oct 23, 10:41 pm)
RE: [patch] PCI: disable MSI on more ATI NorthBridges, Shane Huang, (Sun Oct 21, 2:00 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Jeff Garzik, (Fri Oct 19, 4:21 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Daniel Barkalow, (Mon Oct 22, 4:26 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Jeff Garzik, (Mon Oct 22, 4:41 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Krzysztof Halasa, (Mon Oct 22, 7:40 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Jeff Garzik, (Tue Oct 23, 6:13 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Miller, (Mon Oct 22, 7:58 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Daniel Barkalow, (Mon Oct 22, 5:31 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Jeff Garzik, (Tue Oct 23, 6:15 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Miller, (Mon Oct 22, 8:13 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Jeff Garzik, (Tue Oct 23, 6:01 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Miller, (Tue Oct 23, 6:06 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, David Miller, (Tue Oct 23, 10:46 pm)
RE: [patch] PCI: disable MSI on more ATI NorthBridges, Shane Huang, (Tue Oct 23, 5:39 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Daniel Barkalow, (Tue Oct 23, 1:52 am)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Krzysztof Halasa, (Mon Oct 22, 7:48 pm)
Re: [patch] PCI: disable MSI on more ATI NorthBridges, Benjamin Herrenschmidt, (Sat Oct 20, 6:03 pm)