[PATCH V7 10/20] csky: IRQ handling

2018-10-04 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22 ++ 2 files changed, 71 insertions(+) create mode 100644 arch/csky/include/asm/irqflags.h create

[PATCH V7 12/20] csky: ELF and module probe

2018-10-04 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/elf.h | 26 arch/csky/abiv2/inc/abi/elf.h | 43 arch/csky/include/asm/elf.h | 85 +++ arch/csky/kernel/module.c

[PATCH V7 10/20] csky: IRQ handling

2018-10-04 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22 ++ 2 files changed, 71 insertions(+) create mode 100644 arch/csky/include/asm/irqflags.h create

[PATCH V7 12/20] csky: ELF and module probe

2018-10-04 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/elf.h | 26 arch/csky/abiv2/inc/abi/elf.h | 43 arch/csky/include/asm/elf.h | 85 +++ arch/csky/kernel/module.c

[PATCH V7 17/20] csky: Misc headers

2018-10-04 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 +++ arch/csky/abiv1/inc/abi/regdef.h | 26 ++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 +++

[PATCH V7 17/20] csky: Misc headers

2018-10-04 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 +++ arch/csky/abiv1/inc/abi/regdef.h | 26 ++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 +++

[PATCH V7 15/20] csky: Debug and Ptrace GDB

2018-10-04 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 66 arch/csky/kernel/ptrace.c | 314

[PATCH V7 15/20] csky: Debug and Ptrace GDB

2018-10-04 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 66 arch/csky/kernel/ptrace.c | 314

[PATCH V7 16/20] csky: SMP support

2018-10-04 Thread Guo Ren
This patch adds boot, ipi, hotplug code for SMP. Changelog: - csky: remove irq_mapping from smp.c There are some feedbacks from irqchip, and we need to adjust "smp.c & smp.h" to match the csky_mp_timer modification. - Move IPI_IRQ define into drivers/irqchip/csky_mpintc.c, because it's a

linux-next: manual merge of the akpm-current tree with the btrfs-kdave tree

