]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bios: Copy the whole MIPI sequence block
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 29 Aug 2022 13:58:34 +0000 (16:58 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 31 Aug 2022 16:09:57 +0000 (19:09 +0300)
commite9fb2165cae82156f414ec4dc612c6839ac41cec
tree6faae0e320f167acfd1da3768ff06679c7cb2d94
parentbd07e1208c35baf1d43bd8f642008ef16650e507
drm/i915/bios: Copy the whole MIPI sequence block

Turns out the MIPI sequence block version number and
new block size fields are considered part of the block
header and are not included in the reported new block size
field itself. Bump up the block size appropriately so that
we'll copy over the last five bytes of the block as well.

For this particular machine those last five bytes included
parts of the GPIO op for the backlight on sequence, causing
the backlight no longer to turn back on:

  Sequence 6 - MIPI_SEQ_BACKLIGHT_ON
  Delay: 20000 us
- GPIO index 0, number 0, set 0 (0x00)
+ GPIO index 1, number 70, set 1 (0x01)

Cc: stable@vger.kernel.org
Fixes: c72a3a48f295 ("drm/i915/bios: Make copies of VBT data blocks")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6652
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220829135834.8585-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_bios.c