mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/amdgpu: Remove redundant missing hw ip handling
Now that it is guaranteed there can be no entity if there is no hw ip
block we can remove the open coded protection during CS parsing.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
References: 55414ad5c9 ("drm/amdgpu: error out on entity with no run queue")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3ccdad15ae
commit
a95dfb0c78
|
|
@ -84,13 +84,6 @@ static int amdgpu_cs_job_idx(struct amdgpu_cs_parser *p,
|
|||
if (r)
|
||||
return r;
|
||||
|
||||
/*
|
||||
* Abort if there is no run queue associated with this entity.
|
||||
* Possibly because of disabled HW IP.
|
||||
*/
|
||||
if (entity->rq == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
/* Check if we can add this IB to some existing job */
|
||||
for (i = 0; i < p->gang_size; ++i)
|
||||
if (p->entities[i] == entity)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user