P4 to Git Change 1197295 by gandryey@gera-ubuntu14 on 2015/10/06 14:50:12

SWDEV-78052 - [CQE-OCL][DTB][QR][LNX]RQ conf test "Multiple device context" fails in few asics due to CL#1196902
	- Restore synchronization on the DMA engine. OCL doesn't require a sync, because resource isn't busy on the CAL device. However without sync there are less CBs available. Conformanace multidevice test will create around 60 queues, instead of 70

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#147 edit


[ROCm/clr commit: 86bc25cad2]
Tento commit je obsažen v:
foreman committed 2015-10-06 15:00:30 -04:00
1 rodič fb0cfaeef3
revize c7adad3eb0
1 file changed
+10 -2
+10 -2
Zobrazit soubor
@@ -967,7 +967,11 @@ CALGSLDevice::resMapLocal(size_t& pitch,
surfaceSize = (surfaceSize > dstSize) ? dstSize : surfaceSize;
m_cs->DMACopy(mem, 0, memMap->mem, 0, surfaceSize, 0, NULL);
//! @todo Workaround strange GSL/CMM-QS behavior. OCL doesn't require a sync,
//! because resource isn't busy on the CAL device. However without sync there are less CBs available
//! Conformanace multidevice test will create around 60 queues, instead of 70
uint32 mode = (IS_LINUX) ? GSL_SYNCUPLOAD_SYNC_WAIT | GSL_SYNCUPLOAD_SYNC_START : 0;
m_cs->DMACopy(mem, 0, memMap->mem, 0, surfaceSize, mode, NULL);
Wait(m_cs, GSL_DRMDMA_SYNC_ATI, m_mapDMAQuery);
}
@@ -1019,7 +1023,11 @@ CALGSLDevice::resUnmapLocal(gslMemObject mem)
surfaceSize = (surfaceSize > dstSize) ? dstSize : surfaceSize;
m_cs->DMACopy(memMap->mem, 0, mem, 0, surfaceSize, 0, NULL);
//! @todo Workaround strange GSL/CMM-QS behavior. OCL doesn't require a sync,
//! because resource isn't busy on the CAL device. However without sync there are less CBs available
//! Conformanace multidevice test will create around 60 queues, instead of 70
uint32 mode = (IS_LINUX) ? GSL_SYNCUPLOAD_SYNC_WAIT | GSL_SYNCUPLOAD_SYNC_START : 0;
m_cs->DMACopy(memMap->mem, 0, mem, 0, surfaceSize, mode, NULL);
Wait(m_cs, GSL_DRMDMA_SYNC_ATI, m_mapDMAQuery);
}