All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] lib: devres: Add managed helpers for write-combine setup
@ 2021-09-16 18:15 Thomas Zimmermann
  2021-09-16 18:15 ` [PATCH 1/5] lib: devres: Add managed arch_phys_wc_add() Thomas Zimmermann
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Thomas Zimmermann @ 2021-09-16 18:15 UTC (permalink / raw)
  To: airlied, airlied, daniel, hdegoede, marcan, maz, akpm, npiggin,
	thunder.leizhen, gregkh
  Cc: dri-devel, linux-kernel, Thomas Zimmermann

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


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

end of thread, other threads:[~2021-09-20  8:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 18:15 [PATCH 0/5] lib: devres: Add managed helpers for write-combine setup Thomas Zimmermann
2021-09-16 18:15 ` [PATCH 1/5] lib: devres: Add managed arch_phys_wc_add() Thomas Zimmermann
2021-09-16 18:15 ` [PATCH 2/5] lib: devres: Add managed arch_io_reserve_memtype_wc() Thomas Zimmermann
2021-09-16 18:15 ` [PATCH 3/5] drm/ast: Use managed interfaces for framebuffer write combining Thomas Zimmermann
2021-09-16 18:16 ` [PATCH 4/5] drm/mgag200: " Thomas Zimmermann
2021-09-16 18:16 ` [PATCH 5/5] drm/vboxvideo: " Thomas Zimmermann
2021-09-16 19:28   ` Hans de Goede
2021-09-17 12:48     ` Daniel Vetter
2021-09-17 14:47 ` [PATCH 0/5] lib: devres: Add managed helpers for write-combine setup Hans de Goede
2021-09-20  8:01   ` Thomas Zimmermann
2021-09-20  8:18     ` Hans de Goede

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.