Skip to content

Commit 922e745

Browse files
bmodemalexdeucher
authored andcommitted
Revert "drm/amd/display: Expose connector VRR range via debugfs"
v3: * Rebase (Manasi) v2: * Rebase (Manasi) As both VRR min and max are already part of drm_display_info, drm can expose this VRR range for each connector. Hence this logic should move to core DRM. This reverts commit 727962f. Signed-off-by: Bhanuprakash Modem <[email protected]> Cc: Nicholas Kazlauskas <[email protected]> Cc: Harry Wentland <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Manasi Navare <[email protected]> Cc: AMD gfx <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent bc50ca2 commit 922e745

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -819,24 +819,6 @@ static int output_bpc_show(struct seq_file *m, void *data)
819819
return res;
820820
}
821821

822-
/*
823-
* Returns the min and max vrr vfreq through the connector's debugfs file.
824-
* Example usage: cat /sys/kernel/debug/dri/0/DP-1/vrr_range
825-
*/
826-
static int vrr_range_show(struct seq_file *m, void *data)
827-
{
828-
struct drm_connector *connector = m->private;
829-
struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
830-
831-
if (connector->status != connector_status_connected)
832-
return -ENODEV;
833-
834-
seq_printf(m, "Min: %u\n", (unsigned int)aconnector->min_vfreq);
835-
seq_printf(m, "Max: %u\n", (unsigned int)aconnector->max_vfreq);
836-
837-
return 0;
838-
}
839-
840822
#ifdef CONFIG_DRM_AMD_DC_HDCP
841823
/*
842824
* Returns the HDCP capability of the Display (1.4 for now).
@@ -1456,7 +1438,6 @@ static ssize_t dp_dsc_slice_bpg_offset_read(struct file *f, char __user *buf,
14561438
DEFINE_SHOW_ATTRIBUTE(dmub_fw_state);
14571439
DEFINE_SHOW_ATTRIBUTE(dmub_tracebuffer);
14581440
DEFINE_SHOW_ATTRIBUTE(output_bpc);
1459-
DEFINE_SHOW_ATTRIBUTE(vrr_range);
14601441
#ifdef CONFIG_DRM_AMD_DC_HDCP
14611442
DEFINE_SHOW_ATTRIBUTE(hdcp_sink_capability);
14621443
#endif
@@ -1561,7 +1542,6 @@ static const struct {
15611542
{"link_settings", &dp_link_settings_debugfs_fops},
15621543
{"phy_settings", &dp_phy_settings_debugfs_fop},
15631544
{"test_pattern", &dp_phy_test_pattern_fops},
1564-
{"vrr_range", &vrr_range_fops},
15651545
#ifdef CONFIG_DRM_AMD_DC_HDCP
15661546
{"hdcp_sink_capability", &hdcp_sink_capability_fops},
15671547
#endif

0 commit comments

Comments
 (0)