Re: [PATCH] mm: memcontrol: provide shmem statistics

2017-02-22 Thread Michal Hocko
On Tue 21-02-17 11:43:43, Johannes Weiner wrote: > Cgroups currently don't report how much shmem they use, which can be > useful data to have, in particular since shmem is included in the > cache/file item while being reclaimed like anonymous memory. > > Add a counter to track shmem pages during

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-22 Thread Valentin Rothberg
On Feb 21 '17 09:22, Joe Perches wrote: > On Wed, 2017-02-22 at 00:31 +0800, Cheah Kok Cheong wrote: > > > Another option could be using the typedefs from include/linux/types.h, > > > e.g. ushort. However, this might require changing other declarations as > > > well to keep consistency. > > > >

Re: [PATCH] mm/page_alloc: return 0 in case this node has no page within the zone

2017-02-22 Thread Michal Hocko
On Thu 09-02-17 21:59:29, Wei Yang wrote: > On Tue, Feb 07, 2017 at 04:41:21PM +0100, Michal Hocko wrote: > >On Tue 07-02-17 23:32:47, Wei Yang wrote: > >> On Tue, Feb 07, 2017 at 10:45:57AM +0100, Michal Hocko wrote: > >[...] > >> >Is there any reason why for_each_mem_pfn_range cannot be changed

Re: [RFC 1/3] procfs: fdinfo -- Extend information about epoll target files

2017-02-22 Thread Cyrill Gorcunov
On Wed, Feb 22, 2017 at 11:09:23AM +0300, Pavel Emelyanov wrote: > >> > >> Actually it shouldn't. If you extend the kcmp argument to accept the > >> epollfd:epollslot pair, this would be effectively the same as if you > >> had all your epoll-ed files injected into your fdtable with "strange" > >>

Re: [PATCHv2] rtc: cpcap: new rtc driver

2017-02-22 Thread Alexandre Belloni
On 22/02/2017 at 02:56:34 +0100, Sebastian Reichel wrote: > > Does this mean there is a race condition? > > The logic (incl. comments) in this section are from the vendor > kernel driver and there is no documentation for CPCAP as far as > I know. I don't know if the hardware has logic to prevent

[PATCH] PM / QOS: Remove the global notifiers

2017-02-22 Thread Viresh Kumar
They were never used in the kernel, not sure why they got merged into the kernel though. Get rid of them. Signed-off-by: Viresh Kumar --- Documentation/power/pm_qos_interface.txt | 13 + drivers/base/power/qos.c | 50

Re: Starting kvm/qemu guest crash kernel linux-next 0221 tree

2017-02-22 Thread Paolo Bonzini
On 22/02/2017 02:52, Xiong Zhou wrote: > Hi, > > Starting a guest begin to crash kernel on 0221 -next tree. > > It's fine on 0220 tree. Can you try commits a26d553400b30b6e0389f5c723c0fc6f7ea473da (0221) and b95234c840045b7c72380fd14c59416af28fcb02 (0220)? What is the guest and the QEMU

[PATCH v3 8/8] dt-bindings: phy-mt65xx-usb: add support for new version phy

2017-02-22 Thread Chunfeng Yun
add a new compatible string for "mt2712", and move reference clock into each port node; Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 93 +--- 1 file changed, 80 insertions(+), 13 deletions(-) diff --git

[PATCH v2 2/2] arm64: dts: hisilicon: add dts files for hi3798cv200-poplar board

2017-02-22 Thread Jiancheng Xue
Add basic dts files for hi3798cv200-poplar board. Poplar is the first development board compliant with the 96Boards Enterprise edition TV Platform specification. The board features the Hi3798CV200 with an integrated quad-core 64-bit ARM Cortex A53 processor and high performance Mali T720 GPU.

[PATCH v3 6/8] arm64: dts: mt8173: split usb SuperSpeed port into two ports

2017-02-22 Thread Chunfeng Yun
split the old SuperSpeed port node into a HighSpeed one and a new SuperSpeed one. Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

[PATCH v2 1/2] dt-bindings: arm: hisilicon: add bindings for hi3798cv200 SoC and Poplar board

2017-02-22 Thread Jiancheng Xue
Add bindings for HiSilicon hi3798cv200 SoC and Poplar Board. Signed-off-by: Jiancheng Xue --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git

Re: [HMM v17 00/14] HMM (Heterogeneous Memory Management) v17

2017-02-22 Thread Andrew Morton
On Wed, 22 Feb 2017 18:19:15 +1100 Balbir Singh wrote: > On Fri, Jan 27, 2017 at 05:52:07PM -0500, J__r__me Glisse wrote: > > Cliff note: HMM offers 2 things (each standing on its own). First > > it allows to use device memory transparently inside any process > > without

Hello beautiful

2017-02-22 Thread Jones
How you doing today? I hope you are doing well. My name is Wesley, from the US. I'm in Syria right now fighting ISIS. I want to get to know you better, if I may be so bold. I consider myself an easy-going man, and I am currently looking for a relationship in which I feel loved. Please tell me

