Skip to content

Commit e2884fe

Browse files
SimonPilkingtonChristianKoenigAMD
authored andcommitted
drm/amd: Make fence wait in suballocator uninterruptible
Commit c103a23 ("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 <[email protected]> Fixes: c103a23 ("drm/amd: Convert amdgpu to use suballocation helper.") Reviewed-by: Christian König <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2761 CC: [email protected] # 6.4+
1 parent 0c3b063 commit e2884fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager,
8181
unsigned int size)
8282
{
8383
struct drm_suballoc *sa = drm_suballoc_new(&sa_manager->base, size,
84-
GFP_KERNEL, true, 0);
84+
GFP_KERNEL, false, 0);
8585

8686
if (IS_ERR(sa)) {
8787
*sa_bo = NULL;

0 commit comments

Comments
 (0)