2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/mediatek
AngeloGioacchino Del Regno 042b8711a0 drm/mediatek: Set sensible cursor width/height values to fix crash
Hardware-speaking, there is no feature-reduced cursor specific
plane, so this driver reserves the last all Overlay plane as a
Cursor plane, but sets the maximum cursor width/height to the
maximum value that the full overlay plane can use.

While this could be ok, it raises issues with common userspace
using libdrm (especially Mutter, but other compositors too) which
will crash upon performing allocations and/or using said cursor
plane.

Reduce the maximum width/height for the cursor to 512x512 pixels,
value taken from IGT's maximum cursor size test, which succeeds.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Fei Shao <fshao@chromium.org>
Tested-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240718082410.204459-1-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
2024-08-05 13:06:20 +00:00
..
Kconfig drm/mediatek: select DRM_GEM_DMA_HELPER if DRM_FBDEV_EMULATION=y 2024-06-26 11:11:43 +02:00
Makefile drm/mediatek: Rename files "mtk_drm_gem.c" to "mtk_gem.c" 2024-04-01 15:35:43 +00:00
mtk_cec.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_cec.h
mtk_crtc.c drm/mediatek: Rename files "mtk_drm_gem.h" to "mtk_gem.h" 2024-04-01 15:33:52 +00:00
mtk_crtc.h drm/mediatek: Rename files "mtk_drm_plane.h" to "mtk_plane.h" 2024-04-01 15:30:26 +00:00
mtk_ddp_comp.c drm/mediatek: dpi/dsi: Fix possible_crtcs calculation 2024-06-28 12:25:18 +00:00
mtk_ddp_comp.h drm/mediatek: dpi/dsi: Fix possible_crtcs calculation 2024-06-28 12:25:18 +00:00
mtk_disp_aal.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_ccorr.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_color.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_drv.h drm/mediatek: Rename files "mtk_drm_plane.h" to "mtk_plane.h" 2024-04-01 15:30:26 +00:00
mtk_disp_gamma.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_merge.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_ovl_adaptor.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_ovl.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_disp_rdma.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_dp_reg.h drm/mediatek: dp: Add support MT8188 dp/edp function 2023-09-24 14:00:23 +00:00
mtk_dp.c drm/mediatek/dp: Fix spurious kfree() 2024-06-28 13:01:43 +00:00
mtk_dpi_regs.h drm/mediatek: dpi: Add dp_intf support 2022-07-06 22:51:44 +08:00
mtk_dpi.c drm/mediatek: dpi/dsi: Fix possible_crtcs calculation 2024-06-28 12:25:18 +00:00
mtk_drm_drv.c drm/mediatek: Set sensible cursor width/height values to fix crash 2024-08-05 13:06:20 +00:00
mtk_drm_drv.h drm/mediatek: Set DRM mode configs accordingly 2024-06-20 13:57:36 +00:00
mtk_dsi.c drm/mediatek: dpi/dsi: Fix possible_crtcs calculation 2024-06-28 12:25:18 +00:00
mtk_ethdr.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_ethdr.h drm/mediatek: Add ETHDR support for MT8195 2023-03-22 16:25:00 +00:00
mtk_gem.c The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
mtk_gem.h drm/mediatek: Rename files "mtk_drm_gem.h" to "mtk_gem.h" 2024-04-01 15:33:52 +00:00
mtk_hdmi_ddc.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_hdmi_regs.h
mtk_hdmi.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_mdp_rdma.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_mdp_rdma.h drm/mediatek: Add display MDP RDMA support for MT8195 2022-06-27 22:24:14 +08:00
mtk_padding.c drm/mediatek: Log errors in probe with dev_err_probe() 2024-06-27 14:03:49 +00:00
mtk_plane.c drm/mediatek: Add DRM_MODE_ROTATE_0 to rotation property 2024-06-20 13:57:35 +00:00
mtk_plane.h drm/mediatek: Rename files "mtk_drm_plane.h" to "mtk_plane.h" 2024-04-01 15:30:26 +00:00