drm/amdgpu: support memory power gating for lsdma 6.0.2
authorLikun Gao <Likun.Gao@amd.com>
Mon, 25 Apr 2022 08:04:09 +0000 (16:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:12 +0000 (17:53 -0400)
Support memory power gating control for lsdma 6.0.2.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 3303e02..c6a8520 100644 (file)
@@ -680,6 +680,7 @@ static int soc21_common_set_powergating_state(void *handle,
 
        switch (adev->ip_versions[LSDMA_HWIP][0]) {
        case IP_VERSION(6, 0, 0):
+       case IP_VERSION(6, 0, 2):
                adev->lsdma.funcs->update_memory_power_gating(adev,
                                state == AMD_PG_STATE_GATE);
                break;