Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2012 19:00:27 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240210 - head/sys/dev/hptmv
Message-ID:  <201209071900.q87J0RO0047890@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Sep  7 19:00:27 2012
New Revision: 240210
URL: http://svn.freebsd.org/changeset/base/240210

Log:
  It seems that what the code really meant is that when a write is completed,
  do a BUS_DMASYNC_POSTWRITE over the DMA map.  The way it currently is would
  only do POSTREAD for read transactions.
  
  Submitted by:	Sascha Wildner
  MFC after:	1 month

Modified:
  head/sys/dev/hptmv/entry.c

Modified: head/sys/dev/hptmv/entry.c
==============================================================================
--- head/sys/dev/hptmv/entry.c	Fri Sep  7 18:41:19 2012	(r240209)
+++ head/sys/dev/hptmv/entry.c	Fri Sep  7 19:00:27 2012	(r240210)
@@ -3046,7 +3046,7 @@ fOsCommandDone(_VBUS_ARG PCommand pCmd)
 	if (pCmd->cf_data_in) {
 		bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTREAD);
 	}
-	else if (pCmd->cf_data_in) {
+	else if (pCmd->cf_data_out) {
 		bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTWRITE);
 	}
 	



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