]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/vcn5.0.1: drop dpm power helpers
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2025 14:58:01 +0000 (09:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 19:09:18 +0000 (14:09 -0500)
VCN 5.0.1 doesn't support powergating so there is
no need to call these.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c

index 8b0b3739a53776c70fc0a1b3fc1030d39cb0b155..288a77179036b59a74c431f858d6dada015d137d 100644 (file)
@@ -575,11 +575,6 @@ static int vcn_v5_0_1_start(struct amdgpu_device *adev)
        uint32_t tmp;
        int i, j, k, r, vcn_inst;
 
-       for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
-               if (adev->pm.dpm_enabled)
-                       amdgpu_dpm_enable_vcn(adev, true, i);
-       }
-
        for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
                fw_shared = adev->vcn.inst[i].fw_shared.cpu_addr;
 
@@ -818,11 +813,6 @@ static int vcn_v5_0_1_stop(struct amdgpu_device *adev)
                WREG32_SOC15(VCN, vcn_inst, regUVD_STATUS, 0);
        }
 
-       for (i = 0; i < adev->vcn.num_vcn_inst; ++i) {
-               if (adev->pm.dpm_enabled)
-                       amdgpu_dpm_enable_vcn(adev, false, i);
-       }
-
        return 0;
 }