Re: [PATCH v1] DMA:omap-dma:Avoid build error by changing the function name

2017-12-17 Thread Peter Ujfalusi
On 2017-12-18 07:29, Vinod Koul wrote: > On Tue, Dec 12, 2017 at 12:58:41PM +0530, venkat.prashanth2...@gmail.com > wrote: >> From: Venkat Prashanth B U >> >> Change the name of the function omap_dma_filter_fn to avoid >> the following build error in linux

Re: [PATCH v1] DMA:omap-dma:Avoid build error by changing the function name

2017-12-17 Thread Peter Ujfalusi
On 2017-12-18 07:29, Vinod Koul wrote: > On Tue, Dec 12, 2017 at 12:58:41PM +0530, venkat.prashanth2...@gmail.com > wrote: >> From: Venkat Prashanth B U >> >> Change the name of the function omap_dma_filter_fn to avoid >> the following build error in linux kernel version 4.4 : >> >>

Re: [PATCH 4/5] arm: dts: sun8i: a83t: Add support for the ir interface

2017-12-17 Thread Maxime Ripard
On Sun, Dec 17, 2017 at 11:45:46PM +0100, Philipp Rossak wrote: > The ir interface is like on the H3 located at 0x01f02000 and is exactly > the same. This patch adds support for the ir interface on the A83T. > > Signed-off-by: Philipp Rossak > --- >

Re: [PATCH 4/5] arm: dts: sun8i: a83t: Add support for the ir interface

2017-12-17 Thread Maxime Ripard
On Sun, Dec 17, 2017 at 11:45:46PM +0100, Philipp Rossak wrote: > The ir interface is like on the H3 located at 0x01f02000 and is exactly > the same. This patch adds support for the ir interface on the A83T. > > Signed-off-by: Philipp Rossak > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 10

Re: block: oopses on 4.13.*, 4.14.* and 4.15-rc2 (bisected)

2017-12-17 Thread Ming Lei
On Sat, Dec 9, 2017 at 7:27 AM, Michele Ballabio wrote: > On Fri, 8 Dec 2017 13:08:37 -0700 > Jens Axboe wrote: > >> On 12/08/2017 08:38 AM, Michele Ballabio wrote: >> > Hi, >> > kernels 4.13.*, 4.14.* 4.15-rc2 crash on occasion, >> > especially on

Re: [PATCH 2/5] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-17 Thread Maxime Ripard
Hi, On Sun, Dec 17, 2017 at 11:45:44PM +0100, Philipp Rossak wrote: > This patch updates documentation for Device-Tree bindings for sunxi IR > controller and adds the new optional property for the base clock > frequency. > > Signed-off-by: Philipp Rossak > --- >

Re: block: oopses on 4.13.*, 4.14.* and 4.15-rc2 (bisected)

2017-12-17 Thread Ming Lei
On Sat, Dec 9, 2017 at 7:27 AM, Michele Ballabio wrote: > On Fri, 8 Dec 2017 13:08:37 -0700 > Jens Axboe wrote: > >> On 12/08/2017 08:38 AM, Michele Ballabio wrote: >> > Hi, >> > kernels 4.13.*, 4.14.* 4.15-rc2 crash on occasion, >> > especially on x86-32 systems. To trigger the problem, run

Re: [PATCH 2/5] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-17 Thread Maxime Ripard
Hi, On Sun, Dec 17, 2017 at 11:45:44PM +0100, Philipp Rossak wrote: > This patch updates documentation for Device-Tree bindings for sunxi IR > controller and adds the new optional property for the base clock > frequency. > > Signed-off-by: Philipp Rossak > --- >

