Skip to content

Commit fee9d13

Browse files
committed
Merge tag 'mediatek-drm-fixes-20240805' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes
Mediatek DRM Fixes - 20240805 1. Set sensible cursor width/height values to fix crash Signed-off-by: Dave Airlie <[email protected]> From: Chun-Kuang Hu <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents f8e170a + 042b871 commit fee9d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ static int mtk_drm_kms_init(struct drm_device *drm)
539539
}
540540

541541
/* IGT will check if the cursor size is configured */
542-
drm->mode_config.cursor_width = drm->mode_config.max_width;
543-
drm->mode_config.cursor_height = drm->mode_config.max_height;
542+
drm->mode_config.cursor_width = 512;
543+
drm->mode_config.cursor_height = 512;
544544

545545
/* Use OVL device for all DMA memory allocations */
546546
crtc = drm_crtc_from_index(drm, 0);

0 commit comments

Comments
 (0)