Skip to content

drm/vram: Check display modes against available VRAM

Thomas Zimmermann dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 8 repliesSuperseded

Changes in v2 from the cover letter

* WARN_ON if VRAM memory manager has not been initialized (Daniel)
* unexport drm_vram_helper_mode_valid_internal() (Daniel)
* documentation formatting (Daniel)
* remove bochs_connector_mode_valid() (Gerd)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/vram: Add helpers to validate a display mode's memory requirementsdrivers/gpu/drm/ast/ast_main.c drivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+71 -230 replies
2/4drm/bochs: Implement struct drm_mode_config_funcs.mode_validdrivers/gpu/drm/bochs/bochs_kms.c+1 -201 reply
3/4drm/hibmc: Implement struct drm_mode_config_funcs.mode_validdrivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c+1 -00 replies
4/4drm/vboxvideo: Implement struct drm_mode_config_funcs.mode_validdrivers/gpu/drm/vboxvideo/vbox_mode.c+1 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchDaniel VetterGerd Hoffmann
1/4R-b
2/4R-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] drm/vram: Check display modes against available VRAM

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.

v2:
* WARN_ON if VRAM memory manager has not been initialized (Daniel)
* unexport drm_vram_helper_mode_valid_internal() (Daniel)
* documentation formatting (Daniel)
* remove bochs_connector_mode_valid() (Gerd)

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           | 21 +------
 drivers/gpu/drm/drm_gem_vram_helper.c       | 61 +++++++++++++++++++++
 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c |  1 +
 drivers/gpu/drm/vboxvideo/vbox_mode.c       |  1 +
 include/drm/drm_gem_vram_helper.h           |  9 +++
 6 files changed, 74 insertions(+), 43 deletions(-)

--
2.25.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel