diff options
| author | Mario Limonciello <[email protected]> | 2023-01-03 19:18:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-01-09 21:27:58 +0000 |
| commit | 2210af50ae7f4104269dfde7bafbbfbacdbe1a2b (patch) | |
| tree | 8342abad383f0271de18ee779c5e868a5c644993 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |
| parent | drm/amd: Convert SMUv13 microcode to use `amdgpu_ucode_ip_version_decode` (diff) | |
| download | kernel-2210af50ae7f4104269dfde7bafbbfbacdbe1a2b.tar.gz kernel-2210af50ae7f4104269dfde7bafbbfbacdbe1a2b.zip | |
drm/amd: Add a new helper for loading/validating microcode
All microcode runs a basic validation after it's been loaded. Each
IP block as part of init will run both.
Introduce a wrapper for request_firmware and amdgpu_ucode_validate.
This wrapper will also remap any error codes from request_firmware
to -ENODEV. This is so that early_init will fail if firmware couldn't
be loaded instead of the IP block being disabled.
Reviewed-by: Lijo Lazar <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions
