drm/amd: Make fence wait in suballocator uninterruptible
authorSimon Pilkington <simonp.git@gmail.com>
Fri, 1 Sep 2023 07:17:38 +0000 (08:17 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2023 13:12:07 +0000 (15:12 +0200)
commite2884fe84a83c562346eb9d92783a3576ce67177
tree803a1ead16dc97cad48ef2d6f37b680d7b636cdf
parent0c3b063ef4136191312a88ea7a670a6a2a2dae5a
drm/amd: Make fence wait in suballocator uninterruptible

Commit c103a23f2f29
("drm/amd: Convert amdgpu to use suballocation helper.")
made the fence wait in amdgpu_sa_bo_new() interruptible but there is no
code to handle an interrupt. This caused the kernel to randomly explode
in high-VRAM-pressure situations so make it uninterruptible again.

Signed-off-by: Simon Pilkington <simonp.git@gmail.com>
Fixes: c103a23f2f29 ("drm/amd: Convert amdgpu to use suballocation helper.")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2761
CC: stable@vger.kernel.org # 6.4+
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c