drm/i915: move the edram detection out of uncore init
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 28 Mar 2019 17:45:32 +0000 (10:45 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Mar 2019 11:18:41 +0000 (11:18 +0000)
commitf6ac993fb0ca5d8c0233ac17a71aacb22f84ac54
tree26ff697e8797d611b1cb0d9d023252699bbdc3b8
parentc4128ce7d59e811e3b229ac17bc67a6699cc525b
drm/i915: move the edram detection out of uncore init

edram is not part of uncore and there is no requirement for the
detection to be done before we initialize the uncore functions. The
first check on HAS_EDRAM is in the ggtt_init path, so move it to
i915_driver_init_hw, where other dram-related detection happens.

While at it, save the size in MB instead of the capabilities because the
size is the only thing we look at outside of the init function.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190328174533.31532-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/intel_uncore.h