Re: [RFC PATCH V2 00/10] ARM64: Uprobe support added

2015-08-03 Thread David Long
On 08/03/15 07:09, Will Deacon wrote: On Thu, Jun 18, 2015 at 04:58:47AM +0100, Pratyush Anand wrote: These patches have been prepared on top of ARM64 kprobe v7 patches [1]. Keeping as RFC, because kprobe-v7 still need to be ACKed. Unfortunately, I've not seen any movement on the kprobes patch

Re: [PATCH v2 0/4] mtd: pxa3xx_nand: rework the timing setup

2015-08-03 Thread Ezequiel Garcia
On 3 August 2015 at 01:44, Robert Jarzmik wrote: > Ezequiel Garcia writes: > >> Just tested linux-next (hence *without* the patchset) and I see >> the same "Wait time out". In other words, pxa3xx-nand is broken >> on PXA :/ >> >> Interestingly, the culprit doesn't seem to be in pxa3xx-nand itself

Re: [PATCH 05/10] nohz: New tick dependency mask

2015-08-03 Thread Frederic Weisbecker
On Mon, Aug 03, 2015 at 03:24:07PM +0200, Peter Zijlstra wrote: > On Mon, Aug 03, 2015 at 03:05:37PM +0200, Frederic Weisbecker wrote: > > On Mon, Aug 03, 2015 at 02:43:50PM +0200, Peter Zijlstra wrote: > > > On Thu, Jul 23, 2015 at 06:42:10PM +0200, Frederic Weisbecker wrote: > > > > +unsigned lon

Re: [PATCH 5/6] ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponential backoff

2015-08-03 Thread Vineet Gupta
On Monday 03 August 2015 06:31 PM, Vineet Gupta wrote: > On Monday 03 August 2015 05:11 PM, Peter Zijlstra wrote: >> > On Mon, Aug 03, 2015 at 03:33:07PM +0530, Vineet Gupta wrote: >>> >> +#define SCOND_FAIL_RETRY_VAR_DEF >>> >> \ >>> >> +unsi

[Notice] ACPI+PM maintenance in vacation mode Aug 8 - Aug 23

2015-08-03 Thread Rafael J. Wysocki
Hi All, FYI, I will be out of office and traveling between August 8 and 23, and it will be rather hard for me to reply to email during (the majority of) that time, so if you have new core ACPI/PM material for me to queue up for 4.3, please send it this week (and rather not of Friday if you will).

Re: [PATCH 2/3] mm: make workingset detection logic memcg aware

