RE: [PATCH 1/1] perf/core: fix implicitly enable dynamic interrupt throttle

2016-05-12 Thread Liang, Kan
> > > Hmm, would it not be nicer to simply reject the write instead of silently > ignoring it? > Yes, I agree. Thanks, Kan > --- > kernel/events/core.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/kernel/events/core.c b/kernel/events/core.c index > 050a290c72c7..0a51a568d

next: Crashes in x86 images due to 'locking/rwsem, x86: Clean up ____down_write()'

2016-05-12 Thread Guenter Roeck
Borislav, your patch 'locking/rwsem, x86: Clean up down_write()' causes various crashes in x86 qemu tests. BUG: unable to handle kernel paging request at 8015 IP: [] down_write+0x23/0x30 Call Trace: [] crypto_larval_kill+0x15/0x70 [] crypto_wait_for_test+0x46/0x70 [] crypto_register_

Re: linux-next: manual merge of the gpio tree with the mips tree

2016-05-12 Thread Linus Walleij
On Thu, May 12, 2016 at 6:17 AM, Stephen Rothwell wrote: > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Catalin Marinas
On Thu, May 12, 2016 at 03:20:00AM +0300, Yury Norov wrote: > I debugged preadv02 and pwritev02 failures and found very weird bug. > Test passes {iovec_base = 0x, iovec_len = 64} as one element > of vector, and kernel reports successful read/write. > > There are 2 problems: > 1. How kernel

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-05-12 Thread Yury Norov
On Thu, May 12, 2016 at 03:06:39PM +0200, Arnd Bergmann wrote: > On Thursday 12 May 2016 20:49:24 Zhangjian wrote: > > Hi, > > > > On 2016/5/12 17:21, Arnd Bergmann wrote: > > > On Thursday 12 May 2016 10:17:58 Catalin Marinas wrote: > > >> On Wed, May 11, 2016 at 09:30:07PM +0200, Arnd Bergmann w

Re: linux-next: build failure after merge of the pinctrl tree

2016-05-12 Thread Linus Walleij
Laxman, this must be due to one of the two top commits for tegra: commit 1d18a3f0f0809f6c71f1f6e9e268ee904ce0b588 "pinctrl: tegra: avoid parked_reg and parked_bank" commit b22ef2a0979f2b91cfeeabb086e4d665183a93a1 "pinctrl: tegra: Correctly check the supported configuration" Is it something you ca

Re: [PATCH] pinctrl: stm32: Implement .pin_config_dbg_show()

2016-05-12 Thread Linus Walleij
On Wed, May 11, 2016 at 3:40 PM, Patrice Chotard wrote: > On 05/10/2016 01:50 PM, Linus Walleij wrote: > Sorry i didn't pay attention, but there is a compilation warning in this > patch. > > drivers/pinctrl/stm32/pinctrl-stm32.c:823:7: warning: too many arguments for > format [-Wformat-extra-args

Re: [RFC 05/13] mm, page_alloc: make THP-specific decisions more generic

2016-05-12 Thread Michal Hocko
On Tue 10-05-16 09:35:55, Vlastimil Babka wrote: > Since THP allocations during page faults can be costly, extra decisions are > employed for them to avoid excessive reclaim and compaction, if the initial > compaction doesn't look promising. The detection has never been perfect as > there is no gfp

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Yury Norov
On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > On Thu, May 12, 2016 at 03:20:00AM +0300, Yury Norov wrote: > > I debugged preadv02 and pwritev02 failures and found very weird bug. > > Test passes {iovec_base = 0x, iovec_len = 64} as one element > > of vector, and kernel

Re: [PATCH v3 1/2] drm/fb-cma-helper: Add function drm_fb_cma_create_with_funcs()

2016-05-12 Thread Laurent Pinchart
Hi Noralf, Thank you for the patch. On Thursday 12 May 2016 14:53:25 Noralf Trønnes wrote: > Add drm_fb_cma_create_with_funcs() for drivers that need to set the > dirty() callback. > > Cc: laurent.pinch...@ideasonboard.com > Signed-off-by: Noralf Trønnes > --- > > Changes since v1: > - Expand

Re: [PATCH v2] tpm: Fix suspend regression

