[PATCH 0/4] drm unplugging docs
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Aug 2 11:56:00 UTC 2017
Hi all,
Just a small cleanup plus kerneldoc for the unplug support. There's still the
fundamental problem that most likely our lifetime stuff is entirely screwed up
for this, at least never export a dma-buf or dma-fence from a driver which can
be hot-unplugged.
It'd be sweet if we could properly fix this by attaching resources to either the
physical device (which should be drm_device->dev) or the sw device (aka
drm_device) depending upon whether it is needed after unplugging. There's also
the slight problem of synchronizing all that access somehow.
Either way this is a separate topic, I just thought about it a bit more while
cleaning this up.
On the patches themselves: I had to move struct drm_device into drm_device.h to
avoid a header include loop, since that's a bit invasive it'd be great if I can
land this fast.
Cheers, Daniel
Daniel Vetter (4):
drm: Extract drm_device.h
drm: Document device unplug infrastructure
drm: Only lastclose on unload for legacy drivers
drm: Clean up drm_dev_unplug
drivers/gpu/drm/drm_drv.c | 40 +++---
drivers/gpu/drm/drm_file.c | 2 +-
drivers/gpu/drm/drm_gem.c | 2 +-
drivers/gpu/drm/drm_gem_cma_helper.c | 2 +-
drivers/gpu/drm/drm_ioctl.c | 4 +-
drivers/gpu/drm/drm_vm.c | 2 +-
drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 2 +-
drivers/gpu/drm/udl/udl_connector.c | 2 +-
drivers/gpu/drm/udl/udl_drv.c | 2 +-
drivers/gpu/drm/udl/udl_fb.c | 2 +-
include/drm/drmP.h | 188 +--------------------------
include/drm/drm_device.h | 190 ++++++++++++++++++++++++++++
include/drm/drm_drv.h | 22 +++-
13 files changed, 246 insertions(+), 214 deletions(-)
create mode 100644 include/drm/drm_device.h
--
2.13.3
More information about the dri-devel
mailing list