Re: [PATCH v3 1/5] powerpc/mm: Remove intermediate bitmap copy in 'slices'

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > bitmap_or() and bitmap_andnot() can work properly with dst identical > to src1 or src2. There is no need of an intermediate result bitmap > that is copied back to dst in a second step. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > v2: New

Re: [PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-28 Thread Yang, Shunyong
Hi, Vinod, On Mon, 2018-01-29 at 10:15 +0530, Vinod Koul wrote: > On Mon, Jan 22, 2018 at 03:28:28PM +0800, Yang Shunyong wrote: > > > > The type of arg passed to dmatest_callback is struct dmatest_done. > > It refers to test_done in struct dmatest_thread, not done_wait. > > > > Fixes: 6f6a23a21

Re: [PATCH 3/3] syscalls: Add a bit of documentation to __SYSCALL_DEFINE

2018-01-28 Thread Al Viro
On Sun, Jan 28, 2018 at 10:50:31PM +, Al Viro wrote: > On Sun, Jan 28, 2018 at 12:42:24PM -0800, Linus Torvalds wrote: > > > The 64-bit argument for 32-bit case would end up having to have a few > > more of those architecture-specific oddities. So not just > > "argument1(ptregs)", but "argumen

Re: Re: [PATCH 1/2] dmaengine: dmatest: change symbolic permissions to octal values

2018-01-28 Thread Yang, Shunyong
Hi, Vinod On Mon, 2018-01-29 at 10:18 +0530, Vinod Koul wrote: > On Mon, Jan 22, 2018 at 06:44:40PM +0800, Yang Shunyong wrote: > > > > Current coding style prefers octal permissions values. This patch > > changes symbolic permissions to octal values. > Is this preference documented anywhere? >

Re: [PATCH v3 4/5] powerpc/mm: Allow up to 64 low slices

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > While the implementation of the "slices" address space allows > a significant amount of high slices, it limits the number of > low slices to 16 due to the use of a single u64 low_slices_psize > element in struct mm_context_t > > On the 8xx, the minimum slice size is the

Re: 答复: Re: [RFC PATCH V5 5/5] workqueue: introduce a way to setworkqueue's scheduler

2018-01-28 Thread Mike Galbraith
On Mon, 2018-01-29 at 13:50 +0800, wen.yan...@zte.com.cn wrote: > > > What happens when a new kworker needs to be spawned? > create_worker -> worker_attach_to_pool, in the function > worker_attach_to_pool,  we add this chunk: > > --- a/kernel/workqueue.c > +++ b/kernel/workqueue.c > @@ -1699,6 +1

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Lai Jiangshan
On Mon, Jan 29, 2018 at 12:41 PM, Mike Galbraith wrote: > On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote: >> I think adding priority boost to workqueue(flush_work()) is the best >> way to fix the problem. > > I disagree, priority boosting is needlessly invasive, takes control out > of user

Re: [RFC 04/10] x86/mm: Only flush indirect branches when switching into non dumpable process

2018-01-28 Thread Jon Masters
Hi Peter, David, all, First a quick note on David's earlier comment, about this optimization being still up for debate. The problem with this optimization as-is is that it doesn't protect userspace-to-userspace unless applications are rebuilt and we get the infrastructure to handle that (ELF, what

Re: [PATCH v1] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-01-28 Thread Naoya Horiguchi
My apology, I forgot to CC to the mailing lists. On Mon, Jan 29, 2018 at 03:28:03PM +0900, Naoya Horiguchi wrote: > Recently the following BUG was reported: > > Injecting memory failure for pfn 0x3c at process virtual address > 0x7fe3 > Memory failure: 0x3c: recovery acti

[PATCH v2] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-28 Thread Yang Shunyong
The type of arg passed to dmatest_callback is struct dmatest_done. It refers to test_done in struct dmatest_thread, not done_wait. Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...") Signed-off-by: Yang Shunyong Signed-off-by: Vinod Koul --- v2: change arg to done in container_of

Re: [PATCH] auxdisplay: charlcd: delete mdelay in long_sleep

2018-01-28 Thread Willy Tarreau
Hi, On Fri, Jan 26, 2018 at 11:19:15PM +0800, Jia-Ju Bai wrote: > The function long_sleep() calls mdelay() when in an interrupt handler. > But only charlcd_clear_display() and charlcd_init_display calls > long_sleep(), and my tool finds that the two functions > are never called in an interrupt h

Re: [GIT PULL tools] Linux kernel memory model

2018-01-28 Thread Ingo Molnar
hi Paul, * Paul E. McKenney wrote: > Hello, Ingo, > > This pull request contains a single commit that adds a memory model to > the tools directory. This memory model can (roughly speaking) be thought > of as an automated version of memory-barriers.txt. It is written in the > "cat" language,

Re: [PATCH net-next 05/12] ptr_ring: disallow lockless __ptr_ring_full

2018-01-28 Thread Jason Wang
On 2018年01月29日 12:41, Michael S. Tsirkin wrote: On Mon, Jan 29, 2018 at 11:36:09AM +0800, Jason Wang wrote: On 2018年01月26日 10:46, Michael S. Tsirkin wrote: On 2018年01月26日 07:36, Michael S. Tsirkin wrote: Similar to bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can overrun array

Re: [PATCH net-next 00/12] ptr_ring fixes

2018-01-28 Thread Jason Wang
On 2018年01月26日 07:36, Michael S. Tsirkin wrote: This fixes a bunch of issues around ptr_ring use in net core. One of these: "tap: fix use-after-free" is also needed on net, but can't be backported cleanly. I will post a net patch separately. Lightly tested - Jason, could you pls confirm this

Re: [PATCH 1/2] tools lib symbol: Use strtoul instead of hex2u64 in kallsyms__parse

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 07:27:06PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 7:22 PM, Andy Shevchenko > wrote: > > On Fri, Jan 19, 2018 at 6:11 PM, Jiri Olsa wrote: > >> Current kallsyms__parse uses hex2u64, which gives > >> no indication of error. Using strtoul to checkup > >> on f

Re: [PATCH v3 char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2018-01-28 Thread Greg KH
On Sun, Jan 28, 2018 at 09:06:48PM +, Michael Kelley (EOSG) wrote: > From: Michael Kelley > > The 2016 version of Hyper-V offers the option to operate the guest VM > per-vcpu stimer's in Direct Mode, which means the timer interupts on its > own vector rather than queueing a VMbus message. Dir

RE: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-28 Thread 李書帆
Hi Guenter, We try to use the TCPCI driver on RT1711H and here are some questions. Q1. Is current TCPCI driver written according to TypeC Port Controller Interface Specification Revision 1.0 & Version 1.2? Q2. Because 0x80~0xFF are vendor defined registers. Some of them are needed to be i

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-28 Thread Florian Westphal
Tetsuo Handa wrote: > syzbot wrote: > > syzbot hit the following crash on net-next commit > > 6bb46bc57c8e9ce947cc605e555b7204b44d2b10 (Fri Jan 26 16:00:23 2018 +) > > Merge branch 'cxgb4-fix-dump-collection-when-firmware-crashed' > > > > C reproducer is attached. > > syzkaller reproducer is

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Mike Galbraith
On Mon, 2018-01-29 at 14:33 +0800, Lai Jiangshan wrote: > On Mon, Jan 29, 2018 at 12:41 PM, Mike Galbraith wrote: > > On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote: > >> I think adding priority boost to workqueue(flush_work()) is the best > >> way to fix the problem. > > > > I disagree, p

Re: [PATCH 1/3] Partial revert "e1000e: Avoid receiver overrun interrupt bursts"

2018-01-28 Thread Benjamin Poirier
On 2018/01/26 08:50, Alexander Duyck wrote: > On Fri, Jan 26, 2018 at 1:12 AM, Benjamin Poirier wrote: > > This reverts commit 4aea7a5c5e940c1723add439f4088844cd26196d. > > > > We keep the fix for the first part of the problem (1) described in the log > > of that commit however we use the implemen

Re: [PATCH v3 1/2] perf stat: Add support to print counts for fixed times

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 10:06:56AM +0100, ufo19890607 wrote: SNIP > --- a/tools/perf/builtin-stat.c > +++ b/tools/perf/builtin-stat.c > @@ -168,6 +168,7 @@ static struct timespecref_time; > static struct cpu_map*aggr_map; > static aggr_get_id_t aggr_get_id; >

Re: [PATCH v3 1/2] perf stat: Add support to print counts for fixed times

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 10:06:56AM +0100, ufo19890607 wrote: SNIP > @@ -1891,6 +1902,8 @@ static const struct option stat_options[] = { > "command to run after to the measured command"), > OPT_UINTEGER('I', "interval-print", &stat_config.interval, > "

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Code Kipper
On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: > On Wed, Jan 24, 2018 at 10:10 PM, wrote: >> From: Marcus Cooper >> >> Some codecs require a different amount of a bit clocks per frame than >> what is calculated by the sample width. Use the tdm slot bindings to >> provide this mechanism. >> >>

Re: [PATCH v2] of: use hash based search in of_find_node_by_phandle

2018-01-28 Thread Chintan Pandya
I was curious, so I implemented it. It ends up being similar to Rasmus's 1st suggestion. The difference is we don't try to store all entries, but rather implement a hash table that doesn't handle collisions. Relying on the fact that phandles are just linearly allocated from 0, we just mask the h

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Chen-Yu Tsai
On Mon, Jan 29, 2018 at 3:34 PM, Code Kipper wrote: > On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: >> On Wed, Jan 24, 2018 at 10:10 PM, wrote: >>> From: Marcus Cooper >>> >>> Some codecs require a different amount of a bit clocks per frame than >>> what is calculated by the sample width. U

Re: [PATCH 3/3] Revert "e1000e: Do not read ICR in Other interrupt"

2018-01-28 Thread Benjamin Poirier
On 2018/01/26 13:01, Alexander Duyck wrote: > On Fri, Jan 26, 2018 at 1:12 AM, Benjamin Poirier wrote: > > This reverts commit 16ecba59bc333d6282ee057fb02339f77a880beb. > > > > It was reported that emulated e1000e devices in vmware esxi 6.5 Build > > 7526125 do not link up after commit 4aea7a5c5e9

Re: [f2fs-dev] [PATCH 1/3] f2fs: support passing down write hints given by users to block layer

2018-01-28 Thread Chao Yu
On 2018/1/29 9:49, Hyunchul Lee wrote: > > On 01/26/2018 11:10 AM, Chao Yu wrote: >> On 2018/1/26 7:46, Hyunchul Lee wrote: >>> On 01/25/2018 05:01 PM, Chao Yu wrote: Hi Hyunchul, On 2018/1/25 10:47, Hyunchul Lee wrote: > Hi Chao, > > On 01/25/2018 12:32 AM, Chao Yu wrot

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Code Kipper
On 29 January 2018 at 08:38, Chen-Yu Tsai wrote: > On Mon, Jan 29, 2018 at 3:34 PM, Code Kipper wrote: >> On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: >>> On Wed, Jan 24, 2018 at 10:10 PM, wrote: From: Marcus Cooper Some codecs require a different amount of a bit clocks per

<    1   2   3   4   5   6