2016-05-12 Thread Jarkko Sakkinen
On Wed, May 11, 2016 at 11:28:27AM -0400, Stefan Berger wrote: > Fix the suspend regression due to the wrong way of retrieving the > chip structure. The suspend functions are attached to the hardware > device, not the chip and thus must rely on drvdata. > > Fixes: e89f8b1ade9cc1a ("tpm: Remove all

[PATCH v4] platform:x86: Add PMC Driver for Intel Core SOC

2016-05-12 Thread Rajneesh Bhardwaj
This patch adds the Power Management Controller driver as a pci driver for Intel Core SOC architecture. This driver can utilize debugging capabilities and supported features as exposed by the Power Management Controller. Please refer to the below specification for more details on PMC features. ht

Re: next: Crashes in x86 images due to 'locking/rwsem, x86: Clean up ____down_write()'

2016-05-12 Thread Borislav Petkov
On Thu, May 12, 2016 at 06:34:29AM -0700, Guenter Roeck wrote: > Borislav, > > your patch 'locking/rwsem, x86: Clean up down_write()' causes various > crashes in x86 qemu tests. Thanks for the report, let me take a look. @Ingo: can you please back this one out of the lineup for the merge win

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Jerome Glisse
On Thu, May 12, 2016 at 03:30:24PM +0200, Nicolas Morey-Chaisemartin wrote: > Le 05/12/2016 à 11:36 AM, Jerome Glisse a écrit : > > On Thu, May 12, 2016 at 08:07:59AM +0200, Nicolas Morey-Chaisemartin wrote: > >> > >> Le 05/11/2016 à 04:51 PM, Jerome Glisse a écrit : > >>> On Wed, May 11, 2016 at 0

[PATCH ] pinctrl: tegra: Get rid of parked_reg

2016-05-12 Thread Laxman Dewangan
Remove the use of parked_reg and use parked_bit for to know whether field is supported or not. This is fix for the patch commit 1d18a3f0f0809f6c71f1f6e9e268ee904ce0b588 "pinctrl: tegra: avoid parked_reg and parked_bank Signed-off-by: Laxman Dewangan --- drivers/pinctrl/tegra/pinctrl-tegra20.c |

Re: [PATCH 03/11] locking, rwsem: introduce basis for down_write_killable

2016-05-12 Thread Peter Zijlstra
On Thu, May 12, 2016 at 02:19:07PM +0200, Michal Hocko wrote: > On Thu 12-05-16 14:12:04, Peter Zijlstra wrote: > > On Wed, May 11, 2016 at 08:03:46PM +0200, Michal Hocko wrote: > > > I still cannot say I would understand why the pending > > > RWSEM_WAITING_BIAS matters but I would probably need to

Re: [PATCH v2] tpm: Fix suspend regression

2016-05-12 Thread Jarkko Sakkinen
On Thu, May 12, 2016 at 04:49:52PM +0300, Jarkko Sakkinen wrote: > On Wed, May 11, 2016 at 11:28:27AM -0400, Stefan Berger wrote: > > Fix the suspend regression due to the wrong way of retrieving the > > chip structure. The suspend functions are attached to the hardware > > device, not the chip and

Re: [PATCH V2 1/1] perf/core: don't find side-band event from all pmus

2016-05-12 Thread Peter Zijlstra
On Thu, May 12, 2016 at 01:30:36PM +, Liang, Kan wrote: > > > > --- > > Subject: perf/core: don't find side-band event from all pmus > > From: Kan Liang > > Date: Wed, 23 Mar 2016 11:24:37 -0700 > > > Hi Peter, > > Is there something wrong with the patch? > The last time I saw this patch w

[PATCH] ACPI / scan: force creation of platform device for the Surface tablets

2016-05-12 Thread Benjamin Tissoires
As mentioned in drivers/platform/x86/surfacepro3_button.c, the various Microsoft Surface tablets do not follow the ACPI SOC buttons specification. They present an I2C device like this: Device (WBUT) { Method (_HID, 0, NotSerialized) // _HID: Hardware ID { Return ("PNP0C4

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Catalin Marinas
On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > > On Thu, May 12, 2016 at 03:20:00AM +0300, Yury Norov wrote: > > > I debugged preadv02 and pwritev02 failures and found very weird bug. > > > Test passes {iovec_base = 0

Re: [PATCH v2] sched/completion: convert completions to use simple wait queues

2016-05-12 Thread Daniel Wagner
On 04/28/2016 02:57 PM, Daniel Wagner wrote: > As one can see above in the swait_stat output, the fork() path is > using completion. A histogram of a fork bomp (1000 forks) benchmark > shows a slight performance drop by 4%. > > [wagi@handman completion-test-5 (master)]$ cat forky-4.6.0-rc4.txt | p

[PATCH 1/2] HID: input: rework HID_QUIRK_MULTI_INPUT

2016-05-12 Thread Benjamin Tissoires
The purpose of HID_QUIRK_MULTI_INPUT is to have an input device per report id. This is useful when the HID device presents several HID collections of different device types. The current implementation of hid-input creates one input node per id per type (input or output). This is problematic for th

[PATCH 2/2] HID: multitouch: enable the Surface 3 Type Cover to report multitouch data

2016-05-12 Thread Benjamin Tissoires
There is no reasons to filter out keyboard and consumer control collections in hid-multitouch. With the previous hid-input fix, there is now a full support of the Type Cover and we can remove all specific bits from hid-core and hid-microsoft. hid-multitouch will automatically set HID_QUIRK_NO_INIT

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Catalin Marinas
On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > > On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > > > On Thu, May 12, 2016 at 03:20:00AM +0300, Yury Norov wrote: > > > > I debugged preadv02 and pwrit

Re: [PATCH] deb-pkg: add the shared header file for arm64

2016-05-12 Thread Michal Marek
On 2016-05-12 11:03, Huang Shijie wrote: > The arch/arm/include/asm/opcodes.h is also used by the arm64. > This patch copies it to the arm64 deb package. > > Signed-off-by: Huang Shijie > --- > scripts/package/builddeb | 6 ++ > 1 file changed, 6 insertions(+) Hi Huang, this is fixed (adm

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Yury Norov
On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > > On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > > > On Thu, May 12, 2016 at 03:20:00AM +0300, Yury Norov wrote: > > > > I debugged preadv02 and pwrit

URGENT RESPONSE NEEDED, PLEASE REPLY....

2016-05-12 Thread Mr. Ragner Henderson
Dear Friend, Pardon me for not having the pleasure of knowing your mindset before making you this offer and it is utterly confidential and genuine by virtue of its nature I write to solicit your assistance in a funds transfer deal involving £15.2M.This fund has been stashed out of the excess pr

[PATCH] arm64: Implement optimised IP checksum helpers

2016-05-12 Thread Robin Murphy
AArch64 is capable of 128-bit memory accesses without alignment restrictions, which makes it both possible and highly practical to slurp up a typical 20-byte IP header in just 2 loads. Implement our own version of ip_fast_checksum() to take advantage of that, resulting in considerably fewer instruc

Re: [PATCH] tools lib traceevent: Do not reassign parg after collapse_tree()

2016-05-12 Thread Arnaldo Carvalho de Melo
Em Thu, May 12, 2016 at 09:57:13PM +0900, Namhyung Kim escreveu: > Hi Steve, > > On Thu, May 12, 2016 at 4:09 AM, Steven Rostedt wrote: > > > > At the end of process_filter(), collapse_tree() was changed to update the > > parg parameter, but the reassignment after the call wasn't removed. > > Wha

Re: [PATCH] kvm-pr: manage illegal instructions

2016-05-12 Thread Laurent Vivier
On 12/05/2016 11:27, Alexander Graf wrote: > On 05/12/2016 11:10 AM, Laurent Vivier wrote: >> >> On 11/05/2016 13:49, Alexander Graf wrote: >>> On 05/11/2016 01:14 PM, Laurent Vivier wrote: On 11/05/2016 12:35, Alexander Graf wrote: > On 03/15/2016 09:18 PM, Laurent Vivier wrote: >>

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Yury Norov
On Thu, May 12, 2016 at 03:20:16PM +0100, Catalin Marinas wrote: > On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > > On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > > > On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > > > > On Thu, May 12, 2016 at

Re: [PATCH v3 1/2] drm/fb-cma-helper: Add function drm_fb_cma_create_with_funcs()

2016-05-12 Thread Noralf Trønnes
Den 12.05.2016 15:47, skrev Laurent Pinchart: Hi Noralf, Thank you for the patch. On Thursday 12 May 2016 14:53:25 Noralf Trønnes wrote: Add drm_fb_cma_create_with_funcs() for drivers that need to set the dirty() callback. Cc: laurent.pinch...@ideasonboard.com Signed-off-by: Noralf Trønnes

Re: next: Crashes in x86 images due to 'locking/rwsem, x86: Clean up ____down_write()'

2016-05-12 Thread Borislav Petkov
On Thu, May 12, 2016 at 03:51:31PM +0200, Borislav Petkov wrote: > On Thu, May 12, 2016 at 06:34:29AM -0700, Guenter Roeck wrote: > > Borislav, > > > > your patch 'locking/rwsem, x86: Clean up down_write()' causes various > > crashes in x86 qemu tests. > > Thanks for the report, let me take a

[PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes

2016-05-12 Thread patrice.chotard
From: Patrice Chotard Patrice Chotard (2): pinctrl: stm32: fix warning pinctrl: stm32: factorize stm32_pconf_input/output_get() drivers/pinctrl/stm32/pinctrl-stm32.c | 39 +-- 1 file changed, 14 insertions(+), 25 deletions(-) -- 1.9.1

[PATCH 2/2] pinctrl: stm32: factorize stm32_pconf_input/output_get()

2016-05-12 Thread patrice.chotard
From: Patrice Chotard As these 2 functions code are 95% similar, factorize them. Signed-off-by: Patrice Chotard --- drivers/pinctrl/stm32/pinctrl-stm32.c | 31 ++- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c

Re: [PATCH] pinctrl: stm32: Implement .pin_config_dbg_show()

2016-05-12 Thread Patrice Chotard
On 05/12/2016 03:40 PM, Linus Walleij wrote: On Wed, May 11, 2016 at 3:40 PM, Patrice Chotard wrote: On 05/10/2016 01:50 PM, Linus Walleij wrote: Sorry i didn't pay attention, but there is a compilation warning in this patch. drivers/pinctrl/stm32/pinctrl-stm32.c:823:7: warning: too many arg

[PATCH 1/2] pinctrl: stm32: fix warning

2016-05-12 Thread patrice.chotard
From: Patrice Chotard fix compilation warning : drivers/pinctrl/stm32/pinctrl-stm32.c:823:7: warning: too many arguments for format [-Wformat-extra-args] speeds[speed], "speed"); Signed-off-by: Patrice Chotard --- drivers/pinctrl/stm32/pinctrl-stm32.c | 8 1 file changed,

Re: [PATCH v12 06/10] arm64: Treat all entry code as non-kprobe-able

2016-05-12 Thread James Morse
Hi David, Pratyush On 27/04/16 19:53, David Long wrote: > From: Pratyush Anand > > Entry symbols are not kprobe safe. So blacklist them for kprobing. > > Signed-off-by: Pratyush Anand > diff --git a/arch/arm64/kernel/kprobes.c b/arch/arm64/kernel/kprobes.c > index dfa1b1f..6a1292b 100644 > --

Re: [PATCH 0/4] add minimal bcm2835-sdram driver

2016-05-12 Thread Stefan Wahren
Hi Martin, > ker...@martin.sperl.org hat am 12. Mai 2016 um 14:38 geschrieben: > > > From: Martin Sperl > > As the sdram clock is a critical clock to the system > the minimal bcm2835-sdram driver claims (and enables) > this clock and also exposes the corresponding sdram > registers via debugfs

[PATCH 1/3] dmaengine: at_xdmac: align descriptors on 64 bits

2016-05-12 Thread Ludovic Desroches
Having descriptors aligned on 64 bits allows update CNDA and CUBC in an atomic way. Signed-off-by: Ludovic Desroches Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Cc: sta...@vger.kernel.org #v4.1 and later --- drivers/dma/at_xdmac.c | 4 ++-- 1

[PATCH 2/3] dmaengine: at_xdmac: fix residue corruption

2016-05-12 Thread Ludovic Desroches
An unexpected value of CUBC can lead to a corrupted residue. A more complex sequence is needed to detect an inaccurate value for NCA or CUBC. Signed-off-by: Ludovic Desroches Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Cc: sta...@vger.kernel.o

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Catalin Marinas
On Thu, May 12, 2016 at 05:34:15PM +0300, Yury Norov wrote: > On Thu, May 12, 2016 at 03:20:16PM +0100, Catalin Marinas wrote: > > On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > > > On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > > > > On Thu, May 12, 2016 at 02:35

[PATCH 3/3] dmaengine: at_xdmac: double FIFO flush needed to compute residue

2016-05-12 Thread Ludovic Desroches
Due to the way CUBC register is updated, a double flush is needed to compute an accurate residue. First flush aim is to get data from the DMA FIFO and second one ensures that we won't report data which are not in memory. Signed-off-by: Ludovic Desroches Fixes: e1f7c9eee707 ("dmaengine: at_xdmac:

Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
On Wed, 11 May 2016 13:24:30 +0200 Michal Marek wrote: > On 2016-04-22 20:22, Emese Revfy wrote: > > diff --git a/Documentation/dontdiff b/Documentation/dontdiff > > index 8ea834f..5385cba 100644 > > --- a/Documentation/dontdiff > > +++ b/Documentation/dontdiff > > @@ -3,6 +3,7 @@ > > *.bc > >

Re: [PATCH 3/4] ARM: dts: bcm2835: add the bcm2835-sdram-controller to the dt

2016-05-12 Thread Stefan Wahren
Hi, > ker...@martin.sperl.org hat am 12. Mai 2016 um 14:38 geschrieben: > > > From: Martin Sperl > > Add the bcm2835 sdram controller to the device tree. > > Signed-off-by: Martin Sperl > --- > arch/arm/boot/dts/bcm283x.dtsi | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/ar

Aw: [PATCH 0/6] hv_netvsc: avoid races on mtu change/set channels

2016-05-12 Thread Lino Sanfilippo
Hi, > > MTU change and set channels operations are implemented as netvsc device > re-creation destroying internal structures (struct net_device stays). This > is really unfortunate but there is no support from Hyper-V host to do it > in a different way. Such re-creation is unsurprisingly racy, Hai

Re: [RFC 1/3] dt-bindings: drm/mediatek: Add display binding for Mediatek SoC MT2701

2016-05-12 Thread Yingjoe Chen
On Thu, 2016-05-12 at 19:49 +0800, yt.s...@mediatek.com wrote: > From: YT Shen > > Add device tree binding documentation for the display subsystem in > Mediatek SoC MT2701 > > Signed-off-by: YT Shen > --- > .../bindings/display/mediatek/mediatek,disp.txt|1 + > 1 file changed, 1 insert

Re: [PATCH] kernfs: kernfs_sop_show_path: don't return 0 after seq_dentry call

2016-05-12 Thread Tejun Heo
On Thu, May 12, 2016 at 12:29:45AM -0500, Serge E. Hallyn wrote: > Our caller expects 0 on success, not >0. > > This fixes a bug in the patch > > cgroup, kernfs: make mountinfo show properly scoped path for cgroup > namespaces > > where /sys does not show up in mountinfo, breaking criu. >

Re: [PATCH v12 05/10] arm64: Kprobes with single stepping support

2016-05-12 Thread James Morse
Hi David, Sandeepa, On 27/04/16 19:53, David Long wrote: > From: Sandeepa Prabhu > diff --git a/arch/arm64/kernel/kprobes.c b/arch/arm64/kernel/kprobes.c > new file mode 100644 > index 000..dfa1b1f > --- /dev/null > +++ b/arch/arm64/kernel/kprobes.c > @@ -0,0 +1,520 @@ > +/* > + * arch/arm64

Re: [PATCH] kernel: cgroup: fix compile warning:

2016-05-12 Thread Tejun Heo
On Thu, May 12, 2016 at 12:34:38PM +0300, Felipe Balbi wrote: > commit 4f41fc59620f ("cgroup, kernfs: make mountinfo > show properly scoped path for cgroup namespaces") > added the following compile warning: > > kernel/cgroup.c: In function ‘cgroup_show_path’: > kernel/cgroup.c:1634:15: warning:

Re: [PATCH v5 00/11] serial: 8250: split LPSS to 8250_lpss, enable DMA on Quark

2016-05-12 Thread Andy Shevchenko
On Fri, 2016-05-06 at 18:17 +0300, Andy Shevchenko wrote: > This is combined series of two things: > - split out the Intel LPSS specific driver from 8250_pci into > 8250_lpss > - enable DMA support on Intel Quark UART > > The patch has been tested on few Intel SoCs / platforms. In any case I > wou

Re: [PATCH v8 7/8] i2c: rk3x: add i2c support for rk3399 soc

2016-05-12 Thread David.Wu
Hi Doug, 在 2016/5/12 9:08, David.Wu 写道: Hi Doug, 在 2016/5/12 1:37, Doug Anderson 写道: Hi, On Tue, May 10, 2016 at 12:31 PM, David Wu wrote: static void rk3x_i2c_adapt_div(struct rk3x_i2c *i2c, unsigned long clk_rate) { struct i2c_timings *t = &i2c->t; struct rk3x_i2c_ca

[PATCH] Input - ntrig_spi: add new driver for the Surface 3

2016-05-12 Thread Benjamin Tissoires
This is a basic driver for the Surface 3. I am not so sure it will work with any firmwares as most values are encoded, but given that I only have access to my current device with its firmware and I don't have the datasheet, it should be OK for now. The Surface Pen is not supported (if it is suppos

Re: [PATCH v5] mm: Add memory allocation watchdog kernel thread.

2016-05-12 Thread Tetsuo Handa
Hillf Danton wrote: > > +struct memalloc_info { > > + /* > > +* 0: not doing __GFP_RECLAIM allocation. > > +* 1: doing non-recursive __GFP_RECLAIM allocation. > > +* 2: doing recursive __GFP_RECLAIM allocation. > > +*/ > > + u8 valid; > > + /* > > +* bit 0: Will be reporte

Re: Aw: [PATCH 0/6] hv_netvsc: avoid races on mtu change/set channels

2016-05-12 Thread Vitaly Kuznetsov
"Lino Sanfilippo" writes: > Hi, > >> >> MTU change and set channels operations are implemented as netvsc device >> re-creation destroying internal structures (struct net_device stays). This >> is really unfortunate but there is no support from Hyper-V host to do it >> in a different way. Such re-

Re: [PATCH] nbd: Move socket shutdown out of spinlock

2016-05-12 Thread Pranay Srivastava
On Thu, May 12, 2016 at 6:13 PM, Markus Pargmann wrote: > Hi, > > On Thursday 12 May 2016 16:42:31 Pranay Srivastava wrote: >> Hi Markus, >> >> >> On Thu, May 12, 2016 at 3:13 PM, Markus Pargmann wrote: >> > spinlocked ranges should be small and not contain calls into huge >> > subfunctions. Fix

Re: [PATCH] x86/arch_prctl/64: restore accidentally removed put_cpu in ARCH_SET_GS

2016-05-12 Thread Andy Lutomirski
On Tue, May 10, 2016 at 1:56 PM, Mateusz Guzik wrote: > This fixes 731e33e39a5b95ad770 "Remove FSBASE/GSBASE < 4G optimization" > > Signed-off-by: Mateusz Guzik > --- > arch/x86/kernel/process_64.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/kernel/process_64.c b/arch/x86/k

Re: [PATCH v4] platform:x86: Add PMC Driver for Intel Core SOC

2016-05-12 Thread Andy Shevchenko
On Thu, May 12, 2016 at 4:50 PM, Rajneesh Bhardwaj wrote: Sorry for a bit late review, but I think there are still issues need to be addressed. > This patch adds the Power Management Controller driver as a pci driver > for Intel Core SOC architecture. SOC -> SoC > > This driver can utilize deb

[GIT PULL] sound fixes for 4.6

2016-05-12 Thread Takashi Iwai
Linus, please pull sound fixes for v4.6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.6 The topmost commit is 84add303ef950b8d85f54bc2248c2bc73467c329 sound fixes for 4.6 This is a pretty bor

Re: [PATCH v4 18/18] make nbd device wait for its users in case of timeout

2016-05-12 Thread Pranay Srivastava
On Thu, May 12, 2016 at 2:49 PM, Markus Pargmann wrote: > Hi, > > On Wednesday 11 May 2016 11:18:46 Pranay Kr. Srivastava wrote: >> When a timeout occurs or a recv fails, then >> instead of abruplty killing nbd block device >> wait for it's users to finish. >> >> This is more required when filesys

[PATCH V4 0/9] Add support for Tegra210 AGIC

2016-05-12 Thread Jon Hunter
The Tegra210 has a 2nd level interrupt controller located in a separate power domain to the main GIC interrupt controller and hence requires runtime-pm support. Add a platform driver for the GICs that require runtime-pm and make the necessary changes to the genirq and irqdomain core to support IRQ

[PATCH V4 8/9] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-12 Thread Jon Hunter
The Tegra AGIC is an interrupt controller that is compatible with the ARM GIC-400, however, it is a 2nd level controller and requires runtime power-management because it is outside the main CPU complex. Ideally, the AGIC would use the existing "arm,gic-400" compatibility string, but because of the

[PATCH V4 3/9] irqdomain: Don't set type when mapping an IRQ

2016-05-12 Thread Jon Hunter
Some IRQ chips, such as GPIO controllers or secondary level interrupt controllers, may require require additional runtime power management control to ensure they are accessible. For such IRQ chips, it makes sense to enable the IRQ chip when interrupts are requested and disabled them again once all

[PATCH V4 4/9] genirq: Add runtime power management support for IRQ chips

2016-05-12 Thread Jon Hunter
Some IRQ chips may be located in a power domain outside of the CPU subsystem and hence will require device specific runtime power management. In order to support such IRQ chips, add a pointer for a device structure to the irq_chip structure, and if this pointer is populated by the IRQ chip driver a

[PATCH V4 5/9] irqchip/gic: Isolate early GIC initialisation code

2016-05-12 Thread Jon Hunter
To re-use the code that initialises the GIC (found in __gic_init_bases()), from within a platform driver, it is necessary to move the code from the __init section so that it is always present and not removed. Unfortunately, it is not possible to simply drop the __init from the function declaration

[PATCH V4 1/9] irqdomain: Fix handling of type settings for existing mappings

2016-05-12 Thread Jon Hunter
When mapping an IRQ, it is possible that a mapping for the IRQ already exists. If mapping does exist then there are the following issues with regard to the handling of the IRQ type settings ... 1. If the domain is part of a hierarchy, then: a. We do not check that the type settings for the exist

[PATCH V4 6/9] irqchip/gic: Add helper function for chip initialisation

2016-05-12 Thread Jon Hunter
For GICs that require runtime power-management it is necessary to populate the 'parent_device' member of the irqchip structure. In preparation for supporting such GICs, move the code that initialises the irqchip structure for a GIC into its own function called gic_init_chip() where the parent devic

[PATCH V4 9/9] irqchip/gic: Add platform driver for non-root GICs that require RPM

2016-05-12 Thread Jon Hunter
Add a platform driver to support non-root GICs that require runtime power-management. Currently, only non-root GICs are supported because the functions, smp_cross_call() and set_handle_irq(), that need to be called for a root controller are located in the __init section and so cannot be called by t

[PATCH V4 2/9] genirq: Look-up trigger type if not specified by caller

2016-05-12 Thread Jon Hunter
For some devices the IRQ trigger type for a device is read from firmware, such as device-tree. The IRQ trigger type is typically read when the mapping for IRQ is created, which is before the IRQ is requested. Hence, the IRQ trigger type is programmed when mapping the IRQ and not when requesting the

[PATCH V4 7/9] irqchip/gic: Prepare for adding platform driver

2016-05-12 Thread Jon Hunter
To support GICs that require runtime power management, it is necessary to add a platform driver, so that the probing of the chip can be deferred if resources, such as a power-domain, is not yet available. To prepare for adding a platform driver: 1. Drop the __init section from the gic_dist_config

Re: [PATCH BUGFIX V4] block: add missing group association in bio-cloning functions

2016-05-12 Thread Tejun Heo
On Wed, May 11, 2016 at 11:28:04AM +0200, Paolo Valente wrote: > When a bio is cloned, the newly created bio must be associated with > the same blkcg as the original bio (if BLK_CGROUP is enabled). If > this operation is not performed, then the new bio is not associated > with any group, and the gr

Re: [PATCH v6 13/14] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-05-12 Thread David Daney
On 05/12/2016 02:49 AM, Catalin Marinas wrote: On Wed, May 11, 2016 at 05:06:13PM -0700, David Daney wrote: On 05/11/2016 03:39 AM, Catalin Marinas wrote: [...] I wonder whether you could replace the get_mpidr_in_madt() function with something like acpi_get_phys_id(). It looks like get_mpidr_

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Catalin Marinas
On Thu, May 12, 2016 at 05:24:57PM +0300, Yury Norov wrote: > On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > > On Thu, May 12, 2016 at 04:44:31PM +0300, Yury Norov wrote: > > > On Thu, May 12, 2016 at 02:35:34PM +0100, Catalin Marinas wrote: > > > > On Thu, May 12, 2016 at 03:20

Re: [PATCH 0/4] add minimal bcm2835-sdram driver

2016-05-12 Thread Martin Sperl
> On 12.05.2016, at 16:50, Stefan Wahren wrote: > > Hi Martin, > >> ker...@martin.sperl.org hat am 12. Mai 2016 um 14:38 geschrieben: >> >> >> From: Martin Sperl >> >> As the sdram clock is a critical clock to the system >> the minimal bcm2835-sdram driver claims (and enables) >> this clock

Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64

2016-05-12 Thread Yury Norov
On Thu, May 12, 2016 at 03:54:03PM +0100, Catalin Marinas wrote: > On Thu, May 12, 2016 at 05:34:15PM +0300, Yury Norov wrote: > > On Thu, May 12, 2016 at 03:20:16PM +0100, Catalin Marinas wrote: > > > On Thu, May 12, 2016 at 03:07:35PM +0100, Catalin Marinas wrote: > > > > On Thu, May 12, 2016 at

Re: [PATCH v3 2/2] drm: Add helper for simple display pipeline

2016-05-12 Thread Daniel Vetter
On Thu, May 12, 2016 at 02:53:26PM +0200, Noralf Trønnes wrote: > +/** > + * struct drm_simple_display_pipe - simple display pipeline > + * @crtc: CRTC control structure > + * @plane: Plane control structure > + * @encoder: Encoder control structure > + * @connector: Connector control structure > +

Re: [PATCH] net: mvneta: bm: fix dependencies again

2016-05-12 Thread Gregory CLEMENT
Hi Arnd, On mer., mai 11 2016, Arnd Bergmann wrote: > I tried to fix this before, but my previous fix was incomplete > and we can still get the same link error in randconfig builds > because of the way that Kconfig treats the > > default y if MVNETA=y && MVNETA_BM_ENABLE > > line that do

[PATCH] powerpc: Discard ffs() function and use builtin_ffs instead

2016-05-12 Thread Christophe Leroy
With the ffs() function as defined in arch/powerpc/include/asm/bitops.h GCC will not optimise the code in case of constant parameter, as shown by the small exemple below. int ffs_test(void) { return 4 << ffs(31); } c0012334 : c0012334: 39 20 00 01 li r9,1 c0012338: 38

[PATCH v2] ASoC: MAX9860: new driver

2016-05-12 Thread Peter Rosin
This is a driver for the MAX9860 Mono Audio Voice Codec. https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf This driver does not support sidetone since the DVST register field is backwards with the mute near the maximum level instead of the minimum. Signed-off-by: Peter Rosin --- MAINTAI

Re: [PATCH] arm64: Implement optimised IP checksum helpers

2016-05-12 Thread Luke Starrett
Hi Robin, I pulled this in to a userspace test app expecting that the __uint128_t type might cause GCC to emit 'ldp'. Seems like that was that your intent based on your commit note. Instead I see two 64b loads (ldr Xn), and a single 32b load (ldr Wn) for the trailing 4B. This was with Lina

[PATCH 1/3] tty/serial: atmel: re-integrate status check in irq handler

2016-05-12 Thread Ludovic Desroches
From: Nicolas Ferre The IRQ status check and related actions was done in the tasklet without benefit. So, move it back to the IRQ context to simplify IRQ handling and having the possibility to split the tasklet in two separated ones for receive and transmit actions. Signed-off-by: Nicolas Ferre

[PATCH 2/3] tty/serial: atmel: split tx and rx paths

2016-05-12 Thread Ludovic Desroches
From: Nicolas Ferre Split TX and RX paths to not schedule RX tasklet on TX events and vice versa. Signed-off-by: Nicolas Ferre Signed-off-by: Ludovic Desroches --- drivers/tty/serial/atmel_serial.c | 53 +-- 1 file changed, 34 insertions(+), 19 deletions(-)

[PATCH 3/3] tty/serial: atmel: add comment for the ring buffer size macro

2016-05-12 Thread Ludovic Desroches
There is a macro named ATMEL_SERIAL_RINGSIZE which suggesting that it corresponds to the real size of the ring buffer. Let warn people that there is a factor of four since allocation size is sizeof(struct atmel_uart_char) * ATMEL_SERIAL_RINGSIZE. Signed-off-by: Ludovic Desroches --- drivers/tty/

[PATCHv8 06/32] mm: introduce do_set_pmd()

2016-05-12 Thread Kirill A. Shutemov
With postponed page table allocation we have chance to setup huge pages. do_set_pte() calls do_set_pmd() if following criteria met: - page is compound; - pmd entry in pmd_none(); - vma has suitable size and alignment; Signed-off-by: Kirill A. Shutemov --- include/linux/huge_mm.h | 2 ++ mm/

[PATCHv8 04/32] mm: postpone page table allocation until we have page to map

2016-05-12 Thread Kirill A. Shutemov
The idea (and most of code) is borrowed again: from Hugh's patchset on huge tmpfs[1]. Instead of allocation pte page table upfront, we postpone this until we have page to map in hands. This approach opens possibility to map the page as huge if filesystem supports this. Comparing to Hugh's patch I

[PATCHv8 07/32] thp, vmstats: add counters for huge file pages

2016-05-12 Thread Kirill A. Shutemov
THP_FILE_ALLOC: how many times huge page was allocated and put page cache. THP_FILE_MAPPED: how many times file huge page was mapped. Signed-off-by: Kirill A. Shutemov --- include/linux/vm_event_item.h | 7 +++ mm/memory.c | 1 + mm/vmstat.c | 2 ++ 3 fil

[PATCHv8 25/32] shmem, thp: respect MADV_{NO,}HUGEPAGE for file mappings

2016-05-12 Thread Kirill A. Shutemov
Let's wire up existing madvise() hugepage hints for file mappings. MADV_HUGEPAGE advise shmem to allocate huge page on page fault in the VMA. It only has effect if the filesystem is mounted with huge=advise or huge=within_size. MADV_NOHUGEPAGE prevents hugepage from being allocated on page fault

[PATCHv8 20/32] truncate: handle file thp

2016-05-12 Thread Kirill A. Shutemov
For shmem/tmpfs we only need to tweak truncate_inode_page() and invalidate_mapping_pages(). Signed-off-by: Kirill A. Shutemov --- mm/truncate.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/mm/truncate.c b/mm/truncate.c index b00272810871..4f931ca933

[PATCHv8 13/32] thp: run vma_adjust_trans_huge() outside i_mmap_rwsem

2016-05-12 Thread Kirill A. Shutemov
vma_addjust_trans_huge() splits pmd if it's crossing VMA boundary. During split we munlock the huge page which requires rmap walk. rmap wants to take the lock on its own. Let's move vma_adjust_trans_huge() outside i_mmap_rwsem to fix this. Signed-off-by: Kirill A. Shutemov --- mm/mmap.c | 4 ++-

[PATCHv8 22/32] shmem: prepare huge= mount option and sysfs knob

2016-05-12 Thread Kirill A. Shutemov
This patch adds new mount option "huge=". It can have following values: - "always": Attempt to allocate huge pages every time we need a new page; - "never": Do not allocate huge pages; - "within_size": Only allocate huge page if it will be fully within i_size.

[PATCHv8 02/32] mm: do not pass mm_struct into handle_mm_fault

2016-05-12 Thread Kirill A. Shutemov
We always have vma->vm_mm around. Signed-off-by: Kirill A. Shutemov --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 2 +- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/avr32/mm/fault.c | 2 +- arch/cris/mm/fault.c

[PATCHv8 10/32] thp: handle file COW faults

2016-05-12 Thread Kirill A. Shutemov
File COW for THP is handled on pte level: just split the pmd. It's not clear how benefitial would be allocation of huge pages on COW faults. And it would require some code to make them work. I think at some point we can consider teaching khugepaged to collapse pages in COW mappings, but allocatin

[PATCHv8 28/32] khugepaged: move up_read(mmap_sem) out of khugepaged_alloc_page()

2016-05-12 Thread Kirill A. Shutemov
Both variants of khugepaged_alloc_page() do up_read(&mm->mmap_sem) first: no point keep it inside the function. Signed-off-by: Kirill A. Shutemov --- mm/khugepaged.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c

[PATCHv8 01/32] thp, mlock: update unevictable-lru.txt

2016-05-12 Thread Kirill A. Shutemov
Add description of THP handling into unevictable-lru.txt. Signed-off-by: Kirill A. Shutemov --- Documentation/vm/unevictable-lru.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/vm/unevictable-lru.txt b/Documentation/vm/unevictable-lru.txt index fa3b5

[PATCHv8 29/32] shmem: make shmem_inode_info::lock irq-safe

2016-05-12 Thread Kirill A. Shutemov
We are going to need to call shmem_charge() under tree_lock to get accoutning right on collapse of small tmpfs pages into a huge one. The problem is that tree_lock is irq-safe and lockdep is not happy, that we take irq-unsafe lock under irq-safe[1]. Let's convert the lock to irq-safe. [1] https:

[PATCHv8 16/32] vmscan: split file huge pages before paging them out

2016-05-12 Thread Kirill A. Shutemov
This is preparation of vmscan for file huge pages. We cannot write out huge pages, so we need to split them on the way out. Signed-off-by: Kirill A. Shutemov --- mm/vmscan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index e9fe17c96ef8..df56f6a2dbfe 10064

[PATCHv8 15/32] thp, mlock: do not mlock PTE-mapped file huge pages

2016-05-12 Thread Kirill A. Shutemov
As with anon THP, we only mlock file huge pages if we can prove that the page is not mapped with PTE. This way we can avoid mlock leak into non-mlocked vma on split. We rely on PageDoubleMap() under lock_page() to check if the the page may be PTE mapped. PG_double_map is set by page_add_file_rmap(

[PATCHv8 30/32] khugepaged: add support of collapse for tmpfs/shmem pages

2016-05-12 Thread Kirill A. Shutemov
This patch extends khugepaged to support collapse of tmpfs/shmem pages. We share fair amount of infrastructure with anon-THP collapse. Few design points: - First we are looking for VMA which can be suitable for mapping huge page; - If the VMA maps shmem file, the rest scan/collapse opera

[PATCHv8 24/32] shmem: add huge pages support

2016-05-12 Thread Kirill A. Shutemov
Here's basic implementation of huge pages support for shmem/tmpfs. It's all pretty streight-forward: - shmem_getpage() allcoates huge page if it can and try to inserd into radix tree with shmem_add_to_page_cache(); - shmem_add_to_page_cache() puts the page onto radix-tree if there's

[PATCHv8 31/32] thp: introduce CONFIG_TRANSPARENT_HUGE_PAGECACHE

2016-05-12 Thread Kirill A. Shutemov
For file mappings, we don't deposit page tables on THP allocation because it's not strictly required to implement split_huge_pmd(): we can just clear pmd and let following page faults to reconstruct the page table. But Power makes use of deposited page table to address MMU quirk. Let's hide THP p

<    1   2   3   4   5   6   7   8   9   >