]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Correct unit conversion for vstartup
authorReza Amini <reza.amini@amd.com>
Fri, 14 Jul 2023 14:43:05 +0000 (10:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2023 17:40:40 +0000 (13:40 -0400)
commitdbd29029c7b5cd8a126dd4005142ca12bfcf73c0
tree4ac77e9206eb11df855d8aaec806be5132f4210c
parent4012e0917b61169eeece3b0fb101fe5ff17641f4
drm/amd/display: Correct unit conversion for vstartup

[Why]
vstartup is calculated to be a large number. It works because
it is within vertical blank, but it reduces region of blank that
can be used for power gating.

[How]
Calculation needs to convert micro seconds to number of
vertical lines.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Reza Amini <reza.amini@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/dml/dcn314/dcn314_fpu.c