Skip to content

drm, highmem: Cleanup io/kmap_atomic*() usage

Thomas Gleixner dri-devel intel-gfx linux-mm lkml nouveau virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/ttm: Replace kmap_atomic() usagedrivers/gpu/drm/ttm/ttm_bo_util.c+12 -81 reply
2/7drm/vmgfx: Replace kmap_atomic()drivers/gpu/drm/vmwgfx/vmwgfx_blit.c+12 -182 replies
3/7highmem: Remove kmap_atomic_prot()include/linux/highmem-internal.h+2 -120 replies
4/7drm/qxl: Replace io_mapping_map_atomic_wc()drivers/gpu/drm/qxl/qxl_image.c drivers/gpu/drm/qxl/qxl_ioctl.c drivers/gpu/drm/qxl/qxl_object.c +2 more+32 -330 replies
5/7drm/nouveau/device: Replace io_mapping_map_atomic_wc()drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h+4 -40 replies
6/7drm/i915: Replace io_mapping_map_atomic_wc()drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c drivers/gpu/drm/i915/i915_gem.c drivers/gpu/drm/i915/selftests/i915_gem.c +1 more+22 -370 replies
7/7io-mapping: Remove io_mapping_map_atomic_wc()Documentation/driver-api/io-mapping.rst include/linux/io-mapping.h+9 -550 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchZack RusinRoland Scheidegger
1/7
2/7R-b R-b
3/7
4/7
5/7
6/7
7/7

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/7] drm, highmem: Cleanup io/kmap_atomic*() usage

None of the DRM usage sites of temporary mappings requires the side effects of io/kmap_atomic(), i.e. preemption and pagefault disable.

Replace them with the io/kmap_local() variants, simplify the copy_to/from_user() error handling and remove the atomic variants.

Thanks,

tglx

---
 Documentation/driver-api/io-mapping.rst             |   22 +++-------
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c      |    7 +--
 drivers/gpu/drm/i915/i915_gem.c                     |   40 ++++++-------------
 drivers/gpu/drm/i915/selftests/i915_gem.c           |    4 -
 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c       |    8 +--
 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h |    8 +--
 drivers/gpu/drm/qxl/qxl_image.c                     |   18 ++++----
 drivers/gpu/drm/qxl/qxl_ioctl.c                     |   27 ++++++------
 drivers/gpu/drm/qxl/qxl_object.c                    |   12 ++---
 drivers/gpu/drm/qxl/qxl_object.h                    |    4 -
 drivers/gpu/drm/qxl/qxl_release.c                   |    4 -
 drivers/gpu/drm/ttm/ttm_bo_util.c                   |   20 +++++----
 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c                |   30 +++++---------
 include/linux/highmem-internal.h                    |   14 ------
 include/linux/io-mapping.h                          |   42 --------------------
 15 files changed, 93 insertions(+), 167 deletions(-)

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization