diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2026-06-15 19:34:09 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 19:17:32 -0400 |
| commit | 8565fdaad0c5e4dca8dff76488c5f4bb809ef85b (patch) | |
| tree | 31f5ef23c71b885d1e211ce1c42a826cdeb5e457 | |
| parent | 8a1484e134b1b548d46097dc3da861445b5c5d6e (diff) | |
| download | linux-8565fdaad0c5e4dca8dff76488c5f4bb809ef85b.tar.gz linux-8565fdaad0c5e4dca8dff76488c5f4bb809ef85b.zip | |
drm/amdgpu/psp14: 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>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/psp_v14_0.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c index 040a61aefa86..888c747d6c5c 100644 --- a/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c +++ b/drivers/gpu/drm/amd/amdgpu/psp_v14_0.c @@ -85,7 +85,9 @@ static int psp_v14_0_init_microcode(struct psp_context *psp) return err; break; default: - BUG(); + dev_warn(adev->dev, "Unsupported MP0 version 0x%08x\n", + amdgpu_ip_version(adev, MP0_HWIP, 0)); + return -EINVAL; } return 0; |
