drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them
authorJani Nikula <jani.nikula@intel.com>
Wed, 1 Mar 2023 12:29:42 +0000 (14:29 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 6 Mar 2023 17:09:43 +0000 (19:09 +0200)
commit1b28c1c789d0c11be213bb5d892f9a094ab8e201
treea365972e3b7f6f210284121b56f3bf23d1107134
parentfe00866c65602e94c1b6b3d3efcea3633330b02f
drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them

Start preparing for dynamically allocated struct intel_dmc by adding
i915_to_dmc() and dmc->i915, and using them. Take the future NULL dmc
pointer into account already now, and add separate logging for
initialization in the DMC debugfs.

v3:
- Obtain runtime pm reference first (Imre)

v2:
- Don't reduce debugfs output (Imre)

Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230301122944.1298929-3-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dmc.c
drivers/gpu/drm/i915/display/intel_dmc.h