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

Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/imu_v12_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c 
b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
index 58cd87db80619..2943ec9521eee 100644
--- a/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
@@ -382,7 +382,8 @@ 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();
+               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