[PATCH 0/2] drm/vram-helper: Reduce memory fragmentation
Thomas Zimmermann
tzimmermann at suse.de
Wed Apr 22 14:40:53 UTC 2020
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
More information about the dri-devel
mailing list