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

drm/amdgpu: add 1.3.1/2.4.0 athub CG support

This patch adds 1.3.1/2.4.0 athub clock gating support.

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
f06d9e4e 4e13b063

+2
+1
drivers/gpu/drm/amd/amdgpu/athub_v2_0.c
··· 78 78 return 0; 79 79 80 80 switch (adev->ip_versions[ATHUB_HWIP][0]) { 81 + case IP_VERSION(1, 3, 1): 81 82 case IP_VERSION(2, 0, 0): 82 83 case IP_VERSION(2, 0, 2): 83 84 athub_v2_0_update_medium_grain_clock_gating(adev,
+1
drivers/gpu/drm/amd/amdgpu/athub_v2_1.c
··· 74 74 case IP_VERSION(2, 1, 0): 75 75 case IP_VERSION(2, 1, 1): 76 76 case IP_VERSION(2, 1, 2): 77 + case IP_VERSION(2, 4, 0): 77 78 athub_v2_1_update_medium_grain_clock_gating(adev, state == AMD_CG_STATE_GATE); 78 79 athub_v2_1_update_medium_grain_light_sleep(adev, state == AMD_CG_STATE_GATE); 79 80 break;