From 6654499e4c166886c22535e12b3018447988de04 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 23 Nov 2015 16:52:20 +0200 Subject: [PATCH] SKL: Use kernel-defined MOCS values instead of assuming hardware defaults. Fixes a performance regression with v4.3 kernels on Gen9 hardware (see https://bugs.freedesktop.org/show_bug.cgi?id=92975). Signed-off-by: Francisco Jerez --- src/intel/intel_gpgpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index 7f212e2..53a6dfc 100644 --- a/src/intel/intel_gpgpu.c +++ b/src/intel/intel_gpgpu.c @@ -285,9 +285,9 @@ intel_gpgpu_get_cache_ctrl_gen8() static uint32_t intel_gpgpu_get_cache_ctrl_gen9() { - //Pre-defined cache control registers 9: + //Kernel-defined cache control registers 2: //L3CC: WB; LeCC: WB; TC: LLC/eLLC; - return (0x9 << 1); + return (0x2 << 1); } static void -- 2.5.1