]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/guc: Enable GuC engine reset
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 27 Jul 2021 00:23:32 +0000 (17:23 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Wed, 28 Jul 2021 00:31:58 +0000 (17:31 -0700)
Clear the 'disable resets' flag to allow GuC to reset hung contexts
(detected via pre-emption timeout).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727002348.97202-18-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c

index fdac8a7805f5b82fe768a1c56d7ae3cdaf004c85..97cfaaaf23972a17a874296dc1693ee5e36e1fcc 100644 (file)
@@ -81,8 +81,7 @@ static void guc_policies_init(struct guc_policies *policies)
 {
        policies->dpc_promote_time = GLOBAL_POLICY_DEFAULT_DPC_PROMOTE_TIME_US;
        policies->max_num_work_items = GLOBAL_POLICY_MAX_NUM_WI;
-       /* Disable automatic resets as not yet supported. */
-       policies->global_flags = GLOBAL_POLICY_DISABLE_ENGINE_RESET;
+       policies->global_flags = 0;
        policies->is_valid = 1;
 }