Re: [PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-12-29 Thread Souptick Joarder
Brent, On Tue, Dec 22, 2015 at 2:42 PM, Kalle Valo <kv...@qca.qualcomm.com> wrote: > Souptick Joarder <jrdr.li...@gmail.com> writes: > >> Hi Brent, >> >> On Tue, Dec 22, 2015 at 3:23 AM, Brent Taylor <moto...@gmail.com> wrote: >>> On Mon,

Re: [PATCH 3/3] net-iwlegacy: Another refactoring for il_eeprom_init()

2016-01-02 Thread Souptick Joarder
On Sat, Jan 2, 2016 at 2:02 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 1 Jan 2016 21:16:01 +0100 > > Rename a jump label according to the current Linux coding style convention. > > Signed-off-by: Markus Elfring

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Souptick Joarder
On Wed, Dec 30, 2015 at 10:35 PM, Bjorn Andersson <bj...@kryo.se> wrote: > On Wed, Dec 30, 2015 at 8:47 AM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> >> HI Bjorn, >> >> On Thu, Dec 24, 2015 at 2:03 PM, Bjorn Andersson <bj...@kryo.

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Souptick Joarder
HI Bjorn, On Thu, Dec 24, 2015 at 2:03 PM, Bjorn Andersson wrote: > Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save > clients from having to cast away a const qualifier. > > Signed-off-by: Bjorn Andersson > --- >

Re: [PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-12-21 Thread Souptick Joarder
Hi Brent, On Tue, Dec 1, 2015 at 11:11 AM, Brent Taylor wrote: > Since commit 8437754c83351d6213c1a47ff029c1126d6042a7, ar->fw is expected to > be pointing to memory allocated by vmalloc. If the api1 method (via > ath6kl_fetch_fw_api1) is used to allocate memory for ar->fw,

Re: [PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-12-22 Thread Souptick Joarder
Hi Brent, On Tue, Dec 22, 2015 at 3:23 AM, Brent Taylor <moto...@gmail.com> wrote: > On Mon, Dec 21, 2015 at 1:23 PM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> Hi Brent, >> >> On Tue, Dec 1, 2015 at 11:11 AM, Brent Taylor <mot

Re: [PATCH] wlcore: consolidate kmalloc + memset 0 into kzalloc

2015-12-21 Thread Souptick Joarder
On Mon, Dec 21, 2015 at 10:17 PM, Nicholas Mc Guire wrote: > This is an API consolidation only. The use of kmalloc + memset to 0 > is equivalent to kzalloc. > > Signed-off-by: Nicholas Mc Guire > --- > > Found by coccinelle script (relaxed version of >

Re: [PATCH v4 7/8] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-29 Thread Souptick Joarder
On Wed, Nov 29, 2017 at 4:00 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Wed, Nov 29, 2017 at 6:25 AM, David Daney <david.da...@cavium.com> wrote: >> From: Carlos Munoz <cmu...@cavium.com> >> >> The Cavium OCTEON cn78xx and cn73xx S

Re: [PATCH v4 7/8] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-29 Thread Souptick Joarder
Hi David, Dan, On Thu, Nov 30, 2017 at 12:50 AM, David Daney <dda...@caviumnetworks.com> wrote: > On 11/29/2017 08:07 AM, Souptick Joarder wrote: >> >> On Wed, Nov 29, 2017 at 4:00 PM, Souptick Joarder <jrdr.li...@gmail.com> >> wrote: >>> >&g

Re: [PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t

2018-05-14 Thread Souptick Joarder
On Mon, May 14, 2018 at 2:32 PM, Gerd Hoffmann wrote: > Hi, > >> > So my expectation that a backmerge happens anyway after -rc1/2 is in >> > line with reality, it is just to be delayed this time. I'll stay >> > tuned ;) >> >> Is this patch already merged in drm-misc-next

[PATCH] gpu: drm: drm_vm: Adding new typedef vm_fault_t

2018-05-10 Thread Souptick Joarder
Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- drivers/gpu/drm/drm_vm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 2660543..c33010

[PATCH] kernel: relay: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- kernel/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/relay.c b/kernel/relay.c index c302940..a8cdbf7 100644 --- a/kernel/relay.c +++ b/k

Re: [PATCH] kernel: event: core: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
On Fri, Apr 20, 2018 at 5:18 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: >> I'm fine with the patch, but shouldn't this be part of a larger series / >> cocinelle script? >> > > This one is trivial but many others are not. > As part of this clean up w

Re: [PATCH v2] ipc: Adding new return type vm_fault_t

2018-05-10 Thread Souptick Joarder
On Wed, Apr 25, 2018 at 10:04 AM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_f

[PATCH] char: agp: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- drivers/char/agp/alpha-agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/agp/alpha-agp.c b/drivers/char/agp/alpha-agp.c index 5

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
Hi Sean, On Mon, Apr 16, 2018 at 8:32 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler. > > Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> > Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> > --- &

Re: [PATCH v2] gpu: drm: udl: Adding new typedef vm_fault_t

2018-05-10 Thread Souptick Joarder
On Wed, Apr 25, 2018 at 10:29 AM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault and huge_fault > handler. For now, this is just documenting that the > function returns a VM_FAULT value rather than an errno. > Once all instances are con

[PATCH v2] gpu: drm: armada: Adding new typedef vm_fault_t

2018-05-10 Thread Souptick Joarder
eturn type to vm_fault_t") Previously vm_insert_pfn() returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_pfn() will replace this inefficiency by returning VM_FAULT_* type. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matth

Re: [PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t

2018-05-10 Thread Souptick Joarder
Hi Gerd /Daniel, On Tue, Apr 24, 2018 at 6:05 PM, Gerd Hoffmann <kra...@redhat.com> wrote: > On Tue, Apr 24, 2018 at 02:11:51PM +0200, Daniel Vetter wrote: >> On Mon, Apr 23, 2018 at 12:49:24PM +0200, Gerd Hoffmann wrote: >> > On Tue, Apr 17, 2018 at 07:08:44PM +0530

Re: [PATCH] kvm: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
On Thu, Apr 19, 2018 at 7:26 PM, Cornelia Huck <coh...@redhat.com> wrote: > On Thu, 19 Apr 2018 00:49:58 +0530 > Souptick Joarder <jrdr.li...@gmail.com> wrote: > >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the fun

[PATCH v2] fs: ext4: Adding new return type vm_fault_t

2018-05-10 Thread Souptick Joarder
Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: Updated the change log fs/ext4/file.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index fb6f023..655d1c

[PATCH v7] fs: dax: Adding new return type vm_fault_t

2018-05-10 Thread Souptick Joarder
to convert it to vm_fault_t type. With new vmf_insert_mixed_mkwrite() this limitation will be addressed. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Jan Kara <j...@suse.cz> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> Reviewed-by: Ross Zwisler <ross.

[PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-10 Thread Souptick Joarder
eturn type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> --- v2: Updated the change log arch/powerpc/kvm/book3s_64_vio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_64_vio.c b/arch/powerpc/kvm/book3s_64_vio.c index

Re: [PATCH v3] mm: Change return type to vm_fault_t

2018-05-12 Thread Souptick Joarder
On Sat, May 12, 2018 at 11:55 AM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Sat, May 12, 2018 at 11:50 AM, Joe Perches <j...@perches.com> wrote: >> On Sat, 2018-05-12 at 11:47 +0530, Souptick Joarder wrote: >>> Use new return type vm_fault_t f

[PATCH v3] mm: Change return type to vm_fault_t

2018-05-12 Thread Souptick Joarder
eturn type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: updated the change log v3: added changes into the same patch include/linux/mm_types.h | 2 +- mm/hugetlb.c | 2 +- mm/mma

[PATCH v4] mm: Change return type to vm_fault_t

2018-05-12 Thread Souptick Joarder
eturn type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- include/linux/mm_types.h | 6 +++--- mm/hugetlb.c | 2 +- mm/mmap.c| 4 ++-- 3 files changed, 6 insertions(+), 6 de

Re: [PATCH v3] mm: Change return type to vm_fault_t

2018-05-12 Thread Souptick Joarder
>> It'd be nicer to realign the 2nd and 3rd arguments >> on the subsequent lines. >> >> vm_fault_t (*fault)(const struct vm_special_mapping *sm, >> struct vm_area_struct *vma, >> struct vm_fault *vmf); >> > > It'd be nicer if people

Re: [PATCH v3] mm: Change return type to vm_fault_t

2018-05-12 Thread Souptick Joarder
On Sat, May 12, 2018 at 11:50 AM, Joe Perches <j...@perches.com> wrote: > On Sat, 2018-05-12 at 11:47 +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for fault handler >> in struct vm_operations_struct. For now, this is >> just documenting that the fun

Re: [PATCH] gpu: drm: tegra: Adding new typedef vm_fault_t

2018-05-11 Thread Souptick Joarder
On Mon, Apr 23, 2018 at 4:24 PM, Matthew Wilcox wrote: > On Wed, Apr 18, 2018 at 10:24:39AM +0200, Thierry Reding wrote: >> > @@ -437,20 +436,7 @@ static int tegra_bo_fault(struct vm_fault *vmf) >> > offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT; >> > page =

Re: [PATCH v2] mm: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
On Fri, May 11, 2018 at 11:45 PM, Matthew Wilcox <wi...@infradead.org> wrote: > On Fri, May 11, 2018 at 11:36:39PM +0530, Souptick Joarder wrote: >> mm/hugetlb.c | 2 +- >> mm/mmap.c| 4 ++-- >> 2 files changed, 3 insertions(+), 3 deletions(-) > > Don't we a

[PATCH v2] mm: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
eturn type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: Updated the change log mm/hugetlb.c | 2 +- mm/mmap.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/hu

[PATCH v2] mm: Adding new return type vm_fault_t

2018-05-11 Thread Souptick Joarder
eturn type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: updated the change log include/linux/mm.h | 4 ++-- mm/filemap.c | 8 mm/nommu.c | 2 +- 3 files changed, 7 inse

Re: [PATCH v4] dax: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
On Fri, May 11, 2018 at 10:04 PM, Dan Williams <dan.j.willi...@intel.com> wrote: > On Fri, May 11, 2018 at 9:34 AM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the

[PATCH v4] dax: Change return type to vm_fault_t

2018-05-11 Thread Souptick Joarder
Previously vm_insert_mixed() returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_mixed() will replace this inefficiency by returning VM_FAULT_* type. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-16 Thread Souptick Joarder
On Wed, May 16, 2018 at 12:38 PM, Paul Mackerras <pau...@ozlabs.org> wrote: > On Wed, May 16, 2018 at 10:11:11AM +0530, Souptick Joarder wrote: >> On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder <jrdr.li...@gmail.com> >> wrote: >> > Use new retu

Re: [PATCH] kernel: event: core: Change return type to vm_fault_t

2018-05-17 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:54 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Fri, Apr 20, 2018 at 5:18 PM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >>> I'm fine with the patch, but shouldn't this be part of a larger series / >>> cocinelle s

[PATCH] gpu: drm: etnaviv: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
should use the mutex_lock_killable / fatal_signal_pending family of functions. So mutex_lock_interruptible() is replaced by mutex_lock_killable() vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> --- drivers/gpu/drm/etnaviv/etnaviv_drv.h |

[PATCH v2] char: agp: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
_fault_t") was added in 4.17-rc1 to introduce the new typedef vm_fault_t. Currently we are making change to all drivers to return vm_fault_t for page fault handlers. As part of that char/agp driver is also getting changed to return vm_fault_t type from fault handler. Signed-off-by: Souptick Joa

[PATCH] gpu: drm: msm: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
ult_t") Previously vm_insert_mixed() returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_mixed() will replace this inefficiency by returning VM_FAULT_* type. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder <jrdr.li

[PATCH v2] kernel: event: core: Change return type to vm_fault_t

2018-05-21 Thread Souptick Joarder
uot;) Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Acked-by: Peter Zijlstra (Intel) <pet...@infradead.org> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: Updated the change log. Acked by Peter Zijlstra. kernel/events/core.c | 4 ++-- 1 file change

[PATCH] gpu: drm: omapdrm: Adding new typedef vm_fault_t

2018-05-21 Thread Souptick Joarder
_FAULT_* type. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- drivers/gpu/drm/omapdrm/omap_gem.c | 51 +- drivers/gpu/drm/omapd

Re: [PATCH v2] gpu: drm: udl: Adding new typedef vm_fault_t

2018-05-23 Thread Souptick Joarder
On Wed, May 23, 2018 at 2:19 PM, Daniel Vetter <dan...@ffwll.ch> wrote: > On Mon, May 21, 2018 at 10:27:44AM +0530, Souptick Joarder wrote: >> On Thu, May 10, 2018 at 7:18 PM, Souptick Joarder <jrdr.li...@gmail.com> >> wrote: >> > On Wed, Apr 25, 2018 at

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-23 Thread Souptick Joarder
On Mon, May 14, 2018 at 9:56 PM, Daniel Vetter <dan...@ffwll.ch> wrote: > On Thu, May 10, 2018 at 02:51:38PM -0400, Sean Paul wrote: >> On Thu, May 10, 2018 at 07:58:11PM +0530, Souptick Joarder wrote: >> > Hi Sean, >> > >> > On Mon, Apr 16, 2018 at 8:32

Re: [PATCH v2] gpu: drm: armada: Adding new typedef vm_fault_t

2018-05-23 Thread Souptick Joarder
On Wed, May 16, 2018 at 10:05 AM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Fri, May 11, 2018 at 2:52 PM, Russell King - ARM Linux > <li...@armlinux.org.uk> wrote: >> On Thu, May 10, 2018 at 08:34:48PM +0530, Souptick Joarder wrote: >>> Use new return

Re: [PATCH] gpu: drm: etnaviv: Change return type to vm_fault_t

2018-05-23 Thread Souptick Joarder
> A non-fatal signal being delivered to a task which is > in the middle of a page fault may well end up in an > infinite loop, attempting to handle the page fault and > failing forever. > > On seeing NOPAGE, the fault handler believes the PTE > is in the page table, so does nothing before it

[PATCH v2] gpu: drm: gma500: Change return type to vm_fault_t

2018-05-23 Thread Souptick Joarder
_fault_t") Previously vm_insert_{pfn,mixed} returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_{pfn,mixed} will replace this inefficiency by returning VM_FAULT_* type. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joa

Re: [PATCH v2] gpu: drm: gma500: Change return type to vm_fault_t

2018-05-26 Thread Souptick Joarder
wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Souptick-Joarder/gpu-drm-gma500-Change-return-type-to-vm_fault_t/20180526-084629 > base: git://people.freedesktop.org/~airlied/linux.git drm-next > co

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-24 Thread Souptick Joarder
On Thu, May 24, 2018 at 6:27 PM, Daniel Vetter <dan...@ffwll.ch> wrote: > On Wed, May 23, 2018 at 03:05:35PM +0530, Souptick Joarder wrote: >> On Mon, May 14, 2018 at 9:56 PM, Daniel Vetter <dan...@ffwll.ch> wrote: >> > On Thu, May 10, 2018 at 02:51:38PM -0400, Sean

Re: [PATCH] gpu: drm: drm_vm: Adding new typedef vm_fault_t

2018-05-24 Thread Souptick Joarder
On Wed, May 16, 2018 at 10:09 AM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Thu, May 10, 2018 at 7:12 PM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the

Re: [PATCH v2] gpu: drm: armada: Adding new typedef vm_fault_t

2018-05-15 Thread Souptick Joarder
On Fri, May 11, 2018 at 2:52 PM, Russell King - ARM Linux <li...@armlinux.org.uk> wrote: > On Thu, May 10, 2018 at 08:34:48PM +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for fault handler in >> struct vm_operations_struct. For now, this is just >> do

Re: [PATCH v2] powerpc: kvm: Change return type to vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 11:57 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler > in struct vm_operations_struct. For now, this is > just documenting that the function returns a > VM_FAULT value rather than an errno. On

Re: [PATCH] gpu: drm: drm_vm: Adding new typedef vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:12 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_f

Re: [PATCH v2] ipc: Adding new return type vm_fault_t

2018-05-15 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:34 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Wed, Apr 25, 2018 at 10:04 AM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the

[PATCH v2] fs: ocfs2: Adding new return type vm_fault_t

2018-05-23 Thread Souptick Joarder
_fault_t") vmf_error() is the newly introduce inline function in 4.18. Fix one checkpatch.pl warning by replacing BUG_ON() with WARN_ON() Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com>

Re: [PATCH v2] gpu: drm: udl: Adding new typedef vm_fault_t

2018-05-20 Thread Souptick Joarder
On Thu, May 10, 2018 at 7:18 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > On Wed, Apr 25, 2018 at 10:29 AM, Souptick Joarder <jrdr.li...@gmail.com> > wrote: >> Use new return type vm_fault_t for fault and huge_fault >> handler. For now, this is just do

Re: [PATCH] gpu: drm: omapdrm: Adding new typedef vm_fault_t

2018-05-22 Thread Souptick Joarder
>drivers/gpu//drm/omapdrm/omap_gem.c: In function 'fault_2d': >drivers/gpu//drm/omapdrm/omap_gem.c:480:9: error: implicit declaration of > function 'vmf_error'; did you mean '__pmd_error'? > [-Werror=implicit-function-declaration] > ret = vmf_error(err); I think, drm-next and

[PATCH v2] gpu: drm: omapdrm: Adding new typedef vm_fault_t

2018-05-22 Thread Souptick Joarder
_FAULT_* type. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> Reviewed-by: Matthew Wilcox <mawil...@microsoft.com> --- v2: Fixed kbuild error by initialized ret in fault_2d(). drivers/gpu/dr

[PATCH] gpu: drm: ttm: Adding new return type vm_fault_t

2018-05-23 Thread Souptick Joarder
_fault_t") Previously vm_insert_{mixed,pfn} returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_{mixed,pfn} will replace this inefficiency by returning VM_FAULT_* type. Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> --- drivers/gpu/drm/t

Re: [PATCH v2] char: agp: Change return type to vm_fault_t

2018-06-18 Thread Souptick Joarder
On Thu, May 31, 2018 at 10:38 AM, Souptick Joarder wrote: > On Mon, May 21, 2018 at 11:47 PM, Souptick Joarder > wrote: >> Use new return type vm_fault_t for fault handler. For now, >> this is just documenting that the function returns a >> VM_FAULT value rather

Re: [PATCH] hwtracing: intel_th: Change return type to vm_fault_t

2018-06-16 Thread Souptick Joarder
On Wed, May 2, 2018 at 7:32 PM, Souptick Joarder wrote: > On 02-May-2018 7:28 PM, "Alexander Shishkin" > wrote: >> >> On Wed, May 02, 2018 at 11:14:48AM +0530, Souptick Joarder wrote: >> > Any comment for this patch ? >> >> Looks goo

Re: [Freedreno] [PATCH] gpu: drm: msm: Change return type to vm_fault_t

2018-06-17 Thread Souptick Joarder
On Thu, May 31, 2018 at 11:29 PM, Jordan Crouse wrote: > On Mon, May 28, 2018 at 12:38:41PM +0530, Souptick Joarder wrote: >> On Mon, May 21, 2018 at 10:59 PM, Souptick Joarder >> wrote: >> > Use new return type vm_fault_t for fault handler. For >> &

Re: [PATCH v3] mm: Change return type int to vm_fault_t for fault handlers

2018-06-18 Thread Souptick Joarder
On Mon, Jun 4, 2018 at 10:47 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will become a distinct t

Re: [PATCH v2] char: agp: Change return type to vm_fault_t

2018-05-30 Thread Souptick Joarder
On Mon, May 21, 2018 at 11:47 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For now, > this is just documenting that the function returns a > VM_FAULT value rather than an errno. Once all instances are > converted, vm_fault_t will become a distinct t

[PATCH v3] gpu: drm: gma500: Change return type to vm_fault_t

2018-05-26 Thread Souptick Joarder
_fault_t") Previously vm_insert_{pfn,mixed} returns err which driver mapped into VM_FAULT_* type. The new function vmf_insert_{pfn,mixed} will replace this inefficiency by returning VM_FAULT_* type. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joa

Re: [PATCH] mm: Change return type to vm_fault_t

2018-05-29 Thread Souptick Joarder
On Tue, May 29, 2018 at 11:04 PM, Matthew Wilcox wrote: > On Tue, May 29, 2018 at 09:25:05PM +0530, Souptick Joarder wrote: >> On Tue, May 29, 2018 at 8:20 PM, Matthew Wilcox wrote: >> > On Tue, May 29, 2018 at 08:01:26PM +0530, Souptick Joarder wrote: >> >>

Re: [PATCH v2] mm: Change return type int to vm_fault_t for fault handlers

2018-06-03 Thread Souptick Joarder
On Sun, Jun 3, 2018 at 3:31 AM, Matthew Wilcox wrote: > On Sun, Jun 03, 2018 at 01:34:07AM +0530, Souptick Joarder wrote: >> @@ -3570,9 +3571,8 @@ static int hugetlb_cow(struct mm_struct *mm, struct >> vm_area_struct *vma, >>

Re: [PATCH v2] kernel: event: core: Change return type to vm_fault_t

2018-06-03 Thread Souptick Joarder
On Mon, May 21, 2018 at 11:55 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will become a distinct t

Re: [PATCH] mm: Change return type to vm_fault_t

2018-06-02 Thread Souptick Joarder
Please ignoe this mail. I send it by mistake. On Sat, Jun 2, 2018 at 8:14 PM, Souptick Joarder wrote: > On Wed, May 30, 2018 at 4:46 PM, Matthew Wilcox wrote: >> On Wed, May 30, 2018 at 09:10:47AM +0530, Souptick Joarder wrote: >>> On Tue, May 29, 2018 at 11:04 PM, Matthew

Re: [PATCH] mm: Change return type to vm_fault_t

2018-06-02 Thread Souptick Joarder
On Wed, May 30, 2018 at 4:46 PM, Matthew Wilcox wrote: > On Wed, May 30, 2018 at 09:10:47AM +0530, Souptick Joarder wrote: >> On Tue, May 29, 2018 at 11:04 PM, Matthew Wilcox wrote: >> > I see: >> > >> > mm/gup.c:817:15: warning: invalid assignment: |= >>

Re: [PATCH] mm: Change return type to vm_fault_t

2018-06-02 Thread Souptick Joarder
On Wed, May 30, 2018 at 4:46 PM, Matthew Wilcox wrote: > On Wed, May 30, 2018 at 09:10:47AM +0530, Souptick Joarder wrote: >> On Tue, May 29, 2018 at 11:04 PM, Matthew Wilcox wrote: >> > I see: >> > >> > mm/gup.c:817:15: warning: invalid assignment: |= >>

[PATCH v2] mm: Change return type int to vm_fault_t for fault handlers

2018-06-02 Thread Souptick Joarder
to vm_fault_t type but in a separate patch. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder --- v2: Change patch title and fixed sparse warning. fs/userfaultfd.c | 6 +-- include/linux/huge_mm.h | 10 +++-- include/linux/hugetlb

[PATCH] mm: Change return type to vm_fault_t

2018-05-29 Thread Souptick Joarder
to vm_fault_t type but in a separate patch. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder --- fs/userfaultfd.c | 6 +-- include/linux/huge_mm.h | 10 +++-- include/linux/hugetlb.h | 2 +- include/linux/mm.h

Re: [PATCH] mm: Change return type to vm_fault_t

2018-05-29 Thread Souptick Joarder
On Tue, May 29, 2018 at 8:20 PM, Matthew Wilcox wrote: > On Tue, May 29, 2018 at 08:01:26PM +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value rather th

Re: [PATCH] gpu: drm: etnaviv: Change return type to vm_fault_t

2018-05-28 Thread Souptick Joarder
On Mon, May 28, 2018 at 6:20 PM, Lucas Stach <l.st...@pengutronix.de> wrote: > Hi Souptick, > > Am Montag, den 21.05.2018, 22:42 +0530 schrieb Souptick Joarder: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function

[PATCH v3] mm: Change return type int to vm_fault_t for fault handlers

2018-06-04 Thread Souptick Joarder
to vm_fault_t type but in a separate patch. vmf_error() is the newly introduce inline function in 4.17-rc6. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- v2: Change patch title and fixed sparse warning. v3: Reviewed by Matthew Wilcox fs/userfaultfd.c | 6 +--

Re: [PATCH] gpu: drm: msm: Change return type to vm_fault_t

2018-05-28 Thread Souptick Joarder
On Mon, May 21, 2018 at 10:59 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_f

[PATCH v2] x86/vdso: Change return type to vm_fault_t for fault handlers

2018-06-25 Thread Souptick Joarder
: 1c8f422059ae ("mm: change return type to vm_fault_t") b3ec9f33acb8 ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder --- v2: Updated the change log arch/x86/entry/vdso/vma.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-

[PATCH] x86/vdso: Change return type to vm_fault_t for fault handlers

2018-06-25 Thread Souptick Joarder
_fault_t") Previously vm_insert_pfn() returns err which has to mapped into VM_FAULT_* type. The new function vmf_insert_pfn() will replace this inefficiency by returning VM_FAULT_* type. Signed-off-by: Souptick Joarder --- arch/x86/entry/vdso/vma.c | 19 --- 1 file changed, 8 inse

Re: [PATCH] x86/vdso: Change return type to vm_fault_t for fault handlers

2018-06-25 Thread Souptick Joarder
On Mon, Jun 25, 2018 at 9:41 PM, Andy Lutomirski wrote: > On Mon, Jun 25, 2018 at 8:55 AM Souptick Joarder wrote: >> >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value rather than a

[PATCH] fs: nfs: Adding new return type vm_fault_t

2018-07-02 Thread Souptick Joarder
hange return type to vm_fault_t") for reference. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- fs/nfs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 81cca49..29553fd 100644 --- a/fs/nfs/file.c +++ b/fs/

[PATCH] fs: afs: Adding new return type vm_fault_t

2018-07-02 Thread Souptick Joarder
hange return type to vm_fault_t") for reference. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- fs/afs/internal.h | 3 ++- fs/afs/write.c| 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/afs/internal.h b/fs/afs/internal.h index f38d6a5..35e405c 10064

[PATCH] hwtracing: intel_th: Change return type to vm_fault_t

2018-07-02 Thread Souptick Joarder
ult_t") for reference. Signed-off-by: Souptick Joarder --- drivers/hwtracing/intel_th/msu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/intel_th/msu.c b/drivers/hwtracing/intel_th/msu.c index dfb57ea..0ac84eb 100644 --- a/drivers/hwtracing/intel_th/msu.c +++

[PATCH] fs: iomap: Change return type to vm_fault_t

2018-07-02 Thread Souptick Joarder
Return type has been changed to vm_fault_t type for iomap_page_mkwrite(). see commit 1c8f422059ae ("mm: change return type to vm_fault_t") for reference. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- fs/iomap.c| 2 +- include/linux/iomap.h | 4 +++

Re: [PATCH v2] char: agp: Change return type to vm_fault_t

2018-07-02 Thread Souptick Joarder
On Mon, Jun 18, 2018 at 5:07 PM, Souptick Joarder wrote: > On Thu, May 31, 2018 at 10:38 AM, Souptick Joarder > wrote: >> On Mon, May 21, 2018 at 11:47 PM, Souptick Joarder >> wrote: >>> Use new return type vm_fault_t for fault handler. For now, >>> this i

[PATCH] fs: proc: Adding new typedef vm_fault_t

2018-07-02 Thread Souptick Joarder
hange return type to vm_fault_t") for reference. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- fs/proc/vmcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index a45f0af..7243e94 100644 --- a/fs/proc/vmcore.c +++

[PATCH] fs: 9p: Adding new return type vm_fault_t

2018-07-02 Thread Souptick Joarder
Use new return type vm_fault_t for page_mkwrite handler. see commit 1c8f422059ae ("mm: change return type to vm_fault_t") for reference. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- fs/9p/vfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH v2] char: agp: Change return type to vm_fault_t

2018-07-02 Thread Souptick Joarder
On Mon, Jul 2, 2018 at 9:42 PM, Greg KH wrote: > On Mon, Jul 02, 2018 at 09:33:19PM +0530, Souptick Joarder wrote: >> On Mon, Jun 18, 2018 at 5:07 PM, Souptick Joarder >> wrote: >> > On Thu, May 31, 2018 at 10:38 AM, Souptick Joarder >> > wrote: >&

Re: [PATCH v2] x86/vdso: Change return type to vm_fault_t for fault handlers

2018-07-03 Thread Souptick Joarder
On Tue, Jul 3, 2018 at 4:47 PM, Matthew Wilcox wrote: > On Mon, Jun 25, 2018 at 11:27:37PM +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for both fault handler >> vdso_fault() and vvar_fault(). Previously vm_insert_pfn() >> returns err which has to mapped

Re: [PATCH] hwtracing: intel_th: Change return type to vm_fault_t

2018-05-01 Thread Souptick Joarder
Any comment for this patch ? On Tue, Apr 17, 2018 at 7:45 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Onc

Re: [PATCH v6] fs: dax: Adding new return type vm_fault_t

2018-04-26 Thread Souptick Joarder
> I noticed that we have the following status translation now in 4 places in 2 > files: > > if (err == -ENOMEM) > return VM_FAULT_OOM; > if (err < 0 && err != -EBUSY) > return VM_FAULT_SIGBUS; > return VM_FAULT_NOPAGE; > > > This happens in

Re: [PATCH v2] mm: huge_memory: Change return type to vm_fault_t

2018-04-26 Thread Souptick Joarder
On Wed, Apr 25, 2018 at 12:39 PM, David Rientjes <rient...@google.com> wrote: > On Wed, 25 Apr 2018, Souptick Joarder wrote: > >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value

Re: [PATCH v2] x86/vdso: Change return type to vm_fault_t for fault handlers

2018-07-03 Thread Souptick Joarder
On Tue, Jul 3, 2018 at 5:41 PM, Matthew Wilcox wrote: > On Tue, Jul 03, 2018 at 05:18:30PM +0530, Souptick Joarder wrote: >> On Tue, Jul 3, 2018 at 4:47 PM, Matthew Wilcox wrote: >> > On Mon, Jun 25, 2018 at 11:27:37PM +0530, Souptick Joarder wrote: >> >> Use new r

[PATCH] maillbox: bcm-flexrm-mailbox: Use dma_pool_zalloc()

2018-02-17 Thread Souptick Joarder
Use dma_pool_zalloc() instead of dma_pool_alloc + memset Signed-off-by: Souptick Joarder <jrdr.li...@gmail.com> --- drivers/mailbox/bcm-flexrm-mailbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-

Re: [PATCH] ext4: Convert int to vm_fault_t type

2018-07-28 Thread Souptick Joarder
On Sat, Jul 28, 2018 at 2:20 PM, Souptick Joarder wrote: > Use new return type vm_fault_t for ext4_page_mkwrite > handler and block_page_mkwrite_return. > > Signed-off-by: Souptick Joarder As part of commit 2fae376c0a16db42eb438 in linux-next tree, this conversion was missed.

[PATCH] ext4: Convert int to vm_fault_t type

2018-07-28 Thread Souptick Joarder
Use new return type vm_fault_t for ext4_page_mkwrite handler and block_page_mkwrite_return. Signed-off-by: Souptick Joarder --- fs/ext4/ext4.h | 2 +- fs/ext4/inode.c | 20 ++-- include/linux/buffer_head.h | 3 ++- 3 files changed, 13 insertions(+), 12

[PATCH] fs/buffer: Convert return type int to vm_fault_t

2018-07-28 Thread Souptick Joarder
Return type of block_page_mkwrite() is converted to vm_fault_t type. The caller of block_page_mkwrite inside fs/nilfs2 nilfs_page_mkwrite converted accordingly. Signed-off-by: Souptick Joarder --- fs/buffer.c | 16 +--- fs/nilfs2/file.c| 13

Re: [PATCH v2] fs/buffer: Convert return type int to vm_fault_t

2018-08-01 Thread Souptick Joarder
On Mon, Jul 30, 2018 at 8:31 PM, Souptick Joarder wrote: > Return type of block_page_mkwrite() is converted to > vm_fault_t type. The caller of block_page_mkwrite > inside fs/nilfs2 nilfs_page_mkwrite converted accordingly. > > Signed-off-by: Souptick Joarder > --- > v2: A

Re: [PATCH] ext4: Convert int to vm_fault_t type

2018-08-01 Thread Souptick Joarder
On Wed, Aug 1, 2018 at 6:43 PM, Matthew Wilcox wrote: > On Wed, Aug 01, 2018 at 06:34:45PM +0530, Souptick Joarder wrote: >> > The fact that ext4_page_mkwrite() returns a vm_fault_t, while >> > block_page_mkwrite() returns an int which then has to get translated >&

Re: [PATCH 2/3] x86: Convert vdso to use vm_fault_t

2018-08-03 Thread Souptick Joarder
On Mon, Jul 16, 2018 at 2:47 PM, Thomas Gleixner wrote: > On Tue, 3 Jul 2018, Matthew Wilcox wrote: > >> Return vm_fault_t codes directly from the appropriate mm routines instead >> of converting from errnos ourselves. Fixes a minor bug where we'd return >> SIGBUS instead of the correct OOM code

[PATCH v2] fs/buffer: Convert return type int to vm_fault_t

2018-07-30 Thread Souptick Joarder
Return type of block_page_mkwrite() is converted to vm_fault_t type. The caller of block_page_mkwrite inside fs/nilfs2 nilfs_page_mkwrite converted accordingly. Signed-off-by: Souptick Joarder --- v2: Address Jens's comment. Remove ret variable from block_page_mkwrite(). fs/buffer.c

  1   2   3   >