drm/i915: read out hw state earlier v2 14/22214/3
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Feb 2014 23:28:56 +0000 (15:28 -0800)
committerJin Song <jin.kyu.song@linux.intel.com>
Fri, 30 May 2014 03:15:45 +0000 (20:15 -0700)
commit6f853494e0776317bcc59d20bda40a1428d74934
treee2c3782a3ecc6dd45ef7a9fb49837dd85b809edd
parent5f8ee93160d759522fa0a88b1687030e5dcb6d4e
drm/i915: read out hw state earlier v2

We want to do this early on before we try to fetch the plane config,
which depends on some of the pipe config state.

Note that the important part is that we do this before we initialize
gem, since otherwise we can't properly pre-reserve the stolen memory
for framebuffers inherited from the bios.

v2: split back out from get_plane_config change (Daniel)
    update for recent locking & reset changes (Jesse)

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Explain a bit more why we need to move this.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Change-Id: I2dd546b72346df60d9f80910ed607139bef639dc
drivers/gpu/drm/i915/intel_display.c