提交 71c57941 编写于 作者: J Jack Xiao 提交者: Alex Deucher

drm/amdgpu/mes10.1: implement ucode buffers destruction

Free ucode GPU buffers.
Signed-off-by: NJack Xiao <Jack.Xiao@amd.com>
Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 85c90e9b
......@@ -169,6 +169,17 @@ static int mes_v10_1_allocate_ucode_data_buffer(struct amdgpu_device *adev)
return 0;
}
static void mes_v10_1_free_ucode_buffers(struct amdgpu_device *adev)
{
amdgpu_bo_free_kernel(&adev->mes.data_fw_obj,
&adev->mes.data_fw_gpu_addr,
(void **)&adev->mes.data_fw_ptr);
amdgpu_bo_free_kernel(&adev->mes.ucode_fw_obj,
&adev->mes.ucode_fw_gpu_addr,
(void **)&adev->mes.ucode_fw_ptr);
}
static int mes_v10_1_sw_init(void *handle)
{
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册