]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm: fix drm_fb_helper handling of kernel crtcs
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 18 Sep 2009 01:14:41 +0000 (18:14 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 18 Sep 2009 04:34:05 +0000 (14:34 +1000)
commite87b2c42b397ae64ac13a390011931f7ef222321
tree04a057e8a48f1bfaffbcf788be7a984336ce90bb
parent8dfaa8a7779ad2667d539aca6ae11cd87f562db6
drm: fix drm_fb_helper handling of kernel crtcs

The drm_fb_helper shouldn't mess with CRTCs that aren't enabled or in
its initial config. Ideally it shouldn't even include CRTCs in its
initial config if they're not in use, but my old fix for that no longer
works.  At any rate, this fixes a real bug I was seeing where after a
console blank, both pipes would come back on, even though only one had
been enabled before that.  Since the other pipe had a bogus config,
this led to some screen corruption.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c