drm/i915/display/debugfs: Fix duplicate checks in i915_drrs_status
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>
Tue, 27 Feb 2024 12:38:33 +0000 (18:08 +0530)
committerJani Nikula <jani.nikula@intel.com>
Thu, 7 Mar 2024 13:52:14 +0000 (15:52 +0200)
Remove duplicate checks for debugfs entry "DRRS capable:".

Fixes: 20af10845864 ("drm/i915/display/debugfs: New entry "DRRS capable" to i915_drrs_status")
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240227123833.2799647-2-bhanuprakash.modem@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_drrs.c

index 4743495ad41f4b37600f054e3d5574c7fb7ab0df..597f8bd6aa1a0e5088a82146a188a235536ee591 100644 (file)
@@ -321,9 +321,8 @@ static int intel_drrs_debugfs_status_show(struct seq_file *m, void *unused)
        mutex_lock(&crtc->drrs.mutex);
 
        seq_printf(m, "DRRS capable: %s\n",
-                  str_yes_no(crtc_state->has_drrs ||
-                             HAS_DOUBLE_BUFFERED_M_N(i915) ||
-                             intel_cpu_transcoder_has_m2_n2(i915, crtc_state->cpu_transcoder)));
+                  str_yes_no(intel_cpu_transcoder_has_drrs(i915,
+                                                           crtc_state->cpu_transcoder)));
 
        seq_printf(m, "DRRS enabled: %s\n",
                   str_yes_no(crtc_state->has_drrs));