drm/i915/psr: Add panel replay sel update support to debugfs interface
authorJouni Högander <jouni.hogander@intel.com>
Fri, 10 May 2024 09:38:23 +0000 (12:38 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 15 May 2024 07:56:28 +0000 (10:56 +0300)
Add panel replay selective update support to debugfs status interface. In
case of sink supporting panel replay we will print out:

Sink support: PSR = no, Panel Replay = yes, Panel Replay Selective Update = yes

and PSR mode will look like this if printing out enabled panel replay
selective update:

PSR mode: Panel Replay Selective Update Enabled

Current PSR and panel replay printouts remain same.

Cc: Kunal Joshi <kunal1.joshi@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240510093823.3146455-13-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c

index 12ddf84e8d026f91d7e0c4fa0e3d4db63b55d36c..2514ac48312b4131e04ecc087ed8083726d3ab25 100644 (file)
@@ -3603,7 +3603,9 @@ static int intel_psr_status(struct seq_file *m, struct intel_dp *intel_dp)
 
        if (psr->sink_support)
                seq_printf(m, " [0x%02x]", intel_dp->psr_dpcd[0]);
-       seq_printf(m, ", Panel Replay = %s\n", str_yes_no(psr->sink_panel_replay_support));
+       seq_printf(m, ", Panel Replay = %s", str_yes_no(psr->sink_panel_replay_support));
+       seq_printf(m, ", Panel Replay Selective Update = %s\n",
+                  str_yes_no(psr->sink_panel_replay_su_support));
 
        if (!(psr->sink_support || psr->sink_panel_replay_support))
                return 0;
@@ -3612,9 +3614,10 @@ static int intel_psr_status(struct seq_file *m, struct intel_dp *intel_dp)
        mutex_lock(&psr->lock);
 
        if (psr->panel_replay_enabled)
-               status = "Panel Replay Enabled";
+               status = psr->sel_update_enabled ? "Panel Replay Selective Update Enabled" :
+                       "Panel Replay Enabled";
        else if (psr->enabled)
-               status = psr->sel_update_enabled ? "PSR2 enabled" : "PSR1 enabled";
+               status = psr->sel_update_enabled ? "PSR2" : "PSR1";
        else
                status = "disabled";
        seq_printf(m, "PSR mode: %s\n", status);