linux_dsm_epyc7002/drivers/gpu/drm/udl
Daniel Vetter ae358dacd2 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 <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180327082356.24516-3-daniel.vetter@ffwll.ch
2018-03-28 17:07:36 +02:00
..
Kconfig drm/udl: make fbdev support really optional 2016-07-18 09:11:40 +02:00
Makefile drm/udl: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:13:53 +02:00
udl_connector.c Merge tag 'drm-misc-next-2017-10-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-10-24 16:51:05 +10:00
udl_connector.h drm/udl: Fixed problem with UDL adpater reconnection 2017-10-16 15:36:02 -04:00
udl_dmabuf.c drm/udl: Get rid of dev->struct_mutex usage 2018-03-28 17:07:36 +02:00
udl_drv.c drm/udl: Get rid of dev->struct_mutex usage 2018-03-28 17:07:36 +02:00
udl_drv.h drm/udl: Get rid of dev->struct_mutex usage 2018-03-28 17:07:36 +02:00
udl_encoder.c drm/udl: removed optional dummy encoder mode_fixup function. 2016-02-16 15:30:12 +01:00
udl_fb.c Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-04 12:21:28 -07:00
udl_gem.c drm/udl: Get rid of dev->struct_mutex usage 2018-03-28 17:07:36 +02:00
udl_main.c drm/udl: Get rid of dev->struct_mutex usage 2018-03-28 17:07:36 +02:00
udl_modeset.c drm: Add acquire ctx parameter to ->page_flip(_target) 2017-03-29 09:50:38 +02:00
udl_transfer.c drm/udl: Fix unaligned memory access in udl_render_hline 2017-04-11 09:21:30 -04:00