diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2026-06-15 19:38:20 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 19:17:32 -0400 |
| commit | 51035c4eb236eecfbab8f1cc239c8d61ae10337b (patch) | |
| tree | e3f341e70146c4e5a40c9f0d3a72f2285a1f1cc4 | |
| parent | 48fd918301a30a6153b3659bd5a556840dffe5af (diff) | |
| download | linux-51035c4eb236eecfbab8f1cc239c8d61ae10337b.tar.gz linux-51035c4eb236eecfbab8f1cc239c8d61ae10337b.zip | |
drm/amdgpu/gfx8: drop all BUG()s
There's no need to crash the kernel for these cases.
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 9e0840df8849..6cf427995078 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -977,7 +977,8 @@ static int gfx_v8_0_init_microcode(struct amdgpu_device *adev) chip_name = "vegam"; break; default: - BUG(); + dev_warn(adev->dev, "Unsupported asic_type 0x%08x\n", adev->asic_type); + return -EINVAL; } if (adev->asic_type >= CHIP_POLARIS10 && adev->asic_type <= CHIP_POLARIS12) { |
