Re: [PATCH net-next 2/3] netlink: Convert netlink_lookup() to use RCU protected hash table

2014-08-04 Thread David Miller
From: Eric Dumazet Date: Tue, 05 Aug 2014 07:50:07 +0200 > [PATCH net-next] netlink: fix lockdep splats > > With netlink_lookup() conversion to RCU, we need to use appropriate > rcu dereference in netlink_seq_socket_idx() & netlink_seq_next() > > Reported-by: Sasha Levin > Signed-off-by: Eric

Re: pull request: wireless-next 2014-08-01

2014-08-04 Thread David Miller
From: Marcel Holtmann Date: Mon, 4 Aug 2014 22:39:47 -0700 > Hi Dave, > > Please pull this last(?) batch of wireless change intended for the > 3.17 stream... When I pull this I get tons of conflicts for: CONFLICT (content): Merge conflict in net/6lowpan/iphc.c

Re: [PATCH] xhci: Merge and Update debugging for patches from 3.6 kernel tree

2014-08-04 Thread Nick Krause
On Tue, Aug 5, 2014 at 1:45 AM, Greg KH wrote: > On Tue, Aug 05, 2014 at 12:56:57AM -0400, Nicholas Krause wrote: >> I am adding the fixes to the tree send for adding debugging to the kernel >> tree from a patch sent in 2013 on the the 3.6 release. The patch adds >> debugging over xhci capable

Re: [PATCH net-next 2/3] netlink: Convert netlink_lookup() to use RCU protected hash table

