Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 55414ad5c983 ("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>

authored by

Tvrtko Ursulin and committed by
Alex Deucher
a95dfb0c 3ccdad15

-7
-7
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
··· 84 84 if (r) 85 85 return r; 86 86 87 - /* 88 - * Abort if there is no run queue associated with this entity. 89 - * Possibly because of disabled HW IP. 90 - */ 91 - if (entity->rq == NULL) 92 - return -EINVAL; 93 - 94 87 /* Check if we can add this IB to some existing job */ 95 88 for (i = 0; i < p->gang_size; ++i) 96 89 if (p->entities[i] == entity)