Fusion: Call pci_set_mwi()
Subsystems (2)
PATCH 1/1 Fusion: Call pci_set_mwi()
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 <[email protected]>
drivers/message/fusion/mptbase.c +3 -0
@@ -1153,6 +1153,9 @@ #endifif (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 )) {