Skip to content

drm: fix soft lockup when saturating vram

Yunxiang Li dri-devel llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amdgpu: fix missing fence reserve in amdgpu_vm_sdma_commitdrivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c+4 -03 replies
2/2dma-buf: allow nested dma_resv_reserve_fencesdrivers/dma-buf/dma-resv.c include/linux/dma-resv.h+35 -292 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm: fix soft lockup when saturating vram

When running multiple graphical application and vram is saturated, the excessive swapping triggers the BUG_ON() in dma_resv_add_fences. The root cause is that calling dma_resv_reserve_fences twice would shadow the second call and this happens in amdgpu_cs_ioctl/amdgpu_gem_va_ioctl path shadowing reserve calls made in ttm.

The first patch fixes a missing reserve surfaced by the stricter reserve check below.

The second patch reworks dma_resv_reserve_fences to allow it to be called multiple times. It also makes the error check more percise and less costly, hopefully this would catch missing reserve more reliably.