]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/vlv: Turn off power gate for BIOS-less system.
authorChon Ming Lee <chon.ming.lee@intel.com>
Thu, 3 Oct 2013 15:16:17 +0000 (23:16 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Oct 2013 08:26:11 +0000 (10:26 +0200)
commit9761c486ff0c77644024b7c19c99dea9a28015d9
tree7d87faeccc015b2929a12af760b2962a18c9fe9d
parentcf788648cd7468f81a04c8eaa8fe9800e18135a2
drm/i915/vlv: Turn off power gate for BIOS-less system.

During system boot up, by default, the power gate for render, media and
display well still power gated.  Normally, BIOS will turn off the power
gate.  In the BIOS-less system, the driver need to turn off the power
gate very early during driver load.

v2: Move this to intel_uncore_sanitize to allow it to get call during
resume path. (Daniel)
v3: Remove redundant write 0 to DPIO_CTL, and use DPIO_RESET instead of
just 0x1 (Ville)
    Add turn of power gate for display 2d/render well/media well.
v4: Remove toggle cmnreset in intel_uncore_sanitize.  Cmnreset should
toggle after CRI clock source has been selected.  Jesse DPIO reset patch
which toggle the cmnreset in intel_modeset_init_hw() should handle it.
(Ville)

Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_uncore.c