Skip to content

Commit 3ef8b5e

Browse files
vsyrjalatursulin
authored andcommitted
drm/i915: Fix PSF GV point mask when SAGV is not possible
Don't just mask off all the PSF GV points when SAGV gets disabled. This should in fact cause the Pcode to reject the request since at least one PSF point must remain enabled at all times. Cc: stable@vger.kernel.org Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Fixes: 192fbfb ("drm/i915: Implement PSF GV point support") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220309164948.10671-7-ville.syrjala@linux.intel.com Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> (cherry picked from commit 0fed4dd) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
1 parent 1937f3f commit 3ef8b5e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_bw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,8 @@ int intel_bw_atomic_check(struct intel_atomic_state *state)
992992
* cause.
993993
*/
994994
if (!intel_can_enable_sagv(dev_priv, new_bw_state)) {
995-
allowed_points = BIT(max_bw_point);
995+
allowed_points &= ADLS_PSF_PT_MASK;
996+
allowed_points |= BIT(max_bw_point);
996997
drm_dbg_kms(&dev_priv->drm, "No SAGV, using single QGV point %d\n",
997998
max_bw_point);
998999
}

0 commit comments

Comments
 (0)