svn commit: r237192 - stable/8/sys/dev/ata/chipsets

Marius Strobl marius at FreeBSD.org
Sun Jun 17 11:16:18 UTC 2012


Author: marius
Date: Sun Jun 17 11:16:17 2012
New Revision: 237192
URL: http://svn.freebsd.org/changeset/base/237192

Log:
  MFC: r237107
  
  - As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
    as well as it causes the kernel to hang during boot.
    Reported and tested by: Kevin Oberman
  - Use NULL instead of 0 for a pointer.

Modified:
  stable/8/sys/dev/ata/chipsets/ata-ite.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (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/e1000/   (props changed)

Modified: stable/8/sys/dev/ata/chipsets/ata-ite.c
==============================================================================
--- stable/8/sys/dev/ata/chipsets/ata-ite.c	Sun Jun 17 11:16:14 2012	(r237191)
+++ stable/8/sys/dev/ata/chipsets/ata-ite.c	Sun Jun 17 11:16:17 2012	(r237192)
@@ -105,10 +105,10 @@ ata_ite_chipinit(device_t dev)
 
 	ctlr->setmode = ata_ite_821x_setmode;
 	/* No timing restrictions initally. */
-	ctlr->chipset_data = (void *)0;
+	ctlr->chipset_data = NULL;
     }
     ctlr->ch_attach = ata_ite_ch_attach;
-    return 0;
+    return (0);
 }
 
 static int
@@ -119,6 +119,9 @@ ata_ite_ch_attach(device_t dev)
  
 	error = ata_pci_ch_attach(dev);
 	ch->flags |= ATA_CHECKS_CABLE;
+#ifdef ATA_CAM
+	ch->flags |= ATA_NO_ATAPI_DMA;
+#endif
 	return (error);
 }
 


More information about the svn-src-stable-8 mailing list