[PATCH 1/2] drm/i915/guc: Don't enable GuC/HuC in auto mode on pre-Gen11
Michal Wajdeczko
michal.wajdeczko at intel.com
Thu Jul 11 20:09:43 UTC 2019
We are about to change default setting of "enable_guc" modparam
from 0(disabled) to -1(auto). As we only want to turn on
GuC/HuC on Gen11+, keep it off on older gens.
Note that it would be still possible to enable GuC/HuC on these
old platforms using explicit "enable_guc=2" modparam.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_uc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
index fdf00f1ebb57..313ca34dfbe6 100644
--- a/drivers/gpu/drm/i915/intel_uc.c
+++ b/drivers/gpu/drm/i915/intel_uc.c
@@ -64,6 +64,10 @@ static int __get_platform_enable_guc(struct drm_i915_private *i915)
/* Any platform specific fine-tuning can be done here */
+ /* Don't enable GuC/HuC on pre-Gen11 */
+ if (INTEL_GEN(i915) < 11)
+ enable_guc = 0;
+
return enable_guc;
}
--
2.19.2
More information about the Intel-gfx-trybot
mailing list