From b208b0c446097b2c446a6cf2509050033156d94c Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Mon, 15 Jun 2026 19:14:42 -0400 Subject: [PATCH] drm/amdgpu/imu11: WARN() rather than BUG() There's no need to crash the kernel for this case. Reviewed-by: Kent Russell Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c index 05b164f38c97..09dc01a425d1 100644 --- a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c @@ -377,8 +377,9 @@ static void imu_v11_0_program_rlc_ram(struct amdgpu_device *adev) imu_v11_0_3_program_rlc_ram(adev); break; default: - BUG(); - break; + WARN(1, "Invalid GFX/IMU IP version 0x%08x\n", + amdgpu_ip_version(adev, GC_HWIP, 0)); + return; } //Indicate the contents of the RAM are valid