OSDN Git Service

drm/amd/display: Fix possible underflow for displays with large vblank
authorDaniel Miess <daniel.miess@amd.com>
Thu, 11 May 2023 14:51:27 +0000 (10:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:44:05 +0000 (10:44 -0400)
commitde231189e7bf1a38c0f889ec5f8911af473aa792
tree230bbf7aaab6e757e903e9b12059cccb5fc01bf3
parentc02b04633c4f4654331c53966cb937df1c73a9bb
drm/amd/display: Fix possible underflow for displays with large vblank

[Why]
Underflow observed when using a display with a large vblank region
and low refresh rate

[How]
Simplify calculation of vblank_nom

Increase value for VBlankNomDefaultUS to 800us

Fixed a null pointer from previous commit of this change

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Daniel Miess <daniel.miess@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