]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: Fix error handling when smu return failed on Vega10.
authorRex Zhu <Rex.Zhu@amd.com>
Sun, 11 Feb 2018 04:38:58 +0000 (12:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Feb 2018 04:09:35 +0000 (23:09 -0500)
commitd372280955f575c936209743055bc90e64f2df78
treea0898c6f5f1d06aad849b76baa4e96893d4cfadd
parenta4ec2e808beeba7b9654128f1f1953600444d012
drm/amd/pp: Fix error handling when smu return failed on Vega10.

Clamp the clock index to a valid range when reading it back

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c