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 > >

[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

[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

[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

[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

[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

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

[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

[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

[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:

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: [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

[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

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 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

[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

[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 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

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

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

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

[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 ---

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] 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

[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

[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

[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 ---

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:

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

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

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

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

[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

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

[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

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

[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

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. > >

[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

[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

[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

[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,

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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:

[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 ---

[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:

[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

[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=1.22.2.1=linux-2_2

[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

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: >  >

[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

[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

[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

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:

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: > >>

[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,

[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

[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

[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

[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

[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 ---

[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

[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 +++

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: [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

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. >

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

[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

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

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

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

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

Re: [PATCH 1/2] arm64: dts: add drive-strength levels of pin for Hi3660 SoC

2017-04-08 Thread Wei Xu
Hi Xiaoyin, On 2017/3/30 14:48, Wang Xiaoyin wrote: Add drive-strength levels of pin for Hi3660 Soc. Signed-off-by: Wang Xiaoyin Thanks! Applied both to the hisilicon arm64 dt tree. Best Regards, Wei --- include/dt-bindings/pinctrl/hisi.h | 15

Re: AMD IOMMU causing filesystem corruption

2017-04-08 Thread Samuel Sieb
On 04/07/2017 03:22 AM, Joerg Roedel wrote: Can you please send me output of 'lspci -nv' on your system? I have to figure out how to rebuild the system and find the time to do it before I can test that patch, but here's the lspci output: 00:00.0 0600: 1022:1576 Subsystem: 1025:1099

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

2017-04-08 Thread Wei Xu
Hi Jiancheng, On 2017/3/29 14:30, Jiancheng Xue wrote: Add bindings for HiSilicon hi3798cv200 SoC and Poplar Board. Signed-off-by: Jiancheng Xue Reviewed-by: Alex Elder Acked-by: Peter Griffin Acked-by: Rob Herring

Re: [PATCH 0/5] arm64: dts: hisi: add NIC, RoCE and SAS support for hip07

2017-04-08 Thread Wei Xu
Hi All, On 2017/4/7 10:07, Wei.Xu wrote: This patch series adds Mbigen, NIC, RoCE and SAS nodes for the hip07 SoC and enables the NIC, RoCE and SAS on the hip07 d05 board. Wei Xu (5): arm64: dts: hisi: add mbigen nodes for the hip07 SoC arm64: dts: hisi: add network related nodes for the

Re: KASLR causes intermittent boot failures on some systems

2017-04-08 Thread Dan Williams
On Fri, Apr 7, 2017 at 9:08 PM, Baoquan He wrote: > On 04/07/17 at 10:41am, Jeff Moyer wrote: >> Hi, >> >> commit 021182e52fe01 ("x86/mm: Enable KASLR for physical mapping memory >> regions") causes some of my systems with persistent memory (whether real >> or emulated) to fail

[PATCH] reset: hi6220: Set module license so that it can be loaded

2017-04-08 Thread Jeremy Linton
The hi6220_reset driver can be built as a standalone module yet it cannot be loaded because it depends on GPL exported symbols. Lets set the module license so that the module loads, and things like the on-board kirin drm starts working. Signed-off-by: Jeremy Linton ---

Linux 4.10.9

2017-04-08 Thread Greg KH
I'm announcing the release of the 4.10.9 kernel. All users of the 4.10 kernel series must upgrade. The updated 4.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.10.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.21

2017-04-08 Thread Greg KH
diff --git a/Makefile b/Makefile index 44960184701a..1523557bd61f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 20 +SUBLEVEL = 21 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi

Re: Linux 4.10.9

2017-04-08 Thread Greg KH
diff --git a/Documentation/devicetree/bindings/rng/omap_rng.txt b/Documentation/devicetree/bindings/rng/omap_rng.txt index 471477299ece..9cf7876ab434 100644 --- a/Documentation/devicetree/bindings/rng/omap_rng.txt +++ b/Documentation/devicetree/bindings/rng/omap_rng.txt @@ -12,7 +12,8 @@ Required

Re: Linux 4.4.60

2017-04-08 Thread Greg KH
diff --git a/Makefile b/Makefile index 083724c6ca4d..fb7c2b40753d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 59 +SUBLEVEL = 60 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index

Linux 4.9.21

2017-04-08 Thread Greg KH
I'm announcing the release of the 4.9.21 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

  1   2   3   4   5   >