From: Philipp Zabel
Date: Fri, 27 Jan 2017 10:57:19 +0000 (+0100)
Subject: drm/imx: lift 64x64 pixel minimum framebuffer size requirement
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f57c511a9d1e8625879abd032e3cbf4bd25bbafa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git
drm/imx: lift 64x64 pixel minimum framebuffer size requirement
There is no reason to limit framebuffer size to 64x64 pixels at a
minimum on creation. The actual scanout limitations (width >= 13 for the
base plane and height >= 2) are checked in atomic_check.
Signed-off-by: Philipp Zabel
Reviewed-by: Lucas Stach
---
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index 33404295b447..bef76cb0d05d 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -357,8 +357,8 @@ static int imx_drm_bind(struct device *dev)
* this value would be used to check framebuffer size limitation
* at drm_mode_addfb().
*/
- drm->mode_config.min_width = 64;
- drm->mode_config.min_height = 64;
+ drm->mode_config.min_width = 1;
+ drm->mode_config.min_height = 1;
drm->mode_config.max_width = 4096;
drm->mode_config.max_height = 4096;
drm->mode_config.funcs = &imx_drm_mode_config_funcs;