linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf
@ 2024-07-10 13:57 Lei Liu
  2024-07-10 13:57 ` [PATCH 1/2] mm: dmabuf_direct_io: Support direct_io " Lei Liu
  2024-07-10 14:14 ` [PATCH 0/2] Support direct I/O read and write " Christian König
  0 siblings, 2 replies; 11+ messages in thread
From: Lei Liu @ 2024-07-10 13:57 UTC (permalink / raw)
  To: Sumit Semwal, Benjamin Gaignard, Brian Starkey, John Stultz,
	T.J. Mercier, Christian König, Andrew Morton,
	David Hildenbrand, Matthew Wilcox, Muhammad Usama Anjum,
	Andrei Vagin, Ryan Roberts, Kefeng Wang, linux-media, dri-devel,
	linaro-mm-sig, linux-kernel, linux-fsdevel, linux-mm
  Cc: opensource.kernel, Lei Liu

Use vm_insert_page to establish a mapping for the memory allocated
by dmabuf, thus supporting direct I/O read and write; and fix the
issue of incorrect memory statistics after mapping dmabuf memory.

Lei Liu (2):
  mm: dmabuf_direct_io: Support direct_io for memory allocated by dmabuf
  mm: dmabuf_direct_io: Fix memory statistics error for dmabuf allocated
    memory with direct_io support

 drivers/dma-buf/heaps/system_heap.c |  5 +++--
 fs/proc/task_mmu.c                  |  8 +++++++-
 include/linux/mm.h                  |  1 +
 mm/memory.c                         | 15 ++++++++++-----
 mm/rmap.c                           |  9 +++++----
 5 files changed, 26 insertions(+), 12 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf
@ 2024-07-10 14:09 Lei Liu
  0 siblings, 0 replies; 11+ messages in thread
From: Lei Liu @ 2024-07-10 14:09 UTC (permalink / raw)
  To: Sumit Semwal, Benjamin Gaignard, Brian Starkey, John Stultz,
	T.J. Mercier, Christian König, Andrew Morton,
	David Hildenbrand, Matthew Wilcox, Muhammad Usama Anjum,
	Andrei Vagin, Ryan Roberts, Peter Xu, Kefeng Wang, linux-media,
	dri-devel, linaro-mm-sig, linux-kernel, linux-fsdevel, linux-mm
  Cc: opensource.kernel, Lei Liu

Use vm_insert_page to establish a mapping for the memory allocated
by dmabuf, thus supporting direct I/O read and write; and fix the
issue of incorrect memory statistics after mapping dmabuf memory.

Lei Liu (2):
  mm: dmabuf_direct_io: Support direct_io for memory allocated by dmabuf
  mm: dmabuf_direct_io: Fix memory statistics error for dmabuf allocated
    memory with direct_io support

 drivers/dma-buf/heaps/system_heap.c |  5 +++--
 fs/proc/task_mmu.c                  |  8 +++++++-
 include/linux/mm.h                  |  1 +
 mm/memory.c                         | 15 ++++++++++-----
 mm/rmap.c                           |  9 +++++----
 5 files changed, 26 insertions(+), 12 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-07-15  9:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-10 13:57 [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf Lei Liu
2024-07-10 13:57 ` [PATCH 1/2] mm: dmabuf_direct_io: Support direct_io " Lei Liu
2024-07-10 14:14 ` [PATCH 0/2] Support direct I/O read and write " Christian König
2024-07-10 14:35   ` Lei Liu
2024-07-10 14:48     ` Christian König
2024-07-10 15:06       ` Lei Liu
2024-07-10 16:34         ` T.J. Mercier
2024-07-11 14:25           ` Christian König
2024-07-15  9:07             ` Lei Liu
2024-07-15  8:52   ` Daniel Vetter
2024-07-10 14:09 Lei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox