All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] drm/udl: Convert to SHMEM
@ 2019-11-07  9:43 Thomas Zimmermann
  2019-11-07  9:43 ` [PATCH v3 1/4] drm/udl: Remove flags field from struct udl_gem_object Thomas Zimmermann
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Thomas Zimmermann @ 2019-11-07  9:43 UTC (permalink / raw)
  To: airlied, sean, daniel, noralf, sam, emil.velikov, kraxel
  Cc: Thomas Zimmermann, dri-devel

Udl's GEM implementation is mostly SHMEM and we should attempt to
replace it with the latter.

Patches #1 and #2 update udl to simplify the conversion. In patch #3
the udl code is being replaced by SHMEM. The GEM object's mmap() and
free_object() functions are wrappers around their SHMEM counterparts.
For mmap() we fix-up the page-caching flags to distinguish between
write-combined and cached access. For free(), we have to unmap the
buffer's mapping that has been established by udl's fbdev code.
Patch #4 removes the obsolete udl code.

The patchset has been tested by running the fbdev console, X11 and
Weston on a DisplayLink adapter.

v3:
	* restore udl vmap function that enables caching
v2:
	* remove obsolete udl code in a separate patch

Thomas Zimmermann (4):
  drm/udl: Remove flags field from struct udl_gem_object
  drm/udl: Allocate GEM object via struct drm_driver.gem_create_object
  drm/udl: Switch to SHMEM
  drm/udl: Remove struct udl_gem_object and functions

 drivers/gpu/drm/udl/Kconfig      |   1 +
 drivers/gpu/drm/udl/Makefile     |   2 +-
 drivers/gpu/drm/udl/udl_dmabuf.c | 255 ------------------------------
 drivers/gpu/drm/udl/udl_drv.c    |  30 +---
 drivers/gpu/drm/udl/udl_drv.h    |  36 +----
 drivers/gpu/drm/udl/udl_fb.c     |  66 ++++----
 drivers/gpu/drm/udl/udl_gem.c    | 263 +++++++++----------------------
 7 files changed, 122 insertions(+), 531 deletions(-)
 delete mode 100644 drivers/gpu/drm/udl/udl_dmabuf.c

--
2.23.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-11-08 12:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07  9:43 [PATCH v3 0/4] drm/udl: Convert to SHMEM Thomas Zimmermann
2019-11-07  9:43 ` [PATCH v3 1/4] drm/udl: Remove flags field from struct udl_gem_object Thomas Zimmermann
2019-11-07  9:43 ` [PATCH v3 2/4] drm/udl: Allocate GEM object via struct drm_driver.gem_create_object Thomas Zimmermann
2019-11-07  9:43 ` [PATCH v3 3/4] drm/udl: Switch to SHMEM Thomas Zimmermann
2019-11-07  9:43 ` [PATCH v3 4/4] drm/udl: Remove struct udl_gem_object and functions Thomas Zimmermann
2019-11-07 15:10 ` [PATCH v3 0/4] drm/udl: Convert to SHMEM Böszörményi Zoltán
2019-11-08  5:44   ` Böszörményi Zoltán
2019-11-08  7:36   ` Thomas Zimmermann
2019-11-08 12:06     ` Böszörményi Zoltán
2019-11-08 12:22       ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.