drm/amdgpu: disable UVD/VCE for some polaris 12 variants
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable UVD/VCE for some polaris 12 variants
Some variants don't support UVD and VCE.
Signed-off-by Junwei Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/vi.c +5 -0
@@ -1660,6 +1660,11 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &dce_v11_2_ip_block);amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v3_1_ip_block); +/* Some polaris12 variants don't support UVD/VCE */ +if (((adev->pdev->device ==0x67df ) && + ((adev->pdev->revision ==0xe1 ) || + (adev->pdev->revision ==0xf7 )))) +break ;amdgpu_device_ip_block_add (adev, &uvd_v6_3_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_4_ip_block);break ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
please ignore this patch, there is typo in code.
Quoted 13 lines · Junwei Zhang
Some variants don't support UVD and VCE.
Signed-off-by Junwei Zhang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/vi.c +0
-0@@ -1660,6 +1660,11 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)amdgpu_device_ip_block_add (adev, &dce_v11_2_ip_block);
drivers/gpu/drm/amd/amdgpu/vi.c int vi_set_ip_blocks(struct amdgpu_device *adev) · line 1670
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vi.c +5
-0amdgpu_device_ip_block_add (adev, &gfx_v8_0_ip_block);amdgpu_device_ip_block_add (adev, &sdma_v3_1_ip_block); +/* Some polaris12 variants don't support UVD/VCE */ +if (((adev->pdev->device ==0x67df ) && + ((adev->pdev->revision ==0xe1 ) || + (adev->pdev->revision ==0xf7 )))) +break ;amdgpu_device_ip_block_add (adev, &uvd_v6_3_ip_block);amdgpu_device_ip_block_add (adev, &vce_v3_4_ip_block);break ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx