diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2021-07-27 22:37:18 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-04 21:22:59 +0200 |
commit | 13ebe284a2382cfc4efd09822c204e2bb5a529f8 (patch) | |
tree | d757734d3704e9917c50d304e8fcfb5845dee99d /drivers/gpu/drm/amd/amdgpu/athub_v2_0.c | |
parent | drm/amdgpu/vcn3.0: convert to IP version checking (diff) | |
download | linux-13ebe284a2382cfc4efd09822c204e2bb5a529f8.tar.xz linux-13ebe284a2382cfc4efd09822c204e2bb5a529f8.zip |
drm/amdgpu/athub2.0: convert to IP version checking
Use IP versions rather than asic_type to differentiate
IP version specific features.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/athub_v2_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/athub_v2_0.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v2_0.c b/drivers/gpu/drm/amd/amdgpu/athub_v2_0.c index 3ac505d954c4..d3f634eb40fb 100644 --- a/drivers/gpu/drm/amd/amdgpu/athub_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/athub_v2_0.c @@ -77,10 +77,9 @@ int athub_v2_0_set_clockgating(struct amdgpu_device *adev, if (amdgpu_sriov_vf(adev)) return 0; - switch (adev->asic_type) { - case CHIP_NAVI10: - case CHIP_NAVI14: - case CHIP_NAVI12: + switch (adev->ip_versions[ATHUB_HWIP]) { + case IP_VERSION(2, 0, 0): + case IP_VERSION(2, 0, 2): athub_v2_0_update_medium_grain_clock_gating(adev, state == AMD_CG_STATE_GATE); athub_v2_0_update_medium_grain_light_sleep(adev, |