Re: [HMM v17 00/14] HMM (Heterogeneous Memory Management) v17

2017-02-22 Thread Balbir Singh
On Wed, Feb 22, 2017 at 7:16 PM, Andrew Morton wrote: > On Wed, 22 Feb 2017 18:19:15 +1100 Balbir Singh wrote: > >> On Fri, Jan 27, 2017 at 05:52:07PM -0500, J__r__me Glisse wrote: >> > Cliff note: HMM offers 2 things (each standing on its own).

Re: [PATCH] backlight: report error on failure

2017-02-22 Thread Lee Jones
On Mon, 20 Feb 2017, Sudip Mukherjee wrote: > On Sun, Feb 19, 2017 at 08:26:18AM +, Daniel Thompson wrote: > > On Sat, Feb 18, 2017 at 04:31:43PM +, Sudip Mukherjee wrote: > > > On Monday 30 January 2017 11:04 PM, Sudip Mukherjee wrote: > > > > On Wednesday 18 January 2017 09:23 PM, Sudip

Re: [PATCH 1/2] drm/sti: remove unused variable

2017-02-22 Thread Benjamin Gaignard
2017-02-21 23:03 GMT+01:00 Arnd Bergmann : > One variable was left behind after its user got removed and we should now > delete the declaration as well: > > drivers/gpu/drm/sti/sti_vtg.c: In function 'vtg_probe': > drivers/gpu/drm/sti/sti_vtg.c:392:22: error: unused variable 'np' >

LED devices & poll() for brightness attribute

2017-02-22 Thread Pali Rohár
Hello, now in linus tree appeared new support for brightness_hw_changed sysfs attribute which provides poll() for reporting brightness changes from hardware itself. But this support is useful just for one single central userspace application which will control all leds in system other

[RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread Jia He
When I try to dynamically allocate the hugepages more than system total free memory: e.g. echo 4000 >/proc/sys/vm/nr_hugepages Then the kswapd will take 100% cpu for a long time(more than 3 hours, and will not be about to end) top result: top - 13:42:59 up 3:37, 1 user, load average: 1.09,

Re: [PATCH v2 1/3] fpga: Add flag to indicate bitstream needs decrypting

2017-02-22 Thread Michal Simek
On 22.2.2017 08:15, Greg Kroah-Hartman wrote: > On Tue, Feb 21, 2017 at 12:26:17PM -0600, Alan Tull wrote: >> On Tue, Feb 21, 2017 at 10:35 AM, Alan Tull >> >> Hi Greg, >> >> Would it be helpful for us to resend patches for you to take with you >> on cc? Or is it

Hello beautiful

2017-02-22 Thread Wesley
How you doing today? I hope you are doing well. My name is Wesley, from the US. I'm in Syria right now fighting ISIS. I want to get to know you better, if I may be so bold. I consider myself an easy-going man, and I am currently looking for a relationship in which I feel loved. Please tell me

[PATCH v3 7/8] arm64: dts: mt8173: move clock from phy node into port nodes

2017-02-22 Thread Chunfeng Yun
there is a reference clock for each port, HighSpeed port is 48M, and SuperSpeed port is 26M which usually comes from 26M oscillator directly, but some SoCs is not. it is flexible to move it into port node. Signed-off-by: Chunfeng Yun ---

[PATCH v3 5/8] phy: phy-mt65xx-usb3: add support for new version phy

2017-02-22 Thread Chunfeng Yun
There are some variations from mt2701 to mt2712: 1. banks shared by multiple ports are put back into each port, such as SPLLC and U2FREQ; 2. add a new bank MISC for u2port, and CHIP for u3port; 3. bank's offset in each port are also rearranged; Signed-off-by: Chunfeng Yun

[PATCH v3 3/8] phy: phy-mt65xx-usb3: split SuperSpeed port into two ones

2017-02-22 Thread Chunfeng Yun
Currently usb3 port in fact includes two sub-ports, but it is not flexible for some cases, such as following one: usb3 port0 includes u2port0 and u3port0; usb2 port0 includes u2port1; If wants to support only HS, we can use u2port0 or u2port1, when select u2port0, u3port0 is not needed; If

[PATCH v3 2/8] phy: phy-mt65xx-usb3: increase LFPS filter threshold

2017-02-22 Thread Chunfeng Yun
Increase LFPS filter threshold to avoid some fake remote wakeup signal which cause U3 link fail and link to U2 only at about 0.01% probability. Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c |9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v3 1/8] phy: phy-mt65xx-usb3: improve RX detection stable time

2017-02-22 Thread Chunfeng Yun
The default value of RX detection stable time is 10us, and this margin is too big for some critical cases which cause U3 link fail and link to U2(probability is about 1%). So change it to 5us. Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c | 18

[PATCH v3 4/8] phy: phy-mt65xx-usb3: move clock from phy node into port nodes

2017-02-22 Thread Chunfeng Yun
the reference clock of HighSpeed port is 48M which comes from PLL; the reference clock of SuperSpeed port is 26M which usually comes from 26M oscillator directly, but some SoCs are not, add it for compatibility, and put them into port node for flexibility. Signed-off-by: Chunfeng Yun

Re: [RFC 1/3] procfs: fdinfo -- Extend information about epoll target files

2017-02-22 Thread Pavel Emelyanov
On 02/22/2017 11:18 AM, Cyrill Gorcunov wrote: > On Wed, Feb 22, 2017 at 11:09:23AM +0300, Pavel Emelyanov wrote: Actually it shouldn't. If you extend the kcmp argument to accept the epollfd:epollslot pair, this would be effectively the same as if you had all your epoll-ed

Re: [PATCH 1/3] Input: silead - Add OF device ID table

2017-02-22 Thread Hans de Goede
Hi, On 21-02-17 19:12, Javier Martinez Canillas wrote: The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS

Re: [PATCH v5 13/15] livepatch: change to a per-task consistency model

2017-02-22 Thread Miroslav Benes
On Tue, 21 Feb 2017, Josh Poimboeuf wrote: > On Fri, Feb 17, 2017 at 09:51:29AM +0100, Miroslav Benes wrote: > > On Thu, 16 Feb 2017, Josh Poimboeuf wrote: > > > What do you think about the following? I tried to put the logic in > > > klp_complete_transition(), so the module_put()'s would be in

Re: [tip:sched/core] sched/core: Add debugging code to catch missing update_rq_clock() calls

2017-02-22 Thread Wanpeng Li
2017-02-02 23:55 GMT+08:00 Peter Zijlstra : > On Tue, Jan 31, 2017 at 10:22:47AM -0700, Ross Zwisler wrote: >> On Tue, Jan 31, 2017 at 4:48 AM, Mike Galbraith wrote: >> > On Tue, 2017-01-31 at 16:30 +0530, Sachin Sant wrote: > > > Could some of you test this?

RE: [PATCH 0/9] QorIQ DPAA 1 updates

2017-02-22 Thread Madalin-Cristian Bucur
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, February 21, 2017 8:20 PM > > From: Madalin Bucur > Date: Tue, 21 Feb 2017 13:52:45 +0200 > > > This patch set introduces a series of fixes and features to the DPAA 1 > >

[PATCH v2 0/2] add dts files for hi3798cv200-Poplar board

2017-02-22 Thread Jiancheng Xue
This patch set mainly adds dts files for hi3798cv200-Poplar board. Jiancheng Xue (2): dt-bindings: arm: hisilicon: add bindings for hi3798cv200 SoC and Poplar board arm64: dts: hisilicon: add dts files for hi3798cv200-poplar board .../bindings/arm/hisilicon/hisilicon.txt | 4

Re: [RFC 1/3] procfs: fdinfo -- Extend information about epoll target files

2017-02-22 Thread Pavel Emelyanov
On 02/22/2017 10:54 AM, Cyrill Gorcunov wrote: > On Wed, Feb 22, 2017 at 10:44:07AM +0300, Pavel Emelyanov wrote: >> On 02/21/2017 10:16 PM, Cyrill Gorcunov wrote: >>> On Tue, Feb 21, 2017 at 10:41:12AM -0800, Andy Lutomirski wrote: > Thus lets add file position, inode and device number where

Re: [RFC 1/3] procfs: fdinfo -- Extend information about epoll target files

2017-02-22 Thread Cyrill Gorcunov
On Wed, Feb 22, 2017 at 11:29:23AM +0300, Pavel Emelyanov wrote: > On 02/22/2017 11:18 AM, Cyrill Gorcunov wrote: > > On Wed, Feb 22, 2017 at 11:09:23AM +0300, Pavel Emelyanov wrote: > > Actually it shouldn't. If you extend the kcmp argument to accept the > epollfd:epollslot pair,

Re: [PATCH] net/dccp: fix use after free in tw_timer_handler()

2017-02-22 Thread Andrey Ryabinin
On 02/21/2017 04:43 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Feb 21, 2017 at 02:27:40PM +0300, Andrey Ryabinin escreveu: >> DCCP doesn't purge timewait sockets on network namespace shutdown. >> So, after net namespace destroyed we could still have an active timer >> which will trigger use

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-22 Thread Michal Hocko
On Tue 21-02-17 18:39:17, Anshuman Khandual wrote: > On 02/17/2017 07:02 PM, Mel Gorman wrote: [...] > > Why can this not be expressed with cpusets and memory policies > > controlled by a combination of administrative steps for a privileged > > application and an application that is CDM aware? >

[PATCH 2/4] blk-mq: make lifetime consitent between q/ctx and its kobject

2017-02-22 Thread Ming Lei
Currently from kobject view, both q->mq_kobj and ctx->kobj can be released during one cycle of blk_mq_register_dev() and blk_mq_unregister_dev(). Actually, sw queue's lifetime is same with its request queue's, which is covered by request_queue->kobj. So we don't need to call kobject_put() for the

[PATCH 3/4] blk-mq: make lifetime consistent between hctx and its kobject

2017-02-22 Thread Ming Lei
This patch removes kobject_put() over hctx in __blk_mq_unregister_dev(), and trys to keep lifetime consistent between hctx and hctx's kobject. Now blk_mq_sysfs_register() and blk_mq_sysfs_unregister() become totally symmetrical, and kobject's refcounter drops to zero just when the hctx is freed.

[PATCH 4/4] blk-mq: free hctx->cpumask in release handler of hctx's kobject

2017-02-22 Thread Ming Lei
It is obviously that hctx->cpumask is per hctx, and both share same lifetime, so this patch moves freeing of hctx->cpumask into release handler of hctx's kobject. Signed-off-by: Ming Lei --- block/blk-mq-sysfs.c | 1 + block/blk-mq.c | 12 2 files

Re: [PATCH-SPEAKUP 2/2] remove unecessary initial allocation of vc

2017-02-22 Thread Samuel Thibault
Pranay Kr. Srivastava, on mer. 22 févr. 2017 12:50:27 +0530, wrote: > This patch removes the unnecessary allocation of > current foreground vc during initialization. > > This initialization is already handled in the loop > that follows it for all available virtual consoles. > > Also change the

Re: [PATCH] ALSA: emu10k1: Remove cast from memory allocation

2017-02-22 Thread Tobin C. Harding
On Wed, Feb 22, 2017 at 07:59:57AM +0100, Takashi Iwai wrote: > On Wed, 22 Feb 2017 07:47:16 +0100, > Tobin C. Harding wrote: > > > > Coccinelle emits multiple WARNING: casting value returned by memory > > allocation > > function to (u_int32_t __user *) is useless. > > > > Remove unnecessary

Re: [PATCH v9 1/2] Add OV5647 device tree documentation

2017-02-22 Thread Ramiro Oliveira
Hi Vladimir On 2/21/2017 10:37 PM, Vladimir Zapolskiy wrote: > Hi Sakari, > > On 02/21/2017 11:48 PM, Sakari Ailus wrote: >> Hi, Vladimir! >> >> How do you do? :-) > > deferring execution of boring tasks by doing code review :) > >> On Tue, Feb 21, 2017 at 10:48:09PM +0200, Vladimir Zapolskiy

