MA-12939: drm/imx/dcss: check source plane size
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 23 Nov 2018 12:50:02 +0000 (14:50 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit05fd8081a94410940d35c04dbed8a7a397b7c915
tree705bd3e4219e0ca750ee77fad01d3bbf9a7bd5e5
parent90de5a646eaa53f337ccd3f70ebf1b09b1356fc9
MA-12939: drm/imx/dcss: check source plane size

DCSS has some minimum requirements for the source buffer size that need
to be respected in order to not freeze DPR and/or scaler.

This patch will add the checks and return an error if source plane size
is not allowed. Userspace will need to gracefully handle this.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-plane.c