2014-08-04 Thread Eric Dumazet
On Mon, 2014-08-04 at 19:58 -0700, David Miller wrote: > From: Sasha Levin > Date: Mon, 04 Aug 2014 22:10:19 -0400 > > > On 08/02/2014 05:47 AM, Thomas Graf wrote: > >> static void *netlink_seq_start(struct seq_file *seq, loff_t *pos) > >> - __acquires(nl_table_lock) > >> { > >> -

Re: [PATCH] xhci: Merge and Update debugging for patches from 3.6 kernel tree

2014-08-04 Thread Greg KH
On Tue, Aug 05, 2014 at 12:56:57AM -0400, Nicholas Krause wrote: > I am adding the fixes to the tree send for adding debugging to the kernel > tree from a patch sent in 2013 on the the 3.6 release. The patch adds > debugging over xhci capable debugging usb ports and needed to be updated > into the

Re: [PATCH] sched: Reduce contention in update_cfs_rq_blocked_load

2014-08-04 Thread Yuyang Du
On Tue, Aug 05, 2014 at 03:15:26AM +0800, Yuyang Du wrote: > Hi Jason, > > I am not sure whether you noticed my latest work: rewriting per entity load > average > > http://article.gmane.org/gmane.linux.kernel/1760754 > http://article.gmane.org/gmane.linux.kernel/1760755 >

[PATCH] kbuild: trivial - fix the help doc of CONFIG_CC_OPTIMIZE_FOR_SIZE

2014-08-04 Thread Masahiro Yamada
Other than GCC, we have another choice, Clang for building the kernel these days. It seems better to say "compiler" rather than "gcc". Signed-off-by: Masahiro Yamada --- init/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index

Re: [PATCH] brcmfmac: prevent watchdog from interfering with scanning and connecting

2014-08-04 Thread Fu, Zhonghui
On 2014/8/5 4:12, Arend van Spriel wrote: > On 08/04/14 18:52, Russell King - ARM Linux wrote: >> On Tue, Aug 05, 2014 at 12:36:49AM +0800, Fu, Zhonghui wrote: >>> Hi, Arend >>> >>> I investigated this issue, and its root cause is still that sdio >>> controller can't receive interrupts from WiFi

Re: [PATCH 4/7] locking/rwsem: threshold limited spinning for active readers

2014-08-04 Thread Davidlohr Bueso
On Mon, 2014-08-04 at 22:30 -0700, Davidlohr Bueso wrote: > On Mon, 2014-08-04 at 21:54 -0700, Davidlohr Bueso wrote: > > > #ifdef CONFIG_RWSEM_SPIN_ON_OWNER > > > +/* > > > + * The owner field is set to RWSEM_READ_OWNED if the last owner(s) are > > > + * readers. It is not reset until a writer

Re: pull request: wireless-next 2014-08-01

2014-08-04 Thread Marcel Holtmann
Hi Dave, Please pull this last(?) batch of wireless change intended for the 3.17 stream... >>> >>> When I pull this I get tons of conflicts for: >>> >>> CONFLICT (content): Merge conflict in net/6lowpan/iphc.c >>> >>> I don't feel comfortable fixing these up, where are they coming

[PATCH v1] MIPS: perf: Mark pmu interupt IRQF_NO_THREAD

2014-08-04 Thread Wei.Yang
From: Yang Wei In RT kernel, I ran into the following calltrace, so PMU interrupts cannot be threaded in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/0 INFO: lockdep is turned off. Call Trace: [] dump_stack+0x1c/0x50 [] __might_sleep+0x13c/0x148 [] rt_spin_lock+0x3c/0xb0 []

Re: [PATCH] brcmfmac: prevent watchdog from interfering with scanning and connecting

2014-08-04 Thread Fu, Zhonghui
On 2014/8/5 0:52, Russell King - ARM Linux wrote: > On Tue, Aug 05, 2014 at 12:36:49AM +0800, Fu, Zhonghui wrote: >> Hi, Arend >> >> I investigated this issue, and its root cause is still that sdio >> controller can't receive interrupts from WiFi chip on sdio bus when >> sdio controller is in

Re: Kernel Debugging Support

2014-08-04 Thread Nick Krause
On Mon, Aug 4, 2014 at 11:18 PM, Nick Krause wrote: > On Mon, Aug 4, 2014 at 9:33 PM, Nick Krause wrote: >> On Mon, Aug 4, 2014 at 8:12 PM, Sarah Sharp >> wrote: >>> On Mon, Aug 04, 2014 at 07:11:07PM -0400, Nick Krause wrote: On Mon, Aug 4, 2014 at 7:03 PM, Paul Zimmerman wrote:

Re: [PATCH 4/7] locking/rwsem: threshold limited spinning for active readers

2014-08-04 Thread Davidlohr Bueso
On Mon, 2014-08-04 at 21:54 -0700, Davidlohr Bueso wrote: > > #ifdef CONFIG_RWSEM_SPIN_ON_OWNER > > +/* > > + * The owner field is set to RWSEM_READ_OWNED if the last owner(s) are > > + * readers. It is not reset until a writer takes over and set it to its > > + * task structure pointer or NULL

Re: Is lockref_get_not_zero() really correct in dget_parent()

2014-08-04 Thread Al Viro
On Mon, Aug 04, 2014 at 09:07:32PM -0700, Linus Torvalds wrote: > So renaming it to "lockref_get_active()", and changing the "not zero" > test to check for "positive" and change the rtype of "count" to be > signed, all sound like good things to me. Fine by me. I can do that, unless somebody

Re: One bug of SDHCI driver

2014-08-04 Thread Fu, Zhonghui
Hi, Jaehoon According to your comments, I created a new patch for this issue as follows: Thanks, Zhonghui >From 6cee984e1d76ba0a3320430f8cf4318ab65fcf06 Mon Sep 17 00:00:00 2001 From: Fu Zhonghui Date: Tue, 5 Aug 2014 12:44:38 +0800 Subject: [PATCH] mmc: core: sdio: Fix unconditional

Re: Is lockref_get_not_zero() really correct in dget_parent()

2014-08-04 Thread Steven Noonan
On Mon, Aug 4, 2014 at 9:54 PM, Steven Noonan wrote: > On Mon, Aug 04, 2014 at 09:07:32PM -0700, Linus Torvalds wrote: >> On Mon, Aug 4, 2014 at 8:17 PM, NeilBrown wrote: >> > >> > I've been looking at last year's change to dentry refcounting which sets >> > the >> > refcount to -128

Re: [PATCH 4/7] locking/rwsem: threshold limited spinning for active readers

2014-08-04 Thread Davidlohr Bueso
On Sun, 2014-08-03 at 22:36 -0400, Waiman Long wrote: > Even thought only the writers can perform optimistic spinning, there > is still a chance that readers may take the lock before a spinning > writer can get it. In that case, the owner field will be NULL and the > spinning writer can spin

Re: Is lockref_get_not_zero() really correct in dget_parent()

2014-08-04 Thread Steven Noonan
On Mon, Aug 04, 2014 at 09:07:32PM -0700, Linus Torvalds wrote: > On Mon, Aug 4, 2014 at 8:17 PM, NeilBrown wrote: > > > > I've been looking at last year's change to dentry refcounting which sets > > the > > refcount to -128 (mark_dead()) when the dentry is gone. > > > > As this is an

Re: [PATCH 1/2] KVM: nVMX: Fix nested vmexit ack intr before load vmcs01

2014-08-04 Thread Wanpeng Li
Hi Davidlohr, On Mon, Aug 04, 2014 at 12:56:36PM -0700, Davidlohr Bueso wrote: >On Fri, 2014-08-01 at 16:12 +0800, Wanpeng Li wrote: >> External interrupt will cause L1 vmexit w/ reason external interrupt when L2 >> is >> running. Then L1 will pick up the interrupt through vmcs12 if L1 set the

[PATCH v2 2/2] KVM: nVMX: fix acknowledge interrupt on exit when APICv is in use

2014-08-04 Thread Wanpeng Li
After commit 77b0f5d (KVM: nVMX: Ack and write vector info to intr_info if L1 asks us to), "Acknowledge interrupt on exit" behavior can be emulated. To do so, KVM will ask the APIC for the interrupt vector if during a nested vmexit if VM_EXIT_ACK_INTR_ON_EXIT is set. With APICv,

[PATCH v2 1/2] KVM: nVMX: Fix nested vmexit ack intr before load vmcs01

2014-08-04 Thread Wanpeng Li
External interrupt will cause L1 vmexit w/ reason external interrupt when L2 is running. Then L1 will pick up the interrupt through vmcs12 if L1 set the ack interrupt bit. Commit 77b0f5d (KVM: nVMX: Ack and write vector info to intr_info if L1 asks us to) get intr that belongs to L1 before load

Re: [PATCH? v2] x86: reimplement ___preempt_schedule*() using THUNK helpers

2014-08-04 Thread Mike Galbraith
On Mon, 2014-08-04 at 19:36 +0200, Oleg Nesterov wrote: > Seems to work at least on x86_64, but I do not know how to test, lets see > what HPA thinks. Seeing the words "preempt" and "test", blindly feeding it to -rt seemed like a reasonable thing to do over morning java (la la la;)... it hasn't

[GIT PULL] bcache changes for 3.17

2014-08-04 Thread Kent Overstreet
Hey Jens, here's the pull request for 3.17 - typically late, but lots of tasty fixes in this one :) The following changes since commit 4c834452aad01531db949414f94f817a86348d59: Linux 3.16-rc3 (2014-06-29 14:11:36 -0700) are available in the git repository at:

Re: [GIT PULL] Staging driver patches for 3.17-rc1

2014-08-04 Thread Greg KH
On Tue, Aug 05, 2014 at 06:13:25AM +0200, Andreas Mohr wrote: > > Lots of things in here, over 2000 patches, but the best part is this: > > 1480 files changed, 39070 insertions(+), 254659 deletions(-) > > > > Thanks to the great work of Kristina Martšenko, 14 different staging > > drivers have

Re: [PATCH] drivers/isdn/hisax/Kconfig: Let HISAX_NETJET skip microblaze architecture

2014-08-04 Thread Chen Gang
On 08/05/2014 03:44 AM, Geert Uytterhoeven wrote: > On Mon, Aug 4, 2014 at 9:23 PM, Jean Delvare wrote: >>> --- a/drivers/isdn/hisax/Kconfig >>> +++ b/drivers/isdn/hisax/Kconfig >>> @@ -237,7 +237,7 @@ config HISAX_MIC >>> >>> config HISAX_NETJET >>> bool "NETjet card" >>> - depends

Re: linux-next: build failures after merge of the drm tree

2014-08-04 Thread Dave Airlie
> Hi Dave, > > After merging the drm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > ERROR: "drm_sysfs_connector_remove" [drivers/gpu/drm/i2c/tda998x.ko] > undefined! > ERROR: "drm_sysfs_connector_add" [drivers/gpu/drm/i2c/tda998x.ko] undefined! > I've fixed

Re: [GIT PULL] Staging driver patches for 3.17-rc1

2014-08-04 Thread Andreas Mohr
> Lots of things in here, over 2000 patches, but the best part is this: > 1480 files changed, 39070 insertions(+), 254659 deletions(-) > > Thanks to the great work of Kristina Martšenko, 14 different staging > drivers have been removed from the tree as they were obsolete and no > one > was

Re: [PATCH 0/3] FS-Cache: Bug fixes for bugs that happen under vma pressure

2014-08-04 Thread Milosz Tanski
David, I was away for a few days I'll take a look at your comments and respond appropriately within the next two days. - M On Tue, Jul 29, 2014 at 12:03 PM, David Howells wrote: > Did you mean to add Signed-off-by lines? > > David -- Milosz Tanski CTO 16 East 34th Street, 15th floor New

[PATCH] perf/x86: fix load latency/precise store data source issues

2014-08-04 Thread Stephane Eranian
This patch fixes some issues introduced by Andi's 'Revamp PEBS' event selection patch (which is under review right now). Most of the issues were related to the encoding of the data source, for PEBS events in general and load/store events on Haswell. This patchd does: - the default of 0 in

Re: Is lockref_get_not_zero() really correct in dget_parent()

2014-08-04 Thread Linus Torvalds
On Mon, Aug 4, 2014 at 8:17 PM, NeilBrown wrote: > > I've been looking at last year's change to dentry refcounting which sets the > refcount to -128 (mark_dead()) when the dentry is gone. > > As this is an "unsigned long" and there are several places where > d_lockref.count is compared e.g.

Re: [PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2014-08-04 Thread Lina Iyer
On Mon, 4 Aug 2014, Stephen Boyd wrote: > Architectural changes in the ARM Linux kernel tree mandate > the eventual removal of the mach-* directories. Move the > scm driver to drivers/soc/qcom and the scm header to > include/soc/qcom to support that removal. > > Signed-off-by: Stephen Boyd >

linux-next: is the kgdb tree still relevant?

2014-08-04 Thread Stephen Rothwell
Hi Jason, I have noticed that the kgdb tree contains 10 commits the last of which was committed on March 3, 2013. Should I drop this tree form linux-next? -- Cheers, Stephen Rothwells...@canb.auug.org.au signature.asc Description: PGP signature

Re: [PATCH] KVM: MMU: Use hashtable for MMU page hash

2014-08-04 Thread Xiao Guangrong
On 08/05/2014 04:54 AM, Sasha Levin wrote: > Use the kernel hashtable interface instead of the hlist interface. > This allows us to eliminate some unneeded code and make the code > simpler. The side effect is that the hash function is changed, the current way is: gfn & ((1 <<

Re: [PATCH v3 2/2] usb: dwc2: add 'mode' which based on Kconfig select or dts setting

2014-08-04 Thread Doug Anderson
Kever, On Mon, Aug 4, 2014 at 6:45 PM, Kever Yang wrote: > Doug, > > > On 08/05/2014 12:34 AM, Doug Anderson wrote: >> >> Kever, >> >> On Mon, Aug 4, 2014 at 6:45 AM, Kever Yang >> wrote: >>> >>> According to the "dr_mode", the otg controller can work as >>> device role during firmware period,

Re: [PATCH, RESEND] procfs: silence lockdep warning about read vs. exec seq_file

2014-08-04 Thread Eric W. Biederman
"Kirill A. Shutemov" writes: > From: "Kirill A. Shutemov" > > Testcase: > > cat /proc/self/maps >/dev/null > chmod +x /proc/self/net/packet > exec /proc/self/net/packet > > It triggers lockdep warning: > I don't know why we allow "chmod +x" on some proc files, notably net-related. > Is

Re: [PATCH] sched: Reduce contention in update_cfs_rq_blocked_load

2014-08-04 Thread Yuyang Du
Hi Jason, I am not sure whether you noticed my latest work: rewriting per entity load average http://article.gmane.org/gmane.linux.kernel/1760754 http://article.gmane.org/gmane.linux.kernel/1760755 http://article.gmane.org/gmane.linux.kernel/1760757

Is lockref_get_not_zero() really correct in dget_parent()

2014-08-04 Thread NeilBrown
Hi, I've been looking at last year's change to dentry refcounting which sets the refcount to -128 (mark_dead()) when the dentry is gone. As this is an "unsigned long" and there are several places where d_lockref.count is compared e.g. "> 1", I start feeling uncomfortable, as "-128" is

Re: Kernel Debugging Support

2014-08-04 Thread Nick Krause
On Mon, Aug 4, 2014 at 9:33 PM, Nick Krause wrote: > On Mon, Aug 4, 2014 at 8:12 PM, Sarah Sharp > wrote: >> On Mon, Aug 04, 2014 at 07:11:07PM -0400, Nick Krause wrote: >>> On Mon, Aug 4, 2014 at 7:03 PM, Paul Zimmerman >>> wrote: >>> >> From: Nick Krause [mailto:xerofo...@gmail.com] >> >>

Re: Random panic in load_balance() with 3.16-rc

2014-08-04 Thread Steven Rostedt
On Fri, 25 Jul 2014 11:29:06 -0700 Linus Torvalds wrote: > On Fri, Jul 25, 2014 at 7:02 AM, Steven Rostedt wrote: > > > > But wouldn't it be rather trivial to run a static analyzer on the final > > vmlinux to make sure there are no red zones? I mean, you would only need > > to read each

Re: [GIT PULL] hwmon updates for 3.17

2014-08-04 Thread Guenter Roeck
On 08/04/2014 08:14 PM, Stephen Rothwell wrote: Hi Guenter, On Mon, 4 Aug 2014 19:22:09 -0700 Guenter Roeck wrote: Hi Linus, Please pull hwmon updates for Linux 3.17 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus This branch

[Bugfix 1/2] x86, irq, PCI: Keep IRQ assignment for PCI devices during suspend/hibernation

2014-08-04 Thread Jiang Liu
Now IOAPIC driver dynamically allocates IRQ numbers for IOAPIC pins. We need to keep IRQ assignment for PCI devices during suspend/hibernation, otherwise it may cause failure of suspend/hibernation due to: 1) Device driver calls pci_enable_device() to allocate an IRQ number and register

[Bugfix 2/2] x86, irq: Keep balance of IOAPIC pin reference count

2014-08-04 Thread Jiang Liu
To keep balance of IOAPIC pin reference count, we need to protect pirq_enable_irq(), acpi_pci_irq_enable() and intel_mid_pci_irq_enable() from reentrance. There are two cases which will cause reentrance. The first case is caused by suspend/hibernation. If pcibios_disable_irq is called during

[Bugfix 0/2] Fix bugs caused by "use irqdomain to dynamically allocate IRQ for IOAPIC"

2014-08-04 Thread Jiang Liu
Two issues have been reported against patch set "use irqdomain to dynamically allocate IRQ for IOAPIC" at https://lkml.org/lkml/2014/6/9/44. This first one causes failure of suspend/hibernation, please refer to https://lkml.org/lkml/2014/7/28/822 for more information. And we have worked out a

Re: [PATCH v2 18/18] Documentation: ACPI for ARM64

2014-08-04 Thread Hanjun Guo
On 2014-8-5 4:48, Randy Dunlap wrote: > On 08/04/14 08:28, Hanjun Guo wrote: >> From: Graeme Gregory >> >> Add documentation for the guidelines of how to use ACPI >> on ARM64. >> >> Signed-off-by: Graeme Gregory >> Signed-off-by: Hanjun Guo >> --- >> Documentation/arm64/arm-acpi.txt | 215 >>

Re: [Linaro-acpi] [PATCH v2 00/18] Introduce ACPI for ARM64 based on ACPI 5.1

2014-08-04 Thread Hanjun Guo
On 2014-8-5 1:30, Alexander Spyridakis wrote: > On 4 August 2014 17:28, Hanjun Guo > wrote: >> >> ACPI 5.1 has been released and now be freely available for >> download [1]. It fixed some major gaps to run ACPI on ARM, >> this patch just follow the ACPI 5.1 spec and

Re: [PATCH] arch/sparc/math-emu/math_32.c: drop stray break operator

2014-08-04 Thread David Miller
From: Andrey Utkin Date: Mon, 4 Aug 2014 23:47:41 +0300 > This commit is a guesswork, but it seems to make sense to drop this > break, as otherwise the following line is never executed and becomes > dead code. And that following line actually saves the result of > local calculation by the

Re: [GIT PULL] hwmon updates for 3.17

2014-08-04 Thread Stephen Rothwell
Hi Guenter, On Mon, 4 Aug 2014 19:22:09 -0700 Guenter Roeck wrote: > > Hi Linus, > > Please pull hwmon updates for Linux 3.17 from signed tag: > > git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git > hwmon-for-linus This branch was rewritten (but not rebased) to add 5

[GIT PULL] ext4 bug updates for 3.17

2014-08-04 Thread Theodore Ts'o
The following changes since commit 1795cd9b3a91d4b5473c97f491d63892442212ab: Linux 3.16-rc5 (2014-07-13 14:04:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to

linux-next: build failures after merge of the drm tree

2014-08-04 Thread Stephen Rothwell
Hi Dave, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: "drm_sysfs_connector_remove" [drivers/gpu/drm/i2c/tda998x.ko] undefined! ERROR: "drm_sysfs_connector_add" [drivers/gpu/drm/i2c/tda998x.ko] undefined! Caused by commit c707c3619ca8

Re: Subject: [PATCH 1/1] mtd:nand:fix nand_lock/unlock() function

2014-08-04 Thread Brian Norris
On Tue, Aug 05, 2014 at 01:54:07AM +, bpqw wrote: > From 0304e9618d8c3ef5360b611f881f1b1bed08be06 Mon Sep 17 00:00:00 2001 > From: White Ding > Date: Thu, 24 Jul 2014 00:10:45 +0800 > Subject: [PATCH 1/1] mtd:nand:fix nand_lock/unlock() function > > Do nand reset before write protect check.

Re: [PATCH net-next 2/3] netlink: Convert netlink_lookup() to use RCU protected hash table

2014-08-04 Thread David Miller
From: Sasha Levin Date: Mon, 04 Aug 2014 22:10:19 -0400 > On 08/02/2014 05:47 AM, Thomas Graf wrote: >> static void *netlink_seq_start(struct seq_file *seq, loff_t *pos) >> -__acquires(nl_table_lock) >> { >> -read_lock(_table_lock); >> +rcu_read_lock(); >> return *pos ?

Re: [PATCH 2/2] softlockup: make detector be aware of task switch of processes hogging cpu

2014-08-04 Thread Chai Wen
On 08/04/2014 10:31 PM, Don Zickus wrote: > On Mon, Aug 04, 2014 at 03:36:19PM +0800, chai wen wrote: >> >> For now, soft lockup detector warns once for each case of process softlockup. >> But the thread 'watchdog/n' may can not always get cpu at the time slot >> between >> the task switch of

[RFC PATCH 3/3] ftracetest: Add kprobe basic testcases

2014-08-04 Thread Masami Hiramatsu
Add basic testcases for kprobe dynamic events. This also shows that the ftracetest accepts sub-directory for new testcases. Signed-off-by: Masami Hiramatsu --- .../testing/ftrace/test.d/kprobe/add_and_remove.tc | 11 +++ tools/testing/ftrace/test.d/kprobe/busy_check.tc | 14

[RFC PATCH 2/3] ftracetest: Add ftrace basic testcases

2014-08-04 Thread Masami Hiramatsu
Add ftrace basic testcases. This just checks ftrace debugfs interface works as it is designed. Signed-off-by: Masami Hiramatsu --- tools/testing/ftrace/test.d/basic1.tc |3 +++ tools/testing/ftrace/test.d/basic2.tc |6 ++ tools/testing/ftrace/test.d/basic3.tc |8 3

[RFC PATCH 1/3] ftracetest: Initial commit for ftracetest

2014-08-04 Thread Masami Hiramatsu
ftracetest is a collection of testcase shell-scripts for ftrace. To avoid regressions of ftrace, these testcases check correct ftrace behaviors. If someone would like to add any features on ftrace, the patch series should have at least one testcase for checking the new behavior. Signed-off-by:

[RFC PATCH 0/3] ftrace: Add a ftrace test collection

2014-08-04 Thread Masami Hiramatsu
Hi, I'd like to introduce a collection of testcases for ftrace to avoid regressions. For a long time, we've tried to stabilize and extend ftrace tracing infrastructure. This small test framework is a kind of stabilizing work for ftrace. For the first step, this series just introduces a few basic

Re: 3.16-rcX crashes on resume from Suspend-To-RAM

2014-08-04 Thread Zhang Rui
Hi, Markus, On Mon, 2014-08-04 at 09:06 -0700, Markus Gutschke wrote: > Thanks for checking in. And no, I have not heard from Zhang since my > last e-mail. I suspect he is still working on finding a solution. Yes, I was trying to find out what differences commit

[GIT PULL] hwmon updates for 3.17

2014-08-04 Thread Guenter Roeck
Hi Linus, Please pull hwmon updates for Linux 3.17 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus Thanks, Guenter -- The following changes since commit 64aa90f26c06e1cb2aacfb98a7d0eccfbd6c1a91: Linux 3.16-rc7 (2014-07-27

Re: [RFC PATCH 00/11] Refactor MSI to support Non-PCI device

2014-08-04 Thread Yijing Wang
On 2014/8/4 22:45, Arnd Bergmann wrote: > On Monday 04 August 2014, Yijing Wang wrote: >> I have another question is some drivers will request more than one >> MSI/MSI-X IRQ, and the driver will use them to process different things. >> Eg. network driver generally uses one of them to process

Re: [RFC][PATCH 4/7] inotify: Deal with nested sleeps

2014-08-04 Thread Lai Jiangshan
I don't think this one needs nested sleeps. diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index cc423a3..1ca5888 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -233,15 +233,16 @@ static ssize_t inotify_read(struct file

Re: [RFC PATCH 00/11] Refactor MSI to support Non-PCI device

2014-08-04 Thread Yijing Wang
>>> The method you describe here makes sense for PCI devices that are required >>> to support >>> legacy interrupts and may or may not support MSI on a given system, but not >>> so much >>> for platform devices for which we know exactly whether we want to use MSI >>> or legacy interrupts. >>>

Re: [PATCH net-next 2/3] netlink: Convert netlink_lookup() to use RCU protected hash table

2014-08-04 Thread Sasha Levin
suspicious RCU usage. ] [ 531.485512] 3.16.0-next-20140804-sasha-00029-gcb12d07 #995 Not tainted [ 531.489198] --- [ 531.491518] net/netlink/af_netlink.c:2953 suspicious rcu_dereference_protected() usage! [ 531.495781] [ 531.495781] other info tha

Re: [request for help] tty: serial: kgdb: fix msm_serial for kgdb

2014-08-04 Thread Frank Rowand
On 8/4/2014 6:33 PM, Stephen Boyd wrote: > On 08/04/14 17:59, Frank Rowand wrote: >> Stephen, >> >> I made some changes to drivers/tty/serial/msm_serial.c to allow kgdb >> to work with the dragon board (which has a qcom,msm-uartdm-v1.4 serial >> port). >> >> I will reply to this email with the

Re: [PATCH v2 8/8] staging: iio: accel: sca3000_core.c: Add blank line between declarations and code

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 22:47 -0300, Murilo Opsfelder Araujo wrote: > This patch adds missing blank line between declarations and code, and > adjust code to fit 80-chars limit. [] > diff --git a/drivers/staging/iio/accel/sca3000_core.c > b/drivers/staging/iio/accel/sca3000_core.c [] > @@ -506,7

Re: zram: device management utility needed

2014-08-04 Thread Minchan Kim
On Wed, Jul 30, 2014 at 12:14:42AM +0100, Sami Kerola wrote: > Hello, > > Not so long ago Timofey has reached both util-linux[1] and kernel[2] > contributors with intention to make zram device management too. I think > the proposal is good, and there should be distribution independent tool >

Re: btrfs extents related oops.

2014-08-04 Thread Dave Jones
On Mon, Aug 04, 2014 at 09:28:45PM -0400, Dave Jones wrote: > Possibly related to some changes I've been making to my fuzz tester today > to operate on the same file from multiple threads. > This was on v3.16-829-g98959948a7ba, but probably exists on earlier trees too > given the lack of btrfs

RE: Subject: [PATCH 1/1] mtd:nand:fix nand_lock/unlock() function

2014-08-04 Thread bpqw
>From 0304e9618d8c3ef5360b611f881f1b1bed08be06 Mon Sep 17 00:00:00 2001 From: White Ding Date: Thu, 24 Jul 2014 00:10:45 +0800 Subject: [PATCH 1/1] mtd:nand:fix nand_lock/unlock() function Do nand reset before write protect check. If we want to check the WP# low or high through STATUS READ and

[PATCH v2 0/8] staging: iio: accel: Multiple coding style fixes

2014-08-04 Thread Murilo Opsfelder Araujo
The following patches fix almost all warnings reported by checkpatch.pl. Changes from v1: - Updated commit messages to better reflect changes. Murilo Opsfelder Araujo (8): staging: iio: accel: adis16203_core.c: Add blank lines between declarations and code staging: iio: accel:

[PATCH v2 6/8] staging: iio: accel: lis3l02dq_core.c: Add blank lines between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/lis3l02dq_core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c

[PATCH v2 5/8] staging: iio: accel: adis16240_core.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/adis16240_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/accel/adis16240_core.c

[PATCH v6 1/7] kernel: Add support for kernel restart handler call chain

2014-08-04 Thread Guenter Roeck
Various drivers implement architecture and/or device specific means to restart (reset) the system. Various mechanisms have been implemented to support those schemes. The best known mechanism is arm_pm_restart, which is a function pointer to be set either from platform specific code or from

[PATCH v2 3/8] staging: iio: accel: adis16204_core.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/adis16204_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/accel/adis16204_core.c

[PATCH v6 3/7] arm: Support restart through restart handler call chain

2014-08-04 Thread Guenter Roeck
The kernel core now supports a restart handler call chain for system restart functions. With this change, the arm_pm_restart callback is now optional, so check if it is set before calling it. Only call the kernel restart handler if arm_pm_restart is not set. Signed-off-by: Guenter Roeck

[PATCH v6 4/7] power/restart: Call machine_restart instead of arm_pm_restart

2014-08-04 Thread Guenter Roeck
machine_restart is supported on non-ARM platforms, and and ultimately calls arm_pm_restart, so dont call arm_pm_restart directly but use the more generic function. Cc: Russell King Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas Acked-by: Heiko Stuebner --- v6: No change. v5: No

[PATCH v6 7/7] arm/arm64: Unexport restart handlers

2014-08-04 Thread Guenter Roeck
Implementing a restart handler in a module don't make sense as there would be no guarantee that the module is loaded when a restart is needed. Unexport arm_pm_restart to ensure that no one gets the idea to do it anyway. Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas Acked-by: Heiko

[PATCH v6 2/7] arm64: Support restart through restart handler call chain

2014-08-04 Thread Guenter Roeck
The kernel core now supports a restart handler call chain to restart the system. Call it if arm_pm_restart is not set. Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas Acked-by: Heiko Stuebner --- v6: No change. v5: Renamed restart function to do_kernel_restart v4: No change. v3: Use

[PATCH v6 5/7] watchdog: moxart: Register restart handler with kernel restart handler

2014-08-04 Thread Guenter Roeck
The kernel now provides an API to trigger a system restart. Register with it instead of setting arm_pm_restart. Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas Acked-by: Heiko Stuebner --- v6: No change. v5: Functions and variables renamed: *notifier -> *handler v4: Set notifier

[PATCH v6 0/7] kernel: Add support for restart handler call chain

2014-08-04 Thread Guenter Roeck
Various drivers implement architecture and/or device specific means to restart (reset) the system. Various mechanisms have been implemented to support those schemes. The best known mechanism is arm_pm_restart, which is a function pointer to be set either from platform specific code or from

[PATCH v6 6/7] watchdog: alim7101: Register restart handler with kernel restart handler

2014-08-04 Thread Guenter Roeck
The kernel core now provides an API to trigger a system restart. Register with it to restart the system instead of misusing the reboot notifier. Signed-off-by: Guenter Roeck Acked-by: Catalin Marinas Acked-by: Heiko Stuebner --- v6: No change. v5: Function and variable renames: *notifier ->

[PATCH v2 4/8] staging: iio: accel: adis16209_core.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/adis16209_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/accel/adis16209_core.c

[PATCH v2 2/8] staging: iio: accel: adis16201_core.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, and also fixes lines starting by space, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/adis16201_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v2 8/8] staging: iio: accel: sca3000_core.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, and ajust code to fit 80-chars limit. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/sca3000_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3 RESEND] zram: auto add new devices on demand

2014-08-04 Thread Minchan Kim
On Wed, Jul 30, 2014 at 10:58:31PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (07/29/14 12:00), Minchan Kim wrote: > > Hello Timofey, > > > > Sorry for late response and thanks for suggesting new feature. > > > > First of all, I'd like to know your usecase. > > > > I don't mean I am

[PATCH v2 7/8] staging: iio: accel: lis3l02dq_ring.c: Add blank line between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank line between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/lis3l02dq_ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c

[PATCH v2 1/8] staging: iio: accel: adis16203_core.c: Add blank lines between declarations and code

2014-08-04 Thread Murilo Opsfelder Araujo
This patch adds missing blank lines between declarations and code, satisfying checkpatch.pl. Signed-off-by: Murilo Opsfelder Araujo --- drivers/staging/iio/accel/adis16203_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/iio/accel/adis16203_core.c

Re: [PATCH v3 2/2] usb: dwc2: add 'mode' which based on Kconfig select or dts setting

2014-08-04 Thread Kever Yang
Doug, On 08/05/2014 12:34 AM, Doug Anderson wrote: Kever, On Mon, Aug 4, 2014 at 6:45 AM, Kever Yang wrote: According to the "dr_mode", the otg controller can work as device role during firmware period, and work as host role in the kernel, without use of usb_id pin. As the commit "usb: dwc3:

Re: [PATCH v2 2/4] pinctrl: qpnp: Qualcomm PMIC pin controller driver

2014-08-04 Thread Stephen Boyd
On 07/28/14 01:39, Ivan T. Ivanov wrote: > I am working on proposal from Stephen Boyd to encode GPIO/MPP mode and > source select into combined function. Something like this one: > > #define PM8XXX_DIGITAL_IN 0 > #define PM8XXX_DIGITAL_OUT1 > #define PM8XXX_DIGITAL_IN_OUT

[PATCH 2/8] msm: scm: Get cacheline size from CTR

2014-08-04 Thread Stephen Boyd
Instead of hardcoding the cacheline size as 32, get the cacheline size from the CTR register. Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/scm.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-qcom/scm.c b/arch/arm/mach-qcom/scm.c index

[PATCH 3/8] msm: scm: Flush the command buffer only instead of the entire cache

2014-08-04 Thread Stephen Boyd
From: Vikram Mulukutla scm_call flushes the entire cache before calling into the secure world. This is both a performance penalty as well as insufficient on SMP systems where the CPUs possess a write-back L1 cache. Flush only the command and response buffers instead, moving the responsibility of

[PATCH 0/8] qcom SCM updates

2014-08-04 Thread Stephen Boyd
The SCM code in the mainline kernel is woefully out of data from what is in the downstream msm kernels. Update the code to be at least functionally correct and useful for features like cpuidle and suspend. Olav Haugan (1): msm: scm: Add logging of actual return code from scm call Saravana

[PATCH 5/8] msm: scm: Add API to query for service/command availability.

2014-08-04 Thread Stephen Boyd
From: Saravana Kannan Some drivers may need to query the secure environment about the availability of a particular service/command. Add support for this. Signed-off-by: Saravana Kannan [sb...@codeaurora.org: Add some commit text] Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/scm.c | 18

[PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2014-08-04 Thread Stephen Boyd
Architectural changes in the ARM Linux kernel tree mandate the eventual removal of the mach-* directories. Move the scm driver to drivers/soc/qcom and the scm header to include/soc/qcom to support that removal. Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/Kconfig | 3

Re: [request for help] tty: serial: kgdb: fix msm_serial for kgdb

2014-08-04 Thread Stephen Boyd
On 08/04/14 17:59, Frank Rowand wrote: > Stephen, > > I made some changes to drivers/tty/serial/msm_serial.c to allow kgdb > to work with the dragon board (which has a qcom,msm-uartdm-v1.4 serial > port). > > I will reply to this email with the patches. > > With these fixes, kgdb properly

Re: Kernel Debugging Support

2014-08-04 Thread Nick Krause
On Mon, Aug 4, 2014 at 8:12 PM, Sarah Sharp wrote: > On Mon, Aug 04, 2014 at 07:11:07PM -0400, Nick Krause wrote: >> On Mon, Aug 4, 2014 at 7:03 PM, Paul Zimmerman >> wrote: >> >> From: Nick Krause [mailto:xerofo...@gmail.com] > > [snip] > >> >> Paul , >> >> My computer is rather old now as of

[PATCH 1/8] msm: scm: Fix incorrect cache invalidation

2014-08-04 Thread Stephen Boyd
The cache invalidation in scm_call() correctly rounds down the start address to invalidate the beginning of the cacheline but doesn't properly round up the 'end' address to make it aligned. The last chunk of the buffer won't be invalidated when 'end' is not cacheline size aligned so make sure to

[PATCH 6/8] msm: scm: Add a feat version query API

2014-08-04 Thread Stephen Boyd
Some users of SCM need to detect features and also detect if those features have certain versions available. Add this API. Signed-off-by: Stephen Boyd --- arch/arm/mach-qcom/scm.c | 13 + arch/arm/mach-qcom/scm.h | 1 + 2 files changed, 14 insertions(+) diff --git

[PATCH 7/8] msm: scm: Add logging of actual return code from scm call

2014-08-04 Thread Stephen Boyd
From: Olav Haugan When an error occurs during an scm call the error returned is remapped so we lose the original error code. This means that when an error occurs we have no idea what actually failed within the secure environment. Add a logging statement that will log the actual error code from

[PATCH 4/8] msm: scm: Add atomic SCM APIs

2014-08-04 Thread Stephen Boyd
The atomic SCM APIs are useful for commands that are guaranteed by the secure side to be uninterruptable, atomic and SMP safe. The calling convention use registers for passing parameters and return values between the secure and non-secure side. Support this interface with scm_call_atomic[1-2]()

btrfs extents related oops.

2014-08-04 Thread Dave Jones
Possibly related to some changes I've been making to my fuzz tester today to operate on the same file from multiple threads. This was on v3.16-829-g98959948a7ba, but probably exists on earlier trees too given the lack of btrfs specific commits so far this merge window. BTRFS: __set_extent_bit:

  1   2   3   4   5   6   7   8   9   10   >