From: Jack Xiao Date: Mon, 15 Apr 2019 08:58:20 +0000 (+0800) Subject: drm/amdgpu/mes10.1: implement ucode CPU buffer destruction X-Git-Tag: v5.3-rc1~81^2~10^2~270 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=086981052bd8fa7f2cf14c547f2b8990336c2b34;p=linux.git drm/amdgpu/mes10.1: implement ucode CPU buffer destruction It implements the CPU buffer destruction of ucode. Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- 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;