drm/i915: use pointer to i915 instead of rpm in wakeref
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 8 Jun 2023 13:35:44 +0000 (16:35 +0300)
committerJani Nikula <jani.nikula@intel.com>
Sat, 10 Jun 2023 03:32:58 +0000 (06:32 +0300)
commit8d208a5eed4890f52a33ce847cbb8f8a5b1be6a7
tree4ab512f3c3f0966e3ff9d1887f4d964e44cc8dd0
parent3fecd469da9aa0b24bd965f05a8bf44f9d8e2a2e
drm/i915: use pointer to i915 instead of rpm in wakeref

Currently a pointer to an intel_runtime_pm structure is stored in the
wake reference structures so the runtime data can be accessed.  We can
save the entire device information (drm_i915_private) instead, since
we'll need to reference the new workqueue we'll add in subsequent
patches.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ec0eb5149120d04f3d9870d7671ef10103e6fc29.1686231190.git.jani.nikula@intel.com
drivers/gpu/drm/i915/gt/intel_engine_pm.c
drivers/gpu/drm/i915/gt/intel_gt_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_wakeref.c
drivers/gpu/drm/i915/intel_wakeref.h