[PATCH i-g-t 0/2] check modparam before enabling psr mode

Kunal Joshi kunal1.joshi at intel.com
Wed Jan 24 10:34:08 UTC 2024


with i915.enable_psr modparam, one can enable required psr version

i915.enable_psr = 0 PSR_1 and PSR_2 tests should skip
i915.enable_psr = 1 PSR_1 tests should run but PSR_2 tests should skip
i915.enable_psr = 2 PSR_1 and PSR_2 tests should run

fix test to check modparam before enabling through psr_debug debugfs

Kunal Joshi (2):
  lib/igt_psr: add helper to check of given psr mode can be enabled
  tests/intel/kms_psr: enable given psr mode only after checking
    enable_psr modparam

 lib/igt_psr.c         | 20 ++++++++++++++++++++
 lib/igt_psr.h         |  1 +
 tests/intel/kms_psr.c | 12 ++++++++++++
 3 files changed, 33 insertions(+)

-- 
2.25.1



More information about the igt-dev mailing list