]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu/vce2: fix ip block reference
authorAlex Deucher <alexander.deucher@amd.com>
Sun, 9 Mar 2025 16:26:50 +0000 (12:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:36:21 +0000 (13:36 -0400)
Need to use the correct IP block type.  VCE vs VCN.
Fixes mclk issues on Hawaii.

Suggested by selendym.

Fixes: 82ae6619a450 ("drm/amdgpu: update the handle ptr in wait_for_idle")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3997
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Cc: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c

index 8c8c02606d25abe555fe3ecc713c89cc5cc8b40d..bee3e904a6bc763f688d74f31fccbd3dd361685a 100644 (file)
@@ -284,7 +284,7 @@ static int vce_v2_0_stop(struct amdgpu_device *adev)
                return 0;
        }
 
-       ip_block = amdgpu_device_ip_get_ip_block(adev, AMD_IP_BLOCK_TYPE_VCN);
+       ip_block = amdgpu_device_ip_get_ip_block(adev, AMD_IP_BLOCK_TYPE_VCE);
        if (!ip_block)
                return -EINVAL;