mbox series

[v2,0/4] Add iomem helpers for use from debugfs

Message ID 20241112200454.2211-1-michal.wajdeczko@intel.com (mailing list archive)
Headers show
Series Add iomem helpers for use from debugfs | expand

Message

Michal Wajdeczko Nov. 12, 2024, 8:04 p.m. UTC
This series attempts to promote helpers used by Xe [1] to libfs.
Earlier attempt [2] with similar helper was unnoticed.

[1] https://patchwork.freedesktop.org/series/140848/#rev1
[2] https://patchwork.freedesktop.org/series/133507/#rev1

v1: https://patchwork.freedesktop.org/series/141060/#rev1
v2: use iterate_and_advance to treat user_iter separately (Matthew)

Cc: linux-kernel@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org

Michal Wajdeczko (4):
  iov_iter: Provide copy_iomem_to|from_iter()
  libfs: Provide simple_read_from|write_to_iomem()
  drm/xe: Add read/write debugfs helpers for GGTT node
  drm/xe/pf: Expose access to the VF GGTT PTEs over debugfs

 drivers/gpu/drm/xe/xe_ggtt.c                | 52 ++++++++++++++
 drivers/gpu/drm/xe/xe_ggtt.h                |  7 ++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 62 ++++++++++++++++
 fs/libfs.c                                  | 78 +++++++++++++++++++++
 include/linux/fs.h                          |  5 ++
 include/linux/uio.h                         |  3 +
 lib/iov_iter.c                              | 66 +++++++++++++++++
 7 files changed, 273 insertions(+)