VRAM memory can easily fragment, which leads to OOM errors on devices with little VRAM available (i.e., all of them). This patchset addresses the problem by placing BOs near the bottom and top ends of the VRAM and keeping available areas near the middle.
Thomas Zimmermann (2): drm/vram-helper: Don't put new BOs into VRAM drm/vram-helper: Alternate between bottom-up and top-down placement drivers/gpu/drm/drm_gem_vram_helper.c | 30 +++++++++++++++++++++------ include/drm/drm_gem_vram_helper.h | 10 +++++---- 2 files changed, 30 insertions(+), 10 deletions(-) -- 2.26.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel