summaryrefslogtreecommitdiff
path: root/lib/i915/intel_drrs.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-29lib/i915/intel_drrs: Update DRRS capability checkBhanuprakash Modem1-1/+1
From debugfs "i915_drrs_status" read the DRRS capability as "DRRS capable: yes", instead of "DRRS enabled: yes". Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
2024-01-08lib/i915/intel_drrs: Fix igt helper to get drrs statusBhanuprakash Modem1-3/+1
intel_is_drrs_supported() helper is giving False if DRRS supports on selected pipe which is not correct. Fix the helper to give True if DRRS supports on selected pipe. Fixes: c6f857e46 lib/i915/drrs: Add drrs helpers Cc: Jouni Högander <jouni.hogander@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
2023-10-25lib/i915/drrs: close file handler after update DRRS settingLee Shawn C1-0/+1
After configure DRRS status, test tool has to release file handler properly to avoid unexpected problem. Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Cc: Vidya Srinivas <vidya.srinivas@intel.com> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Cc: Jouni Högander <jouni.hogander@intel.com> Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2023-08-29lib/i915/drrs: Add drrs helpersJouni Högander1-0/+133
Add drrs handling into a library to be used by kms_frontbuffer_tracking and other tests as well. v4: Split testcase modification into a separate patch v3: Add library function descriptions v2: Moved into libigt instead of static kms_drrs_helper Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>