From 51035c4eb236eecfbab8f1cc239c8d61ae10337b Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 15 Jun 2026 19:38:20 -0400 Subject: [PATCH] drm/amdgpu/gfx8: drop all BUG()s There's no need to crash the kernel for these cases. Reviewed-by: Kent Russell Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 9e0840df8849..6cf427995078 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -977,7 +977,8 @@ static int gfx_v8_0_init_microcode(struct amdgpu_device *adev) chip_name = "vegam"; break; default: - BUG(); + dev_warn(adev->dev, "Unsupported asic_type 0x%08x\n", adev->asic_type); + return -EINVAL; } if (adev->asic_type >= CHIP_POLARIS10 && adev->asic_type <= CHIP_POLARIS12) {