Commit cfece024 authored by Wenhui Sheng's avatar Wenhui Sheng Committed by Sasha Levin
Browse files

drm/amdgpu: add fw release for sdma v5_0

commit edfaf6fa


sdma fw isn't released when module exit
Reviewed-by: default avatarHawking Zhang <>
Signed-off-by: default avatarWenhui Sheng <>
Signed-off-by: default avatarAlex Deucher <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 7b690211
......@@ -1261,8 +1261,12 @@ static int sdma_v5_0_sw_fini(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
int i;
for (i = 0; i < adev->sdma.num_instances; i++)
for (i = 0; i < adev->sdma.num_instances; i++) {
if (adev->sdma.instance[i].fw != NULL)
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment