Skip to content

Commit

Permalink
drm/i915/gt: enable HuC on Gen9 and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
moetayuko committed Nov 21, 2023
1 parent 1334a6b commit 9b8903a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/gpu/drm/i915/gt/uc/intel_uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ static void uc_expand_default_options(struct intel_uc *uc)
if (i915->params.enable_guc != -1)
return;

/* Don't enable GuC/HuC on pre-Gen12 */
if (GRAPHICS_VER(i915) < 12) {
/* Don't enable GuC/HuC on pre-Gen9 */
if (GRAPHICS_VER(i915) < 9) {
i915->params.enable_guc = 0;
return;
}

/* Don't enable GuC/HuC on older Gen12 platforms */
if (IS_TIGERLAKE(i915) || IS_ROCKETLAKE(i915)) {
i915->params.enable_guc = 0;
/* Enable HuC on pre-Gen12 */
if (GRAPHICS_VER(i915) < 12) {
i915->params.enable_guc = ENABLE_GUC_LOAD_HUC;
return;
}

Expand Down

0 comments on commit 9b8903a

Please sign in to comment.