Re: [PATCH -V3 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-17 Thread Huang, Ying
"Huang, Ying" writes: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This

Re: [PATCH -V3 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-17 Thread Huang, Ying
"Huang, Ying" writes: > From: Huang Ying > > When the swapin is performed, after getting the swap entry information > from the page table, system will swap in the swap entry, without any > lock held to prevent the swap device from being swapoff. This may > cause the race like below, > > CPU 1

Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support

2017-12-17 Thread Richard Leitner
Hi Rob, On 12/15/2017 11:17 PM, Rob Herring wrote: > On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: >> From: Richard Leitner >> >> Some PHYs need a minimum time after the reset gpio was asserted and/or >> deasserted. To ensure we meet these timing

Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support

2017-12-17 Thread Richard Leitner
Hi Rob, On 12/15/2017 11:17 PM, Rob Herring wrote: > On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: >> From: Richard Leitner >> >> Some PHYs need a minimum time after the reset gpio was asserted and/or >> deasserted. To ensure we meet these timing requirements add two new >>

Re: Detecting RWF_NOWAIT support

2017-12-17 Thread Avi Kivity
On 12/18/2017 05:28 AM, Goldwyn Rodrigues wrote: On 12/16/2017 08:49 AM, Avi Kivity wrote: On 12/14/2017 09:15 PM, Goldwyn Rodrigues wrote: On 12/14/2017 11:38 AM, Avi Kivity wrote: I'm looking to add support for RWF_NOWAIT within a linux-aio iocb. Naturally, I need to detect at runtime

Re: Detecting RWF_NOWAIT support

2017-12-17 Thread Avi Kivity
On 12/18/2017 05:28 AM, Goldwyn Rodrigues wrote: On 12/16/2017 08:49 AM, Avi Kivity wrote: On 12/14/2017 09:15 PM, Goldwyn Rodrigues wrote: On 12/14/2017 11:38 AM, Avi Kivity wrote: I'm looking to add support for RWF_NOWAIT within a linux-aio iocb. Naturally, I need to detect at runtime

Re: [PATCH V3 2/2] Xen/PCIback: Implement PCI flr/slot/bus reset with 'reset' SysFS attribute

2017-12-17 Thread Jan Beulich
>>> On 15.12.17 at 20:52, wrote: +static int pcistub_device_reset(struct pci_dev *dev) +{ + struct xen_pcibk_dev_data *dev_data; + bool slot = false, bus = false; + struct pcistub_args arg = {}; + + if (!dev) + return

Re: [PATCH V3 2/2] Xen/PCIback: Implement PCI flr/slot/bus reset with 'reset' SysFS attribute

2017-12-17 Thread Jan Beulich
>>> On 15.12.17 at 20:52, wrote: +static int pcistub_device_reset(struct pci_dev *dev) +{ + struct xen_pcibk_dev_data *dev_data; + bool slot = false, bus = false; + struct pcistub_args arg = {}; + + if (!dev) + return -EINVAL; + +

[PATCH -V3 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-17 Thread Huang, Ying
From: Huang Ying When the swapin is performed, after getting the swap entry information from the page table, system will swap in the swap entry, without any lock held to prevent the swap device from being swapoff. This may cause the race like below, CPU 1

[PATCH -V3 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-17 Thread Huang, Ying
From: Huang Ying When the swapin is performed, after getting the swap entry information from the page table, system will swap in the swap entry, without any lock held to prevent the swap device from being swapoff. This may cause the race like below, CPU 1 CPU 2 -

Re: [PATCH] media: v4l: xilinx: Use SPDX-License-Identifier

2017-12-17 Thread Michal Simek
Hi guys, On 15.12.2017 10:27, Mauro Carvalho Chehab wrote: > Em Fri, 15 Dec 2017 10:55:26 +0530 > Dhaval Shah escreveu: > >> Hi Laurent/Mauro/Greg, >> >> On Fri, Dec 15, 2017 at 3:32 AM, Laurent Pinchart >> wrote: >>> Hi Mauro, >>>

Re: [PATCH] media: v4l: xilinx: Use SPDX-License-Identifier

2017-12-17 Thread Michal Simek
Hi guys, On 15.12.2017 10:27, Mauro Carvalho Chehab wrote: > Em Fri, 15 Dec 2017 10:55:26 +0530 > Dhaval Shah escreveu: > >> Hi Laurent/Mauro/Greg, >> >> On Fri, Dec 15, 2017 at 3:32 AM, Laurent Pinchart >> wrote: >>> Hi Mauro, >>> >>> On Thursday, 14 December 2017 23:50:03 EET Mauro Carvalho

Re: [PATCH] trace: reenable preemption if we modify the ip

2017-12-17 Thread Masami Hiramatsu
On Fri, 15 Dec 2017 21:42:57 -0500 Josef Bacik wrote: > From: Josef Bacik > > Things got moved around between the original bpf_override_return patches > and the final version, and now the ftrace kprobe dispatcher assumes if > you modified the ip that you

Re: [PATCH] trace: reenable preemption if we modify the ip

2017-12-17 Thread Masami Hiramatsu
On Fri, 15 Dec 2017 21:42:57 -0500 Josef Bacik wrote: > From: Josef Bacik > > Things got moved around between the original bpf_override_return patches > and the final version, and now the ftrace kprobe dispatcher assumes if > you modified the ip that you also enabled preemption. Make a

[PATCH v4 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2017-12-17 Thread Greentime Hu
From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann ---

[PATCH 2/2] perf-probe: Skip searching debuginfo if we know no debuginfo

2017-12-17 Thread Masami Hiramatsu
Skip searching debuginfo if we have already searched and there is no debuginfo for given file. This also reduce debuginfo mismatch warnings for listing events on same binary. Signed-off-by: Masami Hiramatsu --- tools/perf/util/probe-finder.c | 16 +++- 1 file

[PATCH v4 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2017-12-17 Thread Greentime Hu
From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- include/asm-generic/io.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[PATCH 2/2] perf-probe: Skip searching debuginfo if we know no debuginfo

2017-12-17 Thread Masami Hiramatsu
Skip searching debuginfo if we have already searched and there is no debuginfo for given file. This also reduce debuginfo mismatch warnings for listing events on same binary. Signed-off-by: Masami Hiramatsu --- tools/perf/util/probe-finder.c | 16 +++- 1 file changed, 15

[PATCH 0/2] perf-probe: Improve warning message for buildid mismatch

2017-12-17 Thread Masami Hiramatsu
Hello, This series ensure the build-ids for target binary and debuginfo are matched. If there is a mismatch, it warns user to check the package versions. To reproduce the problematic environment (on Fedora26), I did following operations; = # rpm -q glibc glibc-debuginfo

[PATCH 0/2] perf-probe: Improve warning message for buildid mismatch

2017-12-17 Thread Masami Hiramatsu
Hello, This series ensure the build-ids for target binary and debuginfo are matched. If there is a mismatch, it warns user to check the package versions. To reproduce the problematic environment (on Fedora26), I did following operations; = # rpm -q glibc glibc-debuginfo

Re: [f2fs-dev] [PATCH 1/2] f2fs: pass down write hints to block layer for bufferd write

2017-12-17 Thread Hyunchul Lee
Hi Jaegeuk, Agreed. If Chao agrees with this policy, I will implement it. Thanks for the comment. On 12/15/2017 11:06 AM, Jaegeuk Kim wrote: > On 12/14, Hyunchul Lee wrote: >> Hi Jaegeuk, >> >> I need your comment about the fs_iohint mount option. >> >> a) w/o fs_iohint, propagate user hints to

[PATCH 1/2] perf-probe: Ensure debuginfo's build-id is correct

2017-12-17 Thread Masami Hiramatsu
Ensure that the build-id of debuginfo is correctly matched to target build-id, if not, it warns user to check the system debuginfo package is correctly installed. E.g. on such environment, you will see below warning. == # perf probe -l WARN: There is a build-id mismatch between

Re: [f2fs-dev] [PATCH 1/2] f2fs: pass down write hints to block layer for bufferd write

2017-12-17 Thread Hyunchul Lee
Hi Jaegeuk, Agreed. If Chao agrees with this policy, I will implement it. Thanks for the comment. On 12/15/2017 11:06 AM, Jaegeuk Kim wrote: > On 12/14, Hyunchul Lee wrote: >> Hi Jaegeuk, >> >> I need your comment about the fs_iohint mount option. >> >> a) w/o fs_iohint, propagate user hints to

[PATCH 1/2] perf-probe: Ensure debuginfo's build-id is correct

2017-12-17 Thread Masami Hiramatsu
Ensure that the build-id of debuginfo is correctly matched to target build-id, if not, it warns user to check the system debuginfo package is correctly installed. E.g. on such environment, you will see below warning. == # perf probe -l WARN: There is a build-id mismatch between

[PATCH v4 03/36] nds32: Assembly macros and definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39

[PATCH v4 03/36] nds32: Assembly macros and definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39 ++ arch/nds32/include/asm/bitfield.h | 963

[PATCH v4 05/36] nds32: Exception handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 +

[PATCH v4 05/36] nds32: Exception handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 + arch/nds32/kernel/ex-entry.S| 157 ++

[PATCH v4 07/36] nds32: MMU initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c

[PATCH v4 07/36] nds32: MMU initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c | 277 ++

[PATCH v4 09/36] nds32: Cache and TLB routines

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 +

[PATCH v4 09/36] nds32: Cache and TLB routines

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 + arch/nds32/include/asm/cache_info.h| 13 + arch/nds32/include/asm/cacheflush.h| 44 +++

[PATCH v4 11/36] nds32: IRQ handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36

[PATCH v4 11/36] nds32: IRQ handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36 arch/nds32/kernel/irq.c |9 + 2 files changed, 45

[PATCH v4 15/36] nds32: ELF definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h |

[PATCH v4 12/36] nds32: Atomic operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v4 13/36] nds32: Device specific operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++

[PATCH v4 15/36] nds32: ELF definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h | 179 ++

[PATCH v4 12/36] nds32: Atomic operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/barrier.h | 15 ++

[PATCH v4 13/36] nds32: Device specific operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++ arch/nds32/mm/ioremap.c | 62 2 files changed,

[PATCH v4 17/36] nds32: VDSO support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu

[PATCH v4 17/36] nds32: VDSO support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/vdso.h | 24 +++

[PATCH v4 21/36] nds32: L2 cache support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds L2 cache support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 142 + arch/nds32/kernel/atl2c.c

[PATCH v4 21/36] nds32: L2 cache support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds L2 cache support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 142 + arch/nds32/kernel/atl2c.c | 64 + 2 files changed, 206 insertions(+)

[PATCH v4 19/36] nds32: Library functions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35

[PATCH v4 19/36] nds32: Library functions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35 + arch/nds32/include/asm/uaccess.h | 283

[PATCH SERIES 5: 00/16] staging: lustre: use standard wait_event macros

2017-12-17 Thread NeilBrown
Lustre has l_wait_event() which is a complex macro that does similar things to the wait_event macro family in Linux. This patch series converts all l_wait_event to something more familiar to Linux developers. Some of the conversions are subtle. I think I've understood the code and got the

[PATCH SERIES 5: 00/16] staging: lustre: use standard wait_event macros

2017-12-17 Thread NeilBrown
Lustre has l_wait_event() which is a complex macro that does similar things to the wait_event macro family in Linux. This patch series converts all l_wait_event to something more familiar to Linux developers. Some of the conversions are subtle. I think I've understood the code and got the

[PATCH 16/16] staging: lustre: remove l_wait_event from ptlrpc_set_wait

2017-12-17 Thread NeilBrown
This is the last remaining use of l_wait_event(). It is the only use of LWI_TIMEOUT_INTR_ALL() which has a meaning that timeouts can be interrupted. Only interrupts by "fatal" signals are allowed, so introduce l_wait_event_abortable_timeout() to support this. Signed-off-by: NeilBrown

[PATCH 16/16] staging: lustre: remove l_wait_event from ptlrpc_set_wait

2017-12-17 Thread NeilBrown
This is the last remaining use of l_wait_event(). It is the only use of LWI_TIMEOUT_INTR_ALL() which has a meaning that timeouts can be interrupted. Only interrupts by "fatal" signals are allowed, so introduce l_wait_event_abortable_timeout() to support this. Signed-off-by: NeilBrown ---

[PATCH 14/16] staging: lustre: use explicit poll loop in ptlrpc_service_unlink_rqbd

2017-12-17 Thread NeilBrown
Rather an using l_wait_event(), use wait_event_timeout() with an explicit loop so it is easier to see what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/service.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff

[PATCH 14/16] staging: lustre: use explicit poll loop in ptlrpc_service_unlink_rqbd

2017-12-17 Thread NeilBrown
Rather an using l_wait_event(), use wait_event_timeout() with an explicit loop so it is easier to see what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/service.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH 15/16] staging: lustre: use explicit poll loop in ptlrpc_unregister_reply

2017-12-17 Thread NeilBrown
replace l_wait_event() with wait_event_timeout() and explicit loop. This approach is easier to understand. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 13/16] staging: lustre: improve waiting in sptlrpc_req_refresh_ctx

2017-12-17 Thread NeilBrown
Replace l_wait_event with wait_event_timeout() and call the handler function explicitly. This makes it more clear what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/sec.c | 23 +-- 1 file changed, 13 insertions(+), 10

[PATCH 15/16] staging: lustre: use explicit poll loop in ptlrpc_unregister_reply

2017-12-17 Thread NeilBrown
replace l_wait_event() with wait_event_timeout() and explicit loop. This approach is easier to understand. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 13/16] staging: lustre: improve waiting in sptlrpc_req_refresh_ctx

2017-12-17 Thread NeilBrown
Replace l_wait_event with wait_event_timeout() and call the handler function explicitly. This makes it more clear what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/sec.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff

[PATCH 06/16] staging: lustre: simplify l_wait_event when intr handler but no timeout.

2017-12-17 Thread NeilBrown
If l_wait_event() is given a function to be called on a signal, but no timeout or timeout handler, then the intr function is simply called at the end if the wait was aborted by a signal. So a simpler way to write the code (in the one place this case is used) it to open-code the body of the

[PATCH 11/16] staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious

2017-12-17 Thread NeilBrown
This use of l_wait_event() is a polling loop that re-checks every second. Make this more obvious with a while loop and wait_event_timeout(). Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/niobuf.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH 06/16] staging: lustre: simplify l_wait_event when intr handler but no timeout.

2017-12-17 Thread NeilBrown
If l_wait_event() is given a function to be called on a signal, but no timeout or timeout handler, then the intr function is simply called at the end if the wait was aborted by a signal. So a simpler way to write the code (in the one place this case is used) it to open-code the body of the

[PATCH 11/16] staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious

2017-12-17 Thread NeilBrown
This use of l_wait_event() is a polling loop that re-checks every second. Make this more obvious with a while loop and wait_event_timeout(). Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/niobuf.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH 12/16] staging: lustre: use wait_event_timeout in ptlrpcd()

