]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit831cf3e85c9d63de8229a6d044784cc2c734e856
tree7f270bb3c96c2edb95d189cbbbab12cb6c7b4f5c
parentaf2f90feaae24834ad8cfad3b3b2ec1fc86267a4
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