]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: return -EBUSY if waiting for busy BO fails
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 26 Jun 2019 06:32:43 +0000 (02:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2019 16:19:36 +0000 (11:19 -0500)
commit10c80e281cff6b0b9dc0f94fb3be901273ab915e
tree6867f99a9921823bae3b36a58a658b8ac1e84510
parentc6342e570ad29cae12d4e2d7b4385025799de117
drm/ttm: return -EBUSY if waiting for busy BO fails

Returning -EAGAIN prevents ttm_bo_mem_space from trying alternate
placements and can lead to live-locks in amdgpu_cs, retrying
indefinitely and never succeeding.

Fixes: f72ce9e53e13d1 ("drm/ttm: fix busy memory to fail other user v10")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c