]> git.baikalelectronics.ru Git - kernel.git/commit
drm: disable all the possible outputs/crtcs before entering KMS mode
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 9 Dec 2009 03:23:42 +0000 (11:23 +0800)
committerDave Airlie <airlied@redhat.com>
Wed, 9 Dec 2009 03:28:07 +0000 (13:28 +1000)
commitb437221d2b7743dcf340e6728c1b344265d9f03d
treef483f41167a02e0f660bfcbfd828c7d186a90d3a
parentf86c42f00491ab1fb2f027f23d6c3d8cd5c7d039
drm: disable all the possible outputs/crtcs before entering KMS mode

Sometimes we will use a crtc for integerated LVDS, which is different with
that assigned by BIOS. If we want to get flicker-free transitions,
then we could read out the current state for it and set our current state
accordingly.

But it is true that if we aren't reading current state out, we do need
to turn everything off before modesetting.  Otherwise the clocks can get very
angry and we get things worse than a flicker at boot.
In fact we also do the similar thing in UMS mode. We will disable all the
possible outputs/crtcs for the first modesetting.

So we disable all the possible outputs/crtcs before entering the KMS mode.
Before we configure connector/encoder/crtc, the function of
drm_helper_disable_unused_function can disable all the possible outputs/crtcs.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rafal Milecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c