Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Extract GT render power state management

Chris Wilson
2019-10-23T12:12:57Z

Quoting Andi Shyti (2019-10-23 10:50:00)
> @@ -14976,7 +14978,7 @@ intel_prepare_plane_fb(struct drm_plane *plane,
> * maximum clocks following a vblank miss (see do_rps_boost()).
> */
> if (!intel_state->rps_interactive) {
> - intel_rps_mark_interactive(dev_priv, true);
> + intel_rps_mark_interactive(&dev_priv->gt.rps, true);

I wonder if we can do &plane->vma->vm->gt->rps

Mwahaha.

> intel_state->rps_interactive = true;
> }
>
> @@ -15001,7 +15003,7 @@ intel_cleanup_plane_fb(struct drm_plane *plane,
> struct drm_i915_private *dev_priv = to_i915(plane->dev);
>
> if (intel_state->rps_interactive) {
> - intel_rps_mark_interactive(dev_priv, false);
> + intel_rps_mark_interactive(&dev_priv->gt.rps, false);
> intel_state->rps_interactive = false;
> }