diff options
author | Jack Xiao <Jack.Xiao@amd.com> | 2019-04-15 16:58:20 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-21 18:59:28 -0500 |
commit | 086981052bd8fa7f2cf14c547f2b8990336c2b34 (patch) | |
tree | b511bdb0f66c11a2bac933f2ff35f09edc9879ff /drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | |
parent | 298d05460cc459aef9d5ae0b022e2e27f5eaac34 (diff) | |
download | linux-086981052bd8fa7f2cf14c547f2b8990336c2b34.tar.bz2 |
drm/amdgpu/mes10.1: implement ucode CPU buffer destruction
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v10_1.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |