diff options
author | Jiri Kosina <jkosina@suse.cz> | 2021-06-24 13:11:36 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-07-01 12:09:25 -0400 |
commit | 36f5f9d37e19b72bd4383b8c43463f7f7149f1da (patch) | |
tree | d56ce8f47d2e2a8028a1be44ed98372254535be4 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 4ef87d8f10aa375604b98c4e555f671d11e4111f (diff) |
drm/amdgpu: Avoid printing of stack contents on firmware load error
In case when psp_init_asd_microcode() fails to load ASD microcode file,
psp_v12_0_init_microcode() tries to print the firmware filename that
failed to load before bailing out.
This is wrong because:
- the firmware filename it would want it print is an incorrect one as
psp_init_asd_microcode() and psp_v12_0_init_microcode() are loading
different filenames
- it tries to print fw_name, but that's not yet been initialized by that
time, so it prints random stack contents, e.g.
amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_asd.bin failed with error -2
amdgpu 0000:04:00.0: amdgpu: fail to initialize asd microcode
amdgpu 0000:04:00.0: amdgpu: psp v12.0: Failed to load firmware "\xfeTO\x8e\xff\xff"
Fix that by bailing out immediately, instead of priting the bogus error
message.
Reported-by: Vojtech Pavlik <vojtech@ucw.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions