P4 to Git Change 1521567 by gandryey@gera-w8 on 2018/03/01 18:29:47

SWDEV-145716 - dGMA via OpenCL not working properly on AMD EPYC Ethanol platform with two WX9100/W9100s
	- Add a stall and cache flushes before a barrier write in GSL and PAL
	- Place temporary workarounds for CP prefetch of WRITE_DATA and the lack of SDMA marker in PAL

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#414 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#76 edit
This commit is contained in:
foreman
2018-03-01 18:37:54 -05:00
parent 8e57fbbf10
commit 30eacbe243
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -2380,6 +2380,8 @@ void VirtualGPU::submitSignal(amd::SignalCommand& vcmd) {
uint64_t markerOffset = markerAddr - surfAddr;
cs()->p2pMarkerOp(gpuMemory->gslResource(), vcmd.markerValue(), markerOffset, false);
} else if (vcmd.type() == CL_COMMAND_WRITE_SIGNAL_AMD) {
static constexpr bool FlushL2 = true;
flushCUCaches(FlushL2);
cs()->p2pMarkerOp(gpuMemory->gslResource(), vcmd.markerValue(), vcmd.markerOffset(), true);
}
eventEnd(MainEngine, gpuEvent);