]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Correctly populate use_sagv_wm for all pipes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Feb 2022 06:40:34 +0000 (08:40 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Feb 2022 19:35:13 +0000 (21:35 +0200)
commit88dc37d56d3434a272ae0c72ebd440b37e21321a
treec41f2085a26eb334103e6932daf14f34a8b9b613
parentc8eb58553a857afafd69e19c779a6200d103f5a3
drm/i915: Correctly populate use_sagv_wm for all pipes

When changing between SAGV vs. no SAGV on tgl+ we have to
update the use_sagv_wm flag for all the crtcs or else
an active pipe not already in the state will end up using
the wrong watermarks. That is especially bad when we end up
with the tighter non-SAGV watermarks with SAGV enabled.
Usually ends up in underruns.

Cc: stable@vger.kernel.org
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Fixes: d636c6e06a9f ("drm/i915: Add TGL+ SAGV support")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220218064039.12834-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c