Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-24 Thread Christian Borntraeger
On 05/24/2016 04:25 AM, Wanpeng Li wrote: > 2016-05-24 10:19 GMT+08:00 Wanpeng Li : >> 2016-05-24 2:01 GMT+08:00 David Matlack : >>> On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: From: Wanpeng Li >>> >>> I'm ok with this patch, but I'd like to better understand the target >>> workloads.

Re: [PATCH 03/16] sched/fair: Disregard idle task wakee_flips in wake_wide

2016-05-24 Thread Yuyang Du
On Mon, May 23, 2016 at 01:00:10PM +0100, Morten Rasmussen wrote: > On Mon, May 23, 2016 at 01:12:07PM +0200, Mike Galbraith wrote: > > On Mon, 2016-05-23 at 11:58 +0100, Morten Rasmussen wrote: > > > wake_wide() is based on task wakee_flips of the waker and the wakee to > > > decide whether an aff

Re: [PATCH 09/16] sched/fair: Let asymmetric cpu configurations balance at wake-up

2016-05-24 Thread Mike Galbraith
On Mon, 2016-05-23 at 11:58 +0100, Morten Rasmussen wrote: > Currently, SD_WAKE_AFFINE always takes priority over wakeup balancing if > SD_BALANCE_WAKE is set on the sched_domains. For asymmetric > configurations SD_WAKE_AFFINE is only desirable if the waking task's > compute demand (utilization) i

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-24 Thread Wanpeng Li
2016-05-24 10:19 GMT+08:00 Wanpeng Li : > 2016-05-24 2:01 GMT+08:00 David Matlack : >> On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: >>> From: Wanpeng Li >> >> I'm ok with this patch, but I'd like to better understand the target >> workloads. What type of workloads do you expect to benefit f

Re: [PATCH v3] dell-rbtn: Ignore ACPI notifications if device is suspended

2016-05-24 Thread Pali Rohár
On Tuesday 24 May 2016 06:48:41 Andrei Borzenkov wrote: > 24.05.2016 02:03, Gabriele Mazzotta пишет: > > On 24/05/2016 00:22, Pali Rohár wrote: > >> On Tuesday 24 May 2016 00:17:15 Darren Hart wrote: > >>> On Tue, May 24, 2016 at 12:06:03AM +0200, Pali Rohár wrote: > On Monday 23 May 2016 23:2

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-24 Thread Wanpeng Li
2016-05-24 14:59 GMT+08:00 Christian Borntraeger : > On 05/24/2016 04:25 AM, Wanpeng Li wrote: >> 2016-05-24 10:19 GMT+08:00 Wanpeng Li : >>> 2016-05-24 2:01 GMT+08:00 David Matlack : On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: > From: Wanpeng Li I'm ok with this patch,

Re: [PATCH 03/16] sched/fair: Disregard idle task wakee_flips in wake_wide

2016-05-24 Thread Yuyang Du
On Mon, May 23, 2016 at 05:42:20PM +0200, Mike Galbraith wrote: > On Mon, 2016-05-23 at 15:10 +0100, Morten Rasmussen wrote: > > On Mon, May 23, 2016 at 03:00:46PM +0200, Mike Galbraith wrote: > > > On Mon, 2016-05-23 at 13:00 +0100, Morten Rasmussen wrote: > > > > > > > The problem then seems to

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-24 Thread Wanpeng Li
2016-05-24 14:59 GMT+08:00 Christian Borntraeger : > On 05/24/2016 04:25 AM, Wanpeng Li wrote: >> 2016-05-24 10:19 GMT+08:00 Wanpeng Li : >>> 2016-05-24 2:01 GMT+08:00 David Matlack : On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: > From: Wanpeng Li I'm ok with this patch,

Re: [PATCH 09/16] sched/fair: Let asymmetric cpu configurations balance at wake-up

2016-05-24 Thread Mike Galbraith
On Tue, 2016-05-24 at 09:03 +0200, Mike Galbraith wrote: > This doesn't look like it's restricted to big/little setups, so could > overrule wake_wide() wanting to NAK a x-node pull. Bah, nevermind.

Re: zone_reclaimable() leads to livelock in __alloc_pages_slowpath()

2016-05-24 Thread Michal Hocko
On Mon 23-05-16 17:14:19, Oleg Nesterov wrote: > On 05/23, Michal Hocko wrote: [...] > > Could you add some tracing and see what are the numbers > > above? > > with the patch below I can press Ctrl-C when it hangs, this breaks the > endless loop and the output looks like > > vmscan: ZONE=ff

[PATCH v2 2/5] perf config: Reimplement perf_config() using perf_config_set__iter()

2016-05-24 Thread Taeung Song
Everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use config set that already contains all config key-value pairs to avoid this repetitive work reading the config files in perf_c

[PATCH v2 3/5] perf config: Modify perf_config_set__delete() using global variable 'config_set'

2016-05-24 Thread Taeung Song
This function deleted allocated config set but the global variable 'config_set' is used all around so this directly remove 'config_set' instead of using local variable 'set'. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Alexander Shishkin Signed-off-by: Taeung Song --- tools/perf/

