drm/amdgpu/imu12: WARN() rather than BUG()

There's no need to crash the kernel for this case.

Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher
2026-06-15 19:16:20 -04:00
parent ff57e223ab
commit bc1e9d3964

View File

@@ -382,8 +382,9 @@ static void imu_v12_0_program_rlc_ram(struct amdgpu_device *adev)
(const u32)ARRAY_SIZE(imu_rlc_ram_golden_12_0_1));
break;
default:
BUG();
break;
WARN(1, "Invalid GFX/IMU IP version 0x%08x\n",
amdgpu_ip_version(adev, GC_HWIP, 0));
return;
}
//Indicate the latest entry