]> 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)
commitb94faa4240d71fb268029186ae94a139e63af7a7
tree9782bd041611ae6f52a48854fbcef3080e10edd9
parentae91f38fb6cdb7e08d9ca4fcb417698e3fa1de95
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