All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm/vram: Check display modes against available VRAM
@ 2020-02-01 12:27 Thomas Zimmermann
  2020-02-01 12:27 ` [PATCH 1/4] drm/vram: Add helpers to validate a display mode's memory requirements Thomas Zimmermann
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Thomas Zimmermann @ 2020-02-01 12:27 UTC (permalink / raw)
  To: airlied, daniel, kraxel, maarten.lankhorst, mripard,
	z.liuxinliang, zourongrong, kong.kongxinwei, puck.chen, hdegoede,
	sam
  Cc: Thomas Zimmermann, dri-devel

This adds drm_vram_helper_mode_valid(), which tests a display mode against
the available video memory. It's a helper function to sort out display
modes that cannot be used because of a lack of video memory.

The ast driver already implemented this test for a while. The patchset
converts ast over to the helper and adds the test to the over drivers
that use VRAM helpers; except mgag200. I left out mgag200 as it doesn't
have atomic modesetting yet and needs adjustments to memory management
first.

Thomas Zimmermann (4):
  drm/vram: Add helpers to validate a display mode's memory requirements
  drm/bochs: Implement struct drm_mode_config_funcs.mode_valid
  drm/hibmc: Implement struct drm_mode_config_funcs.mode_valid
  drm/vboxvideo: Implement struct drm_mode_config_funcs.mode_valid

 drivers/gpu/drm/ast/ast_main.c              | 24 +------
 drivers/gpu/drm/bochs/bochs_kms.c           |  1 +
 drivers/gpu/drm/drm_gem_vram_helper.c       | 76 +++++++++++++++++++++
 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c |  1 +
 drivers/gpu/drm/vboxvideo/vbox_mode.c       |  1 +
 include/drm/drm_gem_vram_helper.h           | 14 ++++
 6 files changed, 94 insertions(+), 23 deletions(-)

--
2.25.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2020-02-03 10:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-01 12:27 [PATCH 0/4] drm/vram: Check display modes against available VRAM Thomas Zimmermann
2020-02-01 12:27 ` [PATCH 1/4] drm/vram: Add helpers to validate a display mode's memory requirements Thomas Zimmermann
2020-02-03  9:49   ` Daniel Vetter
2020-02-03  9:53     ` Daniel Vetter
2020-02-03 10:25       ` Thomas Zimmermann
2020-02-01 12:27 ` [PATCH 2/4] drm/bochs: Implement struct drm_mode_config_funcs.mode_valid Thomas Zimmermann
2020-02-03  6:47   ` Gerd Hoffmann
2020-02-03  8:35     ` Thomas Zimmermann
2020-02-03 10:25       ` Gerd Hoffmann
2020-02-01 12:27 ` [PATCH 3/4] drm/hibmc: " Thomas Zimmermann
2020-02-03  9:50   ` Daniel Vetter
2020-02-01 12:27 ` [PATCH 4/4] drm/vboxvideo: " Thomas Zimmermann
2020-02-03  9:53   ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.