Skip to content

Commit 2f0ddd8

Browse files
committed
drm/ast: Enable CRTC before planes
An active cursor plane requires a valid display mode. Change the commit_tail callback, so that it sets up the CRTC's mode before updating planes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200914072236.19398-5-tzimmermann@suse.de
1 parent f3901b5 commit 2f0ddd8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/gpu/drm/ast/ast_mode.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,11 @@ static int ast_connector_init(struct drm_device *dev)
10681068
* Mode config
10691069
*/
10701070

1071+
static const struct drm_mode_config_helper_funcs
1072+
ast_mode_config_helper_funcs = {
1073+
.atomic_commit_tail = drm_atomic_helper_commit_tail_rpm,
1074+
};
1075+
10711076
static const struct drm_mode_config_funcs ast_mode_config_funcs = {
10721077
.fb_create = drm_gem_fb_create,
10731078
.mode_valid = drm_vram_helper_mode_valid,
@@ -1107,6 +1112,8 @@ int ast_mode_config_init(struct ast_private *ast)
11071112
dev->mode_config.max_height = 1200;
11081113
}
11091114

1115+
dev->mode_config.helper_private = &ast_mode_config_helper_funcs;
1116+
11101117
memset(&ast->primary_plane, 0, sizeof(ast->primary_plane));
11111118
ret = drm_universal_plane_init(dev, &ast->primary_plane, 0x01,
11121119
&ast_primary_plane_funcs,

0 commit comments

Comments
 (0)