Skip to content

Commit 250848c

Browse files
jbarnes993danvet
authored andcommitted
drm/i915: cancel RPS work before disabling RPS
Ville noticed this while doing another review; we may as well cancel this work just to make sure we don't try anything fancy after disabling the RPS interfaces. Reported-by: Ville Syrjälä <[email protected]> Signed-off-by: Jesse Barnes <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
1 parent 52ceb90 commit 250848c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3657,6 +3657,7 @@ void intel_disable_gt_powersave(struct drm_device *dev)
36573657
ironlake_disable_rc6(dev);
36583658
} else if (INTEL_INFO(dev)->gen >= 6) {
36593659
cancel_delayed_work_sync(&dev_priv->rps.delayed_resume_work);
3660+
cancel_work_sync(&dev_priv->rps.work);
36603661
if (IS_VALLEYVIEW(dev))
36613662
cancel_delayed_work_sync(&dev_priv->rps.vlv_work);
36623663
mutex_lock(&dev_priv->rps.hw_lock);

0 commit comments

Comments
 (0)