drm/amdgpu/jpeg: Remove extra asic type check

jpeg ip block is already selected based on ASIC type during set_ip_blocks.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
James Zhu 2020-06-04 12:02:06 -04:00 committed by Alex Deucher
parent ccda42a462
commit de7fe7e87a

View File

@ -55,7 +55,6 @@ static int amdgpu_ih_clientid_jpeg[] = {
static int jpeg_v2_5_early_init(void *handle) static int jpeg_v2_5_early_init(void *handle)
{ {
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
if (adev->asic_type == CHIP_ARCTURUS) {
u32 harvest; u32 harvest;
int i; int i;
@ -65,12 +64,9 @@ static int jpeg_v2_5_early_init(void *handle)
if (harvest & CC_UVD_HARVESTING__UVD_DISABLE_MASK) if (harvest & CC_UVD_HARVESTING__UVD_DISABLE_MASK)
adev->jpeg.harvest_config |= 1 << i; adev->jpeg.harvest_config |= 1 << i;
} }
if (adev->jpeg.harvest_config == (AMDGPU_JPEG_HARVEST_JPEG0 | if (adev->jpeg.harvest_config == (AMDGPU_JPEG_HARVEST_JPEG0 |
AMDGPU_JPEG_HARVEST_JPEG1)) AMDGPU_JPEG_HARVEST_JPEG1))
return -ENOENT; return -ENOENT;
} else
adev->jpeg.num_jpeg_inst = 1;
jpeg_v2_5_set_dec_ring_funcs(adev); jpeg_v2_5_set_dec_ring_funcs(adev);
jpeg_v2_5_set_irq_funcs(adev); jpeg_v2_5_set_irq_funcs(adev);