[PATCH] drm/amdgpu/vi: don't enable DCE on a specific Polaris sku

Alex Deucher alexdeucher at gmail.com
Fri May 11 15:48:45 UTC 2018


It's fused off.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 4ac1288ab7df..4f844beba0db 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -1650,14 +1650,18 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
 		amdgpu_device_ip_block_add(adev, &gmc_v8_1_ip_block);
 		amdgpu_device_ip_block_add(adev, &tonga_ih_ip_block);
 		amdgpu_device_ip_block_add(adev, &pp_smu_ip_block);
-		if (adev->enable_virtual_display)
+		if (adev->enable_virtual_display) {
 			amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
+		} else if ((adev->pdev->device == 0x67df) &&
+			   (adev->pdev->revision == 0xe0)) {
+			/* no display block, don't add the IP block */
 #if defined(CONFIG_DRM_AMD_DC)
-		else if (amdgpu_device_has_dc_support(adev))
-			amdgpu_device_ip_block_add(adev, &dm_ip_block);
+		} else if (amdgpu_device_has_dc_support(adev)) {
+				amdgpu_device_ip_block_add(adev, &dm_ip_block);
 #endif
-		else
+		} else {
 			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);
 		amdgpu_device_ip_block_add(adev, &uvd_v6_3_ip_block);
-- 
2.13.6



More information about the amd-gfx mailing list