summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/nv.c
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2021-02-03 13:45:42 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-02-09 23:28:36 +0300
commit1001f2a1f33dfe88bc7581d0177d01e9d299999c (patch)
treee51c6586f5b5f6a9b9aa51a5f29db52d42497da2 /drivers/gpu/drm/amd/amdgpu/nv.c
parent0bf7f2dcb9a65dcc9efb47e3a393108499d6a110 (diff)
downloadlinux-1001f2a1f33dfe88bc7581d0177d01e9d299999c.tar.xz
drm/amdgpu: support rom clockgating related function for NV family
Add functions to support enable/disable rom clock gating and get rom clock gating status. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/nv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index c39be4d93817..efacf5fd8191 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -1144,6 +1144,8 @@ static int nv_common_set_clockgating_state(void *handle,
state == AMD_CG_STATE_GATE);
adev->hdp.funcs->update_clock_gating(adev,
state == AMD_CG_STATE_GATE);
+ adev->smuio.funcs->update_rom_clock_gating(adev,
+ state == AMD_CG_STATE_GATE);
break;
default:
break;
@@ -1169,6 +1171,8 @@ static void nv_common_get_clockgating_state(void *handle, u32 *flags)
adev->hdp.funcs->get_clock_gating_state(adev, flags);
+ adev->smuio.funcs->get_clock_gating_state(adev, flags);
+
return;
}