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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:31 +0000 (19:14 +0200)
commit67ba86179fc6e67e9a3303918a6cdd1a2a49f6ef
treefb03664d5b6f977b342b66ee134396959f3e830a
parentdd8a223d0f5873fe92ebce41adf6a48da026b007
drm/amdgpu: Specify get_argument function for ci_smu_funcs

commit f7b2e34b4afb8d712913dc199d3292ea9e078637 upstream.

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: a0ec225633d9f6 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c