linux/drivers/gpu/drm/amd/display
Yan Li b02b0fc488 drm/amd/display: apply two different methods to validate modes
[Why]
In DML2, the current method to determine a
mode is supported involves checking the
voltage levels sequentially from the lowest,
until one is found that can support the
mode. It causes cursor lag due to low
performance.

[How]
We apply two methods for mode validation.
1) DC_VALIDATE_MODE_ONLY: only the
maximum voltage level is checked to
determine whether the mode is supported, which
improves performance and eliminate cursor lag.

2) DC_VALIDATE_MODE_AND_STATE_INDEX: when
the optimal voltage level is required, check
the voltage level from the lowest until
a suitable one is found found and returns
its index.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Yan Li <yan.li@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-06-18 12:19:19 -04:00
..
amdgpu_dm drm/amd/display: Destroy cached state in complete() callback 2025-06-18 12:19:18 -04:00
dc drm/amd/display: apply two different methods to validate modes 2025-06-18 12:19:19 -04:00
dmub drm/amd/display: Add option to disable PHY SSC reduction on transmitter enable 2025-06-18 12:19:16 -04:00
include drm/amdgpu: fixing typo in macro name 2025-05-22 12:01:57 -04:00
modules drm/amd/display: Add null pointer check for get_first_active_display() 2025-05-29 10:57:13 -04:00
Kconfig drm/amd/display: add CEC notifier to amdgpu driver 2025-01-10 11:58:57 -05:00
Makefile drm/amd/display: Refactor DCN3X into component folder 2024-06-14 16:18:55 -04:00