2017-12-17 Thread NeilBrown
We can replace l_wait_event() with wait_event_noload_timeout() here providing we call the timeout function when wait_event_timeout() returns zero. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 12

[PATCH 08/16] staging: lustre: open code polling loop instead of using l_wait_event()

2017-12-17 Thread NeilBrown
Two places that LWI_TIMEOUT_INTERVAL() is used, the outcome is a simple polling loop that polls every second for some event (with a limit). So write a simple loop to make this more apparent. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/llite_lib.c | 11

[PATCH 10/16] staging: lustre: remove back_to_sleep() and use loops.

2017-12-17 Thread NeilBrown
When 'back_to_sleep()' is passed as the 'timeout' function, the effect is to wait indefinitely for the event, polling on the timeout in case we missed a wake_up. If LWI_ON_SIGNAL_NOOP is given, then also abort (at the timeout) if a "fatal" signal is pending. Make this more obvious is both places

[PATCH 09/16] staging: lustre: simplify waiting in ptlrpc_invalidate_import()

2017-12-17 Thread NeilBrown
This wait current wakes up every second to re-test if imp_flight is zero. If we ensure wakeup is called whenever imp_flight is decremented to zero, we can just have a simple wait_event_timeout(). So add a wake_up_all to the one place it is missing, and simplify the wait_event. Signed-off-by:

