Next version of [1]. IGT is at [2] and still pends v2.

This version finally fixes NULL pointer dereference seen consistently on
module load on fi-hsw-4770, which blocked all of i915 testing.

Booted and successfully overridden default VS/PE with custom VBT on PTL.

BR,
Michał

[1] 
https://lore.kernel.org/intel-gfx/[email protected]
[2] 
https://lore.kernel.org/igt-dev/[email protected]

---
Changelog:
v5->v6
- check if devdata is not NULL
- add Bspec (Suraj)
- remove drm_WARN_ONCE (Suraj)
- pass default VS/PE tables to LT's BIOS accessor (Suraj)
- set txswing & _level from default VS/PE tables (Suraj)
- add helper checking if VS/PE-O has been allocated (Suraj)

v4->v5
- set devdata->vspeo->num_entries in intel_bios.c
- add if-ladder instead of function pointer
- blend index computation with table parsing
- remove WARN and debug messages
- remove enums entirely
- add spaces around operators (Suraj)
- remove spaces after type casting (Suraj)
- remove INTEL_DISPLAY_STATE_WARN (Suraj)
- change funcs prefix from snps_ to mtl_ (Suraj)

v3->v4
- add Bspec (Suraj)
- remove unnecessary init of VS/PE-O metadata (Suraj)
- add helper for computing number of rows (Suraj)
- fix num_rows's type (Jani, Suraj)
- declare num_rows (Suraj)
- change debug message when requesting VS/PE-O (Suraj)
- stick to solely changing VBT data into current structures (Jani)
- move iterator declaration to declaration block (Suraj)

v2->v3
- remove unnecessary braces from if block (Suraj)
- return -EINVAL instead of -1 (Suraj)

Michał Grzelak (8):
  drm/i915/bios: search for VBT #57 by default
  drm/i915/bios: store VBT #57's metadata in intel_vbt_data
  drm/i915/bios: print VS/PE-O port info
  drm/i915/bios: de/allocate VS/PE-O buffer for each port
  drm/i915: override LT's VS/PE when requested
  drm/i915: override Snps's VS/PE when requested
  drm/i915: override Combo's VS/PE when requested
  drm/i915/bios: remove VS/PE-O warning

 drivers/gpu/drm/i915/display/intel_bios.c     | 184 +++++++++++++++++-
 drivers/gpu/drm/i915/display/intel_bios.h     |  13 ++
 .../drm/i915/display/intel_ddi_buf_trans.c    | 133 ++++++++++++-
 .../gpu/drm/i915/display/intel_display_core.h |   7 +
 4 files changed, 327 insertions(+), 10 deletions(-)

-- 
2.45.2

Reply via email to