]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Canonicalize stolen memory calculations
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 22 Apr 2016 10:29:26 +0000 (13:29 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 25 Apr 2016 10:30:32 +0000 (13:30 +0300)
commitae202726153d8c54340d33cfee516f7bc8429a1a
treec6ab06f9c808fc659c2c651bd20ba4f0cca8a5dc
parentb6d3005a3b5020971fe897bce2c58971800b7e5f
drm/i915: Canonicalize stolen memory calculations

Move the better constructs/comments from i915_gem_stolen.c to
early-quirks.c and increase readability in preparation of only
having one set of functions.

- intel_stolen_base -> gen3_stolen_base
- use phys_addr_t instead of u32 for address for future proofing

v2:
- Print the invalid register values (Chris)
  (Omitting the register prefix as it's visible from backtrace.)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
arch/x86/kernel/early-quirks.c
drivers/gpu/drm/i915/i915_gem_stolen.c
include/drm/i915_drm.h