diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-01-03 13:18:19 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-09 16:27:58 -0500 |
commit | 2210af50ae7f4104269dfde7bafbbfbacdbe1a2b (patch) | |
tree | 8342abad383f0271de18ee779c5e868a5c644993 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | |
parent | 755f32a39e19b5ade9353dc9beaca72853ac4862 (diff) | |
download | linux-2210af50ae7f4104269dfde7bafbbfbacdbe1a2b.tar.gz linux-2210af50ae7f4104269dfde7bafbbfbacdbe1a2b.tar.bz2 linux-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 <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c')
0 files changed, 0 insertions, 0 deletions