projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
298d054
)
drm/amdgpu/mes10.1: implement ucode CPU buffer destruction
author
Jack Xiao
<Jack.Xiao@amd.com>
Mon, 15 Apr 2019 08:58:20 +0000
(16:58 +0800)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
b/drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
index c799b0ca1907e017a6a52963864759711b335d11..e53819b9944261bca4d3bacdc3c7a07ddf067154 100644
(file)
--- 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;