Skip to contentSkip to conversation

drm/radeon: make fence wait in suballocator uninterrruptable

PATCH In review Alex Deucher 2 participants 2 messages Sep 6, 2023 – Sep 7, 2023

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/radeon: make fence wait in suballocator uninterrruptable

Commit 254986e324ad ("drm/radeon: Use the drm suballocation manager implementation.") 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.

Fixes 254986e324ad ("drm/radeon: Use the drm suballocation manager implementation.")
CC Simon Pilkington <[email protected]>
---
 drivers/gpu/drm/radeon/radeon_sa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_sa.c +1 -1
index c87a57c9c592..22dd8b445685 100644
@@ -123,7 +123,7 @@ int radeon_sa_bo_new(struct radeon_sa_manager *sa_manager,
 		     unsigned int size, unsigned int align)
 {
 	struct drm_suballoc *sa = drm_suballoc_new(&sa_manager->base, size,
-						   GFP_KERNEL, true, align);
+						   GFP_KERNEL, false, align);
 
 	if (IS_ERR(sa)) {
 		*sa_bo = NULL;
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Am 06.09.23 um 21:55 schrieb Alex Deucher:

Quoted 10 lines

Commit 254986e324ad ("drm/radeon: Use the drm suballocation manager implementation.") 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.

Fixes 254986e324ad ("drm/radeon: Use the drm suballocation manager implementation.")
CC Simon Pilkington <[email protected]>

Going to push this to drm-misc-fixes in a minute.

Regards,
Christian.

Quoted 17 lines
---
  drivers/gpu/drm/radeon/radeon_sa.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_sa.c +1 -1
index c87a57c9c592..22dd8b445685 100644
@@ -123,7 +123,7 @@ int radeon_sa_bo_new(struct radeon_sa_manager *sa_manager,
  		     unsigned int size, unsigned int align)
  {
  	struct drm_suballoc *sa = drm_suballoc_new(&sa_manager->base, size,
-						   GFP_KERNEL, true, align);
+						   GFP_KERNEL, false, align);
 
  	if (IS_ERR(sa)) {
  		*sa_bo = NULL;