drm/i915: Track the temporary wakerefs used for hsw_get_pipe_config
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 6 Apr 2019 08:03:41 +0000 (09:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 7 Apr 2019 13:38:52 +0000 (14:38 +0100)
commit513a4c5589b4a07d3cc1c42329ff3e93505613e5
tree7f270bb3c96c2edb95d189cbbbab12cb6c7b4f5c
parent141f3767e7b8f32ce7210ef4b716d41bae72a54d
drm/i915: Track the temporary wakerefs used for hsw_get_pipe_config

Haswell+ require many power wells to probe the current HW display state.
Under the wakeref tracking scheme, we want each owner to store and
release the wakeref they use, so we can identify callers that have
leaked their wakeref. For hsw_get_pipe_config, this means we have to
keep the array of all wakerefs as it current acquires its power wells
piecemeal and releases them en masse.

By tracking these wakerefs, we should be able to eliminate a lot of
noise from the runtime-pm debug logs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190406080341.2654-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c