Re: [linux-sunxi] [PATCH v4 3/8] phy: sun4i-usb: add PHYCTL offset for H3 SoC

2017-03-24 Thread Chen-Yu Tsai
On Fri, Mar 24, 2017 at 2:27 PM, Icenowy Zheng wrote: > > > 24.03.2017, 11:05, "Chen-Yu Tsai" : >> On Mon, Mar 20, 2017 at 12:19 AM, Icenowy Zheng wrote: >>> The config structure of H3 in phy-sun4i-usb driver have the PHYCTL >>> register offset missing. >>> >>> Add it. Because it's a SoC after

Re: [RFC v3 1/5] sched/core: add capacity constraints to CPU controller

2017-03-24 Thread Joel Fernandes (Google)
Hi Patrick, On Thu, Mar 23, 2017 at 3:32 AM, Patrick Bellasi wrote: [..] >> > which can be used to defined tunable root constraints when CGroups are >> > not available, and becomes RO when CGroups are. >> > >> > Can this be eventually an acceptable option? >> > >> > In any case I think that this

Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node

2017-03-24 Thread Jagan Teki
On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: >> From: Jagan Teki >> >> Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL >> modules, the touchscreen controlled 'st,stmpe-ts' connected via >> i2c with st,stmpe811 m

Re: [PATCH v2 0/5] mm: support parallel free of memory

2017-03-24 Thread Aaron Lu
On Tue, Mar 21, 2017 at 07:54:37AM -0700, Dave Hansen wrote: > On 03/16/2017 02:07 AM, Michal Hocko wrote: > > On Wed 15-03-17 14:38:34, Tim Chen wrote: > >> max_active: time > >> 1 8.9s ±0.5% > >> 2 5.65s ±5.5% > >> 4 4.84s ±0.16% > >> 8 4.77s

Re: [PATCH v2 4/6] arm64: dts: rockchip: add core dtsi file for RK3328 SoCs

2017-03-24 Thread Heiko Stübner
Am Freitag, 24. März 2017, 14:31:28 CET schrieb 陈亮: > Hi, Heiko: > > 在 2017年03月23日 11:33, 陈亮 写道: > > Hi, Heiko > > > > 在 2017年03月21日 16:55, Heiko Stübner 写道: > >> Hi, > >> > >> Am Donnerstag, 16. März 2017, 21:17:22 CET schrieb c...@rock-chips.com: > >>> +assigned-clock-parents = > >>> +

[PATCH v3] HV: properly delay KVP packets when negotiation is in progress

2017-03-24 Thread Long Li
From: Long Li The host may send multiple negotiation packets (due to timeout) before the KVP user-mode daemon is connected. We need to defer processing those packets until the daemon is negotiated and connected. It's okay for guest to respond to all negotiation packets. In addition, the host ma

Re: [PATCH -v2 1/2] mm, swap: Use kvzalloc to allocate some swap data structure

2017-03-24 Thread Huang, Ying
John Hubbard writes: > On 03/23/2017 09:52 PM, Huang, Ying wrote: >> John Hubbard writes: >> >>> On 03/23/2017 07:41 PM, Huang, Ying wrote: David Rientjes writes: > On Mon, 20 Mar 2017, Huang, Ying wrote: > >> From: Huang Ying >> >> Now vzalloc() is used in swap c

Re: [PATCH v5 2/3] ARM64: dts: mediatek: configure some fixed mmc parameters

2017-03-24 Thread Ulf Hansson
+Mattias On 15 March 2017 at 08:26, Yong Mao wrote: > From: yong mao > > configure some fixed mmc parameters > > Signed-off-by: Yong Mao > Signed-off-by: Chaotian Jing This one is for Mattias Brugger to pick up - unless I get an ack then I can pick it. Kind regards Uffe > --- > arch/arm64/

Re: [PATCH v5 3/3] mmc: mediatek: Use data tune for CMD line tune

2017-03-24 Thread Ulf Hansson
On 15 March 2017 at 08:26, Yong Mao wrote: > From: yong mao > > If we don't select a set of better parameters for our emmc host, > It may easily occur CMD response CRC error. And also it may cause > cannot boot up issue. > > Fot getting a set of better parameters, our emmc host supports > data tu

Re: [PATCH v5 1/3] mmc: dt-bindings: update Mediatek MMC bindings

2017-03-24 Thread Ulf Hansson
On 15 March 2017 at 08:26, Yong Mao wrote: > From: yong mao > > Add description for mediatek,hs200-cmd-int-delay > Add description for mediatek,hs400-cmd-int-delay > Add description for mediatek,hs400-cmd-resp-sel-rising > > Signed-off-by: Yong Mao Thanks, applied for next! Kind regards Uffe

Re: [PATCH v5 0/2] mmc: host: s3cmci: add device tree support

2017-03-24 Thread Ulf Hansson
On 18 March 2017 at 02:13, Sergio Prado wrote: > This series adds support for configuring Samsung's S3C24XX MMC/SD/SDIO > controller via device tree. > > Tested on FriendlyARM mini2440, based on s3c2440 SoC. > > Changes since v4 (as suggested by Jaehoon Chung): > - using just a flag as a data stru

Re: [PATCH] mm: fix a coding style issue

2017-03-24 Thread Michal Hocko
On Thu 23-03-17 10:12:44, Kristaps Civkulis wrote: > Fix a coding style issue. I believe style fixes are worth applying only when part of a larger change which does something useful or where the resulting code is much easier to read. This doesn't seem to be the case here. > Signed-off-by: Krista

