From ed5ff8f297624924cf36aa126181166ed1e520d9 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Tue, 2 Jun 2020 10:30:28 -0700 Subject: [PATCH] intel/l3: Adjust URB weight calculation for gfx12.5+. Gfx12.5+ devices use special-purpose memory for the URB instead of requiring a portion of the L3 to be carved out. Signed-off-by: Anuj Phogat Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/common/intel_l3_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/common/intel_l3_config.c b/src/intel/common/intel_l3_config.c index 4f9da3eca3c..fbeedaf50fa 100644 --- a/src/intel/common/intel_l3_config.c +++ b/src/intel/common/intel_l3_config.c @@ -262,7 +262,7 @@ intel_get_default_l3_weights(const struct intel_device_info *devinfo, struct intel_l3_weights w = {{ 0 }}; w.w[INTEL_L3P_SLM] = devinfo->ver < 11 && needs_slm; - w.w[INTEL_L3P_URB] = 1.0; + w.w[INTEL_L3P_URB] = devinfo->verx10 < 125 ? 1.0 : 0.0; if (devinfo->ver >= 8) { w.w[INTEL_L3P_ALL] = 1.0;