[PATCH 07/16] staging: lustre: simplify waiting in ldlm_completion_ast()

2017-12-17 Thread NeilBrown
If a signal-callback (lwi_on_signal) is set without lwi_allow_intr, as is the case in ldlm_completion_ast(), the behavior depends on the timeout set. If a timeout is set, then signals are ignored. If the timeout is reached, the timeout handler is called. If no timeout is set, then "fatal"

[PATCH 10/16] staging: lustre: remove back_to_sleep() and use loops.

2017-12-17 Thread NeilBrown
When 'back_to_sleep()' is passed as the 'timeout' function, the effect is to wait indefinitely for the event, polling on the timeout in case we missed a wake_up. If LWI_ON_SIGNAL_NOOP is given, then also abort (at the timeout) if a "fatal" signal is pending. Make this more obvious is both places

[PATCH 09/16] staging: lustre: simplify waiting in ptlrpc_invalidate_import()

2017-12-17 Thread NeilBrown
This wait current wakes up every second to re-test if imp_flight is zero. If we ensure wakeup is called whenever imp_flight is decremented to zero, we can just have a simple wait_event_timeout(). So add a wake_up_all to the one place it is missing, and simplify the wait_event. Signed-off-by:

[PATCH 07/16] staging: lustre: simplify waiting in ldlm_completion_ast()

