]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Remove redundant missing hw ip handling
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Wed, 7 Jan 2026 12:43:50 +0000 (12:43 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 16:50:56 +0000 (11:50 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index 24e4b4fc915640a9dc528c7a58a7606c3c560ed3..70ea9b0831a0e63e6eb82ae5d3661e0d300b3ced 100644 (file)
@@ -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)