]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Specify get_argument function for ci_smu_funcs
authorSandeep Raghuraman <sandy.8925@gmail.com>
Thu, 27 Aug 2020 11:37:33 +0000 (17:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2020 04:36:37 +0000 (00:36 -0400)
commit65d2ce52b9b9fb37fc9dd088980d1e9706919ecf
tree4152c6a48a3148c6e0dadb7bb27a9f4c976d8afc
parent91067fcc3dca3919fea16f99efde7056c495d9f7
drm/amdgpu: Specify get_argument function for ci_smu_funcs

Starting in Linux 5.8, the graphics and memory clock frequency were not being
reported for CIK cards. This is a regression, since they were reported correctly
in Linux 5.7.

After investigation, I discovered that the smum_send_msg_to_smc() function,
attempts to call the corresponding get_argument() function of ci_smu_funcs.
However, the get_argument() function is not defined in ci_smu_funcs.

This patch fixes the bug by specifying the correct get_argument() function.

Fixes: c5db8357c57b85 ("drm/amd/powerplay: unified interfaces for message issuing and response checking")
Signed-off-by: Sandeep Raghuraman <sandy.8925@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c