]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Move MCHBAR setup earlier during init
authorImre Deak <imre.deak@intel.com>
Tue, 19 Jan 2016 13:26:31 +0000 (15:26 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 27 Jan 2016 15:43:16 +0000 (17:43 +0200)
commitad5c3d3ffbb26094b0b76751aef4ee4e4854996c
treec46240f39ab79c87daa040bdfaeec794018bd9be
parent399bb5b6db027b1834d10496909d60214779126c
drm/i915: Move MCHBAR setup earlier during init

Move the MCHBAR setup right after the MMIO setup, since the two things
are logically related and the MCHBAR setup code doesn't depend on any
other device specific resource. We'll also need MCHBAR to be ready
earlier in an upcoming patch, so this is also a preparation for that.

Factor out the init/clean-up code to separate functions to make things
clearer in the i915_driver_load()/unload() functions.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453209992-25995-7-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c