]> git.karo-electronics.de Git - linux-beck.git/commit
drm/ttm: Wait for a BO to become idle before unbinding it from GTT
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 5 Aug 2016 09:36:10 +0000 (18:36 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:33:31 +0000 (11:33 -0400)
commit7b8082bc0774b75a8a3f457f2399a85d4d515c56
tree164820077354bafe056b34a59c0ce0baf24fc4c9
parentfdba11f4079ec0b3037a0e3ce6014b47135db431
drm/ttm: Wait for a BO to become idle before unbinding it from GTT

Fixes hangs under memory pressure, e.g. running the piglit test
tex3d-maxsize concurrently with other tests.

Fixes: 17d33bc9d6ef ("drm/ttm: drop waiting for idle in ttm_bo_evict.")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo_driver.h