mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-02 15:53:42 +00:00
drm/i915: Fix PSF GV point mask when SAGV is not possible
commit3ef8b5e19eupstream. 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:192fbfb767("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 commit0fed4ddd18) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
102cba6d5a
commit
beeebae6ea
@@ -819,7 +819,8 @@ int intel_bw_atomic_check(struct intel_atomic_state *state)
|
||||
* cause.
|
||||
*/
|
||||
if (!intel_can_enable_sagv(dev_priv, new_bw_state)) {
|
||||
allowed_points = BIT(max_bw_point);
|
||||
allowed_points &= ADLS_PSF_PT_MASK;
|
||||
allowed_points |= BIT(max_bw_point);
|
||||
drm_dbg_kms(&dev_priv->drm, "No SAGV, using single QGV point %d\n",
|
||||
max_bw_point);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user