There's no need to crash the kernel for this case.
Signed-off-by: Alex Deucher <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
index 05b164f38c97a..138eb822ba137 100644
--- a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
@@ -377,7 +377,8 @@ static void imu_v11_0_program_rlc_ram(struct amdgpu_device
*adev)
imu_v11_0_3_program_rlc_ram(adev);
break;
default:
- BUG();
+ WARN(1, "Invalid GFX/IMU IP version 0x%08x\n",
+ amdgpu_ip_version(adev, GC_HWIP, 0));
break;
}
--
2.55.0