Skip to content

drm/client: Simply client-buffer interface and implementation

Thomas Zimmermann dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 5 repliesIn review
  2. v17 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- fix possible NULL-pointer deref in delete
- avoid dependency on KMS helpers

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/client: Remove pitch from struct drm_client_bufferdrivers/gpu/drm/drm_client.c include/drm/drm_client.h+7 -120 replies
2/7drm/client: Move dumb-buffer handling to drm_client_framebuffer_create()drivers/gpu/drm/drm_client.c+29 -270 replies
3/7drm/client: Inline drm_client_buffer_addfb() and _rmfb()drivers/gpu/drm/drm_client.c+40 -530 replies
4/7drm/client: Deprecate struct drm_client_buffer.gemdrivers/gpu/drm/drm_client.c include/drm/drm_client.h+15 -143 replies
5/7drm/client: Remove drm_client_framebuffer_delete()drivers/gpu/drm/clients/drm_log.c drivers/gpu/drm/drm_client.c drivers/gpu/drm/drm_fbdev_dma.c +3 more+24 -280 replies
6/7drm/client: Create client buffers with drm_client_buffer_create_dumb()drivers/gpu/drm/clients/drm_log.c drivers/gpu/drm/drm_client.c drivers/gpu/drm/drm_fbdev_dma.c +3 more+8 -80 replies
7/7drm/client: Flush client buffers with drm_client_buffer_sync()drivers/gpu/drm/clients/drm_log.c drivers/gpu/drm/drm_client.c include/drm/drm_client.h+7 -71 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchJocelyn FalempeFrancesco Valla
SeriesT-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] drm/client: Simply client-buffer interface and implementation

Streamline the client-buffer code and remove the drm_client_framebuffer_ functions. Makes the code easier to work with.

Also prepares for importing non-dumb-buffer objects. Most of the in- kernel clients will use dumb-buffer allocation. In the case of the per-driver fbdev_probe code, the client buffer can also wrap an object that comes from a different memory region; for example gma500's stolen memory area. This functionality is required to move forward with the various per-driver implementations of fbdev_probe within the overall DRM-client framework.

Tested with efidrm and virtio-gpu on Virt I/O hardware.

v2:
- fix possible NULL-pointer deref in delete
- avoid dependency on KMS helpers

Thomas Zimmermann (7):
drm/client: Remove pitch from struct drm_client_buffer drm/client: Move dumb-buffer handling to
drm_client_framebuffer_create()
drm/client: Inline drm_client_buffer_addfb() and _rmfb() drm/client: Deprecate struct drm_client_buffer.gem drm/client: Remove drm_client_framebuffer_delete() drm/client: Create client buffers with drm_client_buffer_create_dumb() drm/client: Flush client buffers with drm_client_buffer_sync()

 drivers/gpu/drm/clients/drm_log.c |  10 +-
 drivers/gpu/drm/drm_client.c      | 193 ++++++++++++++----------------
 drivers/gpu/drm/drm_fbdev_dma.c   |   8 +-
 drivers/gpu/drm/drm_fbdev_shmem.c |   6 +-
 drivers/gpu/drm/drm_fbdev_ttm.c   |  10 +-
 include/drm/drm_client.h          |  20 +---
 6 files changed, 114 insertions(+), 133 deletions(-)

base-commit: c03916cb446b6eefe91538599775bb54bf98238c

Signature · 1 line
2.51.1