drm/ttm: fix busy memory to fail other user v10
authorChristian König <christian.koenig@amd.com>
Wed, 22 May 2019 07:51:47 +0000 (09:51 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:34 +0000 (10:39 -0500)
commitd367bd2a5e2b12cb9135b30df94af8211196e8cf
tree10dadbea95bd9b80b53d2c381969b335049ad168
parent224ee02a9d73cb687bc5432a969247689678290c
drm/ttm: fix busy memory to fail other user v10

BOs on the LRU might be blocked during command submission
and cause OOM situations.

Avoid this by blocking for the first busy BO not locked by
the same ticket as the BO we are searching space for.

v10: completely start over with the patch since we didn't
     handled a whole bunch of corner cases.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c