]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/ttm: fix ttm_bo_wait
authorChristian König <christian.koenig@amd.com>
Mon, 7 Nov 2016 21:16:15 +0000 (16:16 -0500)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 8 Nov 2016 19:16:04 +0000 (00:46 +0530)
commit98a6dd909bbd247ce10f36ce709906bc5e9dfeb0
tree16908d221377dbf44d4c73569ab5111406c31530
parent698c0f7ff21674ec08a4c6e99dd6da62fe5a344d
drm/ttm: fix ttm_bo_wait

reservation_object_wait_timeout_rcu() should enable signaling even with a
zero timeout, but ttm_bo_wait() can also be called from atomic context and
then it is not a good idea to do this.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
  [sumits: fix checkpatch warnings]
Link: http://patchwork.freedesktop.org/patch/msgid/1478553376-18575-3-git-send-email-alexander.deucher@amd.com
drivers/gpu/drm/ttm/ttm_bo.c