From: Thomas Zimmermann Date: Mon, 3 Feb 2020 15:52:58 +0000 (+0100) Subject: drm/vboxvideo: Implement struct drm_mode_config_funcs.mode_valid X-Git-Tag: v5.15~303^2~28^2~3563 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7a0e8f69a8283ccf8d159ef77d2b97a080d0cbf;p=platform%2Fkernel%2Flinux-starfive.git drm/vboxvideo: Implement struct drm_mode_config_funcs.mode_valid The implementation of struct drm_mode_config_funcs.mode_valid verifies that enough video memory is available for a given display mode. Signed-off-by: Thomas Zimmermann Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20200203155258.9346-5-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/vboxvideo/vbox_mode.c b/drivers/gpu/drm/vboxvideo/vbox_mode.c index 8b7f005..0883a43 100644 --- a/drivers/gpu/drm/vboxvideo/vbox_mode.c +++ b/drivers/gpu/drm/vboxvideo/vbox_mode.c @@ -826,6 +826,7 @@ static int vbox_connector_init(struct drm_device *dev, static const struct drm_mode_config_funcs vbox_mode_funcs = { .fb_create = drm_gem_fb_create_with_dirty, + .mode_valid = drm_vram_helper_mode_valid, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };