aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2022-07-11 19:39:23 +0200
committerMaxime Ripard <[email protected]>2022-07-13 10:46:11 +0200
commitb7345c9799da578c150fde3072446e4049c39c41 (patch)
tree9c8c9a5941ad2692912bb8afe885d2e9ee286d91 /tools/perf/scripts/python
parentd67210bbe5f3ec53fa6a46fbaad87d7a65ab544c (diff)
drm/vc4: txp: Protect device resources
Our current code now mixes some resources whose lifetime are tied to the device (clocks, IO mappings, etc.) and some that are tied to the DRM device (encoder, bridge). The device one will be freed at unbind time, but the DRM one will only be freed when the last user of the DRM device closes its file handle. So we end up with a time window during which we can call the encoder hooks, but we don't have access to the underlying resources and device. Let's protect all those sections with drm_dev_enter() and drm_dev_exit() so that we bail out if we are during that window. Acked-by: Thomas Zimmermann <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions