]> 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)
commit2272e032c5da6d929c972f5b33ae6f291a00ec53
tree7f270bb3c96c2edb95d189cbbbab12cb6c7b4f5c
parent34a8e7e6d4e4d7387640b91f2bbe9c474eb26d60
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