aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-01-10 18:06:00 +0000
committerAlex Deucher <[email protected]>2017-01-27 16:13:28 +0000
commit36ea83d1512008ab6631c54971e8de8cf2f0a7b4 (patch)
tree2a69aafab3903216dbb6036de0bde7a525f23e65 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amdgpu: fix typo of CGTS (diff)
downloadkernel-36ea83d1512008ab6631c54971e8de8cf2f0a7b4.tar.gz
kernel-36ea83d1512008ab6631c54971e8de8cf2f0a7b4.zip
drm/amd/amdgpu: lock reservation object while creating shadow bo
ttm_bo_init checks that the reservation object is locked. This is the caller's responsibility when resv != NULL. Otherwise, the inline reservation object of the newly allocated buffer is used and must explicitly be locked. Uninterruptible w/w locks without an acquire context are always successful. v2: use ww_mutex_lock Signed-off-by: Nicolai Hähnle <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> (v1) Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions