drm/amd/display: Add debugfs interface for ODM combine info
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 16 Aug 2023 20:03:20 +0000 (16:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:37:59 +0000 (15:37 -0400)
commit07926ba8a44f0ca9165ee2fb17c9afc7908c3b2b
tree3f75ab988075752317e49d4ccaf730731550161f
parentd755ce6465cab1e60661f329db9eef8594403cf9
drm/amd/display: Add debugfs interface for ODM combine info

[Why]
For use with IGT tests in userspace, the number of ODM segments in use
is required to be exposed to userspace to verify that ODM Combine is
working as expected when special timings are committed.

[How]
Add a connector specific debugfs entry that prints the number of ODM
segments in use.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.h
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h