[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181224131841.GA22017@jordon-HP-15-Notebook-PC>
Date: Mon, 24 Dec 2018 18:48:41 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: akpm@...ux-foundation.org, willy@...radead.org, mhocko@...e.com,
kirill.shutemov@...ux.intel.com, vbabka@...e.cz, riel@...riel.com,
sfr@...b.auug.org.au, rppt@...ux.vnet.ibm.com,
peterz@...radead.org, linux@...linux.org.uk, robin.murphy@....com,
iamjoonsoo.kim@....com, treding@...dia.com, keescook@...omium.org,
m.szyprowski@...sung.com, stefanr@...6.in-berlin.de,
hjc@...k-chips.com, heiko@...ech.de, airlied@...ux.ie,
oleksandr_andrushchenko@...m.com, joro@...tes.org,
pawel@...iak.com, kyungmin.park@...sung.com, mchehab@...nel.org,
boris.ostrovsky@...cle.com, jgross@...e.com
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
linux-arm-kernel@...ts.infradead.org,
linux1394-devel@...ts.sourceforge.net,
dri-devel@...ts.freedesktop.org,
linux-rockchip@...ts.infradead.org, xen-devel@...ts.xen.org,
iommu@...ts.linux-foundation.org, linux-media@...r.kernel.org
Subject: [PATCH v5 0/9] Use vm_insert_range
v1 -> v2:
Address review comment on mm/memory.c. Add EXPORT_SYMBOL
for vm_insert_range and corrected the documentation part
for this API.
In drivers/gpu/drm/xen/xen_drm_front_gem.c, replace err
with ret as suggested.
In drivers/iommu/dma-iommu.c, handle the scenario of partial
mmap() of large buffer by passing *pages + vma->vm_pgoff* to
vm_insert_range().
v2 -> v3:
Declaration of vm_insert_range() moved to include/linux/mm.h
v3 -> v4:
Address review comments.
In mm/memory.c. Added error check.
In arch/arm/mm/dma-mapping.c, remove part of error check as the
similar is checked inside vm_insert_range.
In rockchip/rockchip_drm_gem.c, vma->vm_pgoff is respected as
this might be passed as non zero value considering partial
mapping of large buffer.
In iommu/dma-iommu.c, count is modifed as (count - vma->vm_pgoff)
to handle partial mapping scenario in v2.
v4 -> v5:
Address review comment on [2/9] and [4/9]
In arch/arm/mm/dma-mapping.c, added the error check which was removed
in v4, as without those error check we might end up overrun the page
array.
In rockchip/rockchip_drm_gem.c, added error check which was removed in
v1, as without this it might overrun page array. Adjusted page_count
parameter before passing it to vm_insert_range().
Souptick Joarder (9):
mm: Introduce new vm_insert_range API
arch/arm/mm/dma-mapping.c: Convert to use vm_insert_range
drivers/firewire/core-iso.c: Convert to use vm_insert_range
drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range
drm/xen/xen_drm_front_gem.c: Convert to use vm_insert_range
iommu/dma-iommu.c: Convert to use vm_insert_range
videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range
xen/gntdev.c: Convert to use vm_insert_range
xen/privcmd-buf.c: Convert to use vm_insert_range
arch/arm/mm/dma-mapping.c | 18 ++++------
drivers/firewire/core-iso.c | 15 ++-------
drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 14 ++------
drivers/gpu/drm/xen/xen_drm_front_gem.c | 20 ++++-------
drivers/iommu/dma-iommu.c | 13 ++-----
drivers/media/common/videobuf2/videobuf2-dma-sg.c | 23 ++++---------
drivers/xen/gntdev.c | 11 +++---
drivers/xen/privcmd-buf.c | 8 ++---
include/linux/mm.h | 2 ++
mm/memory.c | 41 +++++++++++++++++++++++
mm/nommu.c | 7 ++++
11 files changed, 83 insertions(+), 89 deletions(-)
--
1.9.1
Powered by blists - more mailing lists