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 f5927c3553ce8..90fe54b39aaf0 100644
--- a/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
@@ -375,7 +375,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.54.0

Reply via email to