drm/msm/mdp5: move LM bounds check into plane->atomic_check()
authorRob Clark <robdclark@gmail.com>
Sat, 5 Nov 2016 14:43:55 +0000 (10:43 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 27 Nov 2016 16:32:35 +0000 (11:32 -0500)
commit9708ebbe1728e532a39e2acda868b3f8e892c512
tree2d7adfb2cd1f97ee223dbd54535cb9609824f15c
parente8406b6132a0ca513df3c2b837fb3ec708260641
drm/msm/mdp5: move LM bounds check into plane->atomic_check()

The mode_config->max_{width,height} is for the maximum size of a fb, not
the max scanout limits (of the layer-mixer).  It is legal, and in fact
common, to create a larger fb, only only scan-out a smaller part of it.
For example multi-monitor configurations for x11, or android wallpaper
layer (which is created larger than the screen resolution for fast
scrolling by just changing the src x/y coordinates).

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c