[PATCH v2 1/5] perf config: Use new perf_config_set__init() to initialize config set

2016-05-24 Thread Taeung Song
Instead of perf_config(), This function initialize config set collecting all configs from config files (i.e. user config ~/.perfconfig and system config $(sysconfdir)/perfconfig). If there are the same config variable both user and system config file, user config has higher priority than system co

[PATCH v2 5/5] perf config: Reset config set at only 'config' sub-command

2016-05-24 Thread Taeung Song
When first calling perf_config(), config set is initialized but 'config' sub-command need to reset config set because of '--user' or '--system' options. The options of 'config' sub-command is to select a particular config file location so the config set should be reinitialized collecting configs f

[RFC][PATCH v2 0/5] perf config: Reimplement perf_config() using perf_config_set__inter()

2016-05-24 Thread Taeung Song
Everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use 'struct perf_config_set config_set' variable that already contains all config key-value pairs to avoid this repetitive work

[PATCH v2 4/5] perf config: Reimplement show_config() using perf_config()

2016-05-24 Thread Taeung Song
Old show_config() directly use config set so there are many duplicated code with perf_config_set__iter(). So reimplement show_config() using perf_config() that use perf_config_set__iter() with config set that already contains all configs. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Masami Hiramatsu Cc:

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v3