2018-10-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/swap.h between commit: 0f83d16b8f1f ("mm: split SWP_FILE into SWP_ACTIVATED and SWP_FS") from the btrfs-kdave tree and commit: 26833300651e ("mm, swap: fix race between swapoff and some swap

[PATCH V7 16/20] csky: SMP support

2018-10-04 Thread Guo Ren
This patch adds boot, ipi, hotplug code for SMP. Changelog: - csky: remove irq_mapping from smp.c There are some feedbacks from irqchip, and we need to adjust "smp.c & smp.h" to match the csky_mp_timer modification. - Move IPI_IRQ define into drivers/irqchip/csky_mpintc.c, because it's a

linux-next: manual merge of the akpm-current tree with the btrfs-kdave tree

2018-10-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/swap.h between commit: 0f83d16b8f1f ("mm: split SWP_FILE into SWP_ACTIVATED and SWP_FS") from the btrfs-kdave tree and commit: 26833300651e ("mm, swap: fix race between swapoff and some swap

[PATCH V7 14/20] csky: User access

2018-10-04 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create mode 100644

[PATCH V7 13/20] csky: Library functions

2018-10-04 Thread Guo Ren
This patch adds string optimize codes and some auxiliary code. Changelog: - Use bt instead of jbt in asm, jbt will cause relocation problem. - remove kernel/platform.c Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 12 ++

[PATCH V7 13/20] csky: Library functions

2018-10-04 Thread Guo Ren
This patch adds string optimize codes and some auxiliary code. Changelog: - Use bt instead of jbt in asm, jbt will cause relocation problem. - remove kernel/platform.c Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 12 ++

[PATCH V7 14/20] csky: User access

2018-10-04 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create mode 100644

[PATCH V7 09/20] csky: VDSO and rt_sigreturn

2018-10-04 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 23 +++ arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c| 86

[PATCH V7 09/20] csky: VDSO and rt_sigreturn

2018-10-04 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 23 +++ arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c| 86

[PATCH V7 11/20] csky: Atomic operations

2018-10-04 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. Changlog: - SMP supported - ticklock supported - queue-rwlock supported Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 212 + arch/csky/include/asm/cmpxchg.h| 73 +

[PATCH] writeback: fix range_cyclic writeback vs writepages deadlock

2018-10-04 Thread Dave Chinner
From: Dave Chinner We've recently seen a workload on XFS filesystems with a repeatable deadlock between background writeback and a multi-process application doing concurrent writes and fsyncs to a small range of a file. range_cyclic writeback Process 1 Process 2

[PATCH V7 11/20] csky: Atomic operations

2018-10-04 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. Changlog: - SMP supported - ticklock supported - queue-rwlock supported Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 212 + arch/csky/include/asm/cmpxchg.h| 73 +

[PATCH] writeback: fix range_cyclic writeback vs writepages deadlock

2018-10-04 Thread Dave Chinner
From: Dave Chinner We've recently seen a workload on XFS filesystems with a repeatable deadlock between background writeback and a multi-process application doing concurrent writes and fsyncs to a small range of a file. range_cyclic writeback Process 1 Process 2

[PATCH V7 04/20] csky: Exception handling and mm-fault

2018-10-04 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 323 arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 156

[PATCH V7 04/20] csky: Exception handling and mm-fault

2018-10-04 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 323 arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 156

[PATCH V7 07/20] csky: MMU and page table management

2018-10-04 Thread Guo Ren
This patch adds files related to memory management and here is our memory-layout: Fixmap : 0xffc02000 – 0xf000 (4 MB - 12KB) Pkmap: 0xff80 – 0xffc0 (4 MB) Vmalloc : 0xf020 – 0xff00 (238 MB) Lowmem : 0x8000 – 0xc000

[PATCH V7 08/20] csky: Process management and Signal

2018-10-04 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. Changelog: - abiv2/fpu.c: Userspace should never be sent NSIGXXX as a si_code. Use FPE_FLTUNK instead. - abiv2/fpu.c: Use force_sig_fault instead. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 275

[PATCH V7 01/20] csky: Build infrastructure

2018-10-04 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Changelog: - Add compat.h in asm/Kbuild. - Add select DMA_DIRECT_OPS in Kconfig. - remove kernel/platform.c in Makefile. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 205 +

[PATCH V7 07/20] csky: MMU and page table management

2018-10-04 Thread Guo Ren
This patch adds files related to memory management and here is our memory-layout: Fixmap : 0xffc02000 – 0xf000 (4 MB - 12KB) Pkmap: 0xff80 – 0xffc0 (4 MB) Vmalloc : 0xf020 – 0xff00 (238 MB) Lowmem : 0x8000 – 0xc000

[PATCH V7 08/20] csky: Process management and Signal

2018-10-04 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. Changelog: - abiv2/fpu.c: Userspace should never be sent NSIGXXX as a si_code. Use FPE_FLTUNK instead. - abiv2/fpu.c: Use force_sig_fault instead. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 275

[PATCH V7 01/20] csky: Build infrastructure

2018-10-04 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Changelog: - Add compat.h in asm/Kbuild. - Add select DMA_DIRECT_OPS in Kconfig. - remove kernel/platform.c in Makefile. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 205 +

[PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-04 Thread Guo Ren
This is the 7th version patchset to add the Linux kernel port for C-SKY(csky) based on linux-4.19-rc3. In this patchset some fixup patches are folded into original patch in order to make review clearly and reduce the patches' number for upstream patchset. The changelog is added in the every

[PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-04 Thread Guo Ren
This is the 7th version patchset to add the Linux kernel port for C-SKY(csky) based on linux-4.19-rc3. In this patchset some fixup patches are folded into original patch in order to make review clearly and reduce the patches' number for upstream patchset. The changelog is added in the every

[PATCH V7 05/20] csky: System Call

2018-10-04 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 71 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 43

[PATCH V7 06/20] csky: Cache and TLB routines

2018-10-04 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Changelog: - tlb.h & cacheflush.h: fix flush_cache_range and tlb_start_vma of abiv1 in flush_cache_range(vma, ...). cache_wbinv_range() couldn't deal with vma->mm's asid for cache_flush_line and we use cache_wbinv_all() first.

[PATCH V7 03/20] csky: Kernel booting

2018-10-04 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 77 + arch/csky/kernel/setup.c | 151 +

[PATCH V7 03/20] csky: Kernel booting

2018-10-04 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 77 + arch/csky/kernel/setup.c | 151 +

[PATCH V7 05/20] csky: System Call

2018-10-04 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 71 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 43

[PATCH V7 06/20] csky: Cache and TLB routines

2018-10-04 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Changelog: - tlb.h & cacheflush.h: fix flush_cache_range and tlb_start_vma of abiv1 in flush_cache_range(vma, ...). cache_wbinv_range() couldn't deal with vma->mm's asid for cache_flush_line and we use cache_wbinv_all() first.

[PATCH V7 02/20] csky: defconfig

2018-10-04 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky/configs/defconfig new

[PATCH V7 02/20] csky: defconfig

2018-10-04 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky/configs/defconfig new

linux-next: build warning after merge of the crypto tree

2018-10-04 Thread Stephen Rothwell
Hi Herbert, After merging the crypto tree, today's linux-next build (powerpc allyesconfig) produced this warning: drivers/crypto/cavium/nitrox/nitrox_debugfs.c: In function 'stats_show': drivers/crypto/cavium/nitrox/nitrox_debugfs.c:62:30: warning: format '%lld' expects argument of type 'long

linux-next: build warning after merge of the crypto tree

2018-10-04 Thread Stephen Rothwell
Hi Herbert, After merging the crypto tree, today's linux-next build (powerpc allyesconfig) produced this warning: drivers/crypto/cavium/nitrox/nitrox_debugfs.c: In function 'stats_show': drivers/crypto/cavium/nitrox/nitrox_debugfs.c:62:30: warning: format '%lld' expects argument of type 'long

Re: [PATCH 0/5] ti_am335x_tsc: Enable wakeup capability

2018-10-04 Thread Vignesh R
On Friday 28 September 2018 11:42 AM, Vignesh R wrote: > Hi Lee, > > On Wednesday 25 July 2018 10:56 AM, Lee Jones wrote: > [...] Vignesh R (5): mfd: ti_am335x_tscadc: Don't mark TSCADC MFD as wakeup capable Input: ti_am335x_tsc: Mark TSC device as wakeup

Re: [PATCH 0/5] ti_am335x_tsc: Enable wakeup capability

2018-10-04 Thread Vignesh R
On Friday 28 September 2018 11:42 AM, Vignesh R wrote: > Hi Lee, > > On Wednesday 25 July 2018 10:56 AM, Lee Jones wrote: > [...] Vignesh R (5): mfd: ti_am335x_tscadc: Don't mark TSCADC MFD as wakeup capable Input: ti_am335x_tsc: Mark TSC device as wakeup

[PATCH v2] HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

2018-10-04 Thread Kai-Heng Feng
Raydium touchpanel (2386:4B33) sometimes does not work in desktop session although it works in display manager. During user logging, the display manager exits, close the HID device, then the device gets runtime suspended and powered off. The desktop session begins shortly after, opens the HID

[PATCH v2] HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

2018-10-04 Thread Kai-Heng Feng
Raydium touchpanel (2386:4B33) sometimes does not work in desktop session although it works in display manager. During user logging, the display manager exits, close the HID device, then the device gets runtime suspended and powered off. The desktop session begins shortly after, opens the HID

[PATCH] traps:Recover undefined user instruction on ARM

2018-10-04 Thread Manjeet Pawar
From: Rohit Thapliyal During user undefined instruction exception, the arm exception handler currently results in application crash through SIGILL. The bad instruction can be due to ddr/hardware issue. For such cases, exception trap handler could try to recover the corrupted text by clearing

[PATCH] traps:Recover undefined user instruction on ARM

2018-10-04 Thread Manjeet Pawar
From: Rohit Thapliyal During user undefined instruction exception, the arm exception handler currently results in application crash through SIGILL. The bad instruction can be due to ddr/hardware issue. For such cases, exception trap handler could try to recover the corrupted text by clearing

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Finn Thain
On Thu, 4 Oct 2018, Leonardo Bras wrote: > ... > But, why these chosen Makefiles, and not all of them? I think that inconsistency is untenable. If nothing else, it means your changes will get broken by other people who also apply constraints inconsistently. I think you need to consider what

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Finn Thain
On Thu, 4 Oct 2018, Leonardo Bras wrote: > ... > But, why these chosen Makefiles, and not all of them? I think that inconsistency is untenable. If nothing else, it means your changes will get broken by other people who also apply constraints inconsistently. I think you need to consider what

Re: [PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:54:32PM -0700, Dmitry Torokhov wrote: > Large writes to uinput interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/misc/uinput.c | 1 + > 1 file

Re: [PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:54:32PM -0700, Dmitry Torokhov wrote: > Large writes to uinput interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/misc/uinput.c | 1 + > 1 file

Re: [PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:53:59PM -0700, Dmitry Torokhov wrote: > Large writes to evdev interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/evdev.c | 1 + > 1 file

Re: [PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:53:59PM -0700, Dmitry Torokhov wrote: > Large writes to evdev interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/evdev.c | 1 + > 1 file

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Paul E. McKenney
On Fri, Oct 05, 2018 at 02:40:02AM +0100, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > > > The synchronize_rcu() in namespace_unlock() is called every time > > a filesystem is unmounted. If a great many filesystems are mounted, > > this can cause a noticable

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Paul E. McKenney
On Fri, Oct 05, 2018 at 02:40:02AM +0100, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > > > The synchronize_rcu() in namespace_unlock() is called every time > > a filesystem is unmounted. If a great many filesystems are mounted, > > this can cause a noticable

[PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-04 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for

[PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-04 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for

[PATCH v2 3/3] infiniband/mm: convert to the new put_user_page[s]() calls

2018-10-04 Thread john . hubbard
From: John Hubbard For code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), instead of put_page(). This prepares for eventually fixing the problem described in [1], and is following a plan listed in [2], [3], [4]. [1] https://lwn.net/Articles/753027/

[PATCH v2 3/3] infiniband/mm: convert to the new put_user_page[s]() calls

2018-10-04 Thread john . hubbard
From: John Hubbard For code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), instead of put_page(). This prepares for eventually fixing the problem described in [1], and is following a plan listed in [2], [3], [4]. [1] https://lwn.net/Articles/753027/

[PATCH v2 1/3] mm: get_user_pages: consolidate error handling

2018-10-04 Thread john . hubbard
From: John Hubbard An upcoming patch requires a way to operate on each page that any of the get_user_pages_*() variants returns. In preparation for that, consolidate the error handling for __get_user_pages(). This provides a single location (the "out:" label) for operating on the collected set

[PATCH v2 0/3] get_user_pages*() and RDMA: first steps

2018-10-04 Thread john . hubbard
From: John Hubbard Changes since v1: -- Renamed release_user_pages*() to put_user_pages*(), from Jan's feedback. -- Removed the goldfish.c changes, and instead, only included a single user (infiniband) of the new functions. That is because goldfish.c no longer has a name collision (it

[PATCH v2 1/3] mm: get_user_pages: consolidate error handling

2018-10-04 Thread john . hubbard
From: John Hubbard An upcoming patch requires a way to operate on each page that any of the get_user_pages_*() variants returns. In preparation for that, consolidate the error handling for __get_user_pages(). This provides a single location (the "out:" label) for operating on the collected set

[PATCH v2 0/3] get_user_pages*() and RDMA: first steps

2018-10-04 Thread john . hubbard
From: John Hubbard Changes since v1: -- Renamed release_user_pages*() to put_user_pages*(), from Jan's feedback. -- Removed the goldfish.c changes, and instead, only included a single user (infiniband) of the new functions. That is because goldfish.c no longer has a name collision (it

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
On Fri, Oct 05 2018, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: >> >> The synchronize_rcu() in namespace_unlock() is called every time >> a filesystem is unmounted. If a great many filesystems are mounted, >> this can cause a noticable slow-down in, for example,

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
On Fri, Oct 05 2018, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: >> >> The synchronize_rcu() in namespace_unlock() is called every time >> a filesystem is unmounted. If a great many filesystems are mounted, >> this can cause a noticable slow-down in, for example,

Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable.

2018-10-04 Thread Leonardo Bras
Hello David, My name is Leonardo and I am new to kernel development. Is this patch acceptable? Do it need some rework? The change makes sense? Is there a way to better follow the workflow for this patch? Please let me know if it needs anything. Best regards, Leonardo Bras On Wed, Sep 19,

Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable.

2018-10-04 Thread Leonardo Bras
Hello David, My name is Leonardo and I am new to kernel development. Is this patch acceptable? Do it need some rework? The change makes sense? Is there a way to better follow the workflow for this patch? Please let me know if it needs anything. Best regards, Leonardo Bras On Wed, Sep 19,

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Leonardo Bras
> Well it's not really that persuasive. Most people simply let the build > run to completion, but if you have a problem with a job control 3h > timelimit, then create a job that kills itself at 2:59 and then > resubmits itself. That will produce a complete build in 3h chunks > without any need

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Leonardo Bras
> Well it's not really that persuasive. Most people simply let the build > run to completion, but if you have a problem with a job control 3h > timelimit, then create a job that kills itself at 2:59 and then > resubmits itself. That will produce a complete build in 3h chunks > without any need

[PATCH] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-04 Thread Douglas Anderson
This adds the Quad SPI controller to the main sdm845 device tree file. Boards will be expected to assign the proper pinctrl depending on how many chip selects they have hooked up and how many data lines. This depends on commit 48735597f7bd ("clk: qcom: Add qspi (Quad SPI) clock defines for sdm845

[PATCH] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-04 Thread Douglas Anderson
This adds the Quad SPI controller to the main sdm845 device tree file. Boards will be expected to assign the proper pinctrl depending on how many chip selects they have hooked up and how many data lines. This depends on commit 48735597f7bd ("clk: qcom: Add qspi (Quad SPI) clock defines for sdm845

[PATCH] power: supply: olpc_battery: correct the temperature units

2018-10-04 Thread Lubomir Rintel
According to [1] and [2], the temperature values are in tenths of degree Celsius. Exposing the Celsius value makes the battery appear on fire: $ upower -i /org/freedesktop/UPower/devices/battery_olpc_battery ... temperature: 236.9 degrees C Tested on OLPC XO-1 and OLPC XO-1.75

[PATCH] power: supply: olpc_battery: correct the temperature units

2018-10-04 Thread Lubomir Rintel
According to [1] and [2], the temperature values are in tenths of degree Celsius. Exposing the Celsius value makes the battery appear on fire: $ upower -i /org/freedesktop/UPower/devices/battery_olpc_battery ... temperature: 236.9 degrees C Tested on OLPC XO-1 and OLPC XO-1.75

[PATCH] MAINTAINERS: Add me to Android drivers

2018-10-04 Thread Joel Fernandes (Google)
I am one of the main engineers working on ashmem. I have been fixing bugs in the driver and have been involved in the memfd conversion discussions and sending patches about that. I also have an understanding of the binder driver and was involved with some of the development on finer grained

[PATCH] MAINTAINERS: Add me to Android drivers

2018-10-04 Thread Joel Fernandes (Google)
I am one of the main engineers working on ashmem. I have been fixing bugs in the driver and have been involved in the memfd conversion discussions and sending patches about that. I also have an understanding of the binder driver and was involved with some of the development on finer grained

Re: [PATCH] Allow hwrng to initialize crng.

2018-10-04 Thread Louis Collard
On Wed, Sep 26, 2018 at 6:35 PM Jarkko Sakkinen wrote: > > On Wed, Sep 26, 2018 at 11:24:55AM +0800, Louis Collard wrote: > > Some systems, for example embedded systems, do not generate > > enough entropy on boot through interrupts, and boot may be blocked for > > several minutes waiting for a

Re: [PATCH] Allow hwrng to initialize crng.

2018-10-04 Thread Louis Collard
On Wed, Sep 26, 2018 at 6:35 PM Jarkko Sakkinen wrote: > > On Wed, Sep 26, 2018 at 11:24:55AM +0800, Louis Collard wrote: > > Some systems, for example embedded systems, do not generate > > enough entropy on boot through interrupts, and boot may be blocked for > > several minutes waiting for a

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Al Viro
On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > The synchronize_rcu() in namespace_unlock() is called every time > a filesystem is unmounted. If a great many filesystems are mounted, > this can cause a noticable slow-down in, for example, system shutdown. > > The sequence: >

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Al Viro
On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > The synchronize_rcu() in namespace_unlock() is called every time > a filesystem is unmounted. If a great many filesystems are mounted, > this can cause a noticable slow-down in, for example, system shutdown. > > The sequence: >

linux-next: build failure after merge of the drm-msm tree

2018-10-04 Thread Stephen Rothwell
a2c3c0a54d4c ("drm/msm/a6xx: Add devfreq support for a6xx") I have used the drm-msm tree from next-20181004 for today. -- Cheers, Stephen Rothwell pgpTe4jFg2sAC.pgp Description: OpenPGP digital signature

linux-next: build failure after merge of the drm-msm tree

2018-10-04 Thread Stephen Rothwell
a2c3c0a54d4c ("drm/msm/a6xx: Add devfreq support for a6xx") I have used the drm-msm tree from next-20181004 for today. -- Cheers, Stephen Rothwell pgpTe4jFg2sAC.pgp Description: OpenPGP digital signature

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Guenter Roeck
On 10/04/2018 04:44 PM, Stephen Rothwell wrote: Hi Geert, On Thu, 4 Oct 2018 16:21:42 +0200 Geert Uytterhoeven wrote: On Thu, Oct 4, 2018 at 3:47 PM Guenter Roeck wrote: Time for a status report. Build results: total: 135 pass: 121 fail: 14 Failed builds:

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Guenter Roeck
On 10/04/2018 04:44 PM, Stephen Rothwell wrote: Hi Geert, On Thu, 4 Oct 2018 16:21:42 +0200 Geert Uytterhoeven wrote: On Thu, Oct 4, 2018 at 3:47 PM Guenter Roeck wrote: Time for a status report. Build results: total: 135 pass: 121 fail: 14 Failed builds:

[PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
The synchronize_rcu() in namespace_unlock() is called every time a filesystem is unmounted. If a great many filesystems are mounted, this can cause a noticable slow-down in, for example, system shutdown. The sequence: mkdir -p /tmp/Mtest/{0..5000} time for i in /tmp/Mtest/*; do mount -t

[PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
The synchronize_rcu() in namespace_unlock() is called every time a filesystem is unmounted. If a great many filesystems are mounted, this can cause a noticable slow-down in, for example, system shutdown. The sequence: mkdir -p /tmp/Mtest/{0..5000} time for i in /tmp/Mtest/*; do mount -t

[PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Dmitry Torokhov
Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/uinput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index

[PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Dmitry Torokhov
Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/uinput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index

[PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Dmitry Torokhov
Large writes to evdev interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 370206f987f9..f48369d6f3a0

[PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Dmitry Torokhov
Large writes to evdev interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 370206f987f9..f48369d6f3a0

Re: [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds MP3 playback support in q6asm dais, adding other codec > support should be pretty trivial. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/Kconfig | 1 + > sound/soc/qcom/qdsp6/q6asm-dai.c | 377

Re: [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds MP3 playback support in q6asm dais, adding other codec > support should be pretty trivial. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/Kconfig | 1 + > sound/soc/qcom/qdsp6/q6asm-dai.c | 377

Re: [PATCH v2 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds support to set runtime dma buffer on compressed stream. The change is fine as is, but I feel we need to document the motivation in the changelog. The core changes need a bit more explanation on why we should add this.. > >

Re: [PATCH v2 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds support to set runtime dma buffer on compressed stream. The change is fine as is, but I feel we need to document the motivation in the changelog. The core changes need a bit more explanation on why we should add this.. > >

Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-04 Thread Randy Dunlap
On 10/4/18 1:02 PM, Luis Chamberlain wrote: > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to one as well

Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-04 Thread Randy Dunlap
On 10/4/18 1:02 PM, Luis Chamberlain wrote: > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to one as well

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
nfs_dns_ent *' void call_rcu_sched(struct rcu_head *head, rcu_callback_t func); ~^~~~ Caused by commit fd497f1e40d9 ("NFS: Lockless DNS lookups") I have used the nfsd tree from next-20181004 for today. -- Cheers, Stephen Rothwell pgpkwXa

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
nfs_dns_ent *' void call_rcu_sched(struct rcu_head *head, rcu_callback_t func); ~^~~~ Caused by commit fd497f1e40d9 ("NFS: Lockless DNS lookups") I have used the nfsd tree from next-20181004 for today. -- Cheers, Stephen Rothwell pgpkwXa

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
Hi all, After merging the nfsd tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/sunrpc/xprtrdma/svc_rdma_backchannel.c: In function 'svc_rdma_handle_bc_reply': net/sunrpc/xprtrdma/svc_rdma_backchannel.c:67:21: error: 'struct rpc_xprt' has no member named

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
Hi all, After merging the nfsd tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/sunrpc/xprtrdma/svc_rdma_backchannel.c: In function 'svc_rdma_handle_bc_reply': net/sunrpc/xprtrdma/svc_rdma_backchannel.c:67:21: error: 'struct rpc_xprt' has no member named

  1   2   3   4   5   6   7   8   9   10   >