diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-07-11 19:39:01 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-07-13 10:46:09 +0200 |
commit | 71b1bd4c2bd404b28cc499fa37d02e32f55de865 (patch) | |
tree | a51f10c03363f0f4da8d44214caa23a3885b2479 /scripts/Makefile.host | |
parent | 055af0235aef8110a1c44f5fc04c5c206e9e58fb (diff) | |
download | linux-71b1bd4c2bd404b28cc499fa37d02e32f55de865.tar.bz2 |
drm/vc4: dpi: 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 <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-32-maxime@cerno.tech
Diffstat (limited to 'scripts/Makefile.host')
0 files changed, 0 insertions, 0 deletions