OSDN Git Service

drm/amdgpu/mes10.1: implement ucode CPU buffer destruction
authorJack Xiao <Jack.Xiao@amd.com>
Mon, 15 Apr 2019 08:58:20 +0000 (16:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:59:28 +0000 (18:59 -0500)
It implements the CPU buffer destruction of ucode.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c

index c799b0c..e53819b 100644 (file)
@@ -97,6 +97,12 @@ static int mes_v10_1_init_microcode(struct amdgpu_device *adev)
        return 0;
 }
 
+static void mes_v10_1_free_microcode(struct amdgpu_device *adev)
+{
+       release_firmware(adev->mes.fw);
+       adev->mes.fw = NULL;
+}
+
 static int mes_v10_1_sw_init(void *handle)
 {
        return 0;