Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Nov 2009 13:06:15 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r198752 - head/sys/dev/ata/chipsets
Message-ID:  <200911011306.nA1D6F4x024211@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Nov  1 13:06:15 2009
New Revision: 198752
URL: http://svn.freebsd.org/changeset/base/198752

Log:
  MFp4:
  Allow SATA1 SiI chips to do full-sized DMA. Specification tells that we may
  release DMA constrants even more, but it require some additional handling.

Modified:
  head/sys/dev/ata/chipsets/ata-siliconimage.c

Modified: head/sys/dev/ata/chipsets/ata-siliconimage.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-siliconimage.c	Sun Nov  1 11:41:20 2009	(r198751)
+++ head/sys/dev/ata/chipsets/ata-siliconimage.c	Sun Nov  1 13:06:15 2009	(r198752)
@@ -340,6 +340,7 @@ ata_sii_ch_attach(device_t dev)
 	ATA_OUTL(ctlr->r_res2, 0x148 + (unit01 << 7) + (unit10 << 8),(1 << 16));
     }
 
+    ch->dma.max_iosize = (ATA_DMA_ENTRIES - 1) * PAGE_SIZE;
     if (ctlr->chip->cfg2 & SII_BUG) {
 	/* work around errata in early chips */
 	ch->dma.boundary = 8192;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911011306.nA1D6F4x024211>