drm/amdgpu/vcn3: fail to schedule IB for AV1 if VCN0 is harvested
Only VCN0 supports AV1. Reviewed-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
384334120b
commit
3c6f90f4aa
|
@ -1771,6 +1771,10 @@ static int vcn_v3_0_limit_sched(struct amdgpu_cs_parser *p,
|
||||||
if (atomic_read(&job->base.entity->fence_seq))
|
if (atomic_read(&job->base.entity->fence_seq))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
/* if VCN0 is harvested, we can't support AV1 */
|
||||||
|
if (p->adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
scheds = p->adev->gpu_sched[AMDGPU_HW_IP_VCN_DEC]
|
scheds = p->adev->gpu_sched[AMDGPU_HW_IP_VCN_DEC]
|
||||||
[AMDGPU_RING_PRIO_DEFAULT].sched;
|
[AMDGPU_RING_PRIO_DEFAULT].sched;
|
||||||
drm_sched_entity_modify_sched(job->base.entity, scheds, 1);
|
drm_sched_entity_modify_sched(job->base.entity, scheds, 1);
|
||||||
|
|
Loading…
Reference in New Issue