diff options
author | 2023-01-03 13:18:19 -0600 | |
---|---|---|
committer | 2023-01-09 16:27:58 -0500 | |
commit | 2210af50ae7f4104269dfde7bafbbfbacdbe1a2b (patch) | |
tree | 8342abad383f0271de18ee779c5e868a5c644993 /drivers/gpu/drm/amd/display/modules/power/power_helpers.c | |
parent | drm/amd: Convert SMUv13 microcode to use `amdgpu_ucode_ip_version_decode` (diff) | |
download | linux-rng-2210af50ae7f4104269dfde7bafbbfbacdbe1a2b.tar.xz linux-rng-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/display/modules/power/power_helpers.c')
0 files changed, 0 insertions, 0 deletions