• Ben Widawsky's avatar
    drm/i915: One hopeful eviction on PPGTT alloc · e3cc1995
    Ben Widawsky authored
    The patch before this changed the way in which we allocate space for the
    PPGTT PDEs. It began carving out the PPGTT PDEs (which live in the
    Global GTT) from the GGTT's drm_mm. Prior to that patch, the PDEs were
    hidden from the drm_mm, and therefore could never fail to be allocated.
    
    In unfortunate cases, the drm_mm may be full when we want to allocate
    the space. This can technically occur whenever we try to allocate, which
    happens in two places currently. Practically, it can only really ever
    happen at GPU reset.
    
    Later, when we allocate more PDEs for multiple PPGTTs this will
    potentially even more useful.
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    e3cc1995
i915_gem_gtt.c 45.6 KB