• Oscar Mateo's avatar
    tests/gem_close_race: Adapt the test for Full PPGTT · 4eae05f0
    Oscar Mateo authored
    With Full PPGTT, each new fd creates a new context and thus a new
    PPGTT, so we have to reduce the number of simultaneous fds or face
    OOM problems. For every new PPGTT, its PDEs are stored in the GGTT
    which imposes a limit of 1024 new contexts. We want to leave at
    least 1/4 of the GGTT available for "important" stuff like scanout
    buffers, so never open more than 768 fds.
    
    v2: Unconditionally use the lower limit, as suggested by Daniel
    Vetter
    Signed-off-by: default avatarOscar Mateo <oscar.mateo@intel.com>
    Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    4eae05f0
gem_close_race.c 6.17 KB