diff options
| author | Likun Gao <[email protected]> | 2021-02-03 10:45:42 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-02-09 20:28:36 +0000 |
| commit | 1001f2a1f33dfe88bc7581d0177d01e9d299999c (patch) | |
| tree | e51c6586f5b5f6a9b9aa51a5f29db52d42497da2 /drivers/gpu/drm/amd/amdgpu/nv.c | |
| parent | drm/amdgpu: switch to use smuio callbacks for NV family (diff) | |
| download | kernel-1001f2a1f33dfe88bc7581d0177d01e9d299999c.tar.gz kernel-1001f2a1f33dfe88bc7581d0177d01e9d299999c.zip | |
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 <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 4 |
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; } |
