]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: remove two invalid BUG_ON()s
authorChristian König <christian.koenig@amd.com>
Wed, 27 Aug 2025 12:47:23 +0000 (14:47 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:14 +0000 (14:14 -0400)
Those can be triggered trivially by userspace.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

index 66c47c46653204c85a0d42096cf5388d4a2830ba..d61eb9f187c649c21f594f7bead9656cdb8c77e5 100644 (file)
@@ -5862,8 +5862,6 @@ static void gfx_v11_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
        unsigned vmid = AMDGPU_JOB_GET_VMID(job);
        u32 header, control = 0;
 
-       BUG_ON(ib->flags & AMDGPU_IB_FLAG_CE);
-
        header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
 
        control |= ib->length_dw | (vmid << 24);
index 710ec9c34e43b463855e875b91a31ee0c2720295..93fde0f9af87f8446037a3b52b40ea57b071dbd0 100644 (file)
@@ -4419,8 +4419,6 @@ static void gfx_v12_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
        unsigned vmid = AMDGPU_JOB_GET_VMID(job);
        u32 header, control = 0;
 
-       BUG_ON(ib->flags & AMDGPU_IB_FLAG_CE);
-
        header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
 
        control |= ib->length_dw | (vmid << 24);