]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix pipe_bpp readout for BXT/GLK DSI
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Apr 2019 14:13:49 +0000 (17:13 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 8 Apr 2019 15:36:28 +0000 (08:36 -0700)
commit862faf9bf18314140db0c81b05bb94f2e8b87728
tree01cae2aaeb06f9e2064f153ac13d6be2d97876a8
parentba38d1f4f699784e778dffe7487c84c4554de792
drm/i915: Fix pipe_bpp readout for BXT/GLK DSI

The only bpc information in pipe registers for BXT/GLK DSI
is the PIPEMISC dither bpc. Let's try to use that to read
out pipe_bpp on these platforms. However, I'm not sure if
this will be correctly populated by the GOP since bspec
suggests it's only needed if dithering is actually enabled.
If not I guess we'll have to go one step further and
extract pipe_bpp from the DSI pixel format when dithering
is disabled.

Cc: Hans de Goede <hdegoede@redhat.com>
Fixes: ee61cfdd33cf ("drm/i915/dsi: Fix pipe_bpp for handling for 6 bpc pixel-formats")
References: https://bugs.freedesktop.org/show_bug.cgi?id=109516
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405141349.11950-1-ville.syrjala@linux.intel.com
(cherry picked from commit 499653501baf27d26e73cb5ce744869df3400509)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/vlv_dsi.c