[igt-dev] [PATCH i-g-t 0/7] kms: Fix i915 fixed_mode vrefresh fallout

Ville Syrjala ville.syrjala at linux.intel.com
Wed Oct 13 12:59:42 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

A few igts use a 60Hz hardcoded override mode currently. If the 
panel's fixed_mode dosn't happen to match that i915 will now reject
the mode. So let's adjust the override modes to match the refresh
rate the panel needs. We just pick the refresh rate of the first
reported mode, which sould be the panel's preferred mode. So this
will work just fine even if the panel/driver report and accept
multiple refresh rates.

Ville Syrjälä (7):
  lib: Introduce igt_memdup()
  tests/i915/kms_frontbuffer_tracking: Get rid of the funny mode_copy
  lib/kms: Have igt_std_1024_mode_get() return a copy of the mode
  lib/kms: Have igt_std_1024_mode_get() return a mode with specific
    refresh
  lib/kms: Introduce igt_output_preferred_vrefresh()
  tests/i915/kms_frontbuffer_tracking: Use preferred modes's vrefresh
  tests/kms_concurrent: Use preferred modes's vrefresh

 lib/igt_aux.c                         |  11 +++
 lib/igt_aux.h                         |   2 +
 lib/igt_kms.c                         |  28 +++++--
 lib/igt_kms.h                         |   3 +-
 tests/i915/kms_frontbuffer_tracking.c | 113 +++++++++++++-------------
 tests/kms_concurrent.c                |  25 +++---
 6 files changed, 103 insertions(+), 79 deletions(-)

-- 
2.32.0



More information about the igt-dev mailing list