Skip to contentSkip to conversation

drm/amdgpu: disable UVD/VCE for some polaris 12 variants

PATCH In review Junwei Zhang 1 participant 2 messages Nov 23, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: disable UVD/VCE for some polaris 12 variants

Some variants don't support UVD and VCE.

---
 drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/vi.c +5 -0
index f3a4cf1f013a..46a92eca831b 100644
@@ -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]

#2 lore raw

please ignore this patch, there is typo in code.

Quoted 13 lines · Junwei Zhang

Some variants don't support UVD and VCE.

---
  drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/vi.c +0 -0
index f3a4cf1f013a..46a92eca831b 100644
@@ -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 -0
  		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;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx