Re: [PATCH 00/14] RDMA/cxgb: Fine-tuning for several function implementations

2017-04-08 Thread Leon Romanovsky
On Wed, Apr 05, 2017 at 02:16:14PM -0400, Doug Ledford wrote: > On Wed, 2017-02-08 at 22:10 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Wed, 8 Feb 2017 22:00:10 +0100 > > > > Several update suggestions were taken into account > > from static source code analysis. > > > > Mar

[PATCH][v2] cpufreq: Bring CPUs up even if cpufreq_online failed

2017-04-08 Thread Chen Yu
There is a report that after commit 27622b061eb4 ("cpufreq: Convert to hotplug state machine"), the normal CPU offline/online cycle failed on some platforms. According to the ftrace result, this problem was triggered on platforms using acpi-freq as the default cpufreq driver, and due to the lack of

net/core/dev.c:4508:19-26: ERROR: PTR_ERR applied after initialization to constant on line 4452

2017-04-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 78d91a75b40fcf6a08506d308abf2413a29b7e30 commit: 25393d3fc055b76587fcc91627aee8c345400c3a net: Prepare gro for packet consuming gro callbacks date: 8 weeks ago coccinelle warnings: (new ones prefixed by

[git pull] vfs fixes

2017-04-08 Thread Al Viro
The following changes since commit a71c9a1c779f2499fb2afc0553e543f18aff6edf: Linux 4.11-rc5 (2017-04-02 17:23:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus for you to fetch changes up to a8e28440016bfb23bec266c4c66eac

Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim()

2017-04-08 Thread Taeung Song
Hi David, On 04/09/2017 03:48 AM, David Ahern wrote: On 4/7/17 8:52 PM, Taeung Song wrote: After reading command name from /proc//status, use ltrim() and rtrim() to strip command name, not using just while loop, isspace() and etc. Cc: David Ahern Cc: Don Zickus Cc: Jiri Olsa Cc: Namhyung Ki

Re: [PATCH 5/5] drivers: char: Replace bit operation functions with IDA allocator.

2017-04-08 Thread Varsha Rao
>> Replace bit operation functions with IDA allocator functions. As IDA >> allocation is simpler. > > But why does this matter? Few of the files in this driver is already using ida allocation. For maintaining the uniformity I have used ida allocation. Files using idr-ida interface hw_random/virti

Re: [PATCH] btrfs: scrub: use do_div() for 64-by-32 division

2017-04-08 Thread Adam Borowski
On Sat, Apr 08, 2017 at 11:07:37PM +0200, Adam Borowski wrote: > Unbreaks ARM and possibly other 32-bit architectures. Turns out those "other 32-bit architectures" happen to include i386. A modular build: ERROR: "__udivdi3" [fs/btrfs/btrfs.ko] undefined! With the patch, i386 builds fine. > Tes

Re: [Patch V2 2/2] x86/mm/numa: remove the numa_nodemask_from_meminfo()

2017-04-08 Thread Wei Yang
On Fri, Apr 7, 2017 at 2:48 AM, Borislav Petkov wrote: > On Thu, Apr 06, 2017 at 09:21:47PM +0300, Kirill A. Shutemov wrote: >> > Long story short, something as trivial as this helps here: >> >> Yep. Works for me. >> >> Reported-and-tested-by: Kirill A. Shutemov > > Thanks. > > Now, I'd really li

audit regressions in 4.11

2017-04-08 Thread Seth Forshee
I've observed audit regressions in 4.11-rc when not using a userspace audit daemon. The most obvious issue is that audit messages are not appearing in dmesg anymore. If a sufficient number of audit messages are generated the kernel will also start invoking the OOM killer. It looks like previously,

Re: [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits

2017-04-08 Thread Deepa Dinamani
>> Allow read only mounts for filesystems that do not >> have maximum timestamps beyond the y2038 expiry >> timestamp. > > This option seems arbitrary and pointless. > > Nobody sane should ever enable it except for testing, but for testing > it would be much better to simply specify what the limit

[PATCH] mm/softoffline: Add page flag description in error paths

2017-04-08 Thread Anshuman Khandual
It helps to provide page flag description along with the raw value in error paths during soft offline process. From sample experiments Before the patch: [ 132.317977] soft offline: 0x6100: migration failed 1, type 388018 [ 132.359057] soft offline: 0x7400: migration failed 1, type 3

Re: [PATCH] clk: zte: Mark pll config tables as const

2017-04-08 Thread Shawn Guo
On Sat, Apr 8, 2017 at 3:23 AM, Stephen Boyd wrote: > > These should be const. > > Cc: Shawn Guo > Cc: Jun Nie > Signed-off-by: Stephen Boyd Acked-by: Shawn Guo

Re: [RFC] calc_memmap_size() isn't accurate and one suggestion to improve

2017-04-08 Thread Wei Yang
On Mon, Apr 03, 2017 at 11:18:19AM +0200, Michal Hocko wrote: >On Tue 28-03-17 09:11:37, Wei Yang wrote: >> Hi, masters, >> >> # What I found >> >> I found the function calc_memmap_size() may not be that accurate to get the >> pages for memmap. >> >> The reason is: >> >> > memmap is allocated o

[PATCH] ide: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/ide/ide-probe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index a74ae8df..0235625 100644 --- a/drivers/ide/ide-pr

[PATCH] SGI-XP: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/misc/sgi-xp/xpc_main.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 7f32712..a1b6f75 100644

[PATCH] i2c: img-scb: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/i2c/busses/i2c-img-scb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c index db8e8b4..84fb35f 100

[PATCH] dmaengine: ioat: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/dma/ioat/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index cc5259b..6ad4384 100644 --- a/drivers/dma/ioat/in

[PATCH 2/4] Input: gameport - use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/input/gameport/gameport.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index 092cc41..cedc665

[PATCH 3/4] Input: locomokbd - use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/input/keyboard/locomokbd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c index c94d610..0d74

[PATCH 4/4] Input: turbografx - use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/input/joystick/turbografx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c index 77f575d..a1f

[PATCH 1/4] Input: db9 - use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/input/joystick/db9.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/joystick/db9.c b/drivers/input/joystick/db9.c index da32609..f4ad83e 100644 --- a/driv

[PATCH] Remove cpuset_update_active_cpus()'s parameter.

2017-04-08 Thread Rakib Mullick
In cpuset_update_active_cpus(), cpu_online isn't used anymore. Remove it. Signed-off-by: Rakib Mullick --- include/linux/cpuset.h | 4 ++-- kernel/cgroup/cpuset.c | 2 +- kernel/sched/core.c| 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/cpuset.h b/inclu

[PATCH 04/12] [media] cx18: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/cx18/cx18-streams.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/pci/cx18/cx18-streams.c b/drivers/media/pci/cx18/cx18-streams.c index 7c9381

[PATCH 08/12] [media] fsl-viu: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/platform/fsl-viu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index ae8c6b3..97e164b 100

[PATCH 12/12] [media] imon: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/rc/imon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index 89823d2..3489010 100644 --- a/drivers/media/rc/

[PATCH 10/12] [media] c8sectpfe: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/pl

[PATCH 09/12] [media] s5p-mfc: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c i

[PATCH 06/12] [media] netup_unidvb: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netu

[PATCH 07/12] [media] av7110: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/ttpci/av7110_ir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/ttpci/av7110_ir.c b/drivers/media/pci/ttpci/av7110_ir.c index 10e28f0..c

[PATCH 03/12] [media] bt8xx: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/bt8xx/bttv-driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index fb4aef

[PATCH 05/12] [media] ivtv: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/ivtv/ivtv-driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/ivtv/ivtv-driver.c b/drivers/media/pci/ivtv/ivtv-driver.c index a71a03e

[PATCH 11/12] [media] wl128x: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/radio/wl128x/fmdrv_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/wl128x/fmdrv_common.c b/drivers/media/radio/wl128x/fmdrv_common.

[PATCH 01/12] [media] saa7134: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/pci/saa7134/saa7134-ts.c| 5 ++--- drivers/media/pci/saa7134/saa7134-vbi.c | 5 ++--- drivers/media/pci/saa7134/saa7134-video.c | 5 ++--- 3 files changed, 6 insertions(+), 9 delet

[PATCH 02/12] [media] saa7146: use setup_timer

2017-04-08 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/media/common/saa7146/saa7146_vbi.c | 5 ++--- drivers/media/common/saa7146/saa7146_video.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/saa7

[PATCH] fs: drop duplicate header percpu-rwsem.h

2017-04-08 Thread Geliang Tang
Drop duplicate header percpu-rwsem.h from linux/fs.h. Signed-off-by: Geliang Tang --- include/linux/fs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index f1d7347..7bff988 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -29,7 +29,6 @@ #

Re: [linux-sunxi] [PATCH 2/5] clk: sunxi-ng: allow set parent clock (PLL_CPUX) for CPUX clock on H3

2017-04-08 Thread Chen-Yu Tsai
Hi, On Sun, Apr 9, 2017 at 2:50 AM, Icenowy Zheng wrote: The subject can just say "set CLK_SET_RATE_PARENT for CPUX clock on H3". > The CPUX clock, which is the main clock of the ARM core on Allwinner H3, > can be adjusted by changing the frequency of the PLL_CPUX clock. > > Allowing setting pa

[PATCH net-next,3/3] hv_netvsc: Exclude non-TCP port numbers from vRSS hashing

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang Azure hosts are not supporting non-TCP port numbers in vRSS hashing for now. For example, UDP packet loss rate will be high if port numbers are also included in vRSS hash. So, we created this patch to use only IP numbers for hashing in non-TCP traffic. Signed-off-by: Haiyang

[PATCH net-next,2/3] hv_netvsc: Fix the queue index computation in forwarding case

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang If the outgoing skb has a RX queue mapping available, we use the queue number directly, other than put it through Send Indirection Table. Signed-off-by: Haiyang Zhang Reviewed-by: Stephen Hemminger --- drivers/net/hyperv/hyperv_net.h |2 +- drivers/net/hyperv/netvsc_dr

[PATCH net-next,1/3] hv_netvsc: Use per socket hash when available

2017-04-08 Thread Haiyang Zhang
From: Haiyang Zhang The per socket hash is set when a socket is connected. Use it, when available, to save CPU cycles on repeatedly computing hash on the same connection. Signed-off-by: Haiyang Zhang Reviewed-by: Stephen Hemminger --- drivers/net/hyperv/netvsc_drv.c |7 ++- 1 files ch

Re: [RFC HMM CDM 0/3] Coherent Device Memory (CDM) on top of HMM

2017-04-08 Thread Balbir Singh
On Fri, 2017-04-07 at 16:28 -0400, Jérôme Glisse wrote: > This patch serie implement coherent device memory using ZONE_DEVICE > and adds new helper to the HMM framework to support this new kind > of ZONE_DEVICE memory. This is on top of HMM v19 and you can find a > branch here: >  > https://cgit.fr

[PATCH 05/10] nubus: Fix nubus_rewinddir (from mac68k CVS)

2017-04-08 Thread Finn Thain
From: David Huggins-Daines A long forgotten fix from the linux-mac68k CVS: Initialize dir->done pointer in nubus_rewinddir(). The original commit is here: http://linux-mac68k.cvs.sourceforge.net/viewvc/linux-mac68k/linux-mac68k/drivers/nubus/nubus.c?r1=1.22&r2=1.22.2.1&pathrev=linux-2_2 Signe

[PATCH 10/10] nubus: Add MVC and VSC video card definitions

2017-04-08 Thread Finn Thain
Also move the NUBUS_DRHW_APPLE_JET definition, for numerical order. Signed-off-by: Finn Thain --- include/uapi/linux/nubus.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/nubus.h b/include/uapi/linux/nubus.h index 77513d2..ac51606 100644 --- a/include/

[PATCH 06/10] nubus: Remove slot zero probe (from mac68k CVS)

2017-04-08 Thread Finn Thain
From: David Huggins-Daines Some long forgotten changes from the linux-mac68k CVS: Remove the slot 0 (ROM) probing. Remove the pointless White Screen Of Death crap. The original commit is here: http://linux-mac68k.cvs.sourceforge.net/viewvc/linux-mac68k/linux-mac68k/drivers/nubus/nubus.c?r1=1.2

[PATCH 07/10] nubus: Clean up printk calls (from mac68k CVS)

2017-04-08 Thread Finn Thain
From: David Huggins-Daines Some long forgotten changes from the linux-mac68k CVS: Fix swapped DrvrSW and DrvrHW values in printk message. Suppress debug printk messages. Avoid console_loglevel misuse. The original commits are these: http://linux-mac68k.cvs.sourceforge.net/viewvc/linux-mac68k/l

[PATCH 09/10] nubus: Clean up whitespace

2017-04-08 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/nubus/nubus.c | 284 -- 1 file changed, 134 insertions(+), 150 deletions(-) diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c index eac5ec2..bb81347 100644 --- a/drivers/nubus/nubus.c +++ b/drivers/nub

[PATCH 08/10] nubus: Fix pointer validation

2017-04-08 Thread Finn Thain
Fix bounds checking on slot-space pointer movement. Remove redundant test for zero byte-lanes value. Fix broken byte-lanes vs. address validation. Signed-off-by: Finn Thain --- drivers/nubus/nubus.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/nubus

[PATCH 04/10] m68k/mac: Clarify IOP message alloc/free confusion

2017-04-08 Thread Finn Thain
The alloc/free metaphor used for IOP messages is misleading and can cause mistakes like the pointless msg2 temporary variable. Use a more meaningful name to help simplify the code. Signed-off-by: Finn Thain --- arch/m68k/mac/iop.c | 19 ++- 1 file changed, 6 insertions(+), 13 del

[PATCH 02/10] m68k/mac: Modernize printing of kernel messages

2017-04-08 Thread Finn Thain
From: Geert Uytterhoeven Convert from printk() to pr_*(). [Adjusted log message severity levels and retained bootinfo log. -- FT] Signed-off-by: Finn Thain --- arch/m68k/mac/config.c | 12 +--- arch/m68k/mac/misc.c | 23 +-- 2 files changed, 14 insertions(+), 21

[PATCH 01/10] m68k/mac: IOP - Modernize printing of kernel messages

2017-04-08 Thread Finn Thain
From: Geert Uytterhoeven - Introduce helpers for printing debug messages, incl. dummies for validating format strings when debugging is disabled, - Convert from printk() to pr_*(), - Add missing continuations, - Drop superfluous casts. [Renamed pr_iop* macros, adjusted log message se

[PATCH 00/10] mac68k: Miscellaneous fixes, cleanup and modernization

2017-04-08 Thread Finn Thain
This series has various patches from several different people. Two printk modernization patches were originally from Geert Uytterhoeven and three Nubus patches were originally committed to the Linux/mac68k CVS by David Huggins-Daines. Finn Thain (10): m68k/mac: IOP - Modernize printing of kerne

[PATCH 03/10] m68k/mac: Adopt platform_device_register_simple()

2017-04-08 Thread Finn Thain
These changes save 1014 bytes according to scripts/bloat-o-meter. Signed-off-by: Finn Thain --- arch/m68k/mac/config.c | 49 - 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index 661

Re: [RFC net-next] bpf: taint loading !is_gpl programs

2017-04-08 Thread Alexei Starovoitov
On Fri, Apr 07, 2017 at 01:46:28PM -0400, Aaron Conole wrote: > Hi Alexei, and Daniel, > > Alexei Starovoitov writes: > > > On Wed, Apr 05, 2017 at 10:59:49PM -0400, Aaron Conole wrote: > >> Hi Daniel, > >> > >> Daniel Borkmann writes: > >> > >> > On 04/04/2017 08:33 PM, Aaron Conole wrote: >

USB Type-C Port Manager API concern

2017-04-08 Thread Mats Karrman
Hi Guenter, From a previous thread: On 03/08/2017 02:38 AM, Guenter Roeck wrote: On 03/07/2017 02:30 PM, Mats Karrman wrote: [ ... ] I'm still struggling to catch up on what you guys have been up to during the last year or so :-) and came across some patches of Guenter from last October:

Linux kernel statistics from the other perspective than existing ones

2017-04-08 Thread Satoru Takeuchi
I wrote an article about linux kernel statistics by analyzing linux kernel source code. Although there are many such the articles, most of them mainly focus on who develops linux kernel. However, this article doesn't care about that at all. It focuses on the following things instead. - Which subsy

Re: [PATCH] net: netfilter: ipvs: Replace explicit NULL comparison

2017-04-08 Thread kbuild test robot
Hi Arushi, [auto build test WARNING on ipvs-next/master] [also build test WARNING on v4.11-rc5 next-20170407] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arushi-Singhal/net-netfilter-ipvs-Rep

Re: [linux-sunxi] [PATCH 1/5] clk: sunxi-ng: prevent NKMP clocks from temporarily get higher freq

2017-04-08 Thread Ondřej Jirman
Hi Icenowy, I already tried this approach to changing CPUX_PLL and it didn't work well. I've written a test program for CPUS (additional RISC-V processor on H3 SoC) for testing various NKMP clock change algorithms, by randomly changing the PLL frequency. Everything except simply not using dividers

[PATCH] rtc: ds1307: Add m41t0 to OF device ID table

2017-04-08 Thread Alexandre Belloni
m41t0 was added to the I2C device ID table but not the OF table. Fix that. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index e29481391496..77339b3d50a1 100644 --- a/drive

Re: [PATCH] IIO: bmp280-core.c: fix error in humidity calculation

2017-04-08 Thread Matt Ranostay
On Fri, Apr 7, 2017 at 12:27 PM, Andreas Klinger wrote: > Hi Matt, > > i've extracted the error condition in a small userspace application for > demonstration. Just compile and see that in this case the variable H3 is zero > but the whole term evaluates differently if treated as unsigned or signed

[PATCH v2 2/2] Input: xpad - add support for Razer Wildcat gamepad

2017-04-08 Thread Cameron Gutman
Cc: sta...@vger.kernel.org Signed-off-by: Cameron Gutman --- v2: - No changes drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index efb798a..5c3d249 100644 --- a/drivers/input/joystick/xpad.c +++ b/

[PATCH v2 1/2] Input: xpad - support some quirky Xbox One pads

2017-04-08 Thread Cameron Gutman
There are several quirky Xbox One pads that depend on initialization packets that the Microsoft pads don't require. To deal with these, I've added a mechanism for issuing device-specific initialization packets using a VID/PID-based quirks list. For the initial set of init quirks, I have added quir

[PATCH v2 0/2] Support additional Xbox One pads

2017-04-08 Thread Cameron Gutman
This series adds support for several new or quirky Xbox One pads. With the existing code, these pads either don't send any input data at all, only have partial functionality, or just aren't yet recognized by the driver even though they would work just fine. Patch 1 of this series may be considered

[PATCH] btrfs: scrub: use do_div() for 64-by-32 division

2017-04-08 Thread Adam Borowski
Unbreaks ARM and possibly other 32-bit architectures. Fixes: 7d0ef8b4d: Btrfs: update scrub_parity to use u64 stripe_len Reported-by: Icenowy Zheng Signed-off-by: Adam Borowski --- You'd probably want to squash this with Liu's commit, to be nice to future bisects. Tested on amd64 where all is f

Re: [PATCH v3] lightnvm: physical block device (pblk) target

2017-04-08 Thread Bart Van Assche
On 04/07/17 11:50, Javier González wrote: > Documentation/lightnvm/pblk.txt | 21 + > drivers/lightnvm/Kconfig | 19 + > drivers/lightnvm/Makefile|5 + > drivers/lightnvm/pblk-cache.c| 112 +++ > drivers/lightnvm/pblk-core.c | 1641 > +

[PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-08 Thread Daniel Lezcano
The hi655x multi function device is a PMIC providing regulators. The PMIC also provides a clock for the WiFi and the Bluetooth, let's implement this clock in order to add it in the hi655x MFD and allow proper wireless initialization. Signed-off-by: Daniel Lezcano --- Changelog: V2: - Adde

Re: [tpmdd-devel] Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot

2017-04-08 Thread Jason Gunthorpe
On Sat, Apr 08, 2017 at 12:40:25PM +0200, Denis 'GNUtoo' Carikli wrote: > I am working on it[1]. This commit has not been merged and is a work in > progress. It is however available in coreboot's gerrit. How did this work on any kernels if there was no PNP or ACPI entry? FWIW, I wonder if corebo

Re: [PATCH] net: netfilter: Replace explicit NULL comparisons

2017-04-08 Thread Pablo Neira Ayuso
On Sat, Apr 08, 2017 at 08:21:56PM +0200, Jan Engelhardt wrote: > On Saturday 2017-04-08 19:21, Arushi Singhal wrote: > > >Replace explicit NULL comparison with ! operator to simplify code. > > I still wouldn't do this, for the same reason as before. Comparing to > NULL explicitly more or less g

Re: [PATCH] net: ipv6: Remove unneccessary comments

2017-04-08 Thread Pablo Neira Ayuso
On Sat, Apr 08, 2017 at 09:19:30PM +0530, Arushi Singhal wrote: > This comments are obsolete and should go, as there are no set of rules per > CPU anymore. Applied, thanks.

Re: [git pull] base: soc: Improvements for the SoC bus and soc_device_match()

2017-04-08 Thread Simon Horman
On Sat, Apr 08, 2017 at 05:35:05PM +0200, Greg Kroah-Hartman wrote: > On Mon, Apr 03, 2017 at 06:28:31AM -0400, Simon Horman wrote: > > On Fri, Mar 31, 2017 at 10:54:20AM +0200, Geert Uytterhoeven wrote: > > > Hi Greg, > > > Hi Arnd, Kevin, Olof, > > > Hi Magnus, Simon, > > > > > > The follo

Re: [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits

2017-04-08 Thread Linus Torvalds
On Sat, Apr 8, 2017 at 12:37 PM, Deepa Dinamani wrote: > Allow read only mounts for filesystems that do not > have maximum timestamps beyond the y2038 expiry > timestamp. This option seems arbitrary and pointless. Nobody sane should ever enable it except for testing, but for testing it would be

[PATCH v3] ia64: fix module loading for gcc-5.4

2017-04-08 Thread Sergei Trofimovich
Starting from gcc-5.4+ gcc generates MLX instructions in more cases to refer local symbols: https://gcc.gnu.org/PR60465 That caused ia64 module loader to choke on such instructions: fuse: invalid slot number 1 for IMM64 Linux kernel used to handle only case where relocation pointed to slo

[PATCH] alpha: cleanup: remove __NR_sys_epoll_*, leave __NR_epoll_*

2017-04-08 Thread Sergei Trofimovich
__NR_sys_epoll_create and friends are alpha-specific while __NR_epoll_create is a generic name for other arches. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-al...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Sergei Trofimovich --- arch/alpha/include/

[PATCH v5 1/5] vfs: Add file timestamp range support

2017-04-08 Thread Deepa Dinamani
Add fields to the superblock to track the min and max timestamps supported by filesystems. Initially, when a superblock is allocated, initialize it to the max and min values the fields can hold. Individual filesystems override these to match their actual limits. Pseudo filesystems are assumed to

[PATCH v5 3/5] ext4: Initialize timestamps limits

2017-04-08 Thread Deepa Dinamani
ext4 has different overflow limits for max filesystem timestamps based on the extra bytes available. Signed-off-by: Deepa Dinamani Cc: "Theodore Ts'o" Cc: Andreas Dilger Cc: linux-e...@vger.kernel.org --- fs/ext4/ext4.h | 4 fs/ext4/super.c | 7 ++- 2 files changed, 10 insertions(+),

[PATCH v5 5/5] utimes: Clamp the timestamps before update

2017-04-08 Thread Deepa Dinamani
POSIX.1 section for futimens, utimensat and utimes says: The file's relevant timestamp shall be set to the greatest value supported by the file system that is not greater than the specified time. Clamp the timestamps accordingly before assignment. Note that the clamp_t macro is used for clamping

[PATCH v5 4/5] vfs: Add timestamp_truncate() api

2017-04-08 Thread Deepa Dinamani
timespec_trunc() function is used to truncate a filesystem timestamp to the right granularity. But, the function does not clamp tv_sec part of the timestamps according to the filesystem timestamp limits. Also, timespec_trunc() is exclusively used for filesystem timestamps. Move the api to be part

[PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits

2017-04-08 Thread Deepa Dinamani
Allow read only mounts for filesystems that do not have maximum timestamps beyond the y2038 expiry timestamp. Also, allow a sysctl override to all such filesystems to be mounted with write permissions. A boot param supports initial override of these checks from the early boot without recompilation

[PATCH v5 0/5] vfs: Add timestamp range check support

2017-04-08 Thread Deepa Dinamani
The series is aimed at adding timestamp checking and policy related to it to vfs. The series was developed with discussions and guidance from Arnd Bergmann. The original thread is at https://lkml.org/lkml/2016/11/2/294 Associated test: xfstests generic/402 Note that the above test will be run an

Re: `pci_apply_final_quirks()` taking half a second

2017-04-08 Thread Bjorn Helgaas
On Sat, Apr 08, 2017 at 07:00:19PM +0200, David Woodhouse wrote: > ... > I note it's also reading PCI_CACHE_LINE_SIZE From config space for each > device in pci_apply_final_quirks(). How long does that take? I don't know, but it's pointless on modern PCIe systems where the Cache Line Size has no e

Re: [PATCH] remove compat_sys_getdents64() (was Re: [RFC] why do we still keep __{get,put}_user_unaligned()?)

2017-04-08 Thread Linus Torvalds
On Sat, Apr 8, 2017 at 11:36 AM, Al Viro wrote: > > Let's at least remove compat_sys_getdents64()... Linus, do you > have any problems with the following? Hmm. Trying to compare compat_sys_getdents64n and sys_getdents64 side by side, I think you're right. The patch looks sane.

[PATCH 5/5] ARM: sun8i: h2+: add SY8113B regulator used by Orange Pi Zero board

2017-04-08 Thread Icenowy Zheng
Orange Pi Zero board has a SY8113B regulator, which is controlled via GPIO and capable of outputing 1.1V when the PL6 GPIO is set to output 0 or 1.3V when the PL6 GPIO is set to input or output 1, and the output is the power supply of the ARM cores in H2+ SoC. Add the device tree node of this regu

[PATCH 3/5] cpufreq: dt: Add support for some new Allwinner SoCs

2017-04-08 Thread Icenowy Zheng
Some new Allwinner SoCs get supported in the kernel after the compatibles are added to cpufreq-dt-platdev driver. Add their compatible strings in the cpufreq-dt-platdev driver. Signed-off-by: Icenowy Zheng --- drivers/cpufreq/cpufreq-dt-platdev.c | 5 + 1 file changed, 5 insertions(+) diff

[PATCH 4/5] ARM: sun8i: h3: add operating-points-v2 table for CPU

2017-04-08 Thread Icenowy Zheng
The CPU on Allwinner H3 can do dynamic frequency scaling. Add a DVFS table based on the one tweaked by Armbian developers, which are proven to work stably on BSP kernels. Frequencies higher than 1008MHz are temporarily dropped in the table, as they may lead to over voltage on boards without prope

[PATCH 2/5] clk: sunxi-ng: allow set parent clock (PLL_CPUX) for CPUX clock on H3

2017-04-08 Thread Icenowy Zheng
The CPUX clock, which is the main clock of the ARM core on Allwinner H3, can be adjusted by changing the frequency of the PLL_CPUX clock. Allowing setting parent clock for the CPUX clock, thus the PLL_CPUX clock can be adjusted when adjusting the CPUX clock. Signed-off-by: Icenowy Zheng --- dri

[PATCH 1/5] clk: sunxi-ng: prevent NKMP clocks from temporarily get higher freq

2017-04-08 Thread Icenowy Zheng
It seems that on newer SoCs (already observed on A33, H3), when setting all NKMP factors at the same time, the multiplier get applied first, then the divider get applied. In some situations (e.g. the multiplier increased but the divider decreased), this will make the clock frequency temporarily hig

[PATCH 0/5] Some Allwinner CCU tweaks and basical DVFS support for H3/H2+

2017-04-08 Thread Icenowy Zheng
This patchset aim to add basical DVFS support for Allwinner H3/H2+ SoCs, they seem to be nearly the same. The first patch is a CCU fix for all NKMP-type clocks, not H3 limited. Please schedule this patch to 4.11 queue, as A33 needs also this patch. It solves the problem that system hangs when the

Re: [PATCH v2 5/5] perf tools: Refactor the code to strip command name with {l,r}trim()

2017-04-08 Thread David Ahern
On 4/7/17 8:52 PM, Taeung Song wrote: > After reading command name from /proc//status, > use ltrim() and rtrim() to strip command name, not using > just while loop, isspace() and etc. > > Cc: David Ahern > Cc: Don Zickus > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song > --- >

Re: [PATCH] ibmveth: Support to enable LSO/CSO for Trunk VEA.

2017-04-08 Thread David Miller
From: Sivakumar Krishnasamy Date: Fri, 7 Apr 2017 05:57:59 -0400 > Enable largesend and checksum offload for ibmveth configured in trunk mode. > Added support to SKB frag_list in TX path by skb_linearize'ing such SKBs. > > Signed-off-by: Sivakumar Krishnasamy Why is linearization necessary?

Re: Linux next-20170407 failed to build on ARM due to usage of mod in btrfs code

2017-04-08 Thread Adam Borowski
On Sat, Apr 08, 2017 at 02:45:34PM -0300, Fabio Estevam wrote: > On Sat, Apr 8, 2017 at 1:02 PM, Icenowy Zheng wrote: > > Hello everyone, > > Today I tried to build a kernel with btrfs enabled on ARM, then when linking > > I met such an error: > > > > ``` > > fs/built-in.o: In function `scrub_bio_

[PATCH] remove compat_sys_getdents64() (was Re: [RFC] why do we still keep __{get,put}_user_unaligned()?)

2017-04-08 Thread Al Viro
On Sat, Apr 08, 2017 at 07:21:16AM +0100, Al Viro wrote: > Right now we have no users of __get_user_unaligned() outside of > arch/* and only 4 users of __put_user_unaligned() outside of arch/*. > > All 4 are in compat_sys_getdents64(). For storing > ->d_ino and ->d_off in > struct lin

Re: [PATCH] staging: rtl8192u: Convert __le16 to cpu before casting to u32

2017-04-08 Thread Guillaume Brogi
On Sat, Apr 08, 2017 at 12:31:25PM +0200, Greg Kroah-Hartman wrote: > On Sun, Mar 26, 2017 at 12:24:14AM +0100, Guillaume Brogi wrote: > > > > This patch fixes the following sparse warnings: > > drivers/staging/rtl8192u/r8192U_dm.c:2307:49: warning: cast from restricted > > __le16 > > drivers/sta

Re: [PATCH] net: netfilter: Replace explicit NULL comparisons

2017-04-08 Thread Jan Engelhardt
On Saturday 2017-04-08 19:21, Arushi Singhal wrote: >Replace explicit NULL comparison with ! operator to simplify code. I still wouldn't do this, for the same reason as before. Comparing to NULL explicitly more or less gave an extra guarantee that the other operand was also a pointer.

Re: [PATCHv3 17/22] staging: android: ion: Collapse internal header files

2017-04-08 Thread Emil Velikov
Hi Laura, Couple of trivial nitpicks below. On 3 April 2017 at 19:57, Laura Abbott wrote: > --- a/drivers/staging/android/ion/ion.h > +++ b/drivers/staging/android/ion/ion.h > @@ -1,5 +1,5 @@ > /* > - * drivers/staging/android/ion/ion.h > + * drivers/staging/android/ion/ion_priv.h Does not mat

Re: Is it safe for kthreadd to drain_all_pages?

2017-04-08 Thread Mel Gorman
On Sat, Apr 08, 2017 at 10:04:20AM -0700, Hugh Dickins wrote: > On Fri, 7 Apr 2017, Hugh Dickins wrote: > > On Fri, 7 Apr 2017, Michal Hocko wrote: > > > On Fri 07-04-17 09:58:17, Hugh Dickins wrote: > > > > On Fri, 7 Apr 2017, Michal Hocko wrote: > > > > > On Fri 07-04-17 09:25:33, Hugh Dickins wr

Re: [PATCH 06/12] audit: Use timespec64 to represent audit timestamps

2017-04-08 Thread Deepa Dinamani
> I have no problem merging this patch into audit/next for v4.12, would > you prefer me to do that so at least this patch is merged? This would be fine. But, I think whoever takes the last 2 deletion patches should also take them. I'm not sure how that part works out. > It would probably make lif

[GIT PULL] Block fixes for 4.11-rc6

2017-04-08 Thread Jens Axboe
Hi Linus, Here's a pull request for 4.11-rc, fixing a set of issues mostly centered around the new scheduling framework. These have been brewing for a while, but split up into what we absolutely need in 4.11, and what we can defer until 4.12. These are well tested, on both single queue and multiqu

Re: Linux next-20170407 failed to build on ARM due to usage of mod in btrfs code

2017-04-08 Thread Fabio Estevam
On Sat, Apr 8, 2017 at 1:02 PM, Icenowy Zheng wrote: > Hello everyone, > Today I tried to build a kernel with btrfs enabled on ARM, then when linking > I met such an error: > > ``` > fs/built-in.o: In function `scrub_bio_end_io_worker': > acl.c:(.text+0x2f0450): undefined reference to `__aeabi_uld

Re: [PATCH v2] fault-inject: support systematic fault injection

2017-04-08 Thread Dmitry Vyukov
On Fri, Apr 7, 2017 at 6:47 PM, Akinobu Mita wrote: > 2017-04-07 3:33 GMT+09:00 Michal Hocko : >> [Let's add linux-api - please always cc this list when adding/modifying >> user visible interfaces] >> >> On Tue 28-03-17 15:01:28, Dmitry Vyukov wrote: >>> Add /proc/self/task//fail-nth file that all

Re: [PATCH -mm 4/5] fault-inject: simplify access check for fail-nth

2017-04-08 Thread Dmitry Vyukov
On Sat, Apr 8, 2017 at 10:25 AM, Akinobu Mita wrote: > 2017-04-08 5:45 GMT+09:00 Dmitry Vyukov : >> On Thu, Apr 6, 2017 at 4:56 PM, Akinobu Mita wrote: >>> The fail-nth file is created with 0666 and the access is permitted if >>> and only if the task is current. >>> >>> This file is owned by the

Re: [bug report] checkpatch: if statement does not need to be enclosed in parentheses

2017-04-08 Thread Joe Perches
On Sat, 2017-04-08 at 17:07 +0100, Alfonso Lima wrote: > Hi, > > In current linux-next, if you run the script on this piece of > code: > > #define FOO(a)\ > if (a) {\ > something();\ > something_

Re: [PATCH v4 3/8] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-04-08 Thread Jonathan Cameron
On 05/04/17 10:06, Quentin Schulz wrote: > This moves code used in MFD probing to a new sun4i_gpadc_probe_mfd > function. > > This driver was initially written for A10, A13 and A31 SoCs which > already had a DT binding for this IP, thus we needed to use an MFD to > probe the different drivers with

  1   2   3   >