Re: [PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Namhyung Kim
On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: > In the stdio interface, currently 'filename:linenr' infos > are confusedly printed in the intervals of assembly code. > So fix it. > > The cause was a 0.5% filter of if statement. After fixed, > additionally summary of

Re: [tpmdd-devel] [PATCH 1/2] tpm: Apply an adapterlimit for retransmission.

2017-02-22 Thread Enric Balletbo i Serra
Hi Andrew, Removing Bryan Freed from the loop as seems his email is not valid anymore. I already CC'ied Andrey which is doing the TPM bit in chromeos kernel. On 21/02/17 17:29, Andrew Lunn wrote: > On Tue, Feb 21, 2017 at 03:44:59PM +0100, Enric Balletbo i Serra wrote: >> From: Bryan Freed

Re: [PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Namhyung Kim
On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: > In the stdio interface, currently 'filename:linenr' infos > are confusedly printed in the intervals of assembly code. > So fix it. > > The cause was a 0.5% filter of if statement. After fixed, > additionally summary of

Re: [RFC 11/55] KVM: arm64: Emulate taking an exception to the guest hypervisor

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:07AM -0500, Jintack Lim wrote: > Emulate taking an exception to the guest hypervisor running in the > virtual EL2 as described in ARM ARM AArch64.TakeException(). I would rename the subject and change the description of this patch to talk about injecting exceptions

Re: [PATCH v3 09/25] openrisc: add optimized atomic operations

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 04:11:38AM +0900, Stafford Horne wrote: > +#define atomic_add_returnatomic_add_return > +#define atomic_sub_returnatomic_sub_return > +#define atomic_fetch_add atomic_fetch_add > +#define atomic_fetch_sub atomic_fetch_sub > +#define atomic_fetch_and

Re: [PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Namhyung Kim
On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: > The output of perf-annotate has a problem. > It is so confusing that the output is mixed with > both source code and assembly code. > IMHO, we need readable annotate view based on source code, > not mixed view. (not

Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread Michal Hocko
On Wed 22-02-17 17:04:48, Jia He wrote: > When I try to dynamically allocate the hugepages more than system total > free memory: > e.g. echo 4000 >/proc/sys/vm/nr_hugepages I assume that the command has terminated with less huge pages allocated than requested but > Node 3, zone DMA [...] >

Re: [RFC 18/55] KVM: arm64: Forward traps due to HCR_EL2.NV1 bit to the guest hypervisor

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:14AM -0500, Jintack Lim wrote: > Forward ELR_EL1, SPSR_EL1 and VBAR_EL1 traps to the guest hypervisor if > it has set the NV1 bit to the virtual HCR_EL2. The guest hypervisor > would set this NV1 bit to run a hypervisor in its VM (i.e. another level > of nested

Re: [PATCH v3 10/25] openrisc: add spinlock implementation

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 04:11:39AM +0900, Stafford Horne wrote: > +static inline void arch_spin_unlock(arch_spinlock_t *lock) > +{ > + smp_mb(); > + lock->tickets.owner++; > +} This is putting a lot of trust in the compiler, nothing is volatile so it can do horrible things.

Re: [RFC 17/55] KVM: arm64: Trap SPSR_EL1, ELR_EL1 and VBAR_EL1 in virtual EL2

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:13AM -0500, Jintack Lim wrote: > For the same reason we trap virtual memory register accesses in virtual > EL2, we need to trap SPSR_EL1, ELR_EL1 and VBAR_EL1 accesses. ARM v8.3 > introduces the HCR_EL2.NV1 bit to be able to trap on those register > accesses in EL1.

Re: [Outreachy kernel] [PATCH v2 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-22 Thread Julia Lawall
> @@ -117,7 +118,7 @@ static int alloc_dbr(u16 size) > return DBR_SIZE; /* out of memory */ > > for (i = 0; i < DBR_MAP_SIZE; i++) { > - u32 const blocks = (size + DBR_BLOCK_SIZE - 1) / DBR_BLOCK_SIZE; > + u32 const blocks = DIV_ROUND_UP(size,

Warning: You tried to send an email with blocked content

2017-02-22 Thread Service Desk
The UCL E-Mail Virus Protection System has been triggered by a message you sent. One or more of the original e-mail attachments have been removed and replaced with this message. * The attachment may have contained a virus or malware * The attachment may have an extension of a type unacceptable

[PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Taeung Song
The output of perf-annotate has a problem. It is so confusing that the output is mixed with both source code and assembly code. IMHO, we need readable annotate view based on source code, not mixed view. (not depending on 'objdump -S') And to do that, we can collect actual source code per

[PATCH 3/4] perf annotate: Change the method counting line numbers

2017-02-22 Thread Taeung Song
Currently line numbers are wrong due to just counting according to output of 'objdump -S' So remove needless local variables (line_nr, lineno) and get correct line numbers according to each address in symbol__get_source_line(). Cc: Namhyung Kim Cc: Jiri Olsa

​​Hallo Freund

2017-02-22 Thread Wang Jianlin
Hallo Freund Ich beabsichtige, Ihnen einen Teil meines Reichtums als freiwillige finanzielle Spende an Sie zu geben, Reagieren Sie, um teilzunehmen. Wang Jianlin Wanda Gruppe

Re: [PATCH-SPEAKUP 1/2] return same error value from spk_set_key_info

2017-02-22 Thread Samuel Thibault
Pranay Kr. Srivastava, on mer. 22 févr. 2017 12:50:26 +0530, wrote: > This patch makes spk_set_key_info return -EINVAL > in case of failure instead of returning 4 different > values for the type of error that occurred. > > Print the offending values instead as debug message. > > Signed-off-by:

linux-next build regressions, Re: next build: 208 builds: 2 failed, 206 passed, 39 warnings (next-20170222)

2017-02-22 Thread Arnd Bergmann
On Tuesday, February 21, 2017 10:22:48 PM CET kernelci. org bot wrote: > next build: 208 builds: 2 failed, 206 passed, 39 warnings (next-20170222) >From last week's 9, four patches got merged into linux-next, two new ones came in (drm/sti), three have pending patches and two are waiting

[PATCH] arc: get rate from clk driver instead of reading device tree

2017-02-22 Thread Vlad Zakharov
We were reading clock rate directly from device tree "clock-frequency" property of corresponding clock node in show_cpuinfo function. Such approach is correct only in case cpu is always clocked by "fixed-clock". If we use clock driver that allows rate to be changed this won't work as rate may

Re: [RFC 14/55] KVM: arm64: Take account of system instruction traps

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:10AM -0500, Jintack Lim wrote: > When HCR.NV bit is set, execution of the EL2 translation regime Address > Translation instructions and TLB maintenance instructions are trapped to > EL2. In addition, execution of the EL1 translation regime Address > Translation

Re: [PATCH] Add pidfs filesystem

2017-02-22 Thread Alexey Gladkov
On Tue, Feb 21, 2017 at 03:57:47PM +0100, Oleg Nesterov wrote: > On 02/18, Alexey Gladkov wrote: > > > > This patch allows to mount only the part of /proc related to pids > > without rest objects. Since this is an addon to /proc, flags applied to > > /proc have an effect on this pidfs filesystem.

[PATCH v2 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-22 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) +

[PATCH v8 2/3] MAINTAINERS: add zx2967 i2c controller driver to ARM ZTE architecture

2017-02-22 Thread Baoyou Xie
Add the zx2967 i2c controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e63063b..313fab5 100644

[PATCH v8 3/3] i2c: zx2967: add i2c controller driver for ZTE's zx2967 family

2017-02-22 Thread Baoyou Xie
This patch adds i2c controller driver for ZTE's zx2967 family. Signed-off-by: Baoyou Xie Reviewed-by: Shawn Guo Reviewed-by: Andy Shevchenko Reviewed-by: Jun Nie --- drivers/i2c/busses/Kconfig |

[PATCH v8 1/3] dt: bindings: add documentation for zx2967 family i2c controller

2017-02-22 Thread Baoyou Xie
This patch adds dt-binding documentation for zx2967 family i2c controller. Signed-off-by: Baoyou Xie Acked-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-zx2967.txt | 24 ++ 1 file changed, 24 insertions(+) create mode

Re: [PATCH 2/4] x86: convert threshold_bank.cpus from atomic_t to refcount_t

2017-02-22 Thread Borislav Petkov
On Tue, Feb 21, 2017 at 12:45:30PM -0800, Kees Cook wrote: > On Mon, Feb 20, 2017 at 3:17 AM, Borislav Petkov wrote: > > On Mon, Feb 20, 2017 at 01:06:19PM +0200, Elena Reshetova wrote: > >> refcount_t type and corresponding API should be > >> used instead of atomic_t when the

Re: [PATCH] net/dccp: fix use after free in tw_timer_handler()

2017-02-22 Thread Andrey Ryabinin
On 02/21/2017 09:24 PM, David Miller wrote: > From: David Miller > Date: Tue, 21 Feb 2017 13:23:51 -0500 (EST) > >> From: Andrey Ryabinin >> Date: Tue, 21 Feb 2017 14:27:40 +0300 >> >>> DCCP doesn't purge timewait sockets on network namespace

Re: [PATCH] mm/page_alloc: return 0 in case this node has no page within the zone

2017-02-22 Thread Wei Yang
On Wed, Feb 22, 2017 at 09:49:47AM +0100, Michal Hocko wrote: >On Thu 09-02-17 21:59:29, Wei Yang wrote: >> On Tue, Feb 07, 2017 at 04:41:21PM +0100, Michal Hocko wrote: >> >On Tue 07-02-17 23:32:47, Wei Yang wrote: >> >> On Tue, Feb 07, 2017 at 10:45:57AM +0100, Michal Hocko wrote: >> >[...] >>

Re: [PATCH v9 2/2] Add support for OV5647 sensor.

2017-02-22 Thread Ramiro Oliveira
Hi Zakari, On 2/21/2017 8:36 PM, Vladimir Zapolskiy wrote: > Hi Ramiro, > > On 02/21/2017 06:42 PM, Ramiro Oliveira wrote: >> Hi Vladimir, >> >> Thank you for your feedback >> >> On 2/21/2017 3:54 PM, Vladimir Zapolskiy wrote: >>> Hi Ramiro, >>> >>> please find some review comments below. >>>

Re: [PATCH 0/6] second round of tracepoints for DAX

2017-02-22 Thread Jan Kara
On Tue 21-02-17 12:51:10, Ross Zwisler wrote: > This second round of DAX tracepoint patches adds tracing to the PTE fault > path (dax_iomap_pte_fault(), dax_pfn_mkwrite(), dax_load_hole(), > dax_insert_mapping()) and to the writeback path > (dax_writeback_mapping_range(), dax_writeback_one()). >

Re: [PATCH/RFC 0/6] PSCI: Fix non-PMIC wake-up if SYSTEM_SUSPEND cuts power

2017-02-22 Thread Sudeep Holla
On 22/02/17 01:14, Rafael J. Wysocki wrote: > On Tuesday, February 21, 2017 06:45:13 PM Sudeep Holla wrote: [...] >> >> I take this back, you have everything you need in place, nothing needs >> to be done. I just checked again. If I don't register PSCI suspend_ops, >> I still get mem in

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2017-02-22 Thread Peter Zijlstra
On Tue, Dec 13, 2016 at 05:07:14PM +0100, Peter Zijlstra wrote: > On Tue, Dec 13, 2016 at 09:36:38AM +0100, Peter Zijlstra wrote: > > > The basic idea is to, like requeue PI, break the rt_mutex_lock() function > > into > > pieces, such that we can enqueue the waiter while holding hb->lock, wait

RE: [PATCH 3/7] fs, xfs: convert xfs_buf_log_item.bli_refcount from atomic_t to refcount_t

2017-02-22 Thread Reshetova, Elena
> On Tue, Feb 21, 2017 at 09:06:20AM -0800, Darrick J. Wong wrote: > > On Tue, Feb 21, 2017 at 04:06:30PM +, Reshetova, Elena wrote: > > > > On Tue, Feb 21, 2017 at 05:49:03PM +0200, Elena Reshetova wrote: > > > > > refcount_t type and corresponding API should be > > > > > used instead of

Re: [PATCH v9 2/2] Add support for OV5647 sensor.

2017-02-22 Thread Vladimir Zapolskiy
On 02/22/2017 12:51 PM, Ramiro Oliveira wrote: > Hi Zakari, > > On 2/21/2017 8:36 PM, Vladimir Zapolskiy wrote: >> Hi Ramiro, >> >> On 02/21/2017 06:42 PM, Ramiro Oliveira wrote: >>> Hi Vladimir, >>> >>> Thank you for your feedback >>> >>> On 2/21/2017 3:54 PM, Vladimir Zapolskiy wrote: Hi

[PATCH v2 5/6] staging: lustre: Using macro DIV_ROUND_UP

2017-02-22 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) +

Re: [PATCH] sched/fair: Update rq clock before changing a task's CPU affinity

2017-02-22 Thread Matt Fleming
On Tue, 21 Feb, at 11:52:55PM, Wanpeng Li wrote: > From: Wanpeng Li > > [ cut here ] > WARNING: CPU: 6 PID: 81 at kernel/sched/sched.h:812 > set_next_entity+0x11d/0x380 > rq->clock_update_flags < RQCF_ACT_SKIP > CPU: 6 PID: 81 Comm:

Re: [PATCH 3/6] f2fs: remove batched discard in f2fs_trim_fs

2017-02-22 Thread Chao Yu
On 2017/1/13 6:44, Jaegeuk Kim wrote: > We don't need to do multiple checkpoints, since we don't actually wait for > completion of discard commands during checkpoint. > Instead, we still need to avoid very big discard commands, since that large > discard can interfere block allocation. I hope we

Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously

2017-02-22 Thread Chao Yu
On 2017/1/13 6:44, Jaegeuk Kim wrote: > This patch adds a kernel thread to issue discard commands. > It proposes three states, D_PREP, D_SUBMIT, and D_DONE to identify current > bio status. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

Re: [PATCH 4/6] f2fs: factor out discard command info into discard_cmd_control

2017-02-22 Thread Chao Yu
On 2017/1/13 6:44, Jaegeuk Kim wrote: > This patch adds discard_cmd_control with the existing discarding controls. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

Re: [f2fs-dev] [PATCH 1/6] f2fs: clean up flush/discard command namings

2017-02-22 Thread Chao Yu
On 2017/1/13 6:44, Jaegeuk Kim wrote: > This patch simply cleans up the names for flush/discard commands. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-22 Thread Michal Hocko
On Tue 21-02-17 19:09:18, Anshuman Khandual wrote: > On 02/21/2017 04:41 PM, Michal Hocko wrote: > > On Fri 17-02-17 17:11:57, Anshuman Khandual wrote: > > [...] > >> * User space using mbind() to get CDM memory is an additional benefit > >> we get by making the CDM plug in as a node and be part

[PATCH v3 2/4] iio: accel: adxl345: Use I2C regmap instead of direct I2C access

2017-02-22 Thread Eva Rachel Retuya
Convert the driver to use regmap instead of I2C-specific functions. Also, introduce the header file "adxl345.h" and export the probe and remove functions. This is done in preparation for splitting this driver into core and I2C-specific code as well as introduction of SPI driver. Signed-off-by:

[PATCH v3 0/4] iio: accel: adxl345: Split driver into core and I2C then add SPI support

2017-02-22 Thread Eva Rachel Retuya
This patchset modifies the adxl345 to use regmap. In doing so, we can easily introduce SPI support and let regmap handle the rest. Recap of basic features: read_raw for x, y and z axes, scale. After applying this series, driver now supports the SPI protocol and enumeration of device via device

Re: [PATCH v2] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-22 Thread Ian Abbott
On 21/02/17 17:25, Cheah Kok Cheong wrote: Fix checkpatch warning "Avoid multiple line dereference" using a pointer variable to avoid line wrap. Signed-off-by: Cheah Kok Cheong --- V2: -Use pointer instead of normal variable - Ian -Variable is to be used as "write

Re: [PATCH net-next] virtio-net: switch to use build_skb() for small buffer

2017-02-22 Thread Jason Wang
On 2017年02月22日 11:42, Michael S. Tsirkin wrote: On Wed, Feb 22, 2017 at 11:17:50AM +0800, Jason Wang wrote: On 2017年02月22日 11:06, Michael S. Tsirkin wrote: On Wed, Feb 22, 2017 at 10:58:08AM +0800, Jason Wang wrote: On 2017年02月21日 22:37, Michael S. Tsirkin wrote: On Tue, Feb 21, 2017 at

Re: [PATCH 0/6] Enable parallel page migration

2017-02-22 Thread Balbir Singh
On 22/02/17 16:55, Anshuman Khandual wrote: > On 02/22/2017 10:34 AM, Balbir Singh wrote: >> On Fri, Feb 17, 2017 at 04:54:47PM +0530, Anshuman Khandual wrote: >>> This patch series is base on the work posted by Zi Yan back in >>> November 2016 (https://lkml.org/lkml/2016/11/22/457) but

Re: [PATCH v2] NTB: Add IDT 89HPESxNTx PCIe-switches support

2017-02-22 Thread Serge Semin
On Tue, Feb 21, 2017 at 05:42:37PM -0500, Allen Hubbe wrote: > From: Serge Semin > > +/* > > + * idt_nt_write() - PCI configuration space registers write method > > + * @ndev: IDT NTB hardware driver descriptor > > + * @reg: Register to write data to > > + * @data:

RE: [PATCH 2/7] fs, xfs: convert xfs_buf.b_hold and xfs_buf.b_lru_ref from atomic_t to refcount_t

2017-02-22 Thread Reshetova, Elena
> On Tue, Feb 21, 2017 at 05:04:08PM +0100, Peter Zijlstra wrote: > > On Tue, Feb 21, 2017 at 05:49:02PM +0200, Elena Reshetova wrote: > > > @@ -1684,10 +1684,11 @@ xfs_buftarg_isolate( > > >* zero. If the value is already zero, we need to reclaim the > > >* buffer, otherwise it gets

Re: [RFC 08/55] KVM: arm64: Set virtual EL2 context depending on the guest exception level

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:04AM -0500, Jintack Lim wrote: > From: Christoffer Dall > > Set up virutal EL2 context to hardware if the guest exception level is > EL2. > > Signed-off-by: Christoffer Dall > Signed-off-by: Jintack Lim

RE: [PATCH 1/7] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-02-22 Thread Reshetova, Elena
> On Tue, Feb 21, 2017 at 05:49:01PM +0200, Elena Reshetova wrote: > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > >

Re: [PATCH v3 08/25] openrisc: add cmpxchg and xchg implementations

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 04:11:37AM +0900, Stafford Horne wrote: > + __asm__ __volatile__( > + "1: l.lwa %0, 0(%1) \n" > + " l.sfeq %0, %2 \n" > + " l.bnf 1f\n" > + "l.nop

Re: [RFC 09/55] KVM: arm64: Set shadow EL1 registers for virtual EL2 execution

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:05AM -0500, Jintack Lim wrote: > From: Christoffer Dall > > When entering virtual EL2, we need to reflect virtual EL2 register > states to corresponding shadow EL1 registers. We can simply copy them if > their formats are identical.

[PATCH] staging: xgifb: function prototype argument should have an identifier name

2017-02-22 Thread Arushi Singhal
function prototype arguments like 'struct vb_device_info *','unsigned long' etc. should have an identifier name. Signed-off-by: Arushi Singhal --- Changes in v3: - By mistake one irrelevant line was added which is removed in this patch. - write the

Re: [RFC 12/55] KVM: arm64: Handle EL2 register access traps

2017-02-22 Thread Christoffer Dall
On Mon, Jan 09, 2017 at 01:24:08AM -0500, Jintack Lim wrote: > ARM v8.3 introduces a new bit in the HCR_EL2, which is the NV bit. When > this bit is set, accessing EL2 registers in EL1 traps to EL2. In > addition, executing following instructions in EL1 will trap to EL2 - the following: So these

Re: [PATCH v3 10/25] openrisc: add spinlock implementation

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 04:11:39AM +0900, Stafford Horne wrote: > + lockval.tickets.owner = ACCESS_ONCE(lock->tickets.owner); > + return !arch_spin_value_unlocked(ACCESS_ONCE(*lock)); > + struct __raw_tickets tickets = ACCESS_ONCE(lock->tickets); > +#define

Re: [Outreachy kernel] [PATCH v2 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-22 Thread Julia Lawall
On Wed, 22 Feb 2017, SIMRAN SINGHAL wrote: > > > On Wednesday, February 22, 2017 at 2:57:17 PM UTC+5:30, Julia Lawall wrote: > > @@ -117,7 +118,7 @@ static int alloc_dbr(u16 size) > >  return DBR_SIZE; /* out of memory */ > > > >  for (i = 0; i <

Re: [V9fs-developer] [PATCH] fs/9p: Remove cast from memory allocation

2017-02-22 Thread Greg Kurz
On Wed, 22 Feb 2017 17:34:13 +1100 "Tobin C. Harding" wrote: > Coccinelle emits WARNING: casting value returned by memory allocation > function to (struct v9fs_inode *) is useless. > > Remove unnecessary cast. > > Signed-off-by: Tobin C. Harding > ---

Re: [PATCH v6 2/9] doc: DT: venus: binding document for Qualcomm video driver

2017-02-22 Thread Stanimir Varbanov
Hi Rob, On 02/22/2017 02:09 AM, Rob Herring wrote: > On Tue, Feb 07, 2017 at 03:10:17PM +0200, Stanimir Varbanov wrote: >> Add binding document for Venus video encoder/decoder driver >> >> Cc: Rob Herring >> Cc: devicet...@vger.kernel.org >> Signed-off-by: Stanimir Varbanov

Re: [PATCH v5 3/3] [media] s5p-mfc: Check and set 'v4l2_pix_format:field' field in try_fmt

2017-02-22 Thread Andrzej Hajda
On 21.02.2017 20:20, Thibault Saunier wrote: > It is required by the standard that the field order is set by the > driver. > > Signed-off-by: Thibault Saunier > > --- > > Changes in v5: > - Just adapt the field and never error out. > > Changes in v4: None >

  1   2   3   4   5   6   7   8   9   10   >