drm/amd/display: Add config support entry to replay caps debugfs
authorRoman Li <roman.li@amd.com>
Thu, 23 May 2024 21:48:27 +0000 (17:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:15 +0000 (16:17 -0400)
[Why]
replay_capability debugfs tells whether sink and driver support
replay feature. However replay enablement also depends on
whether it is enabled/disabled via amdgpu module params.

[How]
Add 'Config support' entry to output current replay config.

Reviewed-by: ChiaHsuan Chung <chiahsuan.chung@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

index 8db75afa9fc997c26d8011b3122f21ba9f0dd0c2..7cfa240a3cea7b10a5a58b4a80f438dfc74f3300 100644 (file)
@@ -1008,6 +1008,7 @@ static int replay_capability_show(struct seq_file *m, void *data)
 
        seq_printf(m, "Sink support: %s\n", str_yes_no(sink_support_replay));
        seq_printf(m, "Driver support: %s\n", str_yes_no(driver_support_replay));
+       seq_printf(m, "Config support: %s\n", str_yes_no(link->replay_settings.config.replay_supported));
 
        return 0;
 }