Skip to contentSkip to conversation

drm/amdgpu/vce2: fix ip block reference

PATCH In review Alex Deucher 2 participants 2 messages Mar 9, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 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]>
---
 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
index 8c8c02606d25a..bee3e904a6bc7 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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]>
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
index 8c8c02606d25a..bee3e904a6bc7 100644
@@ -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;