Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: convert code name to ip version for athub

Use IP version rather than codename for athub.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Aaron Liu and committed by
Alex Deucher
4e13b063 7367540b

+7 -6
+7 -6
drivers/gpu/drm/amd/amdgpu/athub_v1_0.c
··· 68 68 if (amdgpu_sriov_vf(adev)) 69 69 return 0; 70 70 71 - switch (adev->asic_type) { 72 - case CHIP_VEGA10: 73 - case CHIP_VEGA12: 74 - case CHIP_VEGA20: 75 - case CHIP_RAVEN: 76 - case CHIP_RENOIR: 71 + switch (adev->ip_versions[ATHUB_HWIP][0]) { 72 + case IP_VERSION(9, 0, 0): 73 + case IP_VERSION(9, 1, 0): 74 + case IP_VERSION(9, 2, 0): 75 + case IP_VERSION(9, 3, 0): 76 + case IP_VERSION(9, 4, 0): 77 + case IP_VERSION(1, 5, 0): 77 78 athub_update_medium_grain_clock_gating(adev, 78 79 state == AMD_CG_STATE_GATE); 79 80 athub_update_medium_grain_light_sleep(adev,