From 35dcb8e32ccdd171010541ed525e9fcb5913e63e Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 7 Dec 2016 17:04:00 -0500 Subject: [PATCH] P4 to Git Change 1350755 by rili@rili-opencl-pal-stg on 2016/12/07 16:50:28 SWDEV-95925 - OCL on PAL, fixed OCL hanging issue when IOMMUv2 is not supported. When IOMMUv2 is disabled on CZ, sdma 0 should be used, otherwise, asic will hang Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#40 edit --- rocclr/runtime/device/pal/palvirtual.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/runtime/device/pal/palvirtual.cpp b/rocclr/runtime/device/pal/palvirtual.cpp index 085e6873c5..6ee31cfbc5 100644 --- a/rocclr/runtime/device/pal/palvirtual.cpp +++ b/rocclr/runtime/device/pal/palvirtual.cpp @@ -793,7 +793,8 @@ VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs, if (dev().numDMAEngines() != 0) { uint sdma; // If only 1 DMA engine is available then use that one - if ((dev().numDMAEngines() < 2) || (idx & 0x1)) { + if ((dev().numDMAEngines() < 2) || (idx & 0x1) || + (dev().settings().apuSystem_ && !dev().settings().svmFineGrainSystem_)) { sdma = 0; } else {