summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-05-12 13:27:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-05-13 14:30:22 -0400
commitd573de2d00835e38cef1fb4bff7b49c174c68941 (patch)
treecb84cee91af7122f9503796aa5b390d47b83d999 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
parent8b41e7a03a306d93276f91c1dae39dc51a1af58d (diff)
downloadlinux-d573de2d00835e38cef1fb4bff7b49c174c68941.tar.gz
linux-d573de2d00835e38cef1fb4bff7b49c174c68941.tar.xz
drm/amdgpu: create fence slab once when amdgpu module init.
This avoids problems with multiple GPUs. For example, if the first GPU failed before amdgpu_fence_init() was called, amdgpu_fence_slab_ref is still 0 and it will get decremented in amdgpu_fence_driver_fini(). This will lead to a crash during init of the second GPU since amdgpu_fence_slab_ref is not 0. v2: add functions for init/exit instead of moving the variables into the driver. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
0 files changed, 0 insertions, 0 deletions