]> 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)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 26 Aug 2022 07:13:36 +0000 (10:13 +0300)
commit7a2b7c18986fa9f1d542d938b559a69b94a08fef
tree8600e0e86817a521a2331c7825305afaa6f93416
parentc5d9f77cb59805ccef9b40718d062371b68ac74c
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>
drivers/gpu/drm/i915/intel_pm.c