]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Better handling of dummy p-state table
authorJoshua Aberback <joshua.aberback@amd.com>
Thu, 21 Jan 2021 07:33:31 +0000 (02:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:12:15 +0000 (12:12 -0500)
commit04c2d1eb93882970d49afeab078b3f1e1275c5ab
treefae84e4c79f52d8dcd46247a4a943729ecda2b5f
parente6276d815c73c720439c7be2434ad0d3e7a7c936
drm/amd/display: Better handling of dummy p-state table

[Why]
Some scenarios where we use a UCLK frequency in between dummy p-state table
entries result in a p-state hang, due to the table not having a close
enough match, so the default DPM0 latency is used, which can be too long to
support dummy p-state switching in these scenarios.

[How]
 - old: match if current freq is within +- margin of table entry
 - new: find largest table entry that is lower than current freq + margin
   - lower than DPM0 will still use DPM0

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@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/dcn30/dcn30_resource.c