2015-08-03 Thread Vladimir Davydov
On Mon, Aug 03, 2015 at 09:23:58AM -0400, Johannes Weiner wrote: > On Mon, Aug 03, 2015 at 03:04:22PM +0300, Vladimir Davydov wrote: > > @@ -179,8 +180,9 @@ static void unpack_shadow(void *shadow, > > eviction = entry; > > > > *zone = NODE_DATA(nid)->node_zones + zid; > > + *lruvec = me

Re: [PATCH 05/10] nohz: New tick dependency mask

2015-08-03 Thread Frederic Weisbecker
On Mon, Aug 03, 2015 at 03:29:58PM +0200, Peter Zijlstra wrote: > On Mon, Aug 03, 2015 at 03:09:39PM +0200, Frederic Weisbecker wrote: > > > > That doesn't make any sense: > > > > > > tick_nohz_set_tick_dependency_this_cpu(); > > > > > > (shees, you're nowhere near lazy enough, that's insane t

Re: [PATCH v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12

2015-08-03 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, August 03, 2015 08:15:13 PM Krzysztof Kozlowski wrote: > W dniu 03.08.2015 o 19:36, Bartlomiej Zolnierkiewicz pisze: > > On Monday, August 03, 2015 03:59:26 PM Viresh Kumar wrote: > >> On 03-08-15, 12:17, Bartlomiej Zolnierkiewicz wrote: > >>> > >>> Hi, > >>> > >>> On Saturday, Aug

[PATCH] tty: serial: men_z135_uart.c: Fix race between IRQ and set_termios()

2015-08-03 Thread Johannes Thumshirn
Fix panic caused by a race between men_z135_intr() and men_z135_set_termios(). men_z135_intr() and men_z135_set_termios() both hold the struct uart_port::lock spinlock, but men_z135_intr() does a spin_lock_irqsave() and men_z135_set_termios() does a normal spin_lock(), which can lead to a deadlock

Re: [PATCH 07/10] sched: Migrate sched to use new tick dependency mask model

2015-08-03 Thread Peter Zijlstra
On Thu, Jul 23, 2015 at 06:42:12PM +0200, Frederic Weisbecker wrote: > Instead of providing asynchronous checks for the nohz subsystem to verify > sched tick dependency, migrate sched to the new mask. > > The easiest is to recycle the current asynchronous tick dependency check > which verifies the

Re: [RFC 2/3] arm64: refactor save_stack_trace()

2015-08-03 Thread Steven Rostedt
On Mon, 3 Aug 2015 10:09:51 +0100 Will Deacon wrote: > > The arm64 bits look fine to me: > > > > Acked-by: Will Deacon > > What happened to this? Is it queued someplace, or are we waiting for a > new version? I went on vacation :-) I'm back and trying to catch up. I'll be pulling in a bu

[PATCH 6/6] test_bpf: add tests checking that JIT/interpreter sets A and X to 0.

2015-08-03 Thread Nicolas Schichan
It is mandatory for the JIT or interpreter to reset the A and X registers to 0 before running the filter. Check that it is the case on various ALU and JMP instructions. Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov --- lib/test_bpf.c | 158

[PATCH 3/6] test_bpf: test LD_ABS and LD_IND instructions on fragmented skbs.

2015-08-03 Thread Nicolas Schichan
These new tests exercise various load sizes and offsets crossing the head/fragment boundary. Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov --- lib/test_bpf.c | 142 + 1 file changed, 142 insertions(+) diff --git a/lib/test_

Re: [PATCH 1/3] clk: versatile: Switch to assigned clock parents

2015-08-03 Thread Pawel Moll
On Sat, 2015-08-01 at 00:44 +0100, Stephen Boyd wrote: > @@ -179,6 +124,15 @@ static void __init clk_sp810_of_setup(struct device_node > *node) > sp810->timerclken[i].channel = i; > sp810->timerclken[i].hw.init = &init; > > + /* > + * If DT is

[PATCH 1/6] test_bpf: avoid oopsing the kernel when generate_test_data() fails.

2015-08-03 Thread Nicolas Schichan
Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov --- lib/test_bpf.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 3afddf2..6843d0b 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -4672,6 +4672,11 @@ static int run_one(const struct

[PATCH 0/6] test_bpf improvements

2015-08-03 Thread Nicolas Schichan
Hello, Please find below the patch series with my latest changes to test_bpf. The first patch checks for unexpected NULL generated skbs before running the filter. The second patch adds fhe possibility for tests to generate fragmented skbs. The third patch tests LD_ABS and LD_IND on fragmented s

[PATCH 2/6] test_bpf: allow tests to specify an skb fragment.

2015-08-03 Thread Nicolas Schichan
This introduce a new test->aux flag (FLAG_SKB_FRAG) to tell the populate_skb() function to add a fragment to the test skb containing the data specified in test->frag_data). Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov --- lib/test_bpf.c | 38 +

[PATCH 5/6] test_bpf: add more tests for LD_ABS and LD_IND.

2015-08-03 Thread Nicolas Schichan
This exerces the LD_ABS and LD_IND instructions for various sizes and alignments. This also checks that X when used as an offset to a BPF_IND instruction first in a filter is correctly set to 0. Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov --- lib/test_bpf.c | 296 ++

Re: [RFC 2/3] arm64: refactor save_stack_trace()

2015-08-03 Thread Will Deacon
On Mon, Aug 03, 2015 at 03:01:40PM +0100, Steven Rostedt wrote: > On Mon, 3 Aug 2015 10:09:51 +0100 > Will Deacon wrote: > > > > > The arm64 bits look fine to me: > > > > > > Acked-by: Will Deacon > > > > What happened to this? Is it queued someplace, or are we waiting for a > > new versio

Re: [PATCH] workqueue: Add the allocation flags to function schedule_on_each_cpu_gfp

2015-08-03 Thread Steven Rostedt
On Mon, 3 Aug 2015 17:15:53 +0800 yalin wang wrote: > better to also provide a wrapper function with name schedule_on_each_cpu(), > as this function is used frequently . > > #define schedule_on_each_cpu(f) schedule_on_each_cpu_gfp(f, GFP_KERNEL) I was about to say pretty much the same thing.

[PATCH 4/6] test_bpf: add module parameters to filter the tests to run.

2015-08-03 Thread Nicolas Schichan
When developping on the interpreter or a particular JIT, it can be insteresting to restrict the test list to a specific test or a particular range of tests. This patch adds the following module parameters to the test_bpf module: * test_name=: only the specified named test will be run. * test_id=

Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-03 Thread Dave Hansen
On 08/02/2015 10:53 PM, Wang, Biao wrote: > Consider the following case: > Task A trigger lmk with a lock held, while task B try to > get this lock, but unfortunately B is the very culprit task lmk select to > kill. Then B will never be killed, and A will forever select B to kill. > Such dead lock

Re: [PATCH 06/27] misc: eeprom: Export I2C module alias information in missing drivers

2015-08-03 Thread Javier Martinez Canillas
Hello Jean, On 08/03/2015 01:05 PM, Jean Delvare wrote: > Hi Javier, > > On Thu, 30 Jul 2015 18:18:31 +0200, Javier Martinez Canillas wrote: >> The I2C core always reports the MODALIAS uevent as "i2c:> regardless if the driver was matched using the I2C id_table or the >> of_match_table. So the dr

Re: [PATCH 5/6] ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponential backoff

2015-08-03 Thread Peter Zijlstra
On Mon, Aug 03, 2015 at 01:50:01PM +, Vineet Gupta wrote: > diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h > index 3dd36c1efee1..c2e012ca4560 100644 > --- a/arch/arc/include/asm/atomic.h > +++ b/arch/arc/include/asm/atomic.h > @@ -23,17 +23,50 @@ > > #define atomi

Re: [PATCH 05/10] nohz: New tick dependency mask

2015-08-03 Thread Peter Zijlstra
On Mon, Aug 03, 2015 at 03:55:34PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 03, 2015 at 03:29:58PM +0200, Peter Zijlstra wrote: > > On Mon, Aug 03, 2015 at 03:09:39PM +0200, Frederic Weisbecker wrote: > > > > > > That doesn't make any sense: > > > > > > > > tick_nohz_set_tick_dependency_

[PATCH] regulator: mt6311: Modify the maximum voltage of buck.

2015-08-03 Thread Henry Chen
The maximum voltage of buck should be 1.39375V. 1.39375V = 0.6V + 0.00625V * 127, 127 is the max_sel of linear range. Reported-by: Axel Lin signed-off-by: Henry Chen --- drivers/regulator/mt6311-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mt

Re: [PATCH] iommu: avoid format string leaks into iommu_device_create

2015-08-03 Thread Joerg Roedel
On Fri, Jul 24, 2015 at 04:27:57PM -0700, Kees Cook wrote: > This makes sure it won't be possible to accidentally leak format > strings into iommu device names. Current name allocations are safe, > but this makes the "%s" explicit. > > Signed-off-by: Kees Cook > --- > drivers/iommu/dmar.c

Re: [PATCH] workqueue: Add the allocation flags to function schedule_on_each_cpu_gfp

2015-08-03 Thread Tejun Heo
On Mon, Aug 03, 2015 at 04:27:05PM +0800, Minfei Huang wrote: > Rename the function schedule_on_each_cpu to schedule_on_each_cpu_gfp to > add the allocation flags as parameter. > > In several situation in ftrace, we are nervous and never come back, once > schedule_on_each_cpu fails to alloc the pe

[PATCH] Staging : lustre :Drop unnecessary cast

2015-08-03 Thread Shraddha Barke
This patch does away with the cast on void * as it is unnecessary. Semantic patch used is as follows: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/obdclass/lin

Re: [PATCH v3 04/24] intel_iommu: fix leaked ioremap mapping

2015-08-03 Thread Joerg Roedel
On Thu, Jul 30, 2015 at 12:54:01PM -0400, Dan Williams wrote: > iommu_load_old_irte() appears to leak the old_irte mapping after use. > > Cc: Joerg Roedel > Signed-off-by: Dan Williams > --- > drivers/iommu/intel_irq_remapping.c |2 ++ > 1 file changed, 2 insertions(+) Applied, thanks. --

Re: cgroup/loop Bad page state oops in Linux v4.2-rc3-136-g45b4b782e848

2015-08-03 Thread Mike Snitzer
On Sun, Aug 02 2015 at 10:01P -0400, Josh Boyer wrote: > On Fri, Jul 31, 2015 at 2:58 PM, Josh Boyer wrote: > > On Thu, Jul 30, 2015 at 8:19 PM, Mike Snitzer wrote: > >> > >> The only commit that looks even remotely related (given 32bit concerns) > >> would be 1c220c69ce0dcc0f234a9f263ad9c0864f

Re: [PATCH 2/2] iommu/vt-d: Report superpage support in sysfs

2015-08-03 Thread Joerg Roedel
On Tue, Jul 14, 2015 at 03:25:04PM -0600, Alex Williamson wrote: > We already have the VT-d capability register printed raw, but it > typically involves a trip to the code or the spec to figure out > whether superpages are supported. Make this easier with "2M_pages" > and "1G_pages" sysfs entries

Re: [PATCH 1/2] iommu/vt-d: Report domain usage in sysfs

2015-08-03 Thread Joerg Roedel
On Tue, Jul 14, 2015 at 03:24:53PM -0600, Alex Williamson wrote: > Debugging domain ID leakage typically requires long running tests in > order to exhaust the domain ID space or kernel instrumentation to > track the setting and clearing of bits. A couple trivial intel-iommu > specific sysfs extens

Re: [PATCH v2 17/25] intel-iommu: switch from ioremap_cache to memremap

2015-08-03 Thread Joerg Roedel
On Fri, Jul 24, 2015 at 10:39:33PM -0400, Dan Williams wrote: > In preparation for deprecating ioremap_cache() convert its usage in > intel-iommu to memremap. This also eliminates the mishandling of the > __iomem annotation in the implementation. > > Cc: David Woodhouse > Cc: Joerg Roedel > Sig

Re: [PATCH 15/27] regulator: fan53555: Export I2C module alias information

2015-08-03 Thread Javier Martinez Canillas
Hello Paul, Thanks a lot for the feedback. On 08/03/2015 01:43 PM, Paul Bolle wrote: > Hi Javier, > > (Mark already applied this patch. Still, I couldn't wrap my head around > it. So maybe you'd still like to answer a question or two, basically to > educate me.) > > On do, 2015-07-30 at 18:18 +

Re: [PATCH 2/2] iommu/vt-d: Report superpage support in sysfs

2015-08-03 Thread David Woodhouse
On Mon, 2015-08-03 at 16:30 +0200, Joerg Roedel wrote: > On Tue, Jul 14, 2015 at 03:25:04PM -0600, Alex Williamson wrote: > > We already have the VT-d capability register printed raw, but it > > typically involves a trip to the code or the spec to figure out > > whether superpages are supported. M

[PATCH v2 0/6] ARC: spinlocks/atomics rework

2015-08-03 Thread Vineet Gupta
The PREFETCHW workaround for llock/scond livelock was not sufficient after all and we had to do some work there. Extending testing of quad core FPGA builds shows things pretty stable, whereas w/o patches some of the LTP tests (shm_open/23-1) would cause the system to go bonkers. Changes since v1*

[PATCH v2 3/6] ARC: LLOCK/SCOND based spin_lock

2015-08-03 Thread Vineet Gupta
Current spin_lock uses EXchange instruction to implement the atomic test and set of lock location (reads orig value and ST 1). This however forces the cacheline into exclusive state (because of the ST) and concurrent loops in multiple cores will bounce the line around between cores. Instead, use L

[PATCH v2 1/6] Revert "ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock"

2015-08-03 Thread Vineet Gupta
Extended testing of quad core configuration revealed that this fix was insufficient. Specifically LTP open posix shm_op/23-1 would cause the hardware livelock in llock/scond loop in update_cpu_load_active() So remove this and make way for a proper workaround This reverts commit a5c8b52abe67797788

[PATCH] [SCSI] bfa: fix missing { } braces

2015-08-03 Thread Colin King
From: Colin Ian King Static analysis by smatch indicated that there was a curly braces issue: drivers/scsi/bfa/bfa_ioc.c:3668 bfa_cb_sfp_state_query() warn: curly braces intended? drivers/scsi/bfa/bfa_ioc.c:3671 bfa_cb_sfp_state_query() warn: inconsistent indenting drivers/scsi/b

[PATCH v2 5/6] ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponential backoff

2015-08-03 Thread Vineet Gupta
This is to workaround the llock/scond livelock HS38x4 could get into a LLOCK/SCOND livelock in case of multiple overlapping coherency transactions in the SCU. The exclusive line state keeps rotating among contenting cores leading to a never ending cycle. So break the cycle by deferring the retry o

Re: [PATCH] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-03 Thread Jonathan Corbet
On Mon, 3 Aug 2015 10:23:19 +0200 Daniel Vetter wrote: > > I'm wondering if we need a kernel summit session on commenting > > conventions, markdown-in-kerneldoc, etc? Maybe I'll stick a proposal out > > there. > > Might be useful, but I'm not sure how many people really would actively > work

Re: [PATCH 1/3] clocksource: atmel-st: Remove irq handler when clock event is unused

2015-08-03 Thread Thomas Gleixner
On Mon, 3 Aug 2015, Boris Brezillon wrote: > On Sun, 2 Aug 2015 11:40:28 +0200 > Peter Zijlstra wrote: > > > On Sun, Aug 02, 2015 at 11:10:21AM +0200, Thomas Gleixner wrote: > > > I think Boris Brezillon had implemented it at some point, but it was > > > shot down for reasons I can't remember. >

[PATCH v2 6/6] ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cycle

2015-08-03 Thread Vineet Gupta
The previous commit for delayed retry of SCOND needs some fine tuning for spin locks. The backoff from delayed retry in conjunction with spin looping of lock itself can potentially cause the delay counter to reach high values. So to provide fairness to any lock operation, after a lock "seems" avai

Re: [PATCH 6/6] ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cycle

2015-08-03 Thread Vineet Gupta
On Monday 03 August 2015 05:14 PM, Peter Zijlstra wrote: > On Mon, Aug 03, 2015 at 03:33:08PM +0530, Vineet Gupta wrote: >> > A spin lock could be available momentarily, but the SCOND to actually >> > acquire it might still fail due to concurrent update from other core(s). >> > To elide hardware lo

[PATCH v4 1/2] extcon: palmas: Support GPIO based USB ID detection

2015-08-03 Thread Roger Quadros
Some palmas based chip variants do not have OTG based ID logic. For these variants we rely on GPIO based USB ID detection. These chips do have VBUS comparator for VBUS detection so we continue to use the old way of detecting VBUS. Acked-by: Chanwoo Choi Signed-off-by: Roger Quadros --- v4: upda

[GIT PULL] Ceph fixes for -rc6

2015-08-03 Thread Sage Weil
Hi Linus, Please pull the following Ceph fixes from git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git for-linus There are two critical regression fixes for CephFS from Zheng, and an RBD completion fix for layered images from Ilya. (Note: git request-pull is complaining that

[PATCH v2 2/6] ARC: refactor atomic inline asm operands with symbolic names

2015-08-03 Thread Vineet Gupta
This reduces the diff in forth-coming patches and also helps understand better the incremental changes to inline asm. Cc: Peter Zijlstra (Intel) Signed-off-by: Vineet Gupta --- arch/arc/include/asm/atomic.h | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-)

Re: [PATCH 6/6] ARCv2: spinlock/rwlock: Reset retry delay when starting a new spin-wait cycle

2015-08-03 Thread Peter Zijlstra
On Mon, Aug 03, 2015 at 02:40:13PM +, Vineet Gupta wrote: > On Monday 03 August 2015 05:14 PM, Peter Zijlstra wrote: > > On Mon, Aug 03, 2015 at 03:33:08PM +0530, Vineet Gupta wrote: > >> > A spin lock could be available momentarily, but the SCOND to actually > >> > acquire it might still fail

[PATCH] Staging : lustre : Code Indentation

2015-08-03 Thread Shraddha Barke
Correct indentation issues according to checkpatch.pl : WARNING: suspect code indent for conditional statements Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/llite/rw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/

Re: [PATCH] usb: gadget: f_printer: fix the bug of deadlock caused by nested spinlock

2015-08-03 Thread Felipe Balbi
Hi, On Mon, Aug 03, 2015 at 07:19:43PM +0800, fupan...@windriver.com wrote: > From: fli > > Function printer_func_disable() has called spinlock on printer_dev->lock, > and it'll call function chain of > > printer_reset_interface() > | > +---dwc3_gadget_ep_disable() >

Re: [PATCH 1/6] test_bpf: avoid oopsing the kernel when generate_test_data() fails.

2015-08-03 Thread Daniel Borkmann
On 08/03/2015 04:02 PM, Nicolas Schichan wrote: Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov Acked-by: Daniel Borkmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] cgroup: fix idr_preload usage

2015-08-03 Thread Tejun Heo
On Mon, Aug 03, 2015 at 03:32:26PM +0300, Vladimir Davydov wrote: > It does not make much sense to call idr_preload with the same gfp mask > as the following idr_alloc, but this is what we do in cgroup_idr_alloc. > This patch fixes the idr_preload usage by making cgroup_idr_alloc call > idr_alloc w

Re: [PATCH v2 0/6] ARC: spinlocks/atomics rework

2015-08-03 Thread Peter Zijlstra
On Mon, Aug 03, 2015 at 08:06:02PM +0530, Vineet Gupta wrote: > The PREFETCHW workaround for llock/scond livelock was not sufficient after > all and we had to do some work there. Extending testing of quad core FPGA > builds shows things pretty stable, whereas w/o patches some of the LTP tests > (sh

Re: [PATCH 07/10] sched: Migrate sched to use new tick dependency mask model

2015-08-03 Thread Frederic Weisbecker
On Mon, Aug 03, 2015 at 04:00:46PM +0200, Peter Zijlstra wrote: > On Thu, Jul 23, 2015 at 06:42:12PM +0200, Frederic Weisbecker wrote: > > Instead of providing asynchronous checks for the nohz subsystem to verify > > sched tick dependency, migrate sched to the new mask. > > > > The easiest is to r

Re: [PATCH RESEND] nohz: Affining unpinned timers

2015-08-03 Thread Frederic Weisbecker
I'm going to resend the patch :) On Sun, Aug 02, 2015 at 03:05:53PM +0530, Vatika Harlalka wrote: > If everyone thinks its alright, could this patch be applied please? :) > > Thanks > Vatika -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to ma

[PATCH v2 4/6] ARC: LLOCK/SCOND based rwlock

2015-08-03 Thread Vineet Gupta
With LLOCK/SCOND, the rwlock counter can be atomically updated w/o need for a guarding spin lock. This in turn elides the EXchange instruction based spinning which causes the cacheline transition to exclusive state and concurrent spinning across cores would cause the line to keep bouncing around.

Re: [PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Jaewon Kim
On 2015년 08월 03일 21:27, Minchan Kim wrote: > Hello, > > On Mon, Aug 03, 2015 at 07:18:27PM +0900, Jaewon Kim wrote: >> reclaim_clean_pages_from_list() decreases NR_ISOLATED_FILE by returned >> value from shrink_page_list(). But mlocked pages in the isolated >> clean_pages page list would be remo

Re: [PATCH] ACPI / bus: Move duplicate code to a separate new function

2015-08-03 Thread Hanjun Guo
On 08/01/2015 08:39 AM, Rafael J. Wysocki wrote: From: Rafael J. Wysocki After merging commit 712e960f0ee9 (ACPI / PM: Attach ACPI power domain only once) with commit 1dcc3d3362b0 (ACPI / bus: Move ACPI bus type registration) there is some duplicate code in acpi_device_is_first_physical_node()

[GIT PULL] usb: fix for v4.2-rc6

2015-08-03 Thread Felipe Balbi
Hi Greg, here's the last major fix for this -rc cycle. Unfortunately it has been pending since January. Let me know if you prefer that I send this through the merge window as it already has a stable tag. cheers The following changes since commit 4248bd7d3e2c7c87ff695d812018b8c22b5a5ab1: usb:

Re: [PATCH v2 6/6] stop_machine: kill stop_cpus_lock and lg_double_lock/unlock()

2015-08-03 Thread Oleg Nesterov
On 07/31, Peter Zijlstra wrote: > > + for_each_cpu(cpu, cpumask) > + arch_spin_lock((arch_spinlock_t *)&per_cpu(cpu_stopper.lock, > cpu)); > + > for_each_cpu(cpu, cpumask) { > work = &per_cpu(cpu_stopper.stop_work, cpu); > work->fn = fn; >

Re: [PATCH] workqueue: Add the allocation flags to function schedule_on_each_cpu_gfp

2015-08-03 Thread Minfei Huang
On 08/03/15 at 10:04am, Steven Rostedt wrote: > On Mon, 3 Aug 2015 17:15:53 +0800 > yalin wang wrote: > > > better to also provide a wrapper function with name schedule_on_each_cpu(), > > as this function is used frequently . > > > > #define schedule_on_each_cpu(f) schedule_on_each_cpu_gfp(f,

[PATCH] Staging : lustre :Replace comma with a semicolon

2015-08-03 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/libcfs/libcfs_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

Re: Traceback in -next due to commit 'clockevents/drivers/sh_tmu: Migrate to new 'set-state' interface'

2015-08-03 Thread Geert Uytterhoeven
Hi Viresh, On Tue, Jul 21, 2015 at 4:50 AM, Guenter Roeck wrote: > On 07/20/2015 07:31 PM, Viresh Kumar wrote: >> On 20-07-15, 14:07, Guenter Roeck wrote: >>> Commit 991a7f4970ed1 ("clockevents/drivers/sh_tmu: Migrate to new >>> 'set-state' interface") >>> in -next causes the following traceback.

[PATCH] megaraid_sas: fix missing { } braces

2015-08-03 Thread Colin King
From: Colin Ian King Static analysis by smatch indicated that there was a curly braces issue: drivers/scsi/megaraid/megaraid_sas_base.c:6139 megasas_mgmt_fw_ioctl() warn: curly braces intended? Add braces in the appropriate place so that kbuf_arr[i] gets set to NULL only when we need to. Als

Re: [PATCH] Input: drivers/joystick: use parallel port device model

2015-08-03 Thread Sudip Mukherjee
On Fri, Jul 31, 2015 at 01:43:06PM -0700, Dmitry Torokhov wrote: > > > > Converting to the "new" api is the end goal here, no need to keep the > > old one around anymore. > > OK, then I guess we can do the conversion right (dropping db9_base > module-global) and see if anyone screams at us. Hi Dm

Re: [PATCH 3/6] test_bpf: test LD_ABS and LD_IND instructions on fragmented skbs.

2015-08-03 Thread Daniel Borkmann
On 08/03/2015 04:02 PM, Nicolas Schichan wrote: These new tests exercise various load sizes and offsets crossing the head/fragment boundary. Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov Acked-by: Daniel Borkmann -- To unsubscribe from this list: send the line "unsubscribe li

Re: [PATCH v2 6/6] stop_machine: kill stop_cpus_lock and lg_double_lock/unlock()

2015-08-03 Thread Oleg Nesterov
On 07/30, Peter Zijlstra wrote: > > On Tue, Jul 21, 2015 at 09:22:47PM +0200, Oleg Nesterov wrote: > > > + err = -EDEADLK; > > + if (stop_work_pending(stopper1) != stop_work_pending(stopper2)) > > + goto unlock; > > You could DoS/false positive this by running stop_one_cpu() in a loop

[PATCH] mm: vmscan: never isolate more pages than necessary

2015-08-03 Thread Vladimir Davydov
If transparent huge pages are enabled, we can isolate many more pages than we actually need to scan, because we count both single and huge pages equally in isolate_lru_pages(). Since commit 5bc7b8aca942d ("mm: thp: add split tail pages to shrink page list in page reclaim"), we scan all the tail pa

Re: [PATCH] net: dsa: mv88e6xxx: call _mv88e6xxx_stats_wait with SMI lock held

2015-08-03 Thread Guenter Roeck
On 08/03/2015 06:17 AM, Vivien Didelot wrote: At switch setup, _mv88e6xxx_stats_wait was called without holding the SMI mutex. Fix this by requesting the lock for this call. Also, return the _mv88e6xxx_stats_wait code, since it may fail. Signed-off-by: Vivien Didelot Not strictly needed beca

Re: [PATCH 5/6] test_bpf: add more tests for LD_ABS and LD_IND.

2015-08-03 Thread Daniel Borkmann
On 08/03/2015 04:02 PM, Nicolas Schichan wrote: This exerces the LD_ABS and LD_IND instructions for various sizes and alignments. This also checks that X when used as an offset to a BPF_IND instruction first in a filter is correctly set to 0. Signed-off-by: Nicolas Schichan Acked-by: Alexei Sta

Re: [PATCH 6/6] test_bpf: add tests checking that JIT/interpreter sets A and X to 0.

2015-08-03 Thread Daniel Borkmann
On 08/03/2015 04:02 PM, Nicolas Schichan wrote: It is mandatory for the JIT or interpreter to reset the A and X registers to 0 before running the filter. Check that it is the case on various ALU and JMP instructions. Signed-off-by: Nicolas Schichan Acked-by: Alexei Starovoitov Acked-by: Dani

[PATCH] mmc: dw_mmc: fix pio mode when internal dmac is enabled

2015-08-03 Thread Heiko Stübner
The dw_mci_init_dma() may decide to not use dma, but pio instead, caused by things like wrong dma settings in the system. Till now the code dw_mci_init_slot() always assumed that dma is available when CONFIG_MMC_DW_IDMAC was defined, ignoring the host->use_dma var set during dma init. So when now

Re: [PATCH 2/2] iommu/vt-d: Report superpage support in sysfs

2015-08-03 Thread Alex Williamson
On Mon, 2015-08-03 at 16:30 +0200, Joerg Roedel wrote: > On Tue, Jul 14, 2015 at 03:25:04PM -0600, Alex Williamson wrote: > > We already have the VT-d capability register printed raw, but it > > typically involves a trip to the code or the spec to figure out > > whether superpages are supported. M

Re: [PATCH] x86, pat: Add comments to cachemode translation tables

2015-08-03 Thread Toshi Kani
On Sun, 2015-08-02 at 12:07 +0200, Thomas Gleixner wrote: > On Thu, 23 Jul 2015, Toshi Kani wrote: > > On Thu, 2015-07-23 at 09:36 -0600, Jan Beulich wrote: > > > > > > > > > > On 23.07.15 at 17:25, wrote: > > > > Yes, I agree with you. But such risk is very low -- 1) the regular > > > > case >

Re: perf tools event parsing code

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Sun, Aug 02, 2015 at 09:56:27PM +0200, Jiri Olsa escreveu: > On Fri, Jul 31, 2015 at 05:55:32PM -0300, Arnaldo Carvalho de Melo wrote: > > Trying to figure out why this cset, by Wangnan: > > https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/commit/?h=perf/ebpf&id=42cb6deef348f6afece0a

Re: [PATCH 3/9] x86/intel_rdt: Cache Allocation documentation and cgroup usage guide

2015-08-03 Thread Marcelo Tosatti
On Sun, Aug 02, 2015 at 05:48:07PM +0200, Martin Kletzander wrote: > On Thu, Jul 30, 2015 at 05:08:13PM -0300, Marcelo Tosatti wrote: > >On Thu, Jul 30, 2015 at 10:47:23AM -0700, Vikas Shivappa wrote: > >> > >> > >>Marcello, > >> > >> > >>On Wed, 29 Jul 2015, Marcelo Tosatti wrote: > >>> > >>>How a

[PATCH] Add continuous sampling with IIO buffers for Vybrid

2015-08-03 Thread Sanchayan Maity
Hello, This patch adds support for continuous sampling provided by the ADC block on Vybrid by leveraging the IIO triggered buffer and IIO sysfs trigger infrastructure. The patch has been tested on Colibri VF50 and VF61 on shawn's tree for-next branch with the patches [1] and [2] applied. The bel

[PATCH] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-03 Thread Sanchayan Maity
This patch adds support for IIO buffer to the Vybrid ADC driver. IIO triggered buffer infrastructure along with iio sysfs trigger is used to leverage continuous sampling support provided by the ADC block. Signed-off-by: Sanchayan Maity --- drivers/iio/adc/Kconfig | 4 ++ drivers/iio/adc/vf

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: > On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: > >Somehow it is not calling what the changeset says it would call when passing > >"-e foo.o", investigating... > Have you tried > /root/bin/perf record -e ./foo.o sleep 1 > The

[PATCH] Staging : netlogic : Replace comma with a semicolon

2015-08-03 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; Signed-off-by: Shraddha Barke --- drivers/staging/netlogic/platform_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] Staging : lustre :Replace comma with a semicolon

2015-08-03 Thread Shraddha Barke
Replace comma between expression statements by a semicolon. The semantic patch used is as follows: @@ expression e1,e2; @@ e1 - , + ; e2; Signed-off-by: Shraddha Barke --- drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2015 at 12:07:28PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu: > > On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote: > > >Somehow it is not calling what the changeset says it would call when > > >passing > > >"-e foo.o

[PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-03 Thread Punit Agrawal
Setup a thermal zone driven by the SoC temperature sensor on Juno r0. Create passive trip points and bind them to cpufreq cooling devices that support the power extensions. Signed-off-by: Punit Agrawal Cc: Rob Herring Cc: Mark Rutland Cc: Liviu Dudau Cc: Sudeep Holla --- arch/arm64/boot/dts/

RE: [PATCH v3 3/6] power: Add support for DA9150 Fuel-Gauge

2015-08-03 Thread Opensource [Adam Thomson]
On July 25, 2015 18:27, Sebastian Reichel wrote: > Hi Adam, > > The driver looks mostly fine. I have a few comments, though: > > On Tue, Jul 07, 2015 at 05:34:19PM +0100, Adam Thomson wrote: > > Signed-off-by: Adam Thomson > > Please add a short description to the commit message. > Ok, I can

[PATCH v2 08/10] hwmon: Support registration of thermal zones for SCP temperature sensors

2015-08-03 Thread Punit Agrawal
Add support to create thermal zones based on the temperature sensors provided by the SCP. The thermal zones can be defined using the thermal DT bindings and should refer to the SCP sensor id to select the sensor. Signed-off-by: Punit Agrawal Cc: Jean Delvare Cc: Guenter Roeck Cc: Eduardo Valent

[PATCH v2 00/10] Platform support for thermal management on Juno

2015-08-03 Thread Punit Agrawal
Hi, The series adds support for thermal management on ARM Juno development platform. As part of this development, common infrastructure is added to support registering cpu cooling devices that work with the power allocator thermal governor. Patch 1 extends the CPU nodes binding to provide an opti

[PATCH v2 07/10] hwmon: Support sensors exported via ARM SCP interface

2015-08-03 Thread Punit Agrawal
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Power Interface (SCPI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via the hwmo

[PATCH v2 09/10] arm64: dts: Add sensor node to Juno dt

2015-08-03 Thread Punit Agrawal
The SCP firmware on Juno provides access to SoC sensors via the SCPI. Add the sensor nodes to the device tree to enable this support. Signed-off-by: Punit Agrawal Cc: Rob Herring Cc: Mark Rutland Cc: Liviu Dudau Cc: Sudeep Holla --- arch/arm64/boot/dts/arm/juno-base.dtsi | 5 + 1 file ch

Re: [PATCH] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-03 Thread Peter Meerwald
On Mon, 3 Aug 2015, Sanchayan Maity wrote: > This patch adds support for IIO buffer to the Vybrid ADC driver. > IIO triggered buffer infrastructure along with iio sysfs trigger > is used to leverage continuous sampling support provided by the > ADC block. comments below > Signed-off-by: Sanchay

[PATCH v2 06/10] firmware: arm_scpi: Extend to support sensors

2015-08-03 Thread Punit Agrawal
ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal Cc: Sudeep Holla --- drivers/firmware/arm_scpi.c | 60 +++ include/

[PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors

2015-08-03 Thread Punit Agrawal
The System Control Processor (SCP) provides access to SoC sensors via the System Control and Power Interface (SCPI) Message Protocol. Add bindings to allow probing of these sensors. Also support referencing of the sensors for setting up thermal zones via the thermal DT bindings. Signed-off-by: Pun

[PATCH v2 02/10] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-08-03 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal Acked-by: Viresh Kumar Cc: Eduardo Valentin --- drivers/cpuf

Re: [PATCH] iommu/omap: Fix debug_read_tlb() to use seq_printf()

2015-08-03 Thread Joerg Roedel
On Thu, Jul 23, 2015 at 02:26:19PM +0200, Salva Peiró wrote: > The debug_read_tlb() uses the sprintf() functions directly on the buffer > allocated by buf = kmalloc(count), without taking into account the size > of the buffer, with the consequence corrupting the heap, depending on > the count reque

[PATCH v2 01/10] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-08-03 Thread Punit Agrawal
The dynamic power consumption of a device is proportional to the square of voltage (V) and the clock frequency (f). It can be expressed as Pdyn = dynamic-power-coefficient * V^2 * f. The dynamic-power-coefficient property represents an indicative running time dynamic power coefficient in fundamen

[PATCH v2 03/10] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-08-03 Thread Punit Agrawal
Register passive cooling devices when initialising cpufreq on big.LITTLE systems. If the device tree provides a dynamic power coefficient for the CPUs then the bound cooling device will support the extensions that allow it to be used with all the existing thermal governors including the power alloc

[PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-03 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal Cc: Guenter Roeck Cc: Eduar

RE: [PATCH v3 4/6] power: da9150: Add DT bindings documentation for Fuel-Gauge

2015-08-03 Thread Opensource [Adam Thomson]
On July 24, 2015 23:01, Sebastian Reichel wrote: > Hi, > > On Tue, Jul 07, 2015 at 05:34:21PM +0100, Adam Thomson wrote: > > diff --git a/Documentation/devicetree/bindings/power/da9150-fg.txt > b/Documentation/devicetree/bindings/power/da9150-fg.txt > > new file mode 100644 > > index 000..c3c

Re: [REGRESSION] Re: i915 driver crashes on T540p if docking station attached

2015-08-03 Thread Daniel Vetter
On Thu, Jul 30, 2015 at 11:50:29AM -0400, Theodore Ts'o wrote: > On Thu, Jul 30, 2015 at 04:40:02PM +0200, Daniel Vetter wrote: > > I have 4 patches in git://people.freedesktop.org/~danvet/drm fixes-stuff > > but I couldn't test them yet since no dp mst here and I didn't find > > anything that woul

Re: [TRIVIAL PATCH] sgi-gru: Correct misuse of %0x

2015-08-03 Thread Joe Perches
On Mon, 2015-08-03 at 08:10 -0500, Dimitri Sivanich wrote: > This should be %d, not 0x%x. I don't care one way or the other, but please fix it so it matches. > > diff --git a/drivers/misc/sgi-gru/grumain.c b/drivers/misc/sgi-gru/grumain.c > > index ae16c8c..a1ce324 100644 > > --- a/drivers/misc/

<    2   3   4   5   6   7   8   9   >