2017-12-17 Thread NeilBrown
If a signal-callback (lwi_on_signal) is set without lwi_allow_intr, as is the case in ldlm_completion_ast(), the behavior depends on the timeout set. If a timeout is set, then signals are ignored. If the timeout is reached, the timeout handler is called. If no timeout is set, then "fatal"

[PATCH 12/16] staging: lustre: use wait_event_timeout in ptlrpcd()

2017-12-17 Thread NeilBrown
We can replace l_wait_event() with wait_event_noload_timeout() here providing we call the timeout function when wait_event_timeout() returns zero. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 12

[PATCH 08/16] staging: lustre: open code polling loop instead of using l_wait_event()

2017-12-17 Thread NeilBrown
Two places that LWI_TIMEOUT_INTERVAL() is used, the outcome is a simple polling loop that polls every second for some event (with a limit). So write a simple loop to make this more apparent. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/llite_lib.c | 11 +--

[PATCH 01/16] staging: lustre: discard SVC_SIGNAL and related functions

2017-12-17 Thread NeilBrown
This flag is never set, so remove checks and remove the flag. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_net.h |6 -- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c |4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff

[PATCH 05/16] staging: lustre: introduce and use l_wait_event_abortable()

2017-12-17 Thread NeilBrown
lustre sometimes wants to wait for an event, but abort if one of a specific list of signals arrives. This is a little bit like wait_event_killable(), except that the signals are identified a different way. So introduce l_wait_event_abortable() which provides this functionality. Having separate

