[PATCH v7 2/4] sched/fair: Move load and util avgs from wake_up_new_task() to sched_fork()

2016-06-20 Thread Yuyang Du
Move new task initialization to sched_fork(). For initial non-fair class task, the first switched_to_fair() will do the attach correctly. Suggested-by: Peter Zijlstra Signed-off-by: Yuyang Du --- kernel/sched/core.c |5 +++-- kernel/sched/fair.c | 14 +- kernel/sched/sched.h

[PATCH v7 0/4] sched/fair: Fix attach and detach sched avgs for task group change and sched class change

2016-06-20 Thread Yuyang Du
Hi Peter, This new version attaches sched avgs in task_move_group_fair(), since Vincent and Peter are concerned with delaying it to task enqueue, and I agreed. Thanks a lot to Vincent and Peter. Thanks, Yuyang -- Yuyang Du (4): sched/fair: Fix attaching task sched avgs twice when switching t

[PATCH v7 1/4] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group

2016-06-20 Thread Yuyang Du
Vincent reported that the first task to a new task group's cfs_rq will be attached in attach_task_cfs_rq() and once more when it is enqueued (see https://lkml.org/lkml/2016/5/25/388). Actually, it is worse. The sched avgs can be sometimes attached twice not only when we change task groups but also

Re: [PATCH v3 0/6] Introduce ZONE_CMA

2016-06-20 Thread Joonsoo Kim
On Fri, Jun 17, 2016 at 03:38:49PM +0800, Chen Feng wrote: > Hi Kim & feng, > > Thanks for the share. In our platform also has the same use case. > > We only let the alloc with GFP_HIGHUSER_MOVABLE in memory.c to use cma memory. > > If we add zone_cma, It seems can resolve the cma migrate issue.

[PATCH v7 3/4] sched/fair: Skip detach sched avgs for new task when changing task groups

2016-06-20 Thread Yuyang Du
Newly forked task has not been enqueued, so should not be removed from cfs_rq in task_move_group_fair(). To do so, we identify newly forked tasks if their sum_exec_runtime is 0, an existing heuristic as per vruntime_normalized(). In addition to that, uniformly use this test in remove_entity_load_av

[PATCH v7 4/4] sched/fair: Add inline to detach_entity_load_evg()

2016-06-20 Thread Yuyang Du
detach_entity_load_evg() is only called by detach_task_cfs_rq(), so explicitly add inline attribute to it. Signed-off-by: Yuyang Du --- kernel/sched/fair.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index c1de063..a679407

Re: [PATCH] fix error: a bin file can truncate itself while running at overlayfs.

2016-06-20 Thread Miklos Szeredi
On Mon, Jun 20, 2016 at 4:51 AM, wrote: > From: Aihua Zhang > > I wrote a testcase to truncate a bin file while it is running at overlayfs. > the result as below: > > Bus error (core dumped) Thanks for the report. Please tell us more information about how to trigger the bug: - how did you se

RE: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

2016-06-20 Thread Mohammed, Afzal
Hi, J, KEERTHY wrote on Monday, June 20, 2016 9:22 AM: > pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of > am43xx. Fix the RSTST register offset value. > This can lead to setting of wrong power state values for PER domain. Just curious, does it happen or noticed by go

Re: [linux-sunxi] [PATCH v2] ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

2016-06-20 Thread Hans de Goede
Hi, On 20-06-16 08:42, Stefan Mavrodiev wrote: A33-OLinuXino is A33 development board designed by Olimex LTD. It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, headphone and mic jacks, connector for LiPo battery and optional 4GB NAND Flash. It has two 40-pin headers. One for

Re: RFC: Fix kdump failed with 'notsc'

