[Intel-gfx] [PATCH v3] drm/i915/bdb: Fix version check

2021-09-30 Thread Lukasz Majczak
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) Tested-by: Lukasz Majczak Signed-off-by: Lukasz Majczak --- drivers/gpu/drm/i915/display/intel_bi

[Intel-gfx] [PATCH v2] drm/i915/bdb: Fix version check

2021-09-23 Thread Lukasz Majczak
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) Tested-by: Lukasz Majczak Signed-off-by: Lukasz Majczak --- drivers/gpu/drm/i915/display/intel_bi

Re: [Intel-gfx] [PATCH v1] drm/i915/bdb: Fix version check

2021-09-21 Thread Lukasz Majczak
pon., 20 wrz 2021 o 22:47 Souza, Jose napisaƂ(a): > > On Mon, 2021-09-20 at 16:11 +0200, Lukasz Majczak wrote: > > With patch "drm/i915/vbt: Fix backlight parsing for VBT 234+" > > the size of bdb_lfp_backlight_data structure has been increased, > > causing if-st

[Intel-gfx] [PATCH v1] drm/i915/bdb: Fix version check

2021-09-20 Thread Lukasz Majczak
This patch fixes it by comparing a total size of all fileds from the structure (present before the change) with the value gathered from BDB. Tested on Chromebook Pixelbook (Nocturne) (reports bdb->version = 221) Cc: # 5.4+ Tested-by: Lukasz Majczak Signed-off-by: Lukasz Majczak --- drivers