Re: [PATCH 2/3] asm-generic, x86: wrap atomic operations

2017-03-24 Thread Dmitry Vyukov
On Fri, Mar 24, 2017 at 7:52 AM, Ingo Molnar wrote: > > * Dmitry Vyukov wrote: > >> KASAN uses compiler instrumentation to intercept all memory accesses. >> But it does not see memory accesses done in assembly code. >> One notable user of assembly code is atomic operations. Frequently, >> for exa

Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node

2017-03-24 Thread Shawn Guo
On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: > On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: > >> From: Jagan Teki > >> > >> Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL > >> modules, the touc

[PATCH] drivers/staging/wilc1000: Using __func__ instead of hardcoded function name

2017-03-24 Thread Pushkar Jambhlekar
dev_err: replacing hardcoded function name with '%s' and __func__ Signed-off-by: Pushkar Jambhlekar --- drivers/staging/wilc1000/wilc_sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c index

Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node

2017-03-24 Thread Jagan Teki
On Fri, Mar 24, 2017 at 12:55 PM, Shawn Guo wrote: > On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: >> On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: >> > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrote: >> >> From: Jagan Teki >> >> >> >> Add touchscreen node as i2c1

Re: linux-next: manual merge of the char-misc tree with the tpmdd tree

2017-03-24 Thread Greg KH
On Fri, Mar 24, 2017 at 02:33:02PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the char-misc tree got a conflict in: > > drivers/char/tpm/tpm-chip.c > > between commits: > > 67b67480db8b ("tpm: infrastructure for TPM spaces") > b8e3586e8536 ("tpm: expose space

Re: [PATCH -v2 1/2] mm, swap: Use kvzalloc to allocate some swap data structure

2017-03-24 Thread John Hubbard
[...] Hi Ying, I'm a little surprised to see vmalloc calls replaced with kmalloc-then-vmalloc calls, because that actually makes fragmentation worse (contrary to the above claim). That's because you will consume contiguous memory (even though you don't need it to be contiguous), whereas before,

[PATCH] drivers/staging/wilc1000: Removing explicit function tracing using dev_dbg/info

2017-03-24 Thread Pushkar Jambhlekar
ftrace can be used to trace functions. Removing function tracing using dev_dbg/info Signed-off-by: Pushkar Jambhlekar --- drivers/staging/wilc1000/wilc_sdio.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c inde

Re: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node

2017-03-24 Thread Shawn Guo
On Fri, Mar 24, 2017 at 01:02:35PM +0530, Jagan Teki wrote: > On Fri, Mar 24, 2017 at 12:55 PM, Shawn Guo wrote: > > On Fri, Mar 24, 2017 at 12:29:49PM +0530, Jagan Teki wrote: > >> On Fri, Mar 24, 2017 at 10:46 AM, Shawn Guo wrote: > >> > On Wed, Mar 22, 2017 at 11:18:10PM +0530, Jagan Teki wrot

Re: [PATCH] ASoC: WM8962: Let codec driver enable/disable its MCLK

2017-03-24 Thread Daniel Baluta
On Fri, Mar 24, 2017 at 6:58 AM, Nicolin Chen wrote: > On Thu, Mar 23, 2017 at 02:01:50PM +0200, Daniel Baluta wrote: >> From: Nicolin Chen >> >> WM8962 needs its MCLK when powerup in wm8962_resume(). Thus it's better >> to control the MCLK in codec driver. Thus remove the clock enable in >> mach

Re: [PATCH] mmc: sunxi: change controller error info to debug level

2017-03-24 Thread Ulf Hansson
On 16 March 2017 at 14:29, Icenowy Zheng wrote: > The controller's errors are usually normal (for example, for MMC or SDIO > cards, some errors are expected to happen; and for boards without a > dedicated card detect pin the error info will even flood console and > hide other normal messages) and

Re: [PATCH net-next v2 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-24 Thread Andrew Lunn
On Thu, Mar 23, 2017 at 04:06:56PM +0800, Sean Wang wrote: > Hi Andrew, > > The purpose for the regmap table registered is to > > provide a way which helps us to look up a specific > > register on the switch through regmap-debugfs. > > > And not all ranges of register is defined > > so I on

[PATCH] fs: Handle register_shrinker failure

2017-03-24 Thread Nikolay Borisov
register_shrinker allocates dynamic memory and thus is susceptible to failures under low-memory situation. Currently,get_userns ignores the return value of register_shrinker, potentially exposing not fully initialised object. This can lead to a NULL-ptr deref everytime shrinker->nr_deferred is refe

Re: [PATCH] mmc: core: Do not hold re-tuning during CMD6 commands

2017-03-24 Thread Adrian Hunter
On 24/03/17 08:19, Chaotian Jing wrote: > this patch is refine for 'commit c6dbab9cb58f ("mmc: core: Hold re-tuning > during switch commands")' > Since it has 3 retries at max for CMD6, if the first CMD6 got CRC error, > then should do re-tune before the next CMD6 was sent. > > Signed-off-by: Chao

Re: [RESEND PATCH v4 2/9] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-24 Thread Quentin Schulz
Hi, On 23/03/2017 10:52, Chen-Yu Tsai wrote: > On Thu, Mar 23, 2017 at 5:35 PM, Sebastian Reichel wrote: >> Hi, >> >> On Wed, Mar 22, 2017 at 12:34:45PM +0800, Chen-Yu Tsai wrote: >>> P.S. I'm thinking about having MFD_AXP20X imply its various sub-drivers. >>> Not sure if that was the intended us

Re: [PATCH] i2c/muxes/i2c-mux-ltc4306: LTC4306 and LTC4305 I2C multiplexer/switch

2017-03-24 Thread Peter Rosin
On 2017-03-23 15:22, michael.henner...@analog.com wrote: > From: Michael Hennerich > > This patch adds support for the Analog Devices / Linear Technology > LTC4306 and LTC4305 4/2 Channel I2C Bus Multiplexer/Switches. > The LTC4306 optionally provides two general purpose input/output pins > (GPIO

Re: [PATCH v3] extcon: intel-cht-wc: Add Intel Cherry Trail Whiskey Cove PMIC extcon driver

2017-03-24 Thread Hans de Goede
Hi, On 24-03-17 05:38, Chanwoo Choi wrote: Hi, On 2017년 03월 24일 01:01, Hans de Goede wrote: Add a driver for charger detection / control on the Intel Cherrytrail Whiskey Cove PMIC. Signed-off-by: Hans de Goede --- Changes in v2: -Improve wait for charger detection loop, use jiffies to get an

Re: [RESEND PATCH v2 26/53] mtd: nand: denali: support 1024 byte ECC step size

2017-03-24 Thread Boris Brezillon
On Fri, 24 Mar 2017 12:23:01 +0900 Masahiro Yamada wrote: > > > >> > >> > >> It is unrelated to the chips' requirements. > > > > It is related to the chip requirements. > > Say you have a chip that requires a minimum of 4bits/512bytes. If you > > want to convert that to a 1024byte block setti

Re: [PATCH v2 10/53] mtd: nand: denali: fix erased page checking

2017-03-24 Thread Boris Brezillon
On Fri, 24 Mar 2017 11:43:43 +0900 Masahiro Yamada wrote: > Hi Boris, > > > 2017-03-23 16:56 GMT+09:00 Boris Brezillon > : > > On Thu, 23 Mar 2017 14:04:44 +0900 > > Masahiro Yamada wrote: > > > >> Hi Boris, > >> > >> 2017-03-23 5:56 GMT+09:00 Boris Brezillon > >> : > >> > On Wed, 22 Mar

Re: linux-next: manual merge of the akpm tree with the tip tree

2017-03-24 Thread Peter Zijlstra
On Fri, Mar 24, 2017 at 04:40:26PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the akpm tree got a conflict in: > > arch/x86/include/asm/atomic.h > > between commit: > > e6790e4b5d5e ("locking/atomic/x86: Use atomic_try_cmpxchg()") > > from the tip tree and pat

Re: [linux-sunxi] Re: [RESEND PATCH v4 2/9] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-24 Thread Chen-Yu Tsai
On Fri, Mar 24, 2017 at 3:55 PM, Quentin Schulz wrote: > Hi, > > On 23/03/2017 10:52, Chen-Yu Tsai wrote: >> On Thu, Mar 23, 2017 at 5:35 PM, Sebastian Reichel wrote: >>> Hi, >>> >>> On Wed, Mar 22, 2017 at 12:34:45PM +0800, Chen-Yu Tsai wrote: P.S. I'm thinking about having MFD_AXP20X imply

Re: [PATCH v3 7/8] clk: qcom: Add MSM8960/APQ8064 LPASS clock controller (LCC) driver

2017-03-24 Thread Linus Walleij
On Tue, Mar 21, 2017 at 5:36 PM, Linus Walleij wrote: > When looking at this and trying to adapt it to MSM8660/APQ8060 > like Neil did with MDM9615 I get pretty confused. Nevermind, I think I have it figured out after staring at the code and branch/divider/mux clocks a bit more. I'll send out my

Re: [PATCH] lkdtm: add bad USER_DS test

2017-03-24 Thread Heiko Carstens
On Thu, Mar 23, 2017 at 01:34:19PM -0700, Kees Cook wrote: > This adds CORRUPT_USER_DS to check that the get_fs() test on syscall return > still sees USER_DS during the new VERIFY_PRE_USERMODE_STATE checks. > > Signed-off-by: Kees Cook ... > +void lkdtm_CORRUPT_USER_DS(void) > +{ > + /* > +

[tip:x86/urgent] x86/mm/KASLR: Exclude EFI region from KASLR VA space randomization

2017-03-24 Thread tip-bot for Baoquan He
Commit-ID: a46f60d76004965e5669dbf3fc21ef3bc3632eb4 Gitweb: http://git.kernel.org/tip/a46f60d76004965e5669dbf3fc21ef3bc3632eb4 Author: Baoquan He AuthorDate: Fri, 24 Mar 2017 12:59:52 +0800 Committer: Ingo Molnar CommitDate: Fri, 24 Mar 2017 09:04:27 +0100 x86/mm/KASLR: Exclude EFI reg

Re: [PATCH v2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-24 Thread Ingo Molnar
* Baoquan He wrote: > Currently KASLR is enabled on three regions: the direct mapping of physical > memory, vamlloc and vmemmap. However EFI region is also mistakenly included > for VA space randomization because of misusing EFI_VA_START macro and > assuming EFI_VA_START < EFI_VA_END. > > The E

Re: [PATCH 2/2] drm/pl111: Initial drm/kms driver for pl111

2017-03-24 Thread Linus Walleij
On Fri, Mar 24, 2017 at 12:31 AM, Russell King - ARM Linux wrote: > On Thu, Mar 23, 2017 at 10:54:53PM +0100, Linus Walleij wrote: >> Hm, I certainly want it... but it would be unreasonable of me to expect >> Eric to cold-code a big upfront design for systems he can't even test >> this on. >> >> W

Re: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-24 Thread Peter Zijlstra
On Thu, Mar 23, 2017 at 03:23:03PM -0700, Andi Kleen wrote: > On Thu, Mar 23, 2017 at 09:31:38PM +0100, Peter Zijlstra wrote: > > On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > > > From: Kan Liang > > > > > > When setting FREEZE_WHILE_SMM bit in IA32_DEBUGCTL, all performa

Re: [PATCH-tip v6 18/22] TP-futex: Group readers together in wait queue

2017-03-24 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Waiman-Long/perf-bench-New-microbenchmark-for-userspace-mutex-performance/20170324-135043 config: m32r-usrv_defconfig (attached as .config) compiler: m32r-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Uwe Kleine-König
Hello Dmitry, On Thu, Mar 23, 2017 at 12:58:04PM -0700, Dmitry Torokhov wrote: > On Thu, Mar 23, 2017 at 08:10:20PM +0100, Uwe Kleine-König wrote: > > On Thu, Mar 23, 2017 at 08:44:41AM -0700, Dmitry Torokhov wrote: > > > On Thu, Mar 23, 2017 at 07:43:25AM -0700, Dmitry Torokhov wrote: > > > > On

Re: [PATCH] ASoC: WM8962: Let codec driver enable/disable its MCLK

2017-03-24 Thread Nicolin Chen
On Fri, Mar 24, 2017 at 09:37:00AM +0200, Daniel Baluta wrote: > On Fri, Mar 24, 2017 at 6:58 AM, Nicolin Chen wrote: > > On Thu, Mar 23, 2017 at 02:01:50PM +0200, Daniel Baluta wrote: > >> From: Nicolin Chen > >> > >> WM8962 needs its MCLK when powerup in wm8962_resume(). Thus it's better > >> t

Re: [PATCH] x86/boot: Support uncompressed kernel

2017-03-24 Thread Michal Marek
On 2017-03-23 13:51, Chao Peng wrote: > Compressed kernel has its own drawback: uncompressing takes time. Even > though the time is short enough to ignore for most cases but for cases that > time is critical this is still a big number. In our on-going optimization > for kernel boot time, the measur

[PATCHv2] fs: Handle register_shrinker failure

2017-03-24 Thread Nikolay Borisov
register_shrinker allocates dynamic memory and thus is susceptible to failures under low-memory situation. Currently,get_userns ignores the return value of register_shrinker, potentially exposing not fully initialised object. This can lead to a NULL-ptr deref everytime shrinker->nr_deferred is refe

Re: [PATCH] drivers/staging/media: atomisp: Removing redundant information from dev_err

2017-03-24 Thread Dan Carpenter
On Fri, Mar 24, 2017 at 11:18:33AM +0530, Pushkar Jambhlekar wrote: > Removing hardcoded function name as code is already using __func__ > > Signed-off-by: Pushkar Jambhlekar > --- > drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH-tip v6 18/22] TP-futex: Group readers together in wait queue

2017-03-24 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Waiman-Long/perf-bench-New-microbenchmark-for-userspace-mutex-performance/20170324-135043 config: ia64-defconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Geert Uytterhoeven
Hi Uwe, On Fri, Mar 24, 2017 at 9:00 AM, Uwe Kleine-König wrote: > From: Uwe Kleine-König > Subject: [PATCH] gpiod: let get_optional return NULL in some cases with > GPIOLIB disabled > > People disagree if gpiod_get_optional should return NULL or > ERR_PTR(-ENOSYS) if GPIOLIB is disabled. The a

Re: [PATCH v7 5/7] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-03-24 Thread kbuild test robot
/Alexander-Kochetkov/Implement-clocksource-for-rockchip-SoC-using-rockchip-timer/20170324-113008 config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin

Re: [PATCH v2 1/2] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration

2017-03-24 Thread Gautham R Shenoy
On Thu, Mar 23, 2017 at 8:52 PM, Vaidyanathan Srinivasan wrote: > drv->cpumask defaults to cpu_possible_mask in __cpuidle_driver_init(). > On PowerNV platform cpu_present could be less than cpu_possible in cases > where firmware detects the cpu, but it is not available to the OS. When > CONFIG_HO

Re: [PATCH v10 00/11] uapi: export all headers under uapi directories

2017-03-24 Thread Nicolas Dichtel
Le 14/03/2017 à 13:54, Nicolas Dichtel a écrit : > Patches #1 and #2 are just cleanup: some exported headers were still under > a non-uapi directory. Patch #3 is a fix to avoid exporting a file that was > not under an uapi directory. > After these three patches, all exported headers are under an ua

Re: [PATCH] mmc: core: Do not hold re-tuning during CMD6 commands

2017-03-24 Thread Chaotian Jing
On Fri, 2017-03-24 at 09:52 +0200, Adrian Hunter wrote: > On 24/03/17 08:19, Chaotian Jing wrote: > > this patch is refine for 'commit c6dbab9cb58f ("mmc: core: Hold re-tuning > > during switch commands")' > > Since it has 3 retries at max for CMD6, if the first CMD6 got CRC error, > > then should

Re: [PATCH 07/12] ARM: dts: imx6ul-isiot: Add Sound card with codec node

2017-03-24 Thread Jagan Teki
On Fri, Mar 24, 2017 at 10:53 AM, Shawn Guo wrote: > On Wed, Mar 22, 2017 at 11:18:12PM +0530, Jagan Teki wrote: >> From: Jagan Teki >> >> Add support for Sound card and related codec(via i2c1) nodes >> on Engicam Is.IoT MX6UL variant module boards. >> >> Cc: Shawn Guo >> Cc: Matteo Lisi >> Cc:

Re: [PATCH 1/3] perf/x86: add sysfs entry to freeze counter on SMI

2017-03-24 Thread Thomas Gleixner
On Thu, 23 Mar 2017, Peter Zijlstra wrote: > On Thu, Mar 23, 2017 at 11:25:49AM -0700, kan.li...@intel.com wrote: > > + for_each_possible_cpu(cpu) { > > + rdmsrl_on_cpu(cpu, MSR_IA32_DEBUGCTLMSR, &debugctlmsr); > > + if (val) > > + wrmsrl_on_cpu(cpu, MSR_IA32

Re: [PATCH v2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-24 Thread Baoquan He
On 03/24/17 at 09:08am, Ingo Molnar wrote: > > Cc: #4.8+ > > Signed-off-by: Baoquan He > > Acked-by: Dave Young > > Reviewed-by: Bhupesh Sharma > > Acked-by: Thomas Garnier > > Cc: Thomas Gleixner > > Cc: Ingo Molnar > > Cc: "H. Peter Anvin" > > Cc: x...@kernel.org > > Cc: linux-...@vger.ke

[PATCH] fs: Handle register_shrinker failure

2017-03-24 Thread Nikolay Borisov
register_shrinker allocates dynamic memory and thus is susceptible to failures under low-memory situation. Currently,get_userns ignores the return value of register_shrinker, potentially exposing not fully initialised object. This can lead to a NULL-ptr deref everytime shrinker->nr_deferred is refe

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-24 Thread Thomas Gleixner
On Wed, 22 Mar 2017, Julia Cartwright wrote: > On Wed, Mar 22, 2017 at 01:30:12PM -0500, Grygorii Strashko wrote: > > It will not be threaded because there are IRQF_ONESHOT used. > > > > ret = devm_request_threaded_irq(&pdev->dev, irq, > > sti_mbox_irq_handl

[[RESEND]PATCH staging/speakup v3 3/3] use speakup_allocate as per required context

2017-03-24 Thread Pranay Kr. Srivastava
speakup_allocate used GFP_ATOMIC for allocations even while during initialization due to it's use in notifier call. Pass GFP_ flags as well to speakup_allocate depending on the context it is called in. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 8 1 file

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Uwe Kleine-König
Hello Geert, On Fri, Mar 24, 2017 at 09:29:02AM +0100, Geert Uytterhoeven wrote: > On Fri, Mar 24, 2017 at 9:00 AM, Uwe Kleine-König > wrote: > > From: Uwe Kleine-König > > Subject: [PATCH] gpiod: let get_optional return NULL in some cases with > > GPIOLIB disabled > > > > People disagree if gp

Re: [PATCH 2/3] asm-generic, x86: wrap atomic operations

2017-03-24 Thread Dmitry Vyukov
On Fri, Mar 24, 2017 at 8:14 AM, Dmitry Vyukov wrote: > On Fri, Mar 24, 2017 at 7:52 AM, Ingo Molnar wrote: >> >> * Dmitry Vyukov wrote: >> >>> KASAN uses compiler instrumentation to intercept all memory accesses. >>> But it does not see memory accesses done in assembly code. >>> One notable use

Re: [PATCH v7 5/7] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-03-24 Thread Alexander Kochetkov
s://github.com/0day-ci/linux/commits/Alexander-Kochetkov/Implement-clocksource-for-rockchip-SoC-using-rockchip-timer/20170324-113008 > config: arm64-defconfig (attached as .config) > compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: >wget > https://ra

Re: [[RESEND]PATCH staging/speakup v3 3/3] use speakup_allocate as per required context

2017-03-24 Thread Greg KH
On Fri, Mar 24, 2017 at 02:07:11PM +0530, Pranay Kr. Srivastava wrote: > speakup_allocate used GFP_ATOMIC for allocations > even while during initialization due to it's use > in notifier call. Is that a problem? > Pass GFP_ flags as well to speakup_allocate depending > on the context it is called

Re: [PATCH v10 00/11] uapi: export all headers under uapi directories

2017-03-24 Thread Masahiro Yamada
Hi Nicolas, 2017-03-24 17:32 GMT+09:00 Nicolas Dichtel : > Le 14/03/2017 à 13:54, Nicolas Dichtel a écrit : >> Patches #1 and #2 are just cleanup: some exported headers were still under >> a non-uapi directory. Patch #3 is a fix to avoid exporting a file that was >> not under an uapi directory. >

Re: [PATCH 0/3]measure SMI cost

2017-03-24 Thread Thomas Gleixner
On Thu, 23 Mar 2017, kan.li...@intel.com wrote: > From: Kan Liang > > Currently, there is no way to measure the time cost in System management > mode (SMM) by perf. > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once it sets, > the PMU core counters will freeze on SMI handler

Re: [v2 PATCH] powernv-cpuidle: Validate DT property array size

2017-03-24 Thread Shilpasri G Bhat
On 03/15/2017 01:45 PM, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > The various properties associated with powernv idle states such as > names, flags, residency-ns, latencies-ns, psscr, psscr-mask are > exposed in the device-tree as property arrays such the pointwise > entries in e

Re: [PATCH v2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-24 Thread Dave Young
On 03/24/17 at 04:34pm, Baoquan He wrote: > On 03/24/17 at 09:08am, Ingo Molnar wrote: > > > Cc: #4.8+ > > > Signed-off-by: Baoquan He > > > Acked-by: Dave Young > > > Reviewed-by: Bhupesh Sharma > > > Acked-by: Thomas Garnier > > > Cc: Thomas Gleixner > > > Cc: Ingo Molnar > > > Cc: "H. Pet

[PATCHv3 2/2] leds: cpcap: new driver

2017-03-24 Thread Sebastian Reichel
Motorola CPCAP is a PMIC (power management integrated circuit) found in multiple smartphones. This driver adds support for the chip's LED controllers. This introduces support for all controllers used by the Droid 4. According to Motorola's driver (no datasheets available) there a couple of more LED

[PATCHv3 1/2] mfd: cpcap: Add missing include dependencies

2017-03-24 Thread Sebastian Reichel
This fixes compilation for files, that try to include the cpcap header in alphabetically sorted #include lists. Acked-by: Pavel Machek Acked-by: Tony Lindgren Signed-off-by: Sebastian Reichel --- Changes since PATCHv2: - Add Acked-by from Tony & Pavel --- include/linux/mfd/motorola-cpcap.h |

Re: [Intel-wired-lan] [BUG] 4.11.0-rc1 panic on shutdown X61s

2017-03-24 Thread Borislav Petkov
On Thu, Mar 23, 2017 at 11:18:31PM -0700, Jeff Kirsher wrote: > I have sent a patch to revert this offending commit through David > Miller's net tree, sorry for the delay on this, I thought I had seen a > patch to revert the offending commit earlier which is why I did not > send this earlier. Than

Re: [PATCH v2] KVM: kvm_io_bus_unregister_dev() should never fail

2017-03-24 Thread Dmitry Vyukov
On Thu, Mar 23, 2017 at 9:42 PM, Marcelo Tosatti wrote: > On Thu, Mar 23, 2017 at 06:24:19PM +0100, David Hildenbrand wrote: >> No caller currently checks the return value of >> kvm_io_bus_unregister_dev(). This is evil, as all callers silently go on >> freeing their device. A stale reference will

[PATCHv4] mfd: cpcap: implement irq sense helper

2017-03-24 Thread Sebastian Reichel
CPCAP can sense if IRQ is currently set or not. This functionality is required for a few subdevices, such as the power button and usb phy modules. Acked-by: Tony Lindgren Signed-off-by: Sebastian Reichel --- Hi Lee, I hope this is fine with you. I tried to come up with a sensible macro for reg

Re: [v1 0/5] parallelized "struct page" zeroing

2017-03-24 Thread Christian Borntraeger
On 03/24/2017 12:01 AM, Pavel Tatashin wrote: > When deferred struct page initialization feature is enabled, we get a > performance gain of initializing vmemmap in parallel after other CPUs are > started. However, we still zero the memory for vmemmap using one boot CPU. > This patch-set fixes the m

Re: net/kcm: double free of kcm inode

2017-03-24 Thread Dmitry Vyukov
On Thu, Mar 23, 2017 at 7:07 PM, Cong Wang wrote: > On Thu, Mar 23, 2017 at 5:09 AM, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following report while running syzkaller fuzzer. Note the >> preceding kmem_cache_alloc injected failure, it's most likely the root >> cause. >> >> FAULT_INJECTIO

Re: [PATCH] vmlinux.lds: add __clkevt_of_table to kernel

2017-03-24 Thread Daniel Lezcano
On 22/03/2017 15:29, Alexander Kochetkov wrote: > The code introduced by commit 0c8893c9095d ("clockevents: Add a > clkevt-of mechanism like clksrc-of") refer to __clkevt_of_table > what doesn't exist in the vmlinux. As a result kernel build > failed with error: "clkevt-probe.c:63: undefined refere

Re: [PATCH v2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-24 Thread Dave Young
On 03/24/17 at 09:08am, Ingo Molnar wrote: > > * Baoquan He wrote: > > > Currently KASLR is enabled on three regions: the direct mapping of physical > > memory, vamlloc and vmemmap. However EFI region is also mistakenly included > > for VA space randomization because of misusing EFI_VA_START mac

Re: [PATCH v2] KVM: kvm_io_bus_unregister_dev() should never fail

2017-03-24 Thread David Hildenbrand
>>> - return r; >>> + if (i == bus->dev_count) >>> + return; >>> >>> new_bus = kmalloc(sizeof(*bus) + ((bus->dev_count - 1) * >>> sizeof(struct kvm_io_range)), GFP_KERNEL); >>> - if (!new_bus) >>> - return -ENOMEM; >>> +

Re: [PATCH v7 5/7] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-03-24 Thread Daniel Lezcano
On 24/03/2017 09:41, Alexander Kochetkov wrote: > The patch series should be applied after the patches [1] and [2] haven’t > merged yet into the kernel. > That mention in the cover letter. > > [1] https://lkml.org/lkml/2017/3/22/420 > [2] https://lkml.org/lkml/2017/3/22/426 Thanks for the fix Al

Re: deadlock in synchronize_srcu() in debugfs?

2017-03-24 Thread Johannes Berg
On Thu, 2017-03-23 at 16:29 +0100, Johannes Berg wrote: > Isn't it possible for the following to happen? > > CPU1 CPU2 > > mutex_lock(&M); > full_proxy_xyz(); > srcu_read_lock(&debugfs_src

Re: mm: BUG in resv_map_release

2017-03-24 Thread Dmitry Vyukov
On Thu, Mar 23, 2017 at 7:02 PM, Mike Kravetz wrote: > On 03/23/2017 10:25 AM, Mike Kravetz wrote: >> On 03/23/2017 03:19 AM, Dmitry Vyukov wrote: >>> Hello, >>> >>> I've got the following BUG while running syzkaller fuzzer. >>> Note the injected kmalloc failure, most likely it's the root cause. >

Re: [PATCH v1 RESEND 2/2] x86/efi: Clean up a minor mistake in code comment

2017-03-24 Thread Ard Biesheuvel
On 23 March 2017 at 03:27, Baoquan He wrote: > EFI allocate runtime services regions from EFI_VA_START, -4G, down > to -64G, EFI_VA_END. OK, so is the size of the region 60 GB or 64 GB? This suggests 60 GB, but the comment you update suggests 64 GB. > The mechanism was introduced in > commit d2f

Re: [PATCH] staging: wilc1000: use kernel define byte order macros

2017-03-24 Thread Dan Carpenter
On Thu, Mar 23, 2017 at 04:15:06PM -0600, Robert Perry Hooker wrote: > Well, yes, all data is 'endian' one way or another, right? I guess the byte > order of the tx/rx_buffers is host-endian > (which could be big), or _maybe_ network-endian... The good news is this code is Open Source[tm] so we d

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Geert Uytterhoeven
Hi Uwe, On Fri, Mar 24, 2017 at 9:39 AM, Uwe Kleine-König wrote: > On Fri, Mar 24, 2017 at 09:29:02AM +0100, Geert Uytterhoeven wrote: >> On Fri, Mar 24, 2017 at 9:00 AM, Uwe Kleine-König >> wrote: >> > From: Uwe Kleine-König >> > Subject: [PATCH] gpiod: let get_optional return NULL in some cas

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Linus Walleij
On Thu, Mar 23, 2017 at 8:10 PM, Uwe Kleine-König wrote: > On Thu, Mar 23, 2017 at 08:44:41AM -0700, Dmitry Torokhov wrote: >> On Thu, Mar 23, 2017 at 07:43:25AM -0700, Dmitry Torokhov wrote: >> > On Thu, Mar 23, 2017 at 02:41:53PM +0100, Linus Walleij wrote: >> > > On Thu, Mar 23, 2017 at 1:34 PM

Re: [PATCH 26/26] x86/mm: allow to have userspace mappings above 47-bits

2017-03-24 Thread Kirill A. Shutemov
On Mon, Mar 20, 2017 at 11:08:41AM -0700, h...@zytor.com wrote: > This *better* be conditional on some kind of settable limit. Having a > barrier in the middle of the address space for no apparent reason to > "clean" software is insane. I had the same argument (on your side) before, but if you lo

__link_block_group uses GFP_KERNEL

2017-03-24 Thread Denis Kirjanov
Hi guys, Looks like that current code does GFP_KERNEL allocation inside __link_block_group. the function invokes kobject_add and internally creates sysfs files with the GFP_KERNEL flag set. But since do_chunk_alloc executes insides the btrfs transaction it's not allowed to sleep. Thanks!

Re: [PATCH] x86/mce: Don't print all MCEs when mcelog is active

2017-03-24 Thread Borislav Petkov
On Thu, Mar 23, 2017 at 05:31:40PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Since > > cd9c57c x86/MCE: Dump MCE to dmesg if no consumers > > in 4.9 all MCEs are printed even when mcelog is running. This fixes That's 4.10. Applied, thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH

[PATCH] Staging: fbtft: Fix checkpatch warning

2017-03-24 Thread Anar Adilova
This patch fixes the checkpatch.pl warning: EXPORT_SYMBOL(foo); should immediately follow its function/variable. The EXPORT_SYMBOL statements are placed inside if blocks, after both function implementations. Signed-off-by: Anar Adilova --- drivers/staging/fbtft/fbtft-core.c | 6 -- 1 file

Re: [PATCH 26/26] x86/mm: allow to have userspace mappings above 47-bits

2017-03-24 Thread Kirill A. Shutemov
On Sun, Mar 19, 2017 at 02:25:08PM +0530, Aneesh Kumar K.V wrote: > >>> So if I have done a successful mmap which returned > 128TB what should a > >>> following mmap(0,...) return ? Should that now search the *full* address > >>> space or below 128TB ? > >> > >> No, I don't think so. And this imple

Re: [PATCH v10 00/11] uapi: export all headers under uapi directories

2017-03-24 Thread Nicolas Dichtel
Le 24/03/2017 à 09:42, Masahiro Yamada a écrit : > Hi Nicolas, > > > 2017-03-24 17:32 GMT+09:00 Nicolas Dichtel : >> Le 14/03/2017 à 13:54, Nicolas Dichtel a écrit : >>> Patches #1 and #2 are just cleanup: some exported headers were still under >>> a non-uapi directory. Patch #3 is a fix to avoid

Re: [PATCH 26/26] x86/mm: allow to have userspace mappings above 47-bits

2017-03-24 Thread Kirill A. Shutemov
On Mon, Mar 20, 2017 at 10:40:20AM +0530, Aneesh Kumar K.V wrote: > "Kirill A. Shutemov" writes: > @@ -168,6 +182,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const > unsigned long addr0, > > unsigned long addr = addr0; > > struct vm_unmapped_area_info info; > > > > + addr

Re: [PATCH v1 RESEND 2/2] x86/efi: Clean up a minor mistake in code comment

2017-03-24 Thread Baoquan He
On 03/24/17 at 08:57am, Ard Biesheuvel wrote: > On 23 March 2017 at 03:27, Baoquan He wrote: > > EFI allocate runtime services regions from EFI_VA_START, -4G, down > > to -64G, EFI_VA_END. > > OK, so is the size of the region 60 GB or 64 GB? This suggests 60 GB, > but the comment you update sugge

Re: [PATCH 4/6] x86/kasan: Prepare clear_pgds() to switch to

2017-03-24 Thread Kirill A. Shutemov
On Wed, Mar 22, 2017 at 08:31:36AM +0100, Ingo Molnar wrote: > * Andrey Ryabinin wrote: > > On 03/17/2017 09:55 PM, Kirill A. Shutemov wrote: > > > With folded p4d, pgd_clear() is nop. Change clear_pgds() to use > > > p4d_clear() instead. > > > > > > > You could probably just use set_pgd(pgd_off

Re: [PATCH] backlight: pwm_bl: Fix GPIO out for unimplemented .get_direction()

2017-03-24 Thread Philipp Zabel
On Wed, 2017-03-22 at 18:21 +0100, Geert Uytterhoeven wrote: > Commit 7613c922315e308a ("backlight: pwm_bl: Move the checks for initial > power state to a separate function") not just moved some code, but made > slight changes in semantics. > > If a gpiochip doesn't implement the optional .get_dir

Re: [PATCH 26/26] x86/mm: allow to have userspace mappings above 47-bits

2017-03-24 Thread Aneesh Kumar K.V
On Friday 24 March 2017 02:34 PM, Kirill A. Shutemov wrote: On Mon, Mar 20, 2017 at 10:40:20AM +0530, Aneesh Kumar K.V wrote: "Kirill A. Shutemov" writes: @@ -168,6 +182,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, unsigned long addr = addr0;

[PATCH v2] ASoC: imx-wm8960: Let codec driver enable/disable its MCLK

2017-03-24 Thread Daniel Baluta
From: Daniel Baluta WM8962 needs its MCLK when powerup in wm8962_resume(). Thus it's better to control the MCLK in codec driver. Thus remove the clock enable in machine driver accordingly. While at it, get rid of imx_wm8962_remove function since it is now empty. Signed-off-by: Daniel Baluta --

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-24 Thread Uwe Kleine-König
On Fri, Mar 24, 2017 at 09:59:04AM +0100, Geert Uytterhoeven wrote: > Hi Uwe, > > On Fri, Mar 24, 2017 at 9:39 AM, Uwe Kleine-König > wrote: > > On Fri, Mar 24, 2017 at 09:29:02AM +0100, Geert Uytterhoeven wrote: > >> On Fri, Mar 24, 2017 at 9:00 AM, Uwe Kleine-König > >> wrote: > >> > From: Uwe

[PATCH v2] x86/efi: Clean up a minor mistake in code comment

2017-03-24 Thread Baoquan He
EFI allocate runtime services regions from EFI_VA_START, -4G, down to -68G, EFI_VA_END, 64G altogether. The mechanism was introduced in commit d2f7cbe7b26a7 ("x86/efi: Runtime services virtual mapping"). Clean it up to avoid confusion. Signed-off-by: Baoquan He --- v1->v2: Update patch log to

[GIT PULL] MMC fixes for v.4.11 rc4

2017-03-24 Thread Ulf Hansson
Hi Linus, Here are a couple of mmc fixes intended for v4.11 rc4. They are based on v4.11-rc2. Details are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit 4495c08e84729385774601b5146d51d9e5849f81: Linux 4.11-rc2 (2017-03-12 1

Re: [PATCH v2] x86/mm/KASLR: EFI region is mistakenly included into KASLR VA space for randomization

2017-03-24 Thread Ingo Molnar
* Dave Young wrote: > > > So I applied this kexec fix and extended the changelog to clearly show > > > why > > > this fix matters in practice. > > > > I thought it only impacts kexec, but Dave thought it will impact 1st kenrel > > either. > > Yes, I think no need to mention kexec, it is a g

Re: [PATCH] mmc: core: Do not hold re-tuning during CMD6 commands

2017-03-24 Thread Adrian Hunter
On 24/03/17 10:32, Chaotian Jing wrote: > On Fri, 2017-03-24 at 09:52 +0200, Adrian Hunter wrote: >> On 24/03/17 08:19, Chaotian Jing wrote: >>> this patch is refine for 'commit c6dbab9cb58f ("mmc: core: Hold re-tuning >>> during switch commands")' >>> Since it has 3 retries at max for CMD6, if the

[tip:x86/asm] x86/ftrace: Rename mcount_64.S to ftrace_64.S

2017-03-24 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: db65d7b6dcd313ad54c3589813f70b805dbb48ec Gitweb: http://git.kernel.org/tip/db65d7b6dcd313ad54c3589813f70b805dbb48ec Author: Steven Rostedt (VMware) AuthorDate: Thu, 23 Mar 2017 10:33:48 -0400 Committer: Thomas Gleixner CommitDate: Fri, 24 Mar 2017 10:14:06 +0100 x86/ftrace:

[tip:x86/asm] x86/ftrace: Add stack frame pointer to ftrace_caller

2017-03-24 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: e6928e58d4d4a02f88838945f792c107623314ac Gitweb: http://git.kernel.org/tip/e6928e58d4d4a02f88838945f792c107623314ac Author: Steven Rostedt (VMware) AuthorDate: Thu, 23 Mar 2017 10:33:50 -0400 Committer: Thomas Gleixner CommitDate: Fri, 24 Mar 2017 10:14:07 +0100 x86/ftrace:

  1   2   3   4   5   6   7   8   9   10   >