drm/amdgpu/vce2: fix ip block reference
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/vce2: fix ip block reference
Need to use the correct IP block type. VCE vs VCN. Fixes mclk issues on Hawaii.
Suggested by selendym.
Fixes 82ae6619a450a ("drm/amdgpu: update the handle ptr in wait_for_idle")
Cc Sunil Khatri <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +1 -1
@@ -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 ;
Signature · 1 line
2.48.1
Quoted 9 lines · Alex Deucher
Need to use the correct IP block type. VCE vs VCN. Fixes mclk issues on Hawaii.
Suggested by selendym.
Fixes 82ae6619a450a ("drm/amdgpu: update the handle ptr in wait_for_idle")Cc Sunil Khatri<[email protected]>Signed-off-by Alex Deucher<[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +1
-1@@ -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 ;