summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2026-06-15 19:37:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-07-28 19:17:32 -0400
commit48fd918301a30a6153b3659bd5a556840dffe5af (patch)
treea6e0b4a9f6aa8e22a51474eb04511e02103356d8 /drivers
parentea1b84c68aed446ffa61ab929a984fef4cf9adc9 (diff)
downloadlinux-next-48fd918301a30a6153b3659bd5a556840dffe5af.tar.gz
linux-next-48fd918301a30a6153b3659bd5a556840dffe5af.zip
drm/amdgpu/gfx7: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
index 65b8497ad5f0..b93bad1d2a6f 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
@@ -933,7 +933,8 @@ static int gfx_v7_0_init_microcode(struct amdgpu_device *adev)
chip_name = "mullins";
break;
default:
- BUG();
+ dev_warn(adev->dev, "Unsupported asic_type 0x%08x\n", adev->asic_type);
+ return -EINVAL;
}
err = amdgpu_ucode_request(adev, &adev->gfx.pfp_fw,