Skip to content

Commit ca50e54

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu/sdma4.4.2: replace BUG_ON() with WARN_ON()
commit 40cdbe9 upstream. There's no need to crash the kernel for these cases. Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit fa4f86a) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d74a635 commit ca50e54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void sdma_v4_4_2_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64
450450
/* write the fence */
451451
amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_FENCE));
452452
/* zero in first two bits */
453-
BUG_ON(addr & 0x3);
453+
WARN_ON(addr & 0x3);
454454
amdgpu_ring_write(ring, lower_32_bits(addr));
455455
amdgpu_ring_write(ring, upper_32_bits(addr));
456456
amdgpu_ring_write(ring, lower_32_bits(seq));
@@ -460,7 +460,7 @@ static void sdma_v4_4_2_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64
460460
addr += 4;
461461
amdgpu_ring_write(ring, SDMA_PKT_HEADER_OP(SDMA_OP_FENCE));
462462
/* zero in first two bits */
463-
BUG_ON(addr & 0x3);
463+
WARN_ON(addr & 0x3);
464464
amdgpu_ring_write(ring, lower_32_bits(addr));
465465
amdgpu_ring_write(ring, upper_32_bits(addr));
466466
amdgpu_ring_write(ring, upper_32_bits(seq));

0 commit comments

Comments
 (0)