[PATCH 210/459] drm/amdgpu/mes10.1: implement ucode CPU buffer destruction
Alex Deucher
alexdeucher at gmail.com
Mon Jun 17 19:29:37 UTC 2019
From: Jack Xiao <Jack.Xiao at amd.com>
It implements the CPU buffer destruction of ucode.
Signed-off-by: Jack Xiao <Jack.Xiao at amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
index c799b0ca1907..e53819b99442 100644
--- a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
@@ -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;
--
2.20.1
More information about the amd-gfx
mailing list