]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Add expanded HBlank field to dc_crtc_timing
authorGeorge Shen <george.shen@amd.com>
Mon, 9 Dec 2024 15:57:31 +0000 (10:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jan 2025 19:44:26 +0000 (14:44 -0500)
[Why]
For DP HBlank expansion/reduction, the HBlank parameters of the original
EDID timing needs to be notified to the sink in order for the timing to
be reduced back to the original HBlank size.

[How]
Add parameter in dc_crtc_timing to track the increased HBlank.

Reviewed-by: Michael Strauss <michael.strauss@amd.com>
Signed-off-by: George Shen <george.shen@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/dc/dc_hw_types.h

index c10567ec1c81998ac440ac3622b891a3e766cc64..8a6e3dfa42305c8b1eb9aa52a8bc0d58fd4d2882 100644 (file)
@@ -975,6 +975,9 @@ struct dc_crtc_timing {
        struct dc_crtc_timing_flags flags;
        uint32_t dsc_fixed_bits_per_pixel_x16; /* DSC target bitrate in 1/16 of bpp (e.g. 128 -> 8bpp) */
        struct dc_dsc_config dsc_cfg;
+
+       /* The number of pixels that HBlank has been expanded by from the original EDID timing. */
+       uint32_t expanded_hblank;
 };
 
 enum trigger_delay {