Re: [PATCH v7 7/7] drm/i915: track gt pm wakerefs

2023-04-22 Thread Zhou Furong
If in doubt, say "N" + +config DRM_I915_DEBUG_WAKEREF + bool "Enable extra tracking for wakerefs" + depends on DRM_I915 + default n 'default n' is not need

[PATCH v7 7/7] drm/i915: track gt pm wakerefs

2023-04-21 Thread Andrzej Hajda
Track every intel_gt_pm_get() until its corresponding release in intel_gt_pm_put() by returning a cookie to the caller for acquire that must be passed by on released. When there is an imbalance, we can see who either tried to free a stale wakeref, or who forgot to free theirs. Signed-off-by: Andrz