]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf72ce9e53e13d11d48fe67e977e8efe5dd0f4119
tree10dadbea95bd9b80b53d2c381969b335049ad168
parent3ecd3ff7672d94b5264ed03aca5604b135f51d24
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