diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2026-06-15 19:32:46 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 19:17:32 -0400 |
| commit | 6f0c77237cef64af825bf80fcfa3011c8ec720f3 (patch) | |
| tree | 975352a46ac0047fddb7771b9d9fab2d8bd60a8d /drivers | |
| parent | 14bcaa11c0304355ff04c06660ac16c1b7f66d24 (diff) | |
| download | linux-next-6f0c77237cef64af825bf80fcfa3011c8ec720f3.tar.gz linux-next-6f0c77237cef64af825bf80fcfa3011c8ec720f3.zip | |
drm/amdgpu/psp11: replace BUG() with an error
There's no need to crash the kernel for this case.
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/psp_v11_0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c index 479690c44f0d..bd3bb3bfb668 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c @@ -136,7 +136,9 @@ static int psp_v11_0_init_microcode(struct psp_context *psp) err = psp_init_toc_microcode(psp, ucode_prefix); break; default: - BUG(); + dev_warn(adev->dev, "Unsupported MP0 version 0x%08x\n", + amdgpu_ip_version(adev, MP0_HWIP, 0)); + return -EINVAL; } return err; |
