[PATCH 1/2] mm: dmabuf_direct_io: Support direct_io for memory allocated by dmabuf

2024-07-10 Thread Lei Liu
031519 4936 average 1554 4905 Signed-off-by: Lei Liu --- drivers/dma-buf/heaps/system_heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c index

[PATCH 1/2] mm: dmabuf_direct_io: Support direct_io for memory allocated by dmabuf

2024-07-10 Thread Lei Liu
031519 4936 average 1554 4905 Signed-off-by: Lei Liu --- drivers/dma-buf/heaps/system_heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c index

Re: [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf

2024-07-10 Thread Lei Liu
在 2024/7/10 22:14, Christian König 写道: Am 10.07.24 um 15:57 schrieb 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. Well big NAK to

[PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf

2024-07-10 Thread 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

[PATCH 2/2] mm: dmabuf_direct_io: Fix memory statistics error for dmabuf allocated memory with direct_io support

2024-07-10 Thread Lei Liu
not undergo changes in its memory accounting method. Signed-off-by: Lei Liu --- drivers/dma-buf/heaps/system_heap.c | 2 ++ fs/proc/task_mmu.c | 8 +++- include/linux/mm.h | 1 + mm/memory.c | 15 ++- mm/rma

[PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf

2024-07-10 Thread 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

Re: [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf

2024-07-10 Thread Lei Liu
on 2024/7/10 22:48, Christian König wrote: Am 10.07.24 um 16:35 schrieb Lei Liu: on 2024/7/10 22:14, Christian König wrote: Am 10.07.24 um 15:57 schrieb 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

Re: [PATCH 0/2] Support direct I/O read and write for memory allocated by dmabuf

2024-07-15 Thread Lei Liu
On 2024/7/11 22:25, Christian König wrote: Am 10.07.24 um 18:34 schrieb T.J. Mercier: On Wed, Jul 10, 2024 at 8:08 AM Lei Liu wrote: on 2024/7/10 22:48, Christian König wrote: Am 10.07.24 um 16:35 schrieb Lei Liu: on 2024/7/10 22:14, Christian König wrote: Am 10.07.24 um 15:57 schrieb