diff options
author | xinhui pan <xinhui.pan@amd.com> | 2020-01-22 04:03:30 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-01-27 22:46:44 +0100 |
commit | f583cc57ba70afdd02e36b0ada3790e8bf4fb10f (patch) | |
tree | 718adf857e6ccf3e13abe696cf7cdbb7c88e2fc1 /drivers/gpu | |
parent | drm/amdgpu/vcn: use inst_idx relacing inst (diff) | |
download | linux-f583cc57ba70afdd02e36b0ada3790e8bf4fb10f.tar.xz linux-f583cc57ba70afdd02e36b0ada3790e8bf4fb10f.zip |
drm/amdgpu: initialize bo_va_list when add gws to process
bo_va_list is list_head, so initialize it.
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index b2487f4f271b..fa8ac9d19a7a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -2129,6 +2129,7 @@ int amdgpu_amdkfd_add_gws_to_process(void *info, void *gws, struct kgd_mem **mem return -ENOMEM; mutex_init(&(*mem)->lock); + INIT_LIST_HEAD(&(*mem)->bo_va_list); (*mem)->bo = amdgpu_bo_ref(gws_bo); (*mem)->domain = AMDGPU_GEM_DOMAIN_GWS; (*mem)->process_info = process_info; |