Skip to content

Commit 32bec2a

Browse files
zming6666alexdeucher
authored andcommitted
drm/amdgpu: allow harvesting check for Polaris VCE
Fixes init failures on Polaris cards with harvested VCE blocks. Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent cb4b02d commit 32bec2a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,10 @@ static unsigned vce_v3_0_get_harvest_config(struct amdgpu_device *adev)
365365
{
366366
u32 tmp;
367367

368-
/* Fiji, Stoney, Polaris10, Polaris11, Polaris12 are single pipe */
369368
if ((adev->asic_type == CHIP_FIJI) ||
370-
(adev->asic_type == CHIP_STONEY) ||
371-
(adev->asic_type == CHIP_POLARIS10) ||
372-
(adev->asic_type == CHIP_POLARIS11) ||
373-
(adev->asic_type == CHIP_POLARIS12))
369+
(adev->asic_type == CHIP_STONEY))
374370
return AMDGPU_VCE_HARVEST_VCE1;
375371

376-
/* Tonga and CZ are dual or single pipe */
377372
if (adev->flags & AMD_IS_APU)
378373
tmp = (RREG32_SMC(ixVCE_HARVEST_FUSE_MACRO__ADDRESS) &
379374
VCE_HARVEST_FUSE_MACRO__MASK) >>
@@ -391,6 +386,11 @@ static unsigned vce_v3_0_get_harvest_config(struct amdgpu_device *adev)
391386
case 3:
392387
return AMDGPU_VCE_HARVEST_VCE0 | AMDGPU_VCE_HARVEST_VCE1;
393388
default:
389+
if ((adev->asic_type == CHIP_POLARIS10) ||
390+
(adev->asic_type == CHIP_POLARIS11) ||
391+
(adev->asic_type == CHIP_POLARIS12))
392+
return AMDGPU_VCE_HARVEST_VCE1;
393+
394394
return 0;
395395
}
396396
}

0 commit comments

Comments
 (0)