2016-05-24 Thread Daniel Stone
Hi Tomeu, On 5 April 2016 at 16:07, Tomeu Vizoso wrote: > On 4 April 2016 at 17:44, Daniel Stone wrote: >> On 4 April 2016 at 14:55, Tomeu Vizoso wrote: >>> + if (async) { >>> + for_each_crtc_in_state(state, crtc, crtc_state, i) { >>> + if (crtc->state-

RE: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-24 Thread Gabriele Paoloni
Hi Bjorn > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 24 May 2016 00:39 > To: Gabriele Paoloni > Cc: Lorenzo Pieralisi; Ard Biesheuvel; Jon Masters; Tomasz Nowicki; > a...@arndb.de; will.dea...@arm.com; catalin.mari...@arm.com; > raf...@kernel.org; hanjun.

[PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v4

2016-05-24 Thread Tomeu Vizoso
As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". v2: Use the status of the workqueue instead of vop->event, and don't add a superfluous wait on the workqueue. v3: Drop work_busy, as there's a sizeable delay when

[PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Tomeu Vizoso
As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". v2: Use the status of the workqueue instead of vop->event, and don't add a superfluous wait on the workqueue. v3: Drop work_busy, as there's a sizeable delay when

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Daniel Stone
On 24 May 2016 at 09:27, Tomeu Vizoso wrote: > As per the docs, atomic_commit should return -EBUSY "if an asycnhronous > updated is requested and there is an earlier updated pending". > > v2: Use the status of the workqueue instead of vop->event, and don't add > a superfluous wait on the workqueue

Re: [PATCH 00/11] Clock improvement for video playback

2016-05-24 Thread Arnaud Pouliquen
Hello Gabriel, Tested with success on stih407 family platforms Reviewed-by: Arnaud Pouliquen Tested-by: Arnaud Pouliquen Regards Arnaud On 05/18/2016 10:41 AM, Gabriel Fernandez wrote: > This serie allows to increase video resolutions and make audio > adjustment during a video playback. > >

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> On Fri, 20 May 2016 17:59:46 +0800 > Liang Li wrote: > > > The implementation of the current virtio-balloon is not very > > efficient, Bellow is test result of time spends on inflating the > > balloon to 3GB of a 4GB idle guest: > > > > a. allocating pages (6.5%, 103ms) > > b. sending PFNs to h

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> On 20/05/2016 11:59, Liang Li wrote: > > + > > + sg_init_table(sg, 5); > > + sg_set_buf(&sg[0], &flags, sizeof(flags)); > > + sg_set_buf(&sg[1], &start_pfn, sizeof(start_pfn)); > > + sg_set_buf(&sg[2], &page_shift, sizeof(page_shift)); > > + sg_se

Re: [PATCH 8/8] af_unix: charge buffers to kmemcg

2016-05-24 Thread Vladimir Davydov
[adding netdev to Cc] On Mon, May 23, 2016 at 01:20:29PM +0300, Vladimir Davydov wrote: > Unix sockets can consume a significant amount of system memory, hence > they should be accounted to kmemcg. > > Since unix socket buffers are always allocated from process context, > all we need to do to cha

[PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the base of dynamic halt-polling, lower-end of message passing workload latency TCP_RR's poll time < 10us) we can treat it as a short halt, and poll to wait it fire, the fire callback apic_timer_fn() will set KVM_REQ_

Re: [PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-24 Thread Mika Westerberg
On Mon, May 23, 2016 at 02:55:00PM -0500, Bjorn Helgaas wrote: > On Mon, May 23, 2016 at 11:11:55AM +0300, Mika Westerberg wrote: > > Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added > > call to pm_runtime_no_callbacks() for each port service device to prevent > > them expos

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Maxime Coquelin
2016-05-23 22:35 GMT+02:00 Arnd Bergmann : > On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: >> We have been getting build warning about: >> drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read': >> drivers/char/hw_random/stm32-rng.c:82:19: warning: 'sr' may be used >>

Re: [PATCH 09/16] sched/fair: Let asymmetric cpu configurations balance at wake-up

2016-05-24 Thread Yuyang Du
On Mon, May 23, 2016 at 11:58:51AM +0100, Morten Rasmussen wrote: > Currently, SD_WAKE_AFFINE always takes priority over wakeup balancing if > SD_BALANCE_WAKE is set on the sched_domains. For asymmetric > configurations SD_WAKE_AFFINE is only desirable if the waking task's > compute demand (utiliza

Re: [PATCH 04/16] sched/fair: Optimize find_idlest_cpu() when there is no choice

2016-05-24 Thread Morten Rasmussen
On Tue, May 24, 2016 at 08:29:05AM +0200, Mike Galbraith wrote: > On Mon, 2016-05-23 at 11:58 +0100, Morten Rasmussen wrote: > > In the current find_idlest_group()/find_idlest_cpu() search we end up > > calling find_idlest_cpu() in a sched_group containing only one cpu in > > the end. Checking idle

Re: [PATCH v6 11/12] zsmalloc: page migration support

2016-05-24 Thread Sergey Senozhatsky
Hello, On (05/24/16 15:28), Minchan Kim wrote: [..] > Most important point to me is that it makes code *simple* at the cost of > addtional wasting memory. Now, every zspage lives in *a* list so we don't > need to check zspage groupness to use list_empty of zspage. > I'm not sure how you feel it ma

[PATCH] usb: core: add debugobjects support for urb object

2016-05-24 Thread changbin . du
From: "Du, Changbin" Add debugobject support to track the life time of struct urb. This feature help us detect violation of urb operations by generating a warning message from debugobject core. And we fix the possible issues at runtime to avoid oops if we can. I have done some tests with some cl

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-24 Thread Marc Zyngier
On 23/05/16 22:13, Rich Felker wrote: > On Mon, May 23, 2016 at 03:53:20PM -0500, Rob Herring wrote: >> On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: >>> Signed-off-by: Rich Felker >>> --- >>> .../bindings/interrupt-controller/jcore,aic.txt| 28 >>> ++ >>>

Re: [PATCH 09/16] sched/fair: Let asymmetric cpu configurations balance at wake-up

2016-05-24 Thread Morten Rasmussen
On Tue, May 24, 2016 at 08:04:24AM +0800, Yuyang Du wrote: > On Mon, May 23, 2016 at 11:58:51AM +0100, Morten Rasmussen wrote: > > Currently, SD_WAKE_AFFINE always takes priority over wakeup balancing if > > SD_BALANCE_WAKE is set on the sched_domains. For asymmetric > > configurations SD_WAKE_AFFI

[RESEND PATCH] perf tools: Add arch/*/include/generated/ to .gitignore

2016-05-24 Thread Taeung Song
Commit 1b700c9975008615ad470cf79acc8455ce60a695 ("perf tools: Build syscall table .c header from kernel's syscall_64.tbl") that automatically generate per-arch syscall table arrays e.g. arch/x86/include/generated/asm/syscalls_64.c So add this directory to .gitignore Cc: Namhyung Kim Cc: Jir

Re: [PATCH 04/16] sched/fair: Optimize find_idlest_cpu() when there is no choice

2016-05-24 Thread Mike Galbraith
On Tue, 2016-05-24 at 09:05 +0100, Morten Rasmussen wrote: > On Tue, May 24, 2016 at 08:29:05AM +0200, Mike Galbraith wrote: > > > > > +> > > > > > > > /* Check if we have any choice */ > > > +> > > > > > > > if (group->group_weight == 1) { > > > +> > > > > > > > > > > > > > > return > > >

Re: v4.6 kernel BUG at mm/rmap.c:1101!

2016-05-24 Thread Mika Westerberg
On Mon, May 23, 2016 at 05:08:26PM +0200, Andrea Arcangeli wrote: > On Mon, May 23, 2016 at 05:06:38PM +0300, Mika Westerberg wrote: > > Hi, > > > > After upgrading kernel of my desktop system from v4.6-rc7 to v4.6, I've > > started seeing following: > > > > [176611.093747] page:ea36

[PATCH V2] MAINTAINERS: Add Dialog PMIC search terms for missing documentation and header files

2016-05-24 Thread Steve Twiss
From: Steve Twiss Dialog Semiconductor support would like to follow files by adding to the existing MAINTAINERS search terms. The update will allow us to follow files for PMIC documentation bindings and header files. The full list is: DT bindings - Documentation/devicetree/bindings/mfd/da9052-

Re: [PATCH v6 11/12] zsmalloc: page migration support

2016-05-24 Thread Minchan Kim
On Tue, May 24, 2016 at 05:05:11PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (05/24/16 15:28), Minchan Kim wrote: > [..] > > Most important point to me is that it makes code *simple* at the cost of > > addtional wasting memory. Now, every zspage lives in *a* list so we don't > > need to che

Re: [RFC PATCH 1/2] Input: rotary-encoder- Add support for absolute encoder

2016-05-24 Thread Uwe Kleine-König
Hello, On Tue, May 24, 2016 at 10:39:26AM +0530, Vignesh R wrote: > On 05/23/2016 06:48 PM, Uwe Kleine-König wrote: > > On Mon, May 23, 2016 at 04:48:40PM +0530, R, Vignesh wrote: > >> On 5/22/2016 3:56 PM, Uwe Kleine-König wrote: > >>> On Thu, May 19, 2016 at 02:34:00PM +0530, Vignesh R wrote: >

[PATCH V3 1/2] usb: musb: Ensure rx reinit occurs for shared_fifo endpoints

2016-05-24 Thread Andrew Goodbody
shared_fifo endpoints would only get a previous tx state cleared out, the rx state was only cleared for non shared_fifo endpoints Change this so that the rx state is cleared for all endpoints. This addresses an issue that resulted in rx packets being dropped silently. Signed-off-by: Andrew Goodbod

[PATCH V3 2/2] usb: musb: Stop bulk endpoint while queue is rotated

2016-05-24 Thread Andrew Goodbody
Ensure that the endpoint is stopped by clearing REQPKT before clearing DATAERR_NAKTIMEOUT before rotating the queue on the dedicated bulk endpoint. This addresses an issue where a race could result in the endpoint receiving data before it was reprogrammed resulting in a warning about such data from

[PATCH V3 0/2] usb: musb: fix dropped packets

2016-05-24 Thread Andrew Goodbody
The musb driver can drop rx packets when heavily loaded. These two patches address two issues that can cause this. Both issues arose when an endpoint was reprogrammed. The first patch is a logic bug that resulted in a shared_fifo in rx mode not having its state cleared out. The second patch fixes a

Re: [PATCH v3 2/9] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-05-24 Thread Gautham R Shenoy
On Mon, May 23, 2016 at 08:48:35PM +0530, Shreyas B. Prabhu wrote: > idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next > patch for POWER9. Rename the file to a non-hardware specific > name. > > Signed-off-by: Shreyas B. Prabhu Reviewed-by: Gautham R. Shenoy

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Heiko Stuebner
Hi Tomeu, Patch subject: please put the version into the brackets, so [PATCH v5] as it shouldn't be part of the commit log. Am Dienstag, 24. Mai 2016, 09:27:37 schrieb Tomeu Vizoso: > As per the docs, atomic_commit should return -EBUSY "if an asycnhronous > updated is requested and there is an e

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 10:28:42AM +0200, Heiko Stuebner wrote: > Hi Tomeu, > > Patch subject: please put the version into the brackets, so [PATCH v5] as it > shouldn't be part of the commit log. > > Am Dienstag, 24. Mai 2016, 09:27:37 schrieb Tomeu Vizoso: > > As per the docs, atomic_commit sho

Re: [PATCH v3 3/9] powerpc/powernv: Rename reusable idle functions to hardware agnostic names

2016-05-24 Thread Gautham R Shenoy
On Mon, May 23, 2016 at 08:48:36PM +0530, Shreyas B. Prabhu wrote: > Functions like power7_wakeup_loss, power7_wakeup_noloss, > power7_wakeup_tb_loss are used by POWER7 and POWER8 hardware. They can > also be used by POWER9. Hence rename these functions hardware agnostic > names. > > Suggested-by:

Re: [PATCH] Input: pwm-beeper - fix: scheduling while atomic

2016-05-24 Thread Manfred Schlaegl
On 2016-05-20 18:59, Dmitry Torokhov wrote: > Hi Manfred, > > On Wed, May 18, 2016 at 05:16:49PM +0200, Manfred Schlaegl wrote: >> @@ -133,6 +149,8 @@ static int pwm_beeper_remove(struct platform_device >> *pdev) >> { >> struct pwm_beeper *beeper = platform_get_drvdata(pdev); >> >> +c

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Arnd Bergmann
On Tuesday, May 24, 2016 9:59:41 AM CEST Maxime Coquelin wrote: > 2016-05-23 22:35 GMT+02:00 Arnd Bergmann : > > On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: > >> diff --git a/drivers/char/hw_random/stm32-rng.c > >> b/drivers/char/hw_random/stm32-rng.c > >> index 92a8106..0533370

Re: [PATCH 2/4] ARM: dma-mapping: Constify attrs passed to internal functions

2016-05-24 Thread Russell King - ARM Linux
On Tue, May 24, 2016 at 08:28:08AM +0200, Krzysztof Kozlowski wrote: > Some of the non-exported functions do not modify passed dma_attrs so the > pointer can point to const data. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Russell King Thanks. -- RMK's Patch system: http://www.armlinux.

Re: [PATCH] Input: pwm-beeper - fix: scheduling while atomic

2016-05-24 Thread Manfred Schlaegl
Pwm config may sleep so defer it using a worker. On a Freescale i.MX53 based board we ran into "BUG: scheduling while atomic" because input_inject_event locks interrupts, but imx_pwm_config_v2 sleeps. Tested on Freescale i.MX53 SoC with 4.6.0 and 4.1.24. Signed-off-by: Manfred Schlaegl --- dri

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 10:30:50AM +0200, Daniel Vetter wrote: > On Tue, May 24, 2016 at 10:28:42AM +0200, Heiko Stuebner wrote: > > Hi Tomeu, > > > > Patch subject: please put the version into the brackets, so [PATCH v5] as > > it > > shouldn't be part of the commit log. > > > > Am Dienstag, 2

Re: [PATCH v3] Coccinelle: noderef: Add new rules and correct the old rule

2016-05-24 Thread Julia Lawall
Acked-by: Julia Lawall On Tue, 24 May 2016, Vaishali Thakkar wrote: > Add new rules to detect the cases where sizeof is used in > function calls as a argument. > > Also, for the patch mode third rule should behave same as > second rule with arguments reversed. So, change that as well. > > Signed

Re: bpf: use-after-free in array_map_alloc

2016-05-24 Thread Vlastimil Babka
[+CC Marco who reported the CVE, forgot that earlier] On 05/23/2016 11:35 PM, Tejun Heo wrote: Hello, Can you please test whether this patch resolves the issue? While adding support for atomic allocations, I reduced alloc_mutex covered region too much. Thanks. Ugh, this makes the code even

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Heiko Stuebner
Am Dienstag, 24. Mai 2016, 10:37:49 schrieb Daniel Vetter: > On Tue, May 24, 2016 at 10:30:50AM +0200, Daniel Vetter wrote: > > On Tue, May 24, 2016 at 10:28:42AM +0200, Heiko Stuebner wrote: > > > Hi Tomeu, > > > > > > Patch subject: please put the version into the brackets, so [PATCH v5] > > > a

BUG: scheduling while atomic: cron/715/0x10cac0c0

2016-05-24 Thread Geert Uytterhoeven
Somewhere during this merge window, I started sometimes seeing the below during shutdown of my Debian/m68k system running under ARAnyM: BUG: scheduling while atomic: cron/715/0x10cac0c0 Modules linked in: CPU: 0 PID: 715 Comm: cron Not tainted 4.6.0-atari-09955-g55db2ee398e5862f #338 Stack from 10

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Michal Hocko
On Tue 24-05-16 11:43:19, Vladimir Davydov wrote: > On Mon, May 23, 2016 at 07:44:43PM +0200, Michal Hocko wrote: > > On Mon 23-05-16 19:02:10, Vladimir Davydov wrote: > > > mem_cgroup_oom may be invoked multiple times while a process is handling > > > a page fault, in which case current->memcg_in_

RE: [char-misc-next 1/2] mei: don't use wake_up_interruptible for wr_ctrl

2016-05-24 Thread Winkler, Tomas
> > On Mon, May 23, 2016 at 01:07:53PM +, Winkler, Tomas wrote: > > > > > > From: Alexander Usyskin > > > > > > wr_ctrl waiters are none interruptible, so should be waken up with > > > call to wake_up and not to wake_up_interruptible. > > > > > > This fixes commit: > > > 7ff4bdd ("mei: fix wa

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Maxime Coquelin
2016-05-24 10:32 GMT+02:00 Arnd Bergmann : > On Tuesday, May 24, 2016 9:59:41 AM CEST Maxime Coquelin wrote: >> 2016-05-23 22:35 GMT+02:00 Arnd Bergmann : >> > On Monday, May 23, 2016 6:14:08 PM CEST Sudip Mukherjee wrote: >> >> diff --git a/drivers/char/hw_random/stm32-rng.c >> >> b/drivers/char/

Re: [PATCH v3] Axi-usb: Add support for 64-bit addressing.

2016-05-24 Thread Arnd Bergmann
On Tuesday, May 24, 2016 10:51:08 AM CEST Nava kishore Manne wrote: > diff --git a/Documentation/devicetree/bindings/usb/udc-xilinx.txt > b/Documentation/devicetree/bindings/usb/udc-xilinx.txt > index 47b4e39..09df757 100644 > --- a/Documentation/devicetree/bindings/usb/udc-xilinx.txt > +++ b/Docu

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-24 Thread Christoph Hellwig
On Mon, May 23, 2016 at 01:08:05PM -0700, Viacheslav Dubeyko wrote: > I think that it's some confusion. I didn't introduce any new fields in > struct f2fs_super_block. The "major_ver" and "minor_ver" fields exist in > F2FS superblock from the beginning of this file system implementation. > The cont

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-24 Thread Christoph Hellwig
On Mon, May 23, 2016 at 02:13:57PM -0700, Jaegeuk Kim wrote: > As Christoph mentioned, how about checking the feature only like this? > > 1. if the feature is ON, > - go 64 bits , when compiled w/ F2FS_MIN_16TB_VOLUME_SUPPORT > - fail to mount, when compiled w/o F2FS_MIN_16TB_VOLUME_SUPPORT >

Re: [PATCH v3 4/9] powerpc/powernv: Make power7_powersave_common more generic

2016-05-24 Thread Gautham R Shenoy
Hi Shreyas, On Mon, May 23, 2016 at 08:48:37PM +0530, Shreyas B. Prabhu wrote: > power7_powersave_common does common steps needed before entering idle > state and eventually changes MSR to MSR_IDLE and does rfid to > power7_enter_nap_mode. > > Move the updation of HSTATE_HWTHREAD_STATE to power7_

Re: [PATCH v3 5/9] powerpc/powernv: abstraction for saving SPRs before entering deep idle states

2016-05-24 Thread Gautham R Shenoy
On Mon, May 23, 2016 at 08:48:38PM +0530, Shreyas B. Prabhu wrote: > Create a function for saving SPRs before entering deep idle states. > This function can be reused for POWER9 deep idle states. > > Signed-off-by: Shreyas B. Prabhu Reviewed-by: Gautham R. Shenoy

[RFC PATCH] sched: fix hierarchical order in rq->leaf_cfs_rq_list

2016-05-24 Thread Vincent Guittot
Fix the insertion of cfs_rq in rq->leaf_cfs_rq_list to ensure that a child will always called before its parent. The hierarchical order in shares update list has been introduced by commit 67e86250f8ea ("sched: Introduce hierarchal order on shares update list") With the current implementation a ch

[RFC PATCH v2] sched: reflect sched_entity movement into task_group's utilization

2016-05-24 Thread Vincent Guittot
Ensure that the changes of the utilization of a sched_entity will be reflected in the task_group hierarchy. This patch tries another way than the flat utilization hierarchy proposal to ensure the changes will be propagated down to the root cfs. The way to compute the sched average metrics stays t

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Arnd Bergmann
On Tuesday, May 24, 2016 10:50:17 AM CEST Maxime Coquelin wrote: > diff --git a/drivers/char/hw_random/stm32-rng.c > b/drivers/char/hw_random/stm32-rng.c > index 92a810648bd0..2a0fc90e4dc3 100644 > --- a/drivers/char/hw_random/stm32-rng.c > +++ b/drivers/char/hw_random/stm32-rng.c > @@ -68,6 +68,10

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v5

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 10:41:30AM +0200, Heiko Stuebner wrote: > Am Dienstag, 24. Mai 2016, 10:37:49 schrieb Daniel Vetter: > > On Tue, May 24, 2016 at 10:30:50AM +0200, Daniel Vetter wrote: > > > On Tue, May 24, 2016 at 10:28:42AM +0200, Heiko Stuebner wrote: > > > > Hi Tomeu, > > > > > > > > Pa

Re: [GIT PULL] EFI fix

2016-05-24 Thread Ingo Molnar
* Josh Poimboeuf wrote: > On Mon, May 23, 2016 at 01:08:01PM +0100, Matt Fleming wrote: > > On Mon, 16 May, at 01:05:45PM, Linus Torvalds wrote: > > > > > > I think the right fix is to just get rid of that silly conditional > > > frame pointer thing, and always use frame pointers in this stub >

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-24 Thread Pavel Machek
Hi! > >+static int ad5820_registered(struct v4l2_subdev *subdev) > >+{ > >+struct ad5820_device *coil = to_ad5820_device(subdev); > >+struct i2c_client *client = v4l2_get_subdevdata(subdev); > >+ > >+coil->vana = regulator_get(&client->dev, "VANA"); > > devm_regulator_get()? I'd rath

[PATCH RESEND 2/8] mm: clean up non-standard page->_mapcount users

2016-05-24 Thread Vladimir Davydov
- Add a proper comment to page->_mapcount. - Introduce a macro for generating helper functions. - Place all special page->_mapcount values next to each other so that readers can see all possible values and so we don't get duplicates. Signed-off-by: Vladimir Davydov --- include/linux/mm_typ

use default speed of the eMMC

2016-05-24 Thread 장민우
Dear chrisball. Hello, I'm Minwoo Jang. I have a question about using default speed of the eMMC. When default speed is used, mmc_select_bus_width() is never called. So, eMMC can not be set 4 bit or 8 bit bus width, I think. Please, give me your opinions on the following diff codes. Thank you.

[PATCH RESEND 0/8] More stuff to charge to kmemcg

2016-05-24 Thread Vladimir Davydov
[resending with all relevant lists in Cc] Hi, This patch implements per kmemcg accounting of page tables (x86-only), pipe buffers, and unix socket buffers. Basically, this is v2 of my earlier attempt [1], addressing comments by Andrew, namely: lack of comments to non-standard _mapcount usage, ex

[PATCH RESEND 3/8] mm: memcontrol: cleanup kmem charge functions

2016-05-24 Thread Vladimir Davydov
- Handle memcg_kmem_enabled check out to the caller. This reduces the number of function definitions making the code easier to follow. At the same time it doesn't result in code bloat, because all of these functions are used only in one or two places. - Move __GFP_ACCOUNT check to the ca

[PATCH RESEND 5/8] mm: memcontrol: teach uncharge_list to deal with kmem pages

2016-05-24 Thread Vladimir Davydov
Page table pages are batched-freed in release_pages on most architectures. If we want to charge them to kmemcg (this is what is done later in this series), we need to teach mem_cgroup_uncharge_list to handle kmem pages. Signed-off-by: Vladimir Davydov --- mm/memcontrol.c | 42 +++

[PATCH RESEND 7/8] pipe: account to kmemcg

2016-05-24 Thread Vladimir Davydov
Pipes can consume a significant amount of system memory, hence they should be accounted to kmemcg. This patch marks pipe_inode_info and anonymous pipe buffer page allocations as __GFP_ACCOUNT so that they would be charged to kmemcg. Note, since a pipe buffer page can be "stolen" and get reused for

[PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-24 Thread jeffrey.lin
Raydium I2C touch driver. Signed-off-by: jeffrey.lin --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile |1 + drivers/input/touchscreen/raydium_i2c_ts.c | 1208 3 files changed, 1221 insertions(+) create mode 1006

[PATCH RESEND 4/8] mm: charge/uncharge kmemcg from generic page allocator paths

2016-05-24 Thread Vladimir Davydov
Currently, to charge a non-slab allocation to kmemcg one has to use alloc_kmem_pages helper with __GFP_ACCOUNT flag. A page allocated with this helper should finally be freed using free_kmem_pages, otherwise it won't be uncharged. This API suits its current users fine, but it turns out to be impos

Re: Bisection: Lost wakeups from b5179ac70de8

2016-05-24 Thread Peter Zijlstra
On Mon, May 23, 2016 at 07:04:10AM -0700, Paul E. McKenney wrote: > Hello, Peter, > > Current mainline doesn't do well with RCU torture testing, and the > symptom once again looks like lost wakeups. Thankfully, this time each > run takes only about an hour, and the false-positive/-negative rate >

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-24 Thread Oliver Neukum
On Mon, 2016-05-23 at 10:09 -0700, Guenter Roeck wrote: > On Mon, May 23, 2016 at 01:25:19PM +0200, Oliver Neukum wrote: > > On Mon, 2016-05-23 at 12:57 +0300, Heikki Krogerus wrote: > > > > A reset is a generic function, so it does not belong to specific > > drivers. > > > A would expect the driv

Re: [git pull] check headers fix.

2016-05-24 Thread Christoph Hellwig
On Tue, May 24, 2016 at 07:29:25AM +0100, Dave Airlie wrote: > > Hi Linus, > > here is the C++ guards warning fix from Arnd. So why the hell do we have C++ guards in kernel headers?

Re: [PATCH 06/16] sched: Disable WAKE_AFFINE for asymmetric configurations

2016-05-24 Thread Vincent Guittot
On 23 May 2016 at 12:58, Morten Rasmussen wrote: > If the system has cpu of different compute capacities (e.g. big.LITTLE) > let affine wakeups be constrained to cpus of the same type. Can you explain why you don't want wake affine with cpus with different compute capacity ? > > cc: Ingo Molnar

[PATCH] brcmfmac: fix setting AP channel with new firmwares

2016-05-24 Thread Rafał Miłecki
Firmware for new chipsets is based on a new major version of code internally maintained at Broadcom. E.g. brcmfmac4366b-pcie.bin (used for BCM4366B1) is based on 10.10.69.3309 while brcmfmac43602-pcie.ap.bin was based on 7.35.177.56. Currently setting AP 5 GHz channel doesn't work reliably with BC

Re: [PATCH 0/4] dma-mapping: Constify dma_attrs

2016-05-24 Thread Christoph Hellwig
I think this is moving into the wrong direction. The right fix here is to get of all the dma_attrs boilerplate code and just replace it with a simple enum dma_flags. This would simplify both the callers and most importantly the wrappers for the flag-less versions a lot.

Re: [PATCH] NVMe: Only release requested regions

2016-05-24 Thread Johannes Thumshirn
On Tue, May 10, 2016 at 03:14:28PM +0200, Johannes Thumshirn wrote: > The NVMe driver only requests the PCIe device's memory regions but releases > all possible regions (including eventual I/O regions). This leads to a stale > warning entry in dmesg about freeing non existent resources. > > Signed

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-24 Thread Ivaylo Dimitrov
On 24.05.2016 12:04, Pavel Machek wrote: Hi! +static int ad5820_registered(struct v4l2_subdev *subdev) +{ + struct ad5820_device *coil = to_ad5820_device(subdev); + struct i2c_client *client = v4l2_get_subdevdata(subdev); + + coil->vana = regulator_get(&client->dev, "VANA");

Re: [PATCH v7 4/4] CMDQ: suspend/resume protection

2016-05-24 Thread CK Hu
On Mon, 2016-05-23 at 20:23 +0800, HS Liao wrote: > Add suspend/resume protection mechanism to prevent active task(s) in > suspend. > > Signed-off-by: HS Liao > --- > drivers/soc/mediatek/mtk-cmdq.c | 174 > ++-- > 1 file changed, 166 insertions(+), 8 deletio

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Vladimir Davydov
On Tue, May 24, 2016 at 10:47:37AM +0200, Michal Hocko wrote: > On Tue 24-05-16 11:43:19, Vladimir Davydov wrote: > > On Mon, May 23, 2016 at 07:44:43PM +0200, Michal Hocko wrote: > > > On Mon 23-05-16 19:02:10, Vladimir Davydov wrote: > > > > mem_cgroup_oom may be invoked multiple times while a pr

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Vladimir Davydov
On Mon, May 23, 2016 at 07:44:43PM +0200, Michal Hocko wrote: > On Mon 23-05-16 19:02:10, Vladimir Davydov wrote: > > mem_cgroup_oom may be invoked multiple times while a process is handling > > a page fault, in which case current->memcg_in_oom will be overwritten > > leaking the previously taken c

[PATCHv4] support for AD5820 camera auto-focus coil

2016-05-24 Thread Pavel Machek
This adds support for AD5820 autofocus coil, found for example in Nokia N900 smartphone. Signed-off-by: Pavel Machek --- v2: simple cleanups, fix error paths, simplify probe v3: more cleanups, remove printk, add include v4: remove header file. diff --git a/drivers/media/i2c/Kconfig b/drivers/me

Re: [PATCH] NVMe: Only release requested regions

2016-05-24 Thread Christoph Hellwig
On Tue, May 24, 2016 at 11:15:52AM +0200, Johannes Thumshirn wrote: > As I've probably missed v4.7, is it possible to get it for v4.8? > Or should I take on the PCI helper functions Christoph suggested first? Let's get the quick fix in first, and I think it's still 4.7 material.

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Maxime Coquelin
2016-05-24 10:58 GMT+02:00 Arnd Bergmann : > On Tuesday, May 24, 2016 10:50:17 AM CEST Maxime Coquelin wrote: >> diff --git a/drivers/char/hw_random/stm32-rng.c >> b/drivers/char/hw_random/stm32-rng.c >> index 92a810648bd0..2a0fc90e4dc3 100644 >> --- a/drivers/char/hw_random/stm32-rng.c >> +++ b/dr

[PATCH v5 3/5] perf callchain: Add support for cross-platform unwind

2016-05-24 Thread He Kuang
Use thread specific unwind ops to unwind cross-platform callchains. Currently, unwind methods is suitable for local unwind, this patch changes the fixed methods to thread/map related. Each time a map is inserted, we find the target arch and see if this platform can be remote unwind. We test for x8

[PATCH RESEND 1/8] mm: remove pointless struct in struct page definition

2016-05-24 Thread Vladimir Davydov
... to reduce indentation level thus leaving more space for comments. Signed-off-by: Vladimir Davydov --- include/linux/mm_types.h | 68 +++- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_ty

[PATCH v5 5/5] perf callchain: Support aarch64 cross-platform

2016-05-24 Thread He Kuang
Support aarch64 cross platform callchain unwind. Signed-off-by: He Kuang --- .../perf/arch/arm64/include/libunwind/libunwind-arch.h | 18 ++ tools/perf/arch/arm64/util/unwind-libunwind.c | 5 - tools/perf/config/Makefile | 12

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Michal Hocko
On Tue 24-05-16 12:01:42, Vladimir Davydov wrote: > On Tue, May 24, 2016 at 10:47:37AM +0200, Michal Hocko wrote: > > On Tue 24-05-16 11:43:19, Vladimir Davydov wrote: > > > On Mon, May 23, 2016 at 07:44:43PM +0200, Michal Hocko wrote: > > > > On Mon 23-05-16 19:02:10, Vladimir Davydov wrote: > > >

[PATCH v5 4/5] perf callchain: Support x86 target platform

2016-05-24 Thread He Kuang
Support x86(32-bit) cross platform callchain unwind. Signed-off-by: He Kuang --- .../perf/arch/x86/include/libunwind/libunwind-arch.h | 18 ++ tools/perf/arch/x86/util/unwind-libunwind.c | 19 ++- tools/perf/util/Build |

[PATCH v5 0/5] Add support for remote unwind

2016-05-24 Thread He Kuang
v4 url: http://thread.gmane.org/gmane.linux.kernel/2224430 Currently, perf script uses host unwind methods(local unwind) to parse perf.data callchain info regardless of the target architecture. So we get wrong result and no promotion when do remote unwind on other platforms/machines. This patch

[PATCH v5 1/5] perf tools: Use LIBUNWIND_DIR for remote libunwind feature check

2016-05-24 Thread He Kuang
Pass LIBUNWIND_DIR to feature check flags for remote libunwind tests. So perf can be able to detect remote libunwind libraries from arbitrary directory. Signed-off-by: He Kuang --- tools/perf/config/Makefile | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/perf/config/Makefile

[PATCH v5 2/5] perf tools: Show warnings for unsupported cross-platform unwind

2016-05-24 Thread He Kuang
Currently, perf script uses host unwind methods to parse perf.data callchain info regardless of the target architecture. So we get wrong result without any warnings when unwinding callchains of x86(32-bit) on x86(64-bit) machine. This patch shows warning messages when we do remote unwind x86(32-bi

  1   2   3   4   5   6   7   8   9   >