]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915/gen9: Fix PCODE polling during SAGV disabling
authorImre Deak <imre.deak@intel.com>
Mon, 5 Dec 2016 16:27:38 +0000 (18:27 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 8 Dec 2016 20:47:49 +0000 (22:47 +0200)
commitb3b8e99984a4eace91bc097e8f8cec71441cae16
tree053f39169fd75cef264490ac98b8a2dd348e5323
parenta0b8a1fe34430c3a82258e8cb45f5968bdf31afd
drm/i915/gen9: Fix PCODE polling during SAGV disabling

According to the previous patch, it's possible atm that we call
intel_do_sagv_disable() only once during the 1ms period and time out if
that call fails. As opposed to this the spec says that we need to keep
retrying this request for a 1ms duration, so let's do this similarly to
the CDCLK change notification request.

v4-5:
- Rebased on the reply_mask, reply change.
v6:
- Remove w/s change. (Lyude)
- Rebased on the timeout_base argument change.

Cc: Lyude <cpaul@redhat.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 656d1b89e5ff ("drm/i915/skl: Add support for the SAGV, fix underrun hangs")
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude <lyude@redhat.com> (v4)
Link: http://patchwork.freedesktop.org/patch/msgid/1480955258-26311-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_pm.c