Skip to content

Move struct drm_device.hose to legacy section

Thomas Zimmermann amd-gfx dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm: Inline AGP wrappers into their only callersdrivers/gpu/drm/drm_agpsupport.c drivers/gpu/drm/drm_memory.c include/drm/drm_agpsupport.h+6 -423 replies
2/6drm: Implement drm_need_swiotlb() in drm_cache.cdrivers/gpu/drm/drm_cache.c drivers/gpu/drm/drm_memory.c+32 -331 reply
3/6drm: Build drm_memory.o only for legacy driversdrivers/gpu/drm/Makefile+3 -21 reply
4/6drm: Merge CONFIG_DRM_VM into CONFIG_DRM_LEGACYdrivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile drivers/gpu/drm/drm_legacy.h+2 -81 reply
5/6drm/radeon: Store PCI controller in struct radeon_device.hosedrivers/gpu/drm/radeon/radeon.h drivers/gpu/drm/radeon/radeon_drv.c drivers/gpu/drm/radeon/radeon_kms.c +1 more+8 -50 replies
6/6drm: Move struct drm_device.hose to legacy sectiondrivers/gpu/drm/drm_file.c include/drm/drm_device.h+7 -40 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchDaniel Vetter
1/6
2/6R-b
3/6A-b
4/6R-b
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH 0/6] Move struct drm_device.hose to legacy section

This patchset moves struct drm_device.hose to the section for legacy drivers. As part of this, a number of other changes are applied in order to protect all uses of hose by CONFIG_DRM_LEGACY.

Patches 1 to 3 move non-legacy code out put drm_memory.c and add the remaining I/O-memory helpers to the legacy code.

Patch 4 addresses CONFIG_DRM_VM, which is only selected by legacy drivers, so drm_vm.c can directly be compiled by CONFIG_DRM_LEGACY.

Patch 5 changes radeon to maintain its own copy of the hose field of struct drm_device.

Patch 6 makes the hose field legacy.

The patchset has been compile-tested w/o CONFIG_DRM_LEGACY enabled.

Thomas Zimmermann (6):
drm: Inline AGP wrappers into their only callers
drm: Implement drm_need_swiotlb() in drm_cache.c
drm: Build drm_memory.o only for legacy drivers
drm: Merge CONFIG_DRM_VM into CONFIG_DRM_LEGACY drm/radeon: Store PCI controller in struct radeon_device.hose
drm: Move struct drm_device.hose to legacy section

 drivers/gpu/drm/Kconfig             |  5 ---
 drivers/gpu/drm/Makefile            |  6 ++--
 drivers/gpu/drm/drm_agpsupport.c    | 12 +++----
 drivers/gpu/drm/drm_cache.c         | 32 ++++++++++++++++++
 drivers/gpu/drm/drm_file.c          |  2 ++
 drivers/gpu/drm/drm_legacy.h        |  2 +-
 drivers/gpu/drm/drm_memory.c        | 51 -----------------------------
 drivers/gpu/drm/radeon/radeon.h     |  3 ++
 drivers/gpu/drm/radeon/radeon_drv.c |  4 ---
 drivers/gpu/drm/radeon/radeon_kms.c |  4 +++
 drivers/gpu/drm/radeon/radeon_ttm.c |  2 +-
 include/drm/drm_agpsupport.h        | 18 ----------
 include/drm/drm_device.h            |  9 ++---
 13 files changed, 57 insertions(+), 93 deletions(-)

base-commit: cd0df21e28c36de80356344ff8683be2813c6ff2
prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d --
2.29.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx