drm/fb-helper: Allow var->x/yres(_virtual) < fb->width/height again
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 23 Mar 2017 08:53:26 +0000 (17:53 +0900)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 23 Mar 2017 14:12:07 +0000 (15:12 +0100)
commit12ffed96d4369f086261ba2ee734fa8c932d7f55
tree00b4ecc58a6ce7d7c8f3d6ba0e7d3cd0908c4543
parent97da3854c526d3a6ee05c849c96e48d21527606c
drm/fb-helper: Allow var->x/yres(_virtual) < fb->width/height again

Otherwise this can also prevent modesets e.g. for switching VTs, when
multiple monitors with different native resolutions are connected.

The depths must match though, so keep the != test for that.

Also update the DRM_DEBUG output to be slightly more accurate, this
doesn't only affect requests from userspace.

Bugzilla: https://bugs.freedesktop.org/99841
Fixes: 865afb11949e ("drm/fb-helper: reject any changes to the fbdev")
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323085326.20185-1-michel@daenzer.net
drivers/gpu/drm/drm_fb_helper.c