[PATCH 0/5] lib: devres: Add managed helpers for write-combine setup

Thomas Zimmermann tzimmermann at suse.de
Thu Sep 16 18:15:56 UTC 2021


Add devm_arch_phys_wc_add() and devm_arch_io_reserve_memtype_wc() for
automatic cleanup of writecombine setup.

Several DRM drivers use the non-managed functions for setting their
framebuffer memory to write-combine access. Convert ast, mgag200 and
vboxvideo. Remove rsp clean-up code form drivers.

Tested on mgag200 hardware.

Thomas Zimmermann (5):
  lib: devres: Add managed arch_phys_wc_add()
  lib: devres: Add managed arch_io_reserve_memtype_wc()
  drm/ast: Use managed interfaces for framebuffer write combining
  drm/mgag200: Use managed interfaces for framebuffer write combining
  drm/vboxvideo: Use managed interfaces for framebuffer write combining

 drivers/gpu/drm/ast/ast_drv.h         |  2 -
 drivers/gpu/drm/ast/ast_mm.c          | 27 ++++-----
 drivers/gpu/drm/mgag200/mgag200_drv.h |  2 -
 drivers/gpu/drm/mgag200/mgag200_mm.c  | 35 +++---------
 drivers/gpu/drm/vboxvideo/vbox_drv.c  |  5 +-
 drivers/gpu/drm/vboxvideo/vbox_drv.h  |  1 -
 drivers/gpu/drm/vboxvideo/vbox_ttm.c  | 17 +++---
 include/linux/io.h                    |  5 ++
 lib/devres.c                          | 82 +++++++++++++++++++++++++++
 9 files changed, 113 insertions(+), 63 deletions(-)

--
2.33.0



More information about the dri-devel mailing list