diff options
author | Thomas Zimmermann <[email protected]> | 2024-02-27 11:14:48 +0100 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2024-03-11 13:33:50 +0100 |
commit | ec144244a43f6e4ca9767bf9fb1b2c9e293c2a31 (patch) | |
tree | 6487d3088a95a8cf9ba74fc6941c655753e8e226 /tools/perf/scripts/python | |
parent | 8e3ed5440b0c305dcd1d5fa7419bd8066d22ef42 (diff) |
drm/gem-shmem: Acquire reservation lock in GEM pin/unpin callbacks
Export drm_gem_shmem_pin_locked() and acquire the reservation lock
directly in GEM pin callback. Same for unpin. Prepares for further
changes.
Dma-buf locking semantics require callers to hold the buffer's
reservation lock when invoking the pin and unpin callbacks. Prepare
gem-shmem accordingly by pushing locking out of the implementation.
A follow-up patch will fix locking for all GEM code at once.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
Tested-by: Dmitry Osipenko <[email protected]> # virtio-gpu
Acked-by: Christian König <[email protected]>
Acked-by: Zack Rusin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions