drm/amdgpu/jpeg: Remove harvest checking on CHIP_YELLOW_CARP
Register CC_UVD_HARVESTING is obsolete on CHIP_YELLOW_CARP. Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Aaron Liu <aaron.liu@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@ -49,10 +49,13 @@ static int jpeg_v3_0_set_powergating_state(void *handle,
|
|||||||
static int jpeg_v3_0_early_init(void *handle)
|
static int jpeg_v3_0_early_init(void *handle)
|
||||||
{
|
{
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||||
u32 harvest = RREG32_SOC15(JPEG, 0, mmCC_UVD_HARVESTING);
|
|
||||||
|
|
||||||
if (harvest & CC_UVD_HARVESTING__UVD_DISABLE_MASK)
|
if (adev->asic_type != CHIP_YELLOW_CARP) {
|
||||||
return -ENOENT;
|
u32 harvest = RREG32_SOC15(JPEG, 0, mmCC_UVD_HARVESTING);
|
||||||
|
|
||||||
|
if (harvest & CC_UVD_HARVESTING__UVD_DISABLE_MASK)
|
||||||
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
adev->jpeg.num_jpeg_inst = 1;
|
adev->jpeg.num_jpeg_inst = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user