svn commit: r198479 - head/sys/dev/ata/chipsets
Alexander Motin
mav at FreeBSD.org
Mon Oct 26 08:41:10 UTC 2009
Author: mav
Date: Mon Oct 26 08:41:10 2009
New Revision: 198479
URL: http://svn.freebsd.org/changeset/base/198479
Log:
Fix SATA on nVidia MCP55 chipset. It needs some short time to allow BAR(5)
memory access.
PR: amd64/128686, amd64/132372, amd64/139156
MFC after: 3 days
Modified:
head/sys/dev/ata/chipsets/ata-nvidia.c
Modified: head/sys/dev/ata/chipsets/ata-nvidia.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-nvidia.c Mon Oct 26 07:43:41 2009 (r198478)
+++ head/sys/dev/ata/chipsets/ata-nvidia.c Mon Oct 26 08:41:10 2009 (r198479)
@@ -165,7 +165,8 @@ ata_nvidia_chipinit(device_t dev)
/* enable control access */
pci_write_config(dev, 0x50, pci_read_config(dev, 0x50, 1) | 0x04,1);
-
+ /* MCP55 seems to need some time to allow r_res2 read. */
+ DELAY(10);
if (ctlr->chip->cfg1 & NVQ) {
/* clear interrupt status */
ATA_OUTL(ctlr->r_res2, offset, 0x00ff00ff);
More information about the svn-src-all
mailing list