Skip to content

drm: Make DRM hashtable legacy

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 Latest3 patches 1 replyIn review
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* add TODO item for updating vmwgfx (Sam)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/ttm: Don't include drm_hashtab.hinclude/drm/ttm/ttm_bo_api.h+0 -10 replies
2/3drm/vmwgfx: Copy DRM hash-table code into driverDocumentation/gpu/todo.rst drivers/gpu/drm/vmwgfx/Makefile drivers/gpu/drm/vmwgfx/ttm_object.c +9 more+353 -600 replies
3/3drm: Declare hashtable as legacydrivers/gpu/drm/Makefile drivers/gpu/drm/drm_hashtab.c drivers/gpu/drm/drm_legacy.h +3 more+59 -960 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristian KönigDaniel VetterAlex Deucher
SeriesA-b
1/3R-b A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] drm: Make DRM hashtable legacy

Clean up the last non-legacy users of DRM's hashtable code and put the code behind CONFIG_DRM_LEGACY.

TTM only includes the header file, but does not use the hashtable. The vmwgfx driver uses the hashtable internally. Copy the DRM code into the driver. A later patchset should probably update vmwgfx to use Linux' hashtable. Finally, make the core hashtable code legacy.

Built with/without CONFIG_DRM_LEGACY set.

v2:
* add TODO item for updating vmwgfx (Sam)

Thomas Zimmermann (3):
drm/ttm: Don't include drm_hashtab.h drm/vmwgfx: Copy DRM hash-table code into driver
drm: Declare hashtable as legacy

 Documentation/gpu/todo.rst                    |  11 +
 drivers/gpu/drm/Makefile                      |   6 +-
 drivers/gpu/drm/drm_hashtab.c                 |  10 +-
 drivers/gpu/drm/drm_legacy.h                  |  40 +++-
 drivers/gpu/drm/vmwgfx/Makefile               |   2 +-
 drivers/gpu/drm/vmwgfx/ttm_object.c           |  52 ++---
 drivers/gpu/drm/vmwgfx/ttm_object.h           |   3 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c    |  24 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c           |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h           |   6 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c       |   2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_hashtab.c       | 199 ++++++++++++++++++
 .../gpu/drm/vmwgfx/vmwgfx_hashtab.h           |  54 ++---
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.c    |  22 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_validation.h    |   7 +-
 include/drm/drm_device.h                      |   5 +-
 include/drm/drm_legacy.h                      |  15 +-
 include/drm/ttm/ttm_bo_api.h                  |   1 -
 18 files changed, 358 insertions(+), 103 deletions(-)
 create mode 100644 drivers/gpu/drm/vmwgfx/vmwgfx_hashtab.c
 rename include/drm/drm_hashtab.h => drivers/gpu/drm/vmwgfx/vmwgfx_hashtab.h (58%)

base-commit: 6a8f90ec433e2f5de5fc16d7a4839771b7027cc0 --
2.34.0