diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2024-12-05 10:51:27 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-12-10 10:26:52 -0500 |
commit | b6e6871a56d7471f087c3f36e63f213668feba49 (patch) | |
tree | 27c7f3d2ba5187b4fcba431c51a15cf925914518 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 2a50d94b11e2f58aba6ee58adcf1011e0ed694b7 (diff) | |
download | linux-b6e6871a56d7471f087c3f36e63f213668feba49.tar.gz linux-b6e6871a56d7471f087c3f36e63f213668feba49.tar.bz2 linux-b6e6871a56d7471f087c3f36e63f213668feba49.zip |
drm/amd: Show an info message about optional firmware missing
With the warning from the core about missing firmware gone,
users still may be notified of missing optional firmware by
a more friendly message to clarify it's optional.
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index ffbb3377e0f6..cf700824b960 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c @@ -1459,8 +1459,11 @@ int amdgpu_ucode_request(struct amdgpu_device *adev, const struct firmware **fw, if (required == AMDGPU_UCODE_REQUIRED) r = request_firmware(fw, fname, adev->dev); - else + else { r = firmware_request_nowarn(fw, fname, adev->dev); + if (r) + drm_info(&adev->ddev, "Optional firmware \"%s\" was not found\n", fname); + } if (r) return -ENODEV; |