diff options
| author | Rodrigo Vivi <[email protected]> | 2024-03-01 13:05:23 -0500 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2024-03-04 12:47:04 -0500 |
| commit | 3b85b7bcccf45f674d35c0bf65aa84153397380d (patch) | |
| tree | e629e70edcfee0d377721401467ee384207e76ed /tools/perf/scripts/python/flamegraph.py | |
| parent | 4d5242a003bb93c119e0346951a9938f60fecfb9 (diff) | |
drm/xe: Fix display runtime_pm handling
i915's intel_runtime_pm_get_if_in_use actually calls the
pm_runtime_get_if_active() with ign_usage_count = false, but Xe
was erroneously calling it with true because of the mem_access cases.
This can lead to unnecessary references getting hold here and device
never getting into the runtime suspended state.
Let's use directly the 'if_in_use' function provided by linux/pm_runtime.
Also, already start this new function protected from the runtime
recursion, since runtime_pm will need to call for display functions
for a proper D3Cold flow.
v2: Update commit message based on Matt's feedback.
Fix return condition of pm_runtime_get_if_in_use (Matt)
Cc: Anshuman Gupta <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions