Skip to content

Commit 5d55ed1

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: remove two invalid BUG_ON()s
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>
1 parent 7bdd91a commit 5d55ed1

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5862,8 +5862,6 @@ static void gfx_v11_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
58625862
unsigned vmid = AMDGPU_JOB_GET_VMID(job);
58635863
u32 header, control = 0;
58645864

5865-
BUG_ON(ib->flags & AMDGPU_IB_FLAG_CE);
5866-
58675865
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
58685866

58695867
control |= ib->length_dw | (vmid << 24);

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4419,8 +4419,6 @@ static void gfx_v12_0_ring_emit_ib_gfx(struct amdgpu_ring *ring,
44194419
unsigned vmid = AMDGPU_JOB_GET_VMID(job);
44204420
u32 header, control = 0;
44214421

4422-
BUG_ON(ib->flags & AMDGPU_IB_FLAG_CE);
4423-
44244422
header = PACKET3(PACKET3_INDIRECT_BUFFER, 2);
44254423

44264424
control |= ib->length_dw | (vmid << 24);

0 commit comments

Comments
 (0)