[Beignet] [PATCH] BDW: Set the URB/REST size to 384K/384K when SLM disable.

Yang Rong rong.r.yang at intel.com
Thu Nov 6 23:02:38 PST 2014


If application switch between SLM enable and disable, will cause random fail.
The fail occure only when URB/REST partition changed when enable and disable SLM.
Set the same REST size when disable SLM to workaround.

Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 src/intel/intel_gpgpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index 724ce63..3231395 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -651,7 +651,7 @@ intel_gpgpu_set_L3_gen8(intel_gpgpu_t *gpgpu, uint32_t use_slm)
   if(use_slm)
     OUT_BATCH(gpgpu->batch, 0x60000121);  /* {SLM=192, URB=128, Rest=384} */
   else
-    OUT_BATCH(gpgpu->batch, 0x80000140);  /* {SLM=0, URB=256, Rest=512, Sum=768} */
+    OUT_BATCH(gpgpu->batch, 0x60000160);  /* {SLM=0, URB=384, Rest=384, Sum=768} */
 
   //if(use_slm)
   //  gpgpu->batch->enable_slm = 1;
-- 
1.9.1



More information about the Beignet mailing list