Skip to content

Commit

Permalink
drm/i915/gt: Only ignore rc6 parking for PCU on byt/bsw
Browse files Browse the repository at this point in the history
An oversight in that we use rc6->ctl_enable to disable rc6 on gen9 and
so it does not simply indicate indirect control via a PCU. Switch the
rc6->ctl_enable check for a platform-based check.

Fixes: 972745f ("drm/i915/gt: Disable manual rc6 for Braswell/Baytrail")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191212072737.884335-2-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Dec 12, 2019
1 parent 6aacb5a commit 7d92998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/gt/intel_rc6.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ void intel_rc6_enable(struct intel_rc6 *rc6)
else if (INTEL_GEN(i915) >= 6)
gen6_rc6_enable(rc6);

rc6->manual = rc6->ctl_enable & GEN6_RC_CTL_RC6_ENABLE;
if (NEEDS_RC6_CTX_CORRUPTION_WA(i915))
rc6->ctl_enable = 0;

Expand Down Expand Up @@ -612,7 +613,7 @@ void intel_rc6_park(struct intel_rc6 *rc6)
return;
}

if (!(rc6->ctl_enable & GEN6_RC_CTL_RC6_ENABLE))
if (!rc6->manual)
return;

/* Turn off the HW timers and go directly to rc6 */
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/gt/intel_rc6_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct intel_rc6 {

bool supported : 1;
bool enabled : 1;
bool manual : 1;
bool wakeref : 1;
};

Expand Down

0 comments on commit 7d92998

Please sign in to comment.