2016-06-20 Thread Wei, Jiangang
ping... On Tue, 2016-06-14 at 17:54 +0800, Wei Jiangang wrote: > Hi, > > When I trigger kernel crash and specify 'notsc' for capture-kernel, > The process of kdump will be blocked at calibrate_delay_converge(). > > /* wait for "start of" clock tick */ > ticks = jiffies; > while (ticks == jiffies

Re: [PATCH v2] ARM: dts: sun8i: Add dts file for Olimex A33-OLinuXino

2016-06-20 Thread Chen-Yu Tsai
On Mon, Jun 20, 2016 at 2:42 PM, Stefan Mavrodiev wrote: > A33-OLinuXino is A33 development board designed by Olimex LTD. > > It has AXP233 PMU, 1GB DRAM, a micro SD card, one USB-OTG connector, > headphone and mic jacks, connector for LiPo battery and optional > 4GB NAND Flash. > > It has two 40-

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-20 Thread Yisen Zhuang
在 2016/6/15 18:30, Yisen Zhuang 写道: > Hi David, > > Thanks for your suggestions. > > Please see my comments below. > > Thanks, > > Yisen > > 在 2016/6/15 13:41, David Miller 写道: >> From: Yisen Zhuang >> Date: Mon, 13 Jun 2016 20:41:22 +0800 >> >>> From: Kejian Yan >>> >>> HNS receives a pac

Re: [PATCH v2 3/3] KVM: VMX: enable guest access to LMCE related MSRs

2016-06-20 Thread Paolo Bonzini
On 20/06/2016 03:49, Haozhong Zhang wrote: > Thanks for the explanation! > > If we disable LMCE in QEMU by default (even for -cpu host), will it > still be a problem? That is, > > - pc-2.7 can continue to run on old kernels unless users explicitly > require LMCE > > - existing libvirt VM con

Re: [PATCH v3] cpu/hotplug: handle unbalanced hotplug enable/disable

2016-06-20 Thread Lianwei Wang
On Thu, Jun 9, 2016 at 11:43 PM, Lianwei Wang wrote: > Currently it just print a warning message but did not > reset cpu_hotplug_disabled when the enable/disable is > unbalanced. The unbalanced enable/disable will lead > the cpu hotplug work abnormally. > > Do nothing if an unablanced hotplug enab

Re: [PATCH v10 06/14] usb: gadget.h: Add OTG to gadget interface

2016-06-20 Thread Felipe Balbi
Hi, Roger Quadros writes: > The OTG core will use struct otg_gadget_ops to > start/stop the gadget controller. > > The main purpose of this interface is to avoid directly > calling usb_gadget_start/stop() from the OTG core as they > wouldn't be defined in the built-in symbol table if > CONFIG_US

[PATCH v4 7/7] max8903: adds support for initiation via device tree

2016-06-20 Thread Chris Lapa
From: Chris Lapa Adds support for device tree to setup a max8903 battery charger. DC and USB validity are determined by looking the presence of the dok and uok gpios. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 78 + 1 file changed, 7

[PATCH v4 2/7] max8903: store pointer to pdata instead of copying it.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Stores pointer to pdata because it easily allows pdata to reference either platform data or in the future device tree data. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/d

[PATCH v4 6/7] max8903: remove unnecessary 'out of memory' error message.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Remove the 'out of memory' error message as it is printed by the core. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/max8903_charger.c b/drivers/power/max8903_charger.c index 6

[lkp] [fs] c43edc7bd9: BUG: unable to handle kernel NULL pointer dereference at 00000450

2016-06-20 Thread kernel test robot
FYI, we noticed the following commit: https://github.com/0day-ci/linux Deepa-Dinamani/Delete-CURRENT_TIME-and-CURRENT_TIME_SEC-macros/20160620-104147 commit c43edc7bd9c06af9a7278101d462eb0ba0299605 ("fs: Replace CURRENT_TIME with current_time() for inode timestamps") on test m

[PATCH v4 4/7] max8903: adds requesting of gpios.

2016-06-20 Thread Chris Lapa
From: Chris Lapa This change ensures all gpios are available for the driver to use and also splits off gpio setup into its own function for readability. Signed-off-by: Chris Lapa --- drivers/power/max8903_charger.c | 136 ++-- 1 file changed, 102 insertions(

[PATCH v4 0/7] max8903: Add device tree support and misc fixes

2016-06-20 Thread Chris Lapa
From: Chris Lapa This patch set adds device tree support for the MAX8903 battery charger. It also cleans up logic with dc_valid, dok and dcm pins as well as fixing up validity checking of gpios. I verified these patches work on a board I have here, which uses the DC power side (not the USB porti

[PATCH v4 1/7] max8903: adds documentation for device tree bindings.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt diff --git a/Documentation/devicetree/bindings/power/m

Re: kernel, mm: NULL deref in copy_process while OOMing

2016-06-20 Thread Michal Hocko
On Sun 19-06-16 12:06:53, Tetsuo Handa wrote: > On 2016/06/16 18:39, Michal Hocko wrote: > > On Wed 15-06-16 12:50:43, Sasha Levin wrote: > >> Hi all, > >> > >> I'm seeing the following NULL ptr deref in copy_process right after a bunch > >> of OOM killing activity on -next kernels: > >> > >> Out o

Re: [PATCH v10 06/14] usb: gadget.h: Add OTG to gadget interface

2016-06-20 Thread Roger Quadros
On 20/06/16 10:21, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> The OTG core will use struct otg_gadget_ops to >> start/stop the gadget controller. >> >> The main purpose of this interface is to avoid directly >> calling usb_gadget_start/stop() from the OTG core as they >> wouldn't b

Re: [RFC 12/12] x86/dumpstack: Optimize save_stack_trace

2016-06-20 Thread xinhui
On 2016年06月20日 12:55, Byungchul Park wrote: Currently, x86 implementation of save_stack_trace() is walking all stack region word by word regardless of what the trace->max_entries is. However, it's unnecessary to walk after already fulfilling caller's requirement, say, if trace->nr_entries >= tra

Re: [RESEND PATCH v2 02/13] drivers: clk: st: Simplify clock binding of STiH4xx platforms

2016-06-20 Thread Gabriel Fernandez
Hi Rob, On 19 June 2016 at 17:04, Rob Herring wrote: > On Thu, Jun 16, 2016 at 11:20:22AM +0200, Gabriel Fernandez wrote: >> This patch reworks the clock binding to avoid too much detail in DT. >> Now we have only compatible string per type of clock >> (remark from Rob https://lkml.org/lkml/2016/

Re: [RESEND PATCH v9 00/22] Add HiSilicon RoCE driver

2016-06-20 Thread oulijun
On 2016/6/8 19:55, Doug Ledford wrote: > On 6/8/2016 2:44 AM, Lijun Ou wrote: >> The HiSilicon Network Substem is a long term evolution IP which is >> supposed to be used in HiSilicon ICT SoCs. HNS (HiSilicon Network >> Sybsystem) also has a hardware support of performing RDMA with >> RoCEE. >> The

[lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80

2016-06-20 Thread kernel test robot
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git x86 commit 19fa5e73647fde1e6a7038a8f05cddf4c43f08d3 ("x86 tsc: enumerate SKL cpu_khz and tsc_khz via CPUID") on test machine: vm-kbuild-yocto-x86_64: 1 threads qemu-system-x86_64 -enable-kvm -

[PATCH] x86/mm: only allow memmap=XX!YY over existing RAM

2016-06-20 Thread Yigal Korman
Before this patch, passing a range that is beyond the physical memory range will succeed, the user will see a /dev/pmem0 and will be able to access it. Reads will always return 0 and writes will be silently ignored. I've gotten more than one bug report about mkfs.{xfs,ext4} or nvml failing that we

Re: [PATCH 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-20 Thread Heiko Carstens
On Sun, Jun 19, 2016 at 11:01:48PM -0700, Andy Lutomirski wrote: > > The tmll instruction tests if any of the higher bits within the 16k > > stackframe address are set. In this specific case that would be bits 7-15 > > (mask 0x3f80). If no bit would be set we know that only up to 128 bytes > > woul

Re: [PATCH v2] gpio: add Intel WhiskeyCove GPIO driver

2016-06-20 Thread Mika Westerberg
On Sun, Jun 19, 2016 at 08:54:32PM -0700, Bin Gao wrote: > > > +#define DRV_NAME "bxt_wcove_gpio" > > > > Drop this. > We have _TWO_ places using DRV_NAME(near the end of the file): > static struct platform_driver wcove_gpio_driver = { >.driver = { >.name = DRV_NAME, >

RE: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Yang, Wenyou
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2016年6月9日 4:27 > To: Yang, Wenyou > Cc: Alan Stern ; Greg Kroah-Hartman > ; Ferre, Nicolas ; > Pawel Moll ; Mark Brown ; Ian > Campbell ; Kumar Gala ; > Alexandre Belloni ; linux- > ker...@vger.kernel.org; d

[RFC PATCH 2/2] devicetree: Add ANX7688 transmitter binding

2016-06-20 Thread Nicolas Boichat
ANX7688 is a transmitter to support DisplayPort over USB-C for smartphone and tablets. This binding only describes the HDMI to DP component of the chip. Signed-off-by: Nicolas Boichat --- .../devicetree/bindings/video/bridge/anx7688.txt | 32 ++ 1 file changed, 32 insertio

Re: [PATCH v11 08/14] usb: otg: add OTG/dual-role core

2016-06-20 Thread Felipe Balbi
Hi, Roger Quadros writes: > It provides APIs for the following tasks > > - Registering an OTG/dual-role capable controller > - Registering Host and Gadget controllers to OTG core > - Providing inputs to and kicking the OTG state machine I think I have already mentioned this, but after over 10 y

Re: [PATCH v3] gpio: sch: Fix Oops on module load on Asus Eee PC 1201

2016-06-20 Thread Mika Westerberg
On Sat, Jun 18, 2016 at 07:05:04PM +0100, Colin Pitrat wrote: > This fixes the issue descirbe in bug 117531 > (https://bugzilla.kernel.org/show_bug.cgi?id=117531). > It's a regression introduced in linux 4.5 that causes a Oops at load of > gpio_sch and prevents powering off the computer. > > The

Re: [PATCH v2 2/4] mfd: cros_ec: add EC_PWM function definitions

2016-06-20 Thread Lee Jones
On Fri, 17 Jun 2016, Brian Norris wrote: > On Thu, Jun 16, 2016 at 04:38:17PM +0100, Lee Jones wrote: > > On Thu, 02 Jun 2016, Brian Norris wrote: > > > The EC_CMD_PWM_{GET,SET}_DUTY commands allow us to control a PWM that is > > > attached to the EC, rather than the main host SoC. The API provide

RE: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Yang, Wenyou
> -Original Message- > From: Ferre, Nicolas > Sent: 2016年6月8日 18:46 > To: Yang, Wenyou ; Alan Stern > ; Greg Kroah-Hartman > ; Rob Herring ; Alexandre > Belloni > Cc: Pawel Moll ; Mark Brown ; Ian > Campbell ; Kumar Gala ; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org; linux-a

Re: [PATCH] ARM: remove unused CONFIG_ARCH_HAS_BARRIERS

2016-06-20 Thread Arnd Bergmann
On Monday, June 20, 2016 10:28:29 AM CEST Masahiro Yamada wrote: > Hi. > > I have not had any comment on this patch, > but it looks correct to me. Yes, I agree. Feel free to add my Acked-by: Arnd Bergmann > I will put it into Russell's patch tracker > if nobody is against it. Ok, thanks!

RE: [RFC 12/12] x86/dumpstack: Optimize save_stack_trace

2016-06-20 Thread byungchul.park
> -Original Message- > From: xinhui [mailto:xinhui@linux.vnet.ibm.com] > Sent: Monday, June 20, 2016 4:29 PM > To: Byungchul Park; pet...@infradead.org; mi...@kernel.org > Cc: linux-kernel@vger.kernel.org; npig...@suse.de; wal...@google.com; > a...@suse.de; t...@inhelltoy.tec.linutronix

Re: [PATCH 1/4] thermal: rcar_gen3_thermal: Document the R-Car Gen3 thermal bindings

2016-06-20 Thread Geert Uytterhoeven
Hi Khiem, On Sun, Jun 19, 2016 at 5:33 AM, Khiem Nguyen wrote: > > Signed-off-by: Hien Dang > Signed-off-by: Khiem Nguyen Thanks for your patch! > --- > .../bindings/thermal/rcar-gen3-thermal.txt | 79 > ++ > 1 file changed, 79 insertions(+) > create mode 100644

Re: [PATCH 5/6] memory: samsung/exynos-srom: make it explicitly non-modular

2016-06-20 Thread Krzysztof Kozlowski
On 06/17/2016 02:37 AM, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > memory/samsung/Kconfig:config EXYNOS_SROM > memory/samsung/Kconfig: bool "Exynos SROM controller driver" if COMPILE_TEST > > ...meaning that it currently is not being built as a modu

Re: [PATCH 0/4] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal support

2016-06-20 Thread Geert Uytterhoeven
Hi Khiem, On Sun, Jun 19, 2016 at 5:31 AM, Khiem Nguyen wrote: > This patchset adds new thermal sensor driver to support 3 sensors > found in R-Car Gen3 series. > > It has been decided to create new driver, instead of using the existing > thermal driver due to many differences in HW setting flows

[GIT PULL] AVR32 update for 4.7

2016-06-20 Thread Hans-Christian Noren Egtvedt
Hello Linus, please pull newly rebased to 4.7-rc4 tag git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git for-linus to receive the following AVR32 update for 4.7 Hans-Christian Noren Egtvedt (2): avr32: wire up preadv2 and pwritev2 syscalls avr32: fixup code style

Re: [PATCH/RFC 3/3] arm64: dts: r8a7795: Support shared irq for thermal sensors

2016-06-20 Thread Geert Uytterhoeven
Hi Khiem, On Sun, Jun 19, 2016 at 6:16 AM, Khiem Nguyen wrote: > This patch adds the shared interrupts for thermal sensors > TSC1/TSC2/TSC3. > > Signed-off-by: Gaku Inami > Signed-off-by: Khiem Nguyen > --- > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 9 ++--- > 1 file changed, 6 insertion

Re: [PATCH 12/12] leds: Only descend into leds directory when CONFIG_NEW_LEDS is set

2016-06-20 Thread Jacek Anaszewski
On 06/18/2016 12:46 AM, Andrew F. Davis wrote: On 06/15/2016 01:48 AM, Jacek Anaszewski wrote: Hi Andrew, Thanks for the patch. Please address the issue [1] raised by test bot and resubmit. Thanks, Jacek Anaszewski [1] https://lkml.org/lkml/2016/6/13/1091 It looks like some systems use 'g

Re: [PATCH v10 08/22] IB/hns: Add icm support

2016-06-20 Thread Wei Hu (Xavier)
On 2016/6/20 14:06, Leon Romanovsky wrote: On Mon, Jun 20, 2016 at 12:37:40PM +0800, Wei Hu (Xavier) wrote: On 2016/6/17 17:58, Leon Romanovsky wrote: On Thu, Jun 16, 2016 at 10:35:16PM +0800, Lijun Ou wrote: This patch mainly added icm support for RoCE. It initializes icm which managers th

[PATCH v4 3/7] max8903: cleans up confusing relationship between dc_valid, dok and dcm.

2016-06-20 Thread Chris Lapa
From: Chris Lapa The max8903_charger.h file indicated that dcm and dok were not optional when dc_valid is set. It makes sense to have dok as a compulsory pin when dc_valid is given. However dcm can be optionally wired to a fixed level especially when the circuit is configured for dc power exclus

Re: [PATCH V2 08/63] clocksource/drivers/st_lpc: Convert init function to return error

2016-06-20 Thread Patrice Chotard
Hi Daniel On 06/16/2016 11:26 PM, Daniel Lezcano wrote: The init functions do not return any error. They behave as the following: - panic, thus leading to a kernel crash while another timer may work and make the system boot up correctly or - print an error and let the caller unaware

Re: [PATCH v2 2/4] mfd: cros_ec: add EC_PWM function definitions

2016-06-20 Thread Lee Jones
On Fri, 17 Jun 2016, Doug Anderson wrote: > Lee, > > On Fri, Jun 17, 2016 at 1:06 AM, Lee Jones wrote: > >> Probably the reason for all of these non-kernel-isms is that this > >> isn't a kernel file. From the top of the file: > >> > >> * NOTE: This file is copied verbatim from the ChromeOS EC

Re: [PATCH] zram: update zram to use zpool

2016-06-20 Thread Minchan Kim
On Fri, Jun 17, 2016 at 10:30:58AM +0200, Vitaly Wool wrote: > Hi Minchan, > > On Thu, Jun 16, 2016 at 1:17 AM, Minchan Kim wrote: > > On Wed, Jun 15, 2016 at 10:42:07PM +0800, Geliang Tang wrote: > >> Change zram to use the zpool api instead of directly using zsmalloc. > >> The zpool api doesn't

Re: [v2 PATCH 2/4] phy: Add USB Type-C PHY driver for rk3399

2016-06-20 Thread Chris Zhong
Hi Tomasz Thanks for your comments. I will modify all the the part of snip. Please find my reply in the following. On 06/18/2016 12:06 AM, Tomasz Figa wrote: Hi Chris, [snip] +struct phy_reg { + int value; + int addr; +}; + +struct phy_reg usb_pll_cfg[] = { + {0xf0,

[PATCH v4 5/7] max8903: removes non zero validity checks on gpios.

2016-06-20 Thread Chris Lapa
From: Chris Lapa Prior to this commit a zero gpio was treated as invalid. Whereas gpio_is_valid() will treat a zero gpio as valid. This commit removes the confusion and explicitly uses gpio_is_valid() throughout. Which in turn results in several of the error messages becoming redundant and thus

Re: [RESEND PATCH v2 0/1] mmc: dw_mmc: Fix UHS tuning on some brand of cards.

2016-06-20 Thread Jaehoon Chung
Hi Enric, On 06/20/2016 04:59 PM, Enric Balletbo Serra wrote: > Hi Jaehoon, > > 2016-04-27 10:53 GMT+02:00 Enric Balletbo i Serra > : >> >> >> On 27/04/16 10:35, Jaehoon Chung wrote: >>> On 04/26/2016 05:03 PM, Enric Balletbo i Serra wrote: Hi, I introduced the cover letter to give

Re: linux-next: manual merge of the iommu tree with the arm tree

2016-06-20 Thread Russell King
On Mon, Jun 20, 2016 at 01:20:09PM +1000, Stephen Rothwell wrote: > Hi Joerg, > > Today's linux-next merge of the iommu tree got a conflict in: > > drivers/iommu/mtk_iommu.c > > between commit: > > d267804c8457 ("iommu: convert DT component matching to > component_match_add_release()") >

Re: [Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-06-20 Thread Jani Nikula
Cc: Ville On Mon, 20 Jun 2016, James Bottomley wrote: > OK, my candidate bad commit is this one: > > commit a05628195a0d9f3173dd9aa76f482aef692e46ee > Author: Ville Syrjälä > Date: Mon Apr 11 10:23:51 2016 +0300 > > drm/i915: Get panel_type from OpRegion panel details > > After being mor

Re: [PATCH v7 8/8] perf record: Unmap overwrite evlist when event terminate

2016-06-20 Thread Wangnan (F)
On 2016/6/17 4:59, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 15, 2016 at 02:23:35AM +, Wang Nan escreveu: When see POLLERR or POLLHUP, unmap ring buffer from both the main evlist and overwrite evlist. When you use an auxiliary evlist this makes evlist->parent be different than evlist, r

Re: [PATCH 3.12 00/56] 3.12.61-stable review

2016-06-20 Thread Jiri Slaby
On 06/15/2016, 05:34 PM, Shuah Khan wrote: > Compiled and booted on my test system. No dmesg regressions. On 06/15/2016, 08:42 PM, Guenter Roeck wrote: > Build results: > total: 127 pass: 127 fail: 0 > Qemu test results: > total: 85 pass: 85 fail: 0 > > Details are available at http://

Re: [RESEND PATCH v2 0/1] mmc: dw_mmc: Fix UHS tuning on some brand of cards.

2016-06-20 Thread Enric Balletbo Serra
Hi Jaehoon, 2016-04-27 10:53 GMT+02:00 Enric Balletbo i Serra : > > > On 27/04/16 10:35, Jaehoon Chung wrote: >> On 04/26/2016 05:03 PM, Enric Balletbo i Serra wrote: >>> Hi, >>> >>> I introduced the cover letter to give some background about this. >>> >>> I have been investigating a problem relat

Re: [RFC PATCH-tip v2 1/6] locking/osq: Make lock/unlock proper acquire/release barrier

2016-06-20 Thread Will Deacon
On Sat, Jun 18, 2016 at 04:46:20PM +0800, Boqun Feng wrote: > On Fri, Jun 17, 2016 at 02:17:27PM -0400, Waiman Long wrote: > > keep the xchg() function as it is or use smp_store_release(&next->locked, > > 1). So which one is a better alternative for ARM or PPC? > > > > For PPC, I think xchg_relea

Re: [PATCH 10/10] mm: balance LRU lists based on relative thrashing

2016-06-20 Thread Minchan Kim
On Fri, Jun 17, 2016 at 01:01:29PM -0400, Johannes Weiner wrote: > On Fri, Jun 17, 2016 at 04:49:45PM +0900, Minchan Kim wrote: > > On Thu, Jun 16, 2016 at 11:12:07AM -0400, Johannes Weiner wrote: > > > On Wed, Jun 15, 2016 at 11:23:41AM +0900, Minchan Kim wrote: > > > > On Mon, Jun 13, 2016 at 11:

Re: [PATCH v10 06/14] usb: gadget.h: Add OTG to gadget interface

2016-06-20 Thread Felipe Balbi
Hi, Roger Quadros writes: > [ Unknown signature status ] > On 20/06/16 10:21, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >>> The OTG core will use struct otg_gadget_ops to >>> start/stop the gadget controller. >>> >>> The main purpose of this interface is to avoid directly >>>

Re: [PATCH] usb: dwc3: gadget: Add the suspend state checking when stopping gadget

2016-06-20 Thread Felipe Balbi
Baolin Wang writes: > It will be crash to stop gadget when the dwc3 device had been into suspend > state, thus we need to check if the dwc3 device had been into suspend state > when UDC try to stop gadget. > > By the way I have rebased on your 'testing/next' branch. do you really want this note

Re: ktime_get_ts64() splat during resume

2016-06-20 Thread chenyu
On Fri, Jun 17, 2016 at 11:28 PM, Rafael J. Wysocki wrote: > On Fri, Jun 17, 2016 at 4:33 PM, Borislav Petkov wrote: >> Ok, >> >> bisect is done, full log below. >> >> Rafael, that fix >> >> 70595b479ce1 ("x86/power/64: Fix crash whan the hibernation code passes >> control to the image kernel"

Re: [PATCH] usb: dwc3: gadget: Add the suspend state checking when stopping gadget

2016-06-20 Thread Baolin Wang
On 20 June 2016 at 16:15, Felipe Balbi wrote: > Baolin Wang writes: > >> It will be crash to stop gadget when the dwc3 device had been into suspend >> state, thus we need to check if the dwc3 device had been into suspend state >> when UDC try to stop gadget. >> >> By the way I have rebased on you

Re: [PATCHv2] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-20 Thread Lee Jones
On Mon, 20 Jun 2016, Phil Reid wrote: > On 20/06/2016 14:21, Lothar Waßmann wrote: > >Hi, > > > >On Fri, 17 Jun 2016 15:17:19 +0100 Lee Jones wrote: > >>On Sat, 11 Jun 2016, Lothar Waßmann wrote: > >>>On Fri, 10 Jun 2016 15:54:49 +0100 Lee Jones wrote: > On Fri, 10 Jun 2016, Lothar Waßmann wro

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-06-20 Thread Michal Hocko
On Sat 18-06-16 12:11:19, KarimAllah Ahmed wrote: > When sparse memory model is used an array of memory sections is created to > track each block of contiguous physical pages. Each element of this array > contains PAGES_PER_SECTION pages. During the creation of this array the actual > boundaries of

Re: [PATCH] ARM: AM43XX: hwmod: Fix RSTST register offset for pruss

2016-06-20 Thread Keerthy
On Monday 20 June 2016 12:35 PM, Mohammed, Afzal wrote: Hi, J, KEERTHY wrote on Monday, June 20, 2016 9:22 AM: pruss hwmod RSTST register wrongly points to PWRSTCTRL register in case of am43xx. Fix the RSTST register offset value. This can lead to setting of wrong power state values for P

Re: [PATCH v4 1/2] i2c: qup: add ACPI support

2016-06-20 Thread Mika Westerberg
On Sat, Jun 18, 2016 at 04:10:34PM +0200, Wolfram Sang wrote: > On Wed, Jun 08, 2016 at 12:19:44PM -0600, Austin Christ wrote: > > From: Naveen Kaje > > > > Add support to get the device parameters from ACPI. Assume > > that the clocks are managed by firmware. > > Adding Mika to CC: Can you have

Re: [PATCH v5 0/7] /dev/random - a new approach

2016-06-20 Thread Pavel Machek
Hi! > > On Sun 2016-06-19 17:58:41, Stephan Mueller wrote: > > > Hi Herbert, Ted, > > > > > > The following patch set provides a different approach to /dev/random which > > > I call Linux Random Number Generator (LRNG) to collect entropy within the > > > Linux kernel. The main improvements compar

[PATCH] Bluetooth: btmrvl: fix slab-out-of-bounds access in btmrvl_sdio

2016-06-20 Thread Ricky Liang
Kasan reported slab-out-of-bounds access in btmrvl_sdio: [ 33.055400] == [ 33.062585] BUG: KASAN: slab-out-of-bounds in memcpy+0x24/0x50 at addr ffc0d89b4a00 [ 33.070529] Read of size 256 by task btmrvl_main_ser/3576 [ 3

Re: [PATCH v9 2/4] power: reset: add reboot mode driver

2016-06-20 Thread Andy Yan
Hi Krzysztof: On 2016年06月20日 16:09, Krzysztof Kozlowski wrote: On 06/20/2016 08:38 AM, Andy Yan wrote: This driver parses the reboot commands like "reboot bootloader" and "reboot recovery" to get a boot mode described in the device tree , then call the write interfae to store the boot mode in s

Re: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Alexandre Belloni
On 20/06/2016 at 03:16:35 +, Yang, Wenyou wrote : > > Sure, what I mean is that you can try to get the regmap for the SFR in > > every case. > > Depending on whether you were able to get it, you can decide to call > > ohci_at91_port_suspend/resume or not (just test for sfr_regmap != NULL). >

[PATCH v2] usb: dwc3: gadget: Add the suspend state checking when stopping gadget

2016-06-20 Thread Baolin Wang
It will be crash to stop gadget when the dwc3 device had been into suspend state, thus we need to check if the dwc3 device had been into suspend state when UDC try to stop gadget. Signed-off-by: Baolin Wang --- drivers/usb/dwc3/gadget.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/d

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6755 support

2016-06-20 Thread Matthias Brugger
On 14/06/16 04:20, Mars Cheng wrote: This adds basic chip support for MT6755 SoC. Signed-off-by: Mars Cheng --- arch/arm64/boot/dts/mediatek/Makefile |1 + arch/arm64/boot/dts/mediatek/mt6755-phone.dts | 39 +++ arch/arm64/boot/dts/mediatek/mt6755.dtsi | 143 ++

Re: [PATCH v10 06/14] usb: gadget.h: Add OTG to gadget interface

2016-06-20 Thread Roger Quadros
On 20/06/16 11:13, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >> [ Unknown signature status ] >> On 20/06/16 10:21, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Roger Quadros writes: The OTG core will use struct otg_gadget_ops to start/stop the gadget controller. The m

Re: tg_load_down NULL pointer dereference

2016-06-20 Thread Peter Zijlstra
On Mon, Jun 20, 2016 at 06:14:01AM +, AMIT NAGAL wrote: > Hi > I am using Linux kernel version 3.10.28 (ARM platform) . > I am getting NULL pointer dereference in tg_load_down() . > At the time of error , tg->parent->cfs_rq value is 0 and tg->se value is > 0x0400 . ( refer to backtrac

mmc: dw_mmc: warning with CONFIG_DMA_API_DEBUG

2016-06-20 Thread Seung-Woo Kim
Hi folks, During booting test on my Exynos5422 based Odroid-XU3, kernel compiled with CONFIG_DMA_API_DEBUG reported following warning: [ cut here ] WARNING: CPU: 0 PID: 0 at lib/dma-debug.c:1096 check_unmap+0x7bc/0xb38 dwmmc_exynos 1220.mmc: DMA-API: device driver trie

Re: [PATCH] THP: Fix comments of __pmd_trans_huge_lock

2016-06-20 Thread Kirill A. Shutemov
On Fri, Jun 17, 2016 at 02:46:36PM -0700, Huang, Ying wrote: > From: Huang Ying > > To make the comments consistent with the already changed code. > > Signed-off-by: "Huang, Ying" Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov

Re: [PATCH v3 1/7] leds: convert IDE trigger to common disk trigger

2016-06-20 Thread Jacek Anaszewski
Hi Stephan, On 06/09/2016 12:29 AM, Stephan Linz wrote: This patch converts the IDE specific LED trigger to a generic disk activity LED trigger. The libata core is now a trigger source just like before the IDE disk driver. It's merely a replacement of the string ide by disk. The patch is taken

Re: [PATCH 4/4] ASoC: tpa6130a2: Add DAPM support

2016-06-20 Thread Peter Ujfalusi
On 06/18/2016 07:42 AM, Helen Koike wrote: > Add DAPM support and updated rx51 accordingly. > As a consequence: > - the exported function tpa6130a2_stereo_enable is not needed anymore > - the mutex is dealt in the DAPM > - the power state is tracked by the DAPM > > Signed-off-by: Lars-Peter Clause

Re: Stable -rc git trees and email headers

2016-06-20 Thread Jiri Slaby
On 06/18/2016, 07:22 AM, Fengguang Wu wrote: > Hi Greg, > > On Fri, Jun 17, 2016 at 08:16:20PM -0700, Greg KH wrote: >> Hi, >> >> I've finally gotten off my butt and made my quilt trees of patches into >> a "semi-proper" git tree to make it easier for people to test them. >> >> I'm now pushing the

Re: [PATCH v5 0/6] Support calling functions on dedicated physical cpu

2016-06-20 Thread Juergen Gross
On 06/04/16 16:17, Juergen Gross wrote: > Some hardware (e.g. Dell Studio laptops) require special functions to > be called on physical cpu 0 in order to avoid occasional hangs. When > running as dom0 under Xen this could be achieved only via special boot > parameters (vcpu pinning) limiting the hy

Re: [PATCH v9 2/4] power: reset: add reboot mode driver

2016-06-20 Thread Krzysztof Kozlowski
On 06/20/2016 08:38 AM, Andy Yan wrote: > This driver parses the reboot commands like "reboot bootloader" > and "reboot recovery" to get a boot mode described in the > device tree , then call the write interfae to store the boot > mode in some place like special register or sram, which can > be rea

Re: [PATCH 7/9] mfd: tps65218: add version check to the PMIC probe

2016-06-20 Thread Keerthy
On Monday 20 June 2016 02:13 PM, Keerthy wrote: From: Tero Kristo Version information will be needed to handle some error cases under the regulator driver, so store the information once during MFD probe. + Lee Jones. Signed-off-by: Tero Kristo Signed-off-by: Dave Gerlach Signed-off-by:

[PATCH 9/9] ARM: dts: am437x-sk-evm: disable DDR regulator in rtc-only/poweroff mode

2016-06-20 Thread Keerthy
From: Tero Kristo Without this, the memory will remain active during poweroff consuming extra power. Please note revision 2.1 PMIC seems to fail when DCDC3 disable is attempted, so this is not done on that PMIC revision. The PMIC revision checks in the regulator patches make sure of this. Signed

[PATCH 2/9] regulator: of: setup initial suspend state

2016-06-20 Thread Keerthy
Setup initial suspend state to mem, if suspend state is defined for mem state. This makes sure that the regulators are in proper mode already from boot. Signed-off-by: Tero Kristo Signed-off-by: Dave Gerlach Signed-off-by: Keerthy --- drivers/regulator/of_regulator.c | 3 +++ 1 file changed, 3

[PATCH 5/9] regulator: tps65218: force set power-up/down strobe to 3 for dcdc3

2016-06-20 Thread Keerthy
From: Tero Kristo The reset value for this register seems broken on certain versions of tps65218 chip, so make sure the dcdc3 settings is proper. Needed for proper functionality of rtc+ddr / rtc-only modes. Signed-off-by: Tero Kristo Signed-off-by: Dave Gerlach Signed-off-by: Keerthy --- dri

Re: [PATCH v2] mfd: intel_soc_pmic_bxtwc: Add Intel BXT WhiskeyCove PMIC ADC thermal channel-zone mapping

2016-06-20 Thread Lee Jones
On Sun, 19 Jun 2016, Bin Gao wrote: > On Fri, Jun 17, 2016 at 09:01:59AM +0100, Lee Jones wrote: > > > +static struct trip_config_map str0_trip_config[] = { > > > + { > > > + .irq_reg = BXTWC_THRM0IRQ, > > > + .irq_mask = 0x01, > > > + .irq_en = BXTWC_MTHRM0IRQ, > > > +

[PATCH 3/9] regulator: tps65218: Enable suspend configuration

2016-06-20 Thread Keerthy
From: Tero Kristo This allows platform data to specify which power rails should be on or off during RTC only suspend. This is necessary to keep DDR state while in RTC only suspend. Signed-off-by: Tero Kristo Signed-off-by: Keerthy --- drivers/regulator/tps65218-regulator.c | 72 ++

RE: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Yang, Wenyou
Hi Alexandre & Nicolas, > -Original Message- > From: Alexandre Belloni [mailto:alexandre.bell...@free-electrons.com] > Sent: 2016年6月20日 16:04 > To: Yang, Wenyou > Cc: Rob Herring ; Alan Stern ; > Greg Kroah-Hartman ; Ferre, Nicolas > ; Pawel Moll ; Mark Brown > ; Ian Campbell ; Kumar > Ga

[PATCH 8/9] regulator: tps65218: do not disable DCDC3 during poweroff on broken PMICs

2016-06-20 Thread Keerthy
From: Tero Kristo Some versions of tps65218 do not seem to support poweroff modes properly if DCDC3 regulator is shut-down. Thus, keep it enabled even during poweroff if the version info matches the broken silicon revision. Signed-off-by: Tero Kristo Signed-off-by: Dave Gerlach Signed-off-by:

Re: [PATCH v2] mfd: intel_soc_pmic_bxtwc: Add Intel BXT WhiskeyCove PMIC ADC thermal channel-zone mapping

2016-06-20 Thread Lee Jones
On Mon, 20 Jun 2016, Lee Jones wrote: > On Sun, 19 Jun 2016, Bin Gao wrote: > > On Fri, Jun 17, 2016 at 09:01:59AM +0100, Lee Jones wrote: > > > > +static struct trip_config_map str0_trip_config[] = { > > > > + { > > > > + .irq_reg = BXTWC_THRM0IRQ, > > > > + .irq

[PATCH 6/9] ARM: dts: am437x-gp-evm: disable DDR regulator in rtc-only/poweroff mode

2016-06-20 Thread Keerthy
From: Tero Kristo Without this, the memory will remain active during poweroff consuming extra power. Signed-off-by: Tero Kristo Signed-off-by: Dave Gerlach Signed-off-by: Keerthy --- arch/arm/boot/dts/am437x-gp-evm.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/

[RFC PATCH 1/2] drm: bridge: anx7688: Add anx7688 bridge driver support.

2016-06-20 Thread Nicolas Boichat
ANX7688 is a HDMI to DP converter (as well as USB-C port controller), that has an internal microcontroller. The only reason a Linux kernel driver is necessary is to reject resolutions that require more bandwidth than what is available on the DP side. DP bandwidth and lane count are reported by the

Re: [PATCH v3 1/2] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Alexandre Belloni
On 20/06/2016 at 08:46:02 +, Yang, Wenyou wrote : > Hi Alexandre & Nicolas, > > > -Original Message- > > From: Alexandre Belloni [mailto:alexandre.bell...@free-electrons.com] > > Sent: 2016年6月20日 16:04 > > To: Yang, Wenyou > > Cc: Rob Herring ; Alan Stern ; > > Greg Kroah-Hartman ; Fe

[PATCH 0/9] regulator: Enable suspend configuration

2016-06-20 Thread Keerthy
The series adds suspend configuration for tps65218 and tps65217 PMICs. Boot tested on am437x-sk-evm, am437x-gp-evm, am335x-bone, am335x-boneblack Keerthy (2): regulator: of: setup initial suspend state ARM: dts: AM437X-GP-EVM: AM437X-SK-EVM: Make dcdc3 dcdc5 and dcdc6 enable during suspen

[PATCH 1/9] regulator: tps65217: Enable suspend configuration

2016-06-20 Thread Keerthy
From: Russ Dill This allows platform data to specify which power rails should be on or off during RTC only suspend. This is necessary to keep DDR state while in RTC only suspend. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/regulator/tps65217-regulator.c | 74 ++

Re: [PATCH] mfd: twl6040: Handle mclk used for HPPLL and optional internal clock source

2016-06-20 Thread Peter Ujfalusi
On 06/16/2016 06:16 PM, Lee Jones wrote: > On Wed, 11 May 2016, Peter Ujfalusi wrote: > >> On some boards, like omap5-uevm the MCLK is gated by default and in order >> to be able to use the High performance modes of twl6040 it need to be >> enabled by SW. >> Add support for handling the MCLK sourc

Re: [PATCH] ARM: multi_v7_defconfig: Build Atmel maXTouch driver as a module

2016-06-20 Thread Sjoerd Simons
Hey, On Tue, 2016-06-14 at 17:20 -0400, Javier Martinez Canillas wrote: > The driver is for a trackpad device so is not needed for booting and > makes more sense to have it as module to reduce the kernel image > size. > > It was probably enabled as built-in because module autoload was not > worki

Re: [PATCH v1 1/2] mm: thp: move pmd check inside ptl for freeze_page()

2016-06-20 Thread Naoya Horiguchi
On Fri, Jun 17, 2016 at 11:40:41AM +0300, Kirill A. Shutemov wrote: > On Fri, Jun 17, 2016 at 11:30:03AM +0900, Naoya Horiguchi wrote: > > I found a race condition triggering VM_BUG_ON() in freeze_page(), when > > running > > a testcase with 3 processes: > > - process 1: keep writing thp, > >

  1   2   3   4   5   6   7   8   9   10   >