diff options
| author | Tvrtko Ursulin <tvrtko.ursulin@igalia.com> | 2026-03-06 08:30:37 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-03-13 18:02:32 -0300 |
| commit | 2f0e110735a4e59e71e44d04b4f70e58f06c61c9 (patch) | |
| tree | 9fb6aac959f8a2b8d0d5adf532ee4daffa166794 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 745cc3f92a4b43606119b81d1f8bb1d1f5116049 (diff) | |
drm/v3d: Attach per-fd reset counters to v3d_stats
To remove the file_priv NULL-ing dance needed to check if the file
descriptor is open, move the per-fd reset counter into v3d_stats, which
is heap-allocated and refcounted, outliving the fd as long as jobs
reference it.
This change allows the removal of the last `queue_lock` usage to protect
`job->file_priv` and avoids possible NULL ptr dereference issues due to
lifetime mismatches.
Also, to simplify locking, replace both the global and per-fd locked
reset counters with atomics.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20260306-v3d-reset-locking-improv-v3-5-49864fe00692@igalia.com
Co-developed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
