]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3764b1a1e2d0ce9a45f169b880f5a7f311e54df8
tree9782bd041611ae6f52a48854fbcef3080e10edd9
parent3ac0d4bbaf8874f463694c7af80f8d1a6754a724
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