Author: mav
Date: Thu Oct 29 09:45:48 2009
New Revision: 198572
URL: http://svn.freebsd.org/changeset/base/198572

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

Modified:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/ata/chipsets/ata-nvidia.c
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/ata/chipsets/ata-nvidia.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-nvidia.c  Thu Oct 29 09:45:05 2009        
(r198571)
+++ stable/8/sys/dev/ata/chipsets/ata-nvidia.c  Thu Oct 29 09:45:48 2009        
(r198572)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to