drm/i915: Eliminate per-fw_domain i915 backpointer
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:19:38 +0000 (10:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:21:59 +0000 (10:21 +0000)
commit577ac4bd4caeb0a2263b61c8b4fa8924ade2d9ee
tree7714bbcee4629e165ffb73fe205352a24c5aa836
parent5d4bac5503fcc67dd7999571e243cee49371aef7
drm/i915: Eliminate per-fw_domain i915 backpointer

Pass along the drm_i915_private pointer from the caller, rather than
looking it up from each fw_domain during fw_domains_get/_put. This
allows us to then eliminate the backpointer, in exchange for a more
complicated unwrapping procedure in the rare
intel_uncore_fw_release_timer().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323101944.21627-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c