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
This commit is contained in:
Xin LI 2012-09-07 19:00:27 +00:00
parent 51ba7b6f3e
commit a8bc743735
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240210

View File

@ -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);
}