Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2012 00:32:28 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r242108 - stable/7/sys/dev/hptmv
Message-ID:  <201210260032.q9Q0WSa1081949@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Oct 26 00:32:28 2012
New Revision: 242108
URL: http://svn.freebsd.org/changeset/base/242108

Log:
  MFC r240210:
  
  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

Modified:
  stable/7/sys/dev/hptmv/entry.c
Directory Properties:
  stable/7/sys/   (props changed)

Modified: stable/7/sys/dev/hptmv/entry.c
==============================================================================
--- stable/7/sys/dev/hptmv/entry.c	Fri Oct 26 00:31:25 2012	(r242107)
+++ stable/7/sys/dev/hptmv/entry.c	Fri Oct 26 00:32:28 2012	(r242108)
@@ -3047,7 +3047,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?201210260032.q9Q0WSa1081949>