diff options
author | Lukasz Majczak <lma@semihalf.com> | 2021-09-30 15:46:06 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-10-05 11:52:48 +0300 |
commit | fdddf8c3a477f77b3a623f220e78d45e89fc50d5 (patch) | |
tree | 8705aaa68316629ea9eddaebbfcba99dba1215ec /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a532cde31de3cae6ed60e60d6f9379771f652809 (diff) |
drm/i915/bdb: Fix version check
With patch "drm/i915/vbt: Fix backlight parsing for VBT 234+"
the size of bdb_lfp_backlight_data structure has been increased,
causing if-statement in the parse_lfp_backlight function
that comapres this structure size to the one retrieved from BDB,
always to fail for older revisions.
This patch calculates expected size of the structure for a given
BDB version and compares it with the value gathered from BDB.
Tested on Chromebook Pixelbook (Nocturne) (reports bdb->version = 221)
Fixes: d381baad29b4 ("drm/i915/vbt: Fix backlight parsing for VBT 234+")
Tested-by: Lukasz Majczak <lma@semihalf.com>
Signed-off-by: Lukasz Majczak <lma@semihalf.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210930134606.227234-1-lma@semihalf.com
(cherry picked from commit 4378daf5d04eed59724e6d0e74755e17dce2e105)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions