diff options
author | Kunal Joshi <kunal1.joshi@intel.com> | 2024-04-22 11:04:48 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2024-04-23 14:19:54 +0530 |
commit | 0d2ec80722e2656770f1c547cb713a0e082b2bf8 (patch) | |
tree | 1555d8d054beb4b9dc6c9faa5841e5cb859c27f2 | |
parent | 2e8f3e06fbd7335cf65a93115c72f0e167a570a2 (diff) |
lib/igt_kms: don't run on unsupported platform
dipslay <=12 needs dsc enabled for pipe joiner,
add a check in IGT for the same
v2: dsc is required for gen12, so test only
for devid 13 and 13+ (Ankit)
v3: update comment (Bhanu)
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
Suggested-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
-rw-r--r-- | lib/igt_kms.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 3216fe7e4..ee8848079 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -6246,6 +6246,14 @@ bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output) char buf[512]; int debugfs_fd, ret; + /* + * bigjoiner is supported on display<= 12 with DSC only + * and only on Pipe A for Display 11 + * For simplicity avoid Display 11 and 12, check for >= 13 + */ + if (intel_display_ver(intel_get_drm_devid(drmfd)) < 13) + return false; + igt_assert_f(output->name, "Connector name cannot be NULL\n"); debugfs_fd = igt_debugfs_connector_dir(drmfd, output->name, O_RDONLY); if (debugfs_fd < 0) |