* [PATCH] Fusion: Call pci_set_mwi()
@ 2006-10-13 16:24 Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2006-10-13 16:24 UTC (permalink / raw)
To: Moore, Eric; +Cc: linux-scsi
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@wil.cx>
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)) {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] Fusion: Call pci_set_mwi()
@ 2007-01-19 21:03 Moore, Eric
0 siblings, 0 replies; 2+ messages in thread
From: Moore, Eric @ 2007-01-19 21:03 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-scsi
On Friday, October 13, 2006 10:25 AM,Matthew Wilcox wrote:
>
> 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@wil.cx>
>
> 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)) {
>
>
I just responded to the HP thread, and I remember this patch.
I hadn't had a chance to check this up. Pls let me know importance of
this,
and I will ask around the office wrt to this patch.. You don't think
this shouldn't break anything else? , such
as pci-express cards, cuase we have 1030 pcie, as well as FC and SAS
that
are express.
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-19 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-13 16:24 [PATCH] Fusion: Call pci_set_mwi() Matthew Wilcox
-- strict thread matches above, loose matches on Subject: below --
2007-01-19 21:03 Moore, Eric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox