aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2018-03-27 08:23:54 +0000
committerDaniel Vetter <[email protected]>2018-03-28 15:07:36 +0000
commitae358dacd217370cc362f1674712c4e9246ace8d (patch)
tree049bc8fbf62f7ef091087ee0e5d9d017ebbfc116 /drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
parentdrm/rockchip: fixup comment for gem_free_object_unlocked (diff)
downloadkernel-ae358dacd217370cc362f1674712c4e9246ace8d.tar.gz
kernel-ae358dacd217370cc362f1674712c4e9246ace8d.zip
drm/udl: Get rid of dev->struct_mutex usage
It's only used to protect our page list, and only when we know we have a full reference. This means none of these code paths can ever race with the final unref, and hence we do not need dev->struct_mutex serialization and can simply switch to our own locking. For more context the only magic the locked gem_free_object provides is that it prevents concurrent final unref (and destruction) of gem objects while anyone is holding dev->struct_mutex. This was used by i915 (and other drivers) to implement eviction handling with less headaches. Signed-off-by: Daniel Vetter <[email protected]> Cc: Dave Airlie <[email protected]> Reviewed-by: Sean Paul <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c')
0 files changed, 0 insertions, 0 deletions