git: drm: retry page fault handler on buffer data in transit

Sergey Zigachev szi at crater.dragonflybsd.org
Fri Jul 8 10:34:48 PDT 2022


commit 68bfabadf1c716d66fc052230db558df0b6b74bf
Author: Sergey Zigachev <s.zi at outlook.com>
Date:   Fri Jul 8 22:31:27 2022 +0500

    drm: retry page fault handler on buffer data in transit
    
    Fixes Xorg crash on a connect/disconnect monitor when using amdgpu with
    modesetting driver. Crash occured because buffer object was in transit
    state. Added retry loop that allows up to 100 iterations allowing buffer object
    to "catch up". During testing around 30-40 iterations were observed.
    
    Co-authored-by: Matthew Dillon <dillon at apollo.backplane.com>

Summary of changes:
 sys/dev/drm/ttm/ttm_bo_vm.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/68bfabadf1c716d66fc052230db558df0b6b74bf


-- 
DragonFly BSD source repository


More information about the Commits mailing list