[PATCH 01/16] staging: lustre: discard SVC_SIGNAL and related functions

2017-12-17 Thread NeilBrown
This flag is never set, so remove checks and remove the flag. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_net.h |6 -- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c |4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git

[PATCH 05/16] staging: lustre: introduce and use l_wait_event_abortable()

2017-12-17 Thread NeilBrown
lustre sometimes wants to wait for an event, but abort if one of a specific list of signals arrives. This is a little bit like wait_event_killable(), except that the signals are identified a different way. So introduce l_wait_event_abortable() which provides this functionality. Having separate

[PATCH 02/16] staging: lustre: replace simple cases of l_wait_event() with wait_event().

2017-12-17 Thread NeilBrown
When the lwi arg is full of zeros, l_wait_event() behaves almost identically to the standard wait_event() interface, so use that instead. The only difference in behavior is that l_wait_event() blocks all signals and uses an TASK_INTERRUPTIBLE wait, while wait_event() does not block signals, but

[PATCH 02/16] staging: lustre: replace simple cases of l_wait_event() with wait_event().

2017-12-17 Thread NeilBrown
When the lwi arg is full of zeros, l_wait_event() behaves almost identically to the standard wait_event() interface, so use that instead. The only difference in behavior is that l_wait_event() blocks all signals and uses an TASK_INTERRUPTIBLE wait, while wait_event() does not block signals, but

[PATCH 03/16] staging: lustre: discard cfs_time_seconds()

2017-12-17 Thread NeilBrown
cfs_time_seconds() converts a number of second to the matching number of jiffies. The standard way to do this in Linux is "* HZ". So discard cfs_time_seconds() and use "* HZ" instead. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_debug.h |4 ++--

[PATCH 04/16] staging: lustre: use wait_event_timeout() where appropriate.

2017-12-17 Thread NeilBrown
When the lwi arg has a timeout, but no timeout callback function, l_wait_event() acts much the same as wait_event_timeout() - the wait is not interruptible and simply waits for the event or the timeouts. The most noticable difference is that the return value is -ETIMEDOUT or 0, rather than 0 or

[PATCH v4 23/36] nds32: Generic timers support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1

[PATCH 03/16] staging: lustre: discard cfs_time_seconds()

2017-12-17 Thread NeilBrown
cfs_time_seconds() converts a number of second to the matching number of jiffies. The standard way to do this in Linux is "* HZ". So discard cfs_time_seconds() and use "* HZ" instead. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_debug.h |4 ++--

[PATCH 04/16] staging: lustre: use wait_event_timeout() where appropriate.

2017-12-17 Thread NeilBrown
When the lwi arg has a timeout, but no timeout callback function, l_wait_event() acts much the same as wait_event_timeout() - the wait is not interruptible and simply waits for the event or the timeouts. The most noticable difference is that the return value is -ETIMEDOUT or 0, rather than 0 or

[PATCH v4 23/36] nds32: Generic timers support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/nds32/kernel/time.c diff --git

[PATCH v4 24/36] nds32: Device tree support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 + arch/nds32/boot/dts/ae3xx.dts | 65

[PATCH v4 24/36] nds32: Device tree support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 + arch/nds32/boot/dts/ae3xx.dts | 65 + arch/nds32/kernel/devtree.c | 19

[PATCH v4 26/36] nds32: defconfig

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 108 ++ 1 file changed, 108

[PATCH v4 26/36] nds32: defconfig

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 108 ++ 1 file changed, 108 insertions(+) create mode 100644 arch/nds32/configs/defconfig diff --git

[PATCH v4 28/36] MAINTAINERS: Add nds32

2017-12-17 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@

[PATCH v4 28/36] MAINTAINERS: Add nds32

2017-12-17 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@ X: drivers/iio/*/adjd* F:

[PATCH v4 30/36] dt-bindings: nds32 SoC Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file

[PATCH v4 30/36] dt-bindings: nds32 SoC Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file changed, 40 insertions(+) create mode 100644

[PATCH v4 32/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9 Signed-off-by: Rick Chen Signed-off-by: Greentime

[PATCH v4 32/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9 Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Marc Zyngier ---

  1   2   3   4   5   6   7   8   9   >