aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-01-10 04:31:18 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-03-01 02:18:18 -0500
commit1915d7fa93397b3dc8bf9c6973d8662c0a661daf (patch)
treea177cd1cd4f43174db9efc3d64038057090d303a
parent7c00985109f95474a7fe31f03022126e23e355ff (diff)
drm/omap: fix maximum sizes
We define max width and height in mode_config to 2048. These maximums affect many things, which are independent and depend on platform. We need to do more fine grained checks in the code paths for each component, and so the maximum values in mode_config should just be "big enough" to cover all use cases. Change the maximum width & height to 8192. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/gpu/drm/omapdrm/omap_drv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
index 4f48b908bdc6..3632854c2b91 100644
--- a/drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/drivers/gpu/drm/omapdrm/omap_drv.c
@@ -310,11 +310,14 @@ static int omap_modeset_init(struct drm_device *dev)
310 dev->mode_config.min_width = 8; 310 dev->mode_config.min_width = 8;
311 dev->mode_config.min_height = 2; 311 dev->mode_config.min_height = 2;
312 312
313 /* note: eventually will need some cpu_is_omapXYZ() type stuff here 313 /*
314 * to fill in these limits properly on different OMAP generations.. 314 * Note: these values are used for multiple independent things:
315 * connector mode filtering, buffer sizes, crtc sizes...
316 * Use big enough values here to cover all use cases, and do more
317 * specific checking in the respective code paths.
315 */ 318 */
316 dev->mode_config.max_width = 2048; 319 dev->mode_config.max_width = 8192;
317 dev->mode_config.max_height = 2048; 320 dev->mode_config.max_height = 8192;
318 321
319 dev->mode_config.funcs = &omap_mode_config_funcs; 322 dev->mode_config.funcs = &omap_mode_config_funcs;
320 dev->mode_config.helper_private = &omap_mode_config_helper_funcs; 323 dev->mode_config.helper_private = &omap_mode_config_helper_funcs;