diff options
author | Himal Prasad Ghimiray <[email protected]> | 2024-10-14 13:25:59 +0530 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2024-10-17 10:17:09 -0400 |
commit | 6c0a15e7c734f26facec9a88b798a59282eac6e4 (patch) | |
tree | 41fd671b849c548b77e1f7b599c7c66a927d35a2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | bd1aad72e05be3f46b3b632199c7ca9f1aa7aa5d (diff) |
drm/xe: forcewake debugfs open fails on xe_forcewake_get failure
A failure in xe_force_wake_get() no longer increments the domain's
refcount. Therefore, if xe_force_wake_get() fails during forcewake
debugfs open, return an error. This ensures there are no valid file
descriptors to close via forcewake debugfs, preventing refcount
mismanagement.
v3
- return xe_wakeref_t instead of int in xe_force_wake_get()
v5
- return unsigned int from xe_force_wake_get()
v6
- Use helper xe_force_wake_ref_has_domain()
to determine the status of the call.
Cc: Badal Nilawar <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Signed-off-by: Himal Prasad Ghimiray <[email protected]>
Reviewed-by: Badal Nilawar <[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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions