]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pimp HSW+ transcoder state readout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Sep 2021 14:44:33 +0000 (17:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 30 Sep 2021 08:49:09 +0000 (11:49 +0300)
commit1c56d6a483e0db4dafa015012b1779fd28b1f14d
treeee3209181de5d228dcc83a995f38fd24f9042553
parente4f59ca202d45dded7c7f32b6e7718ceabdc3253
drm/i915: Pimp HSW+ transcoder state readout

Adjust the HSW+ transcoder state readout to just read through
all the possible transcoders for the pipe, and stuff the results
in a bitmask.

We can conveniently cross check the bitmask for invalid
combinations of enabled transcoders, and later we can easily
extend the bitmask readout to handle the bigjoiner case.

One slight change in behaviour is that we no longer read out
the AONOFF->force_pfit.pfit bit for all the enabled "panel
transcoders". But having more than one enabled would anyway
be illegal so no big loss. Also the AONOFF selection should
only ever be used on HSW, which only has the EDP transcoder
an no DSI transcoders.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210913144440.23008-10-ville.syrjala@linux.intel.com
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
drivers/gpu/drm/i915/display/intel_display.c