linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pci_try_set_mwi() in sata_promise
@ 2008-04-22 18:26 Marin Mitov
  2008-04-23  7:57 ` Mikael Pettersson
  0 siblings, 1 reply; 7+ messages in thread
From: Marin Mitov @ 2008-04-22 18:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jeff Garzik, Mikael Pettersson, linux-ide

Hi all,

The BIOS (Asus A8V Deluxe) is setting incorrectly PCI
Cache Line Size Register (as seen in lspci -vvv output), 
so try to correct it by pci_try_set_mwi(pdev).

Marin Mitov
----------------------------------------------------------
Enable Memory-Write-and-Invalidate in sata_promise driver and 
get rid of strange BIOS-set value for cache line size register.

According to Documentation/pci.txt:  "This enables...
...and also ensures that the cache line size register
is set correctly".

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
----------------------------------------------------------
--- a/drivers/ata/sata_promise.c	2008-04-22 13:09:15.000000000 +0300
+++ b/drivers/ata/sata_promise.c	2008-04-22 13:11:01.000000000 +0300
@@ -1114,6 +1114,7 @@ static int pdc_ata_init_one(struct pci_d

 	/* start host, request IRQ and attach */
 	pci_set_master(pdev);
+	pci_try_set_mwi(pdev);
 	return ata_host_activate(host, pdev->irq, pdc_interrupt, IRQF_SHARED,
 				 &pdc_ata_sht);
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-23 18:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22 18:26 [PATCH] pci_try_set_mwi() in sata_promise Marin Mitov
2008-04-23  7:57 ` Mikael Pettersson
2008-04-23 12:31   ` Marin Mitov
2008-04-23 12:34   ` Marin Mitov
2008-04-23 13:33   ` Marin Mitov
2008-04-23 14:46     ` Grant Grundler
2008-04-23 18:15       ` Marin Mitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).