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>
This commit is contained in:
Alex Deucher
2026-06-15 19:32:46 -04:00
parent 14bcaa11c0
commit 6f0c77237c

View File

@@ -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;