diff options
author | Le Ma <le.ma@amd.com> | 2019-08-09 12:57:15 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-12 19:47:49 +0200 |
commit | cb15e8046d0df90deeec9ed79dc432043f11d07b (patch) | |
tree | 88e09852f37998b3990a16dfe7379d827410c479 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |
parent | drm/amdgpu: increase CGCG gfx idle threshold for Arcturus (diff) | |
download | linux-cb15e8046d0df90deeec9ed79dc432043f11d07b.tar.xz linux-cb15e8046d0df90deeec9ed79dc432043f11d07b.zip |
drm/amdgpu: add mmhub clock gating for Arcturus
Add 2 mmhub instances CG
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index cf0241ee4e6d..e48fd19fd09c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -1469,9 +1469,9 @@ static int gmc_v9_0_set_clockgating_state(void *handle, struct amdgpu_device *adev = (struct amdgpu_device *)handle; if (adev->asic_type == CHIP_ARCTURUS) - return 0; - - mmhub_v1_0_set_clockgating(adev, state); + mmhub_v9_4_set_clockgating(adev, state); + else + mmhub_v1_0_set_clockgating(adev, state); athub_v1_0_set_clockgating(adev, state); @@ -1483,9 +1483,9 @@ static void gmc_v9_0_get_clockgating_state(void *handle, u32 *flags) struct amdgpu_device *adev = (struct amdgpu_device *)handle; if (adev->asic_type == CHIP_ARCTURUS) - return; - - mmhub_v1_0_get_clockgating(adev, flags); + mmhub_v9_4_get_clockgating(adev, flags); + else + mmhub_v1_0_get_clockgating(adev, flags); athub_v1_0_get_clockgating(adev, flags); } |