]> Gentwo Git Trees - linux/.git/commit
drm/amd/display: incorrect conditions for failing dto calculations
authorClay King <clayking@amd.com>
Wed, 20 Aug 2025 19:04:29 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Aug 2025 14:14:05 +0000 (10:14 -0400)
commit306cbcc6f687d791ab3cc8fbbe30f5286fd0d1e5
tree82a2266bf83a8e496b4c4af3b92fd70145e39ea3
parentcf49a454e16675fad59c1080f909a7e51192a494
drm/amd/display: incorrect conditions for failing dto calculations

[Why & How]
Previously, when calculating dto phase, we would incorrectly fail when phase
<=0 without additionally checking for the integer value. This meant that
calculations would incorrectly fail when the desired pixel clock was an exact
multiple of the reference clock.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Clay King <clayking@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dccg/dcn401/dcn401_dccg.c