[PATCH 2/2] drm/amdgpu: Free ucode bo memory during load failure v1

2022-04-19 Thread Wong, Alice
[AMD Official Use Only] Remove firmware.load_type check in amdgpu_ucode_free_bo. If psp failed to load a firmware, it will set formware.load_type to AMDGPU_FW_LOAD_DIRECT for bring up purposes. This caused memory leak as amdpug_ucode_free_bo will skip freeing memory due to the load_type. BUG:S

[PATCH 2/2] drm/amdgpu: Free ucode bo memory during load failure v1

2022-04-19 Thread Alice Wong
Remove firmware.load_type check in amdgpu_ucode_free_bo. If psp failed to load a firmware, it will set formware.load_type to AMDGPU_FW_LOAD_DIRECT for bring up purposes. This caused memory leak as amdpug_ucode_free_bo will skip freeing memory due to the load_type. BUG:SWDEV-332449 Signed-off-by: