]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip wm/ddb readout for disabled pipes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Jun 2022 19:59:48 +0000 (22:59 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 29 Aug 2022 14:00:54 +0000 (10:00 -0400)
commitd58837a99b865b2b812c18536b833a3ab47cd3d5
treef9e8fb9152809ac6df37eea4a6a4d09ec03da4bc
parent2b888a54c6cc7a9677c05c279301a2a10335e739
drm/i915: Skip wm/ddb readout for disabled pipes

The stuff programmed into the wm/ddb registers of planes
on disabled pipes doesn't matter. So during readout just
leave our software state tracking for those zeroed.

This should avoid us trying too hard to clean up after
whatever mess the VBIOS/GOP left in there. The actual
hardware state will get cleaned up if/when we enable
the pipe anyway.

Cc: stable@vger.kernel.org
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5711
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220617195948.24007-1-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
(cherry picked from commit b183db8f4783ca2efc9b47734f15aad9477a108a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_pm.c