All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/30] drm/amdgpu: return an error instead of BUG() for CSA bo_va
@ 2026-07-07 15:41 Alex Deucher
  2026-07-07 15:41 ` [PATCH 02/30] drm/amdgpu/gfx11: WARN() rather than BUG() for invalid SDMA engine Alex Deucher
                   ` (28 more replies)
  0 siblings, 29 replies; 32+ messages in thread
From: Alex Deucher @ 2026-07-07 15:41 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

If the bo_va is not present, return an error rather than
crashing the kernel.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index a0ca6ab358c55..dc263553e216b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -1121,7 +1121,8 @@ static int amdgpu_cs_vm_handling(struct amdgpu_cs_parser *p)
 
 	if (fpriv->csa_va) {
 		bo_va = fpriv->csa_va;
-		BUG_ON(!bo_va);
+		if (!bo_va)
+			return -ENOMEM;
 		r = amdgpu_vm_bo_update(adev, bo_va, false);
 		if (r)
 			return r;
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2026-07-08 14:48 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07 15:41 [PATCH 01/30] drm/amdgpu: return an error instead of BUG() for CSA bo_va Alex Deucher
2026-07-07 15:41 ` [PATCH 02/30] drm/amdgpu/gfx11: WARN() rather than BUG() for invalid SDMA engine Alex Deucher
2026-07-07 15:41 ` [PATCH 03/30] drm/amdgpu/gfx12: " Alex Deucher
2026-07-07 15:41 ` [PATCH 04/30] drm/amdgpu/gfx12.1: " Alex Deucher
2026-07-07 15:41 ` [PATCH 05/30] drm/amdgpu/atomfirmware: WARN() rather than BUG() Alex Deucher
2026-07-07 15:41 ` [PATCH 06/30] drm/amdgpu/cgs: " Alex Deucher
2026-07-07 15:41 ` [PATCH 07/30] drm/amdgpu/ucode: " Alex Deucher
2026-07-07 15:41 ` [PATCH 08/30] drm/amdgpu/cik_sdma: replace BUG() with an error Alex Deucher
2026-07-07 15:41 ` [PATCH 09/30] drm/amdgpu/sdma2.4: " Alex Deucher
2026-07-07 15:41 ` [PATCH 10/30] drm/amdgpu/sdma3.0: " Alex Deucher
2026-07-07 15:41 ` [PATCH 11/30] drm/amdgpu/si: drop BUG()s Alex Deucher
2026-07-07 15:41 ` [PATCH 12/30] drm/amdgpu/gmc6: replace BUG() with an error Alex Deucher
2026-07-07 15:41 ` [PATCH 13/30] drm/amdgpu/imu11: WARN() rather than BUG() Alex Deucher
2026-07-07 15:41 ` [PATCH 14/30] drm/amdgpu/imu12: " Alex Deucher
2026-07-07 15:41 ` [PATCH 15/30] drm/amdgpu/mes11: drop all BUG()s Alex Deucher
2026-07-08 14:48   ` John Olender
2026-07-07 15:41 ` [PATCH 16/30] drm/amdgpu/mes12: " Alex Deucher
2026-07-07 15:41 ` [PATCH 17/30] drm/amdgpu/mes12.1: " Alex Deucher
2026-07-07 15:41 ` [PATCH 18/30] drm/amdgpu/psp11: replace BUG() with an error Alex Deucher
2026-07-07 15:41 ` [PATCH 19/30] drm/amdgpu/psp13: " Alex Deucher
2026-07-07 15:41 ` [PATCH 20/30] drm/amdgpu/psp13.0.4: " Alex Deucher
2026-07-07 15:41 ` [PATCH 21/30] drm/amdgpu/psp14: " Alex Deucher
2026-07-07 15:41 ` [PATCH 22/30] drm/amdgpu/gfx6: drop all BUG()s Alex Deucher
2026-07-07 15:41 ` [PATCH 23/30] drm/amdgpu/gfx7: " Alex Deucher
2026-07-07 15:41 ` [PATCH 24/30] drm/amdgpu/gfx8: " Alex Deucher
2026-07-07 15:41 ` [PATCH 25/30] drm/amdgpu/gfx9: " Alex Deucher
2026-07-07 15:41 ` [PATCH 26/30] drm/amdgpu/gfx9.4.3: " Alex Deucher
2026-07-07 15:42 ` [PATCH 27/30] drm/amdgpu/gfx10: " Alex Deucher
2026-07-07 15:42 ` [PATCH 28/30] drm/amdgpu/gfx11: " Alex Deucher
2026-07-07 15:42 ` [PATCH 29/30] drm/amdgpu/gfx12: " Alex Deucher
2026-07-07 15:42 ` [PATCH 30/30] drm/amdgpu/gfx12.1: " Alex Deucher
2026-07-07 16:53   ` Russell, Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.