drm/vmwgfx: limit screen size to stdu_max during check_modeset
authorDeepak Rawat <drawat@vmware.com>
Thu, 13 Sep 2018 10:34:37 +0000 (12:34 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 20 Sep 2018 06:00:03 +0000 (08:00 +0200)
commit0c1b174b1b9a497230f937345d4db76fea267398
tree9782bd041611ae6f52a48854fbcef3080e10edd9
parentbfc888261474efb0676f0e1d128f22c9692b97b1
drm/vmwgfx: limit screen size to stdu_max during check_modeset

For STDU individual screen target size is limited by
SVGA_REG_SCREENTARGET_MAX_WIDTH/HEIGHT registers so add that limit
during atomic check_modeset.

An additional limit is placed in the update_layout ioctl to avoid
requesting layouts that current user-space typically can't support.
Also modified the comments to reflect current limitation on topology.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c