linux-stable/drivers/gpu
Ville Syrjälä 65ea3311ce drm/i915/bios: Use hardcoded fp_timing size for generating LFP data pointers
commit d3a7051841 upstream.

The current scheme for generating the LFP data table pointers
(when the block including them is missing from the VBT) expects
the 0xffff sequence to only appear in the fp_timing terminator
entries. However some VBTs also have extra 0xffff sequences
elsewhere in the LFP data. When looking for the terminators
we may end up finding those extra sequeneces insted, which means
we deduce the wrong size for the fp_timing table. The code
then notices the inconsistent looking values and gives up on
the generated data table pointers, preventing us from parsing
the LFP data table entirely.

Let's give up on the "search for the terminators" approach
and instead just hardcode the expected size for the fp_timing
table.

We have enough sanity checks in place to make sure we
shouldn't end up parsing total garbage even if that size
should change in the future (although that seems unlikely
as the fp_timing and dvo_timing tables have been declared
obsolete as of VBT version 229).

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6592
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220818192223.29881-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-24 09:58:32 +02:00
..
drm drm/i915/bios: Use hardcoded fp_timing size for generating LFP data pointers 2022-10-24 09:58:32 +02:00
host1x gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00
ipu-v3 drm/imx: various cleanups 2022-05-06 15:07:39 +10:00
trace
vga
Makefile gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00