Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2007 23:33:51 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 118502 for review
Message-ID:  <200704202333.l3KNXp1S061688@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=118502

Change 118502 by mjacob@mjexp on 2007/04/20 23:32:53

	While it's true we have motherboard blacklists for MSI
	breakage, it's true that this is incomplete. Save ourselves
	some grief by not trying to do MSI for Ultra320 chips.
	
	MFP4 after:	1 days

Affected files ...

.. //depot/projects/mjexp/sys/dev/mpt/mpt_pci.c#9 edit

Differences ...

==== //depot/projects/mjexp/sys/dev/mpt/mpt_pci.c#9 (text+ko) ====

@@ -522,11 +522,13 @@
 
 	/* Get a handle to the interrupt */
 	iqd = 0;
+
 	/*
 	 * First try to alloc an MSI-X message.  If that
 	 * fails, then try to alloc an MSI message instead.
+	 * Don't do this for U320 chips.
 	 */
-	if (pci_msix_count(dev) == 1) {
+	if (mpt->is_spi == 0 && pci_msix_count(dev) == 1) {
 		mpt->pci_msi_count = 1;
 		if (pci_alloc_msix(dev, &mpt->pci_msi_count) == 0) {
 			iqd = 1;
@@ -534,7 +536,7 @@
 			mpt->pci_msi_count = 0;
 		}
 	}
-	if (iqd == 0 && pci_msi_count(dev) == 1) {
+	if (mpt->is_spi == 0 && iqd == 0 && pci_msi_count(dev) == 1) {
 		mpt->pci_msi_count = 1;
 		if (pci_alloc_msi(dev, &mpt->pci_msi_count) == 0) {
 			iqd = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704202333.l3KNXp1S061688>