dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/vram-helper: Reduce memory fragmentation
@ 2020-04-22 14:40 Thomas Zimmermann
  2020-04-22 14:40 ` [PATCH 1/2] drm/vram-helper: Don't put new BOs into VRAM Thomas Zimmermann
  2020-04-22 14:40 ` [PATCH 2/2] drm/vram-helper: Alternate between bottom-up and top-down placement Thomas Zimmermann
  0 siblings, 2 replies; 16+ messages in thread
From: Thomas Zimmermann @ 2020-04-22 14:40 UTC (permalink / raw)
  To: airlied, daniel, sam, christian.koenig, kraxel
  Cc: Thomas Zimmermann, dri-devel

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-04-29  9:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-22 14:40 [PATCH 0/2] drm/vram-helper: Reduce memory fragmentation Thomas Zimmermann
2020-04-22 14:40 ` [PATCH 1/2] drm/vram-helper: Don't put new BOs into VRAM Thomas Zimmermann
2020-04-22 14:40 ` [PATCH 2/2] drm/vram-helper: Alternate between bottom-up and top-down placement Thomas Zimmermann
2020-04-23 11:18   ` Gerd Hoffmann
2020-04-23 12:44     ` Thomas Zimmermann
2020-04-23 13:57       ` Gerd Hoffmann
2020-04-23 15:04         ` Christian König
2020-04-24  6:27           ` Thomas Zimmermann
2020-04-24  6:56             ` Christian König
2020-04-24  7:03               ` Thomas Zimmermann
2020-04-24  7:39                 ` Christian König
2020-04-24  6:59         ` Thomas Zimmermann
2020-04-24  9:38           ` Gerd Hoffmann
2020-04-28 15:16             ` Thomas Zimmermann
2020-04-29  7:25               ` Gerd Hoffmann
2020-04-29  9:11                 ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox