[PATCH] Fusion: Call pci_set_mwi()

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

 



Hi Eric,

Even though the 1030 is a PCI-X device, it can still be plugged into a PCI
bus, and end up operating in PCI mode.  According to the documentation,
it will benefit from using MWI and MRM commands, but in order to do so
under Linux, we need to call pci_set_mwi(), which is what this patch does.
Please apply.

P.S. The if condition is just to avoid the warning from __must_check.
Most device drivers do need to check and adjust their internal flags if
it fails, but according to the 1030 manual, the chip automatically
decides when to use MWI.

Signed-off-by: Matthew Wilcox <matthew@xxxxxx>

diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 29d0635..d301a67 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -1153,6 +1153,9 @@ #endif
 	if (pci_enable_device(pdev))
 		return r;
 
+	if (pci_set_mwi(pdev))
+		/* We don't have to do anything if it fails */;
+
 	dinitprintk((KERN_WARNING MYNAM ": mpt_adapter_install\n"));
 
 	if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK)) {

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux