[PATCH 4/6] powerpc,perf: Use common PMU interrupt disabled code

2014-06-15 Thread Vince Weaver
Transition to using the new generic PERF_PMU_CAP_NO_INTERRUPT method for failing a sampling event when no PMU interrupt is available. Signed-off-by: Vince Weaver vincent.wea...@maine.edu diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index e0766b8..3de7920 100644 ---

[PATCH 5/6] s390,perf: Use common PMU interrupt disabled code

2014-06-15 Thread Vince Weaver
Transition to using the new generic PERF_PMU_CAP_NO_INTERRUPT method for failing a sampling event when no PMU interrupt is available. Signed-off-by: Vince Weaver vincent.wea...@maine.edu diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c index ea75d01..d3194de 100644

[PATCH 6/6] sh,perf: Use common PMU interrupt disabled code

2014-06-15 Thread Vince Weaver
Transition to using the new generic PERF_PMU_CAP_NO_INTERRUPT method for failing a sampling event when no PMU interrupt is available. Signed-off-by: Vince Weaver vincent.wea...@maine.edu diff --git a/arch/sh/kernel/perf_event.c b/arch/sh/kernel/perf_event.c index 0233167..7cfd7f1 100644 ---

[PATCH V4 RESEND] drivers/scsi/bfa/bfad_debugfs.c: replace 2 kzalloc/copy_from_user by memdup_user

2014-06-15 Thread Fabian Frederick
This patch also removes unnecessary printk(KERN_INFO Cc: Anil Gurumurthy anil.gurumur...@qlogic.com Cc: James E.J. Bottomley jbottom...@parallels.com Cc: One Thousand Gnomes gno...@lxorguk.ukuu.org.uk Cc: Joe Perches j...@perches.com Signed-off-by: Fabian Frederick f...@skynet.be --- V4: remove

[PATCH 1/1 RESEND] drivers/misc/carma/carma-fpga.c: use PTR_ERR_OR_ZERO

2014-06-15 Thread Fabian Frederick
replace IS_ERR/PTR_ERR Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring robh...@kernel.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- This is untested. drivers/misc/carma/carma-fpga.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH 1/1 RESEND] drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO

2014-06-15 Thread Fabian Frederick
replace IS_ERR/PTR_ERR Cc: Wolfram Sang w...@the-dreams.de Cc: Andrew Morton a...@linux-foundation.org Cc: Linus Walleij linus.wall...@linaro.org Signed-off-by: Fabian Frederick f...@skynet.be --- This is untested. drivers/parport/parport_ip32.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/1 RESEND] fs/adfs/dir_fplus.c: use ARRAY_SIZE instead of sizeof/sizeof[0]

2014-06-15 Thread Fabian Frederick
Use kernel.h definition. Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/adfs/dir_fplus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/adfs/dir_fplus.c b/fs/adfs/dir_fplus.c index d9e3bee..7673c1f 100644 ---

[PATCH 1/1 RESEND] fs/ceph/export.c: add static to local function

2014-06-15 Thread Fabian Frederick
ceph_get_parent is only used in fs/ceph/export.c Cc: Sage Weil s...@inktank.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/ceph/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/export.c b/fs/ceph/export.c

[PATCH 1/1 RESEND] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-15 Thread Fabian Frederick
Use more explicit kernel.h definition Bob Copeland m...@bobcopeland.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/omfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index

[PATCH V2] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-15 Thread Fabian Frederick
Use more explicit kernel.h definition Cc: Bob Copeland m...@bobcopeland.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- V2: Fix Cc list fs/omfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/omfs/inode.c

[PATCH 1/1 RESEND] drivers/block/rbd.c: use PTR_ERR_OR_ZERO

2014-06-15 Thread Fabian Frederick
replace IS_ERR/PTR_ERR Cc: Yehuda Sadeh yeh...@inktank.com Cc: Sage Weil s...@inktank.com Signed-off-by: Fabian Frederick f...@skynet.be --- drivers/block/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 4c95b50..552a2ed

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread Andy Lutomirski
On Sat, Jun 14, 2014 at 8:59 PM, H. Peter Anvin h...@zytor.com wrote: On 06/14/2014 04:36 PM, H. Peter Anvin wrote: Now, if we can do this without adding another page then that becomes much more compelling IMO. I suspect we can if you are already down to 488 bytes. (If it isn't already

Re: [PATCH] Missing return check against Null for return value of netdev_alloc_dev_skb()

2014-06-15 Thread David Miller
From: Nick xerofo...@gmail.com Date: Sun, 15 Jun 2014 00:05:39 -0400 Signed-off-by: Nick xerofo...@gmail.com --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c

Re: [PATCH 0/6] perf: Use common PMU interrupt disabled code on all architectures

2014-06-15 Thread Ingo Molnar
* Vince Weaver vincent.wea...@maine.edu wrote: Now that perf/x86: Use common PMU interrupt disabled code (c184c980de30dc) was merged, I went and audited all of the architectures. The following patchset attempts to move all of the ones that have code disabling sampled events due to lack

Re: [RFC PATCH 0/2] kpatch: dynamic kernel patching

2014-06-15 Thread Ingo Molnar
* Pavel Machek pa...@ucw.cz wrote: Hi! in terms of hit-patching kernels you are correct. but that's a far cry from what it sounded like you were demanding (that it must handle any kernel patch) No, I was not demanding that at all, my suggestion was: My claim is

Re: random: Benchamrking fast_mix2

2014-06-15 Thread George Spelvin
Actually, could you hold off merging that for a bit? Or if you really want to, add a comment that the rotate constants are preliminary and will be further optimized. I posted that as WIP, just as evidence that something with better avalanche could be as fast or faster, and I'd like to go back

[PATCH] [RFC PATCH v2] power:reset: Add defer reset object to send board specific reset

2014-06-15 Thread Houcheng Lin
The Problem --- The reset signal on a hardware board is send either: - during machine initialization - during bus master's initialization In some hardware design, devices on bus need a non-standard and extra reset signal after bus is initialied. Most reason is to wake up device

[GIT PULL] clk: changes for 3.16, part 2

2014-06-15 Thread Mike Turquette
The following changes since commit 963649d735c8b6eb0f97e82c54f02426ff3f1f45: Merge tag 'for-linus-3.16-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs (2014-06-08 14:35:19 -0700) are available in the git repository at:

Re: console / fbdev: fbcon support for bits_per_pixel = 1?

2014-06-15 Thread Stefan Biereigel
Hello Bruno, are you sure that fbcon really uses the 1bpp mode and that it works correctly? I tried to match all var-settings to yours, and 1bpp support still seems broken. Well, a workaround would be doing it like you are: using 8bpp shadow memory and translating it to packed pixels (8px per

[RFC/PATCH] perf tools: Fix segfault in cumulative.callchain report

2014-06-15 Thread Jiri Olsa
heya, not completely sure this is what we want to do, but have no streght to dive into annotation code ;-) thanks, jirka --- When cumulative callchain mode is on, we could get samples with with no actual hits. This breaks the assumption of the annotation code, that each sample has annotation

Re: [-next] Regression: ssh log in slowdown

2014-06-15 Thread Geert Uytterhoeven
Hi Tom, On Fri, Jun 13, 2014 at 5:37 PM, Tom Herbert therb...@google.com wrote: Thanks, I applied the series [PATCH 0/4] Checksum fixes, and the fix above, but it doesn't help. Note that I'm also using NFS root, which doesn't seem to be affected. I can happily run ls -R / on the serial

Re: console / fbdev: fbcon support for bits_per_pixel = 1?

2014-06-15 Thread Geert Uytterhoeven
On Sat, Jun 14, 2014 at 2:35 PM, Bruno Prémont bonb...@linux-vserver.org wrote: Is this behavior intended or are we triggering a bug here (that no one noticed, because who in the world uses monochrome framebuffers these days..). I can't see any comments that monochrome consoles should not

Re: [PATCH v2 1/7] mfd: add atmel-hlcdc driver

2014-06-15 Thread Jean-Jacques Hiblot
On 06/09/2014 06:04 PM, Boris BREZILLON wrote: The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) exposes 2 subdevices: - a display controller (controlled by a DRM driver) - a PWM chip Add support for the MFD device which will just retrieve

Re: Surprising 64-bit performance anomaly (was Re: [PATCH] random: use an improved fast_mix() function)

2014-06-15 Thread George Spelvin
That is just *weird*. I'm testing on bare metal, and I keep measuring significantly better performance for the 64-bit code. Here's an i7-2700K @ 3.50GHz. (I added a rolled x2 measurement just for interest's sake.) The idle performance is very similar for the original and unrolled x2 versions,

Re: [PATCH] [RFC PATCH v2] power:reset: Add defer reset object to send board specific reset

2014-06-15 Thread Sebastian Reichel
Hi, On Sun, Jun 15, 2014 at 03:11:29PM +0800, Houcheng Lin wrote: The Problem --- The reset signal on a hardware board is send either: - during machine initialization - during bus master's initialization In some hardware design, devices on bus need a non-standard and extra

Re: [PATCH v2 2/7] pwm: add support for atmel-hlcdc-pwm device

2014-06-15 Thread Jean-Jacques Hiblot
On 06/09/2014 06:04 PM, Boris BREZILLON wrote: The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. This driver add support for this PWM device. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com

Re: [PATCH] MAINTAINERS: power_supply: update maintainership

2014-06-15 Thread Dmitry Eremin-Solenikov
Hello, On Sun, Jun 15, 2014 at 5:20 AM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Sebastian, On Sat, 14 Jun 2014 17:32:09 +0200 Sebastian Reichel s...@kernel.org wrote: Take over maintanence for orphaned power supply subsystem and move the git tree to a new kernel.org based

Re: [PATCH] MAINTAINERS: power_supply: update maintainership

2014-06-15 Thread Sebastian Reichel
Hi Stephen, On Sun, Jun 15, 2014 at 11:20:42AM +1000, Stephen Rothwell wrote: Hi Sebastian, On Sat, 14 Jun 2014 17:32:09 +0200 Sebastian Reichel s...@kernel.org wrote: Take over maintanence for orphaned power supply subsystem and move the git tree to a new kernel.org based repository.

Re: [PATCH] msi3103: Use time_before_eq()

2014-06-15 Thread Antti Palosaari
Acked-by: Antti Palosaari cr...@iki.fi Reviewed-by: Antti Palosaari cr...@iki.fi Mauro, pick that from patchwork to 3.16. I am not going to PULL request it. regards Antti On 05/25/2014 03:39 PM, Manuel Schölling wrote: To be future-proof and for better readability the time comparisons are

Re: vdso feature requests from the Go people

2014-06-15 Thread Stijn Volckaert
Andy Lutomirski schreef op 13/06/2014 7:23: On Thu, Jun 12, 2014 at 10:15 PM, H. Peter Anvin h...@zytor.com wrote: On 06/12/2014 09:36 PM, Andy Lutomirski wrote: If we were to implement both, maybe we'd actually want to provide something like: struct vdso_entry { unsigned long

Re: vdso feature requests from the Go people

2014-06-15 Thread Stijn Volckaert
Andy Lutomirski schreef op 13/06/2014 17:34: On Thu, Jun 12, 2014 at 10:39 PM, H. Peter Anvin h...@zytor.com wrote: On 06/12/2014 09:36 PM, Andy Lutomirski wrote: 1. Parsing the vDSO is a PITA. What if we bundled the reference parser inside the vdso? Concretely, we could have

ANNOUNCE: Hugepage (HPD) block device driver.

2014-06-15 Thread Dr. Greg Wettstein
Good morning, I hope this note finds the weekend going well for everyone. Izzy, our Golden Retriever, and I headed out to our lake place last weekend. I was fighting off a miserable early summer cold so I didn't feel up to cycling and the fish weren't biting so Izzy suggested we catch up on our

Re: [PATCH v3 3/7] shm: add memfd_create() syscall

2014-06-15 Thread Jann Horn
On Fri, Jun 13, 2014 at 12:36:55PM +0200, David Herrmann wrote: +asmlinkage long sys_memfd_create(const char *uname_ptr, unsigned int flags); [...] +SYSCALL_DEFINE2(memfd_create, + const char*, uname, + unsigned int, flags) +{ Shouldn't uname_ptr and uname be const

Regression: make O=... deb-pkg broken in 3.16

2014-06-15 Thread Ilya Dryomov
Hi Michal, Your relative path changes in the first kbuild pull request for 3.16 broke make O=... deb-pkg. /home/ubuntu/foo/linux-a/scripts/package/builddeb: line 291: ./debian/hdrsrcfiles: No such file or directory 290 # Build header package 291 (cd $srctree; find . -name Makefile\* -o -name

[RFC PATCH 1/1] init: fix race between rootfs mount and firmware loading

2014-06-15 Thread Roman Pen
The thing is that built-in modules are being inited before rootfs mount. Some of the modules can request firmware loading using async 'request_firmware_nowait' call just while inition, so we can catch this kind of race: rootfs does not exist yet, but we are going to open and load firmware file

Re: [CPU hotplug, smp] WARNING: CPU: 1 PID: 0 at kernel/smp.c:209 generic_smp_call_function_single_interrupt()

2014-06-15 Thread Srivatsa S. Bhat
On 06/15/2014 12:56 PM, Jet Chen wrote: Hi Srivatsa, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit ab7a42783d939cdbe729c18ab32dbf0d25746ea2 Author: Srivatsa S. Bhat

Re: Its Your Family.

2014-06-15 Thread John ven den Berg
Compliments. This is in regards to my previous message concerning a deceased client with similar last name with you, I have given you all necessary details about this and I haven't gotten any positive response from you, so kindly get back to me today. Thank you, John. -- To unsubscribe from

Re: [RFC/PATCH] perf tools: Fix segfault in cumulative.callchain report

2014-06-15 Thread Namhyung Kim
Hi Jiri, 2014-06-15 (일), 10:35 +0200, Jiri Olsa: heya, not completely sure this is what we want to do, but have no streght to dive into annotation code ;-) Currently, cumulative entries do not accounts annotation info so annotation only works for normal entries. I'm not sure we should

Re: random: Benchamrking fast_mix2

2014-06-15 Thread Theodore Ts'o
On Sun, Jun 15, 2014 at 02:58:03AM -0400, George Spelvin wrote: Actually, could you hold off merging that for a bit? Or if you really want to, add a comment that the rotate constants are preliminary and will be further optimized. I posted that as WIP, just as evidence that something with

Re: perf: Add support for full Intel event lists v6

2014-06-15 Thread Namhyung Kim
Hi Hagen, 2014-06-14 (토), 22:49 +0200, Hagen Paul Pfeifer: Probably too late, but IMHO the subcommand download is unhappy named. What is downloaded? traces? Python helper libs for perf-python support, I don't know it. What about events-download, events-database, ... Hmm.. maybe we can add

[PATCH 09/11] pvqspinlock, x86: Rename paravirt_ticketlocks_enabled

2014-06-15 Thread Peter Zijlstra
From: Waiman Long waiman.l...@hp.com This patch renames the paravirt_ticketlocks_enabled static key to a more generic paravirt_spinlocks_enabled name. Signed-off-by: Waiman Long waiman.l...@hp.com Signed-off-by: Peter Zijlstra pet...@infradead.org --- arch/x86/include/asm/spinlock.h |4

[PATCH 00/11] qspinlock with paravirt support

2014-06-15 Thread Peter Zijlstra
Since Waiman seems incapable of doing simple things; here's my take on the paravirt crap. The first few patches are taken from Waiman's latest series, but the virt support is completely new. Its primary aim is to not mess up the native code. I've not stress tested it, but the virt and paravirt

[PATCH 04/11] qspinlock: Extract out the exchange of tail code word

2014-06-15 Thread Peter Zijlstra
From: Waiman Long waiman.l...@hp.com This patch extracts the logic for the exchange of new and previous tail code words into a new xchg_tail() function which can be optimized in a later patch. Signed-off-by: Waiman Long waiman.l...@hp.com Signed-off-by: Peter Zijlstra pet...@infradead.org ---

[PATCH 6/6] KVM: x86: check DR6/7 high-bits are clear only on long-mode

2014-06-15 Thread Nadav Amit
From: Nadav Amit nadav.a...@gmail.com When the guest sets DR6 and DR7, KVM asserts the high 32-bits are clear, and otherwise injects a #GP exception. This exception should only be injected only if running in long-mode. Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/x86.c |

[PATCH 06/11] qspinlock: Optimize pending bit

2014-06-15 Thread Peter Zijlstra
XXX: merge into the pending bit patch.. It is possible so observe the pending bit without the locked bit when the last owner has just released but the pending owner has not yet taken ownership. In this case we would normally queue -- because the pending bit is already taken. However, in this

Re: [PATCH v11 06/16] qspinlock: prolong the stay in the pending bit path

2014-06-15 Thread Peter Zijlstra
On Thu, Jun 12, 2014 at 04:54:52PM -0400, Waiman Long wrote: If two tasks see the pending bit goes away and try to grab it with cmpxchg, there is no way we can avoid the contention. However, if some how the pending bit holder get the lock and another task set the pending bit before the current

[PATCH 5/6] KVM: x86: NOP emulation clears (incorrectly) the high 32-bits of RAX

2014-06-15 Thread Nadav Amit
On long-mode the current NOP (0x90) emulation still writes back to RAX. As a result, EAX is zero-extended and the high 32-bits of RAX are cleared. Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/emulate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 1/6] KVM: x86: bit-ops emulation ignores offset on 64-bit

2014-06-15 Thread Nadav Amit
The current emulation of bit operations ignores the offset from the destination on 64-bit target memory operands. This patch fixes this behavior. Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/emulate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 2/6] KVM: x86: Wrong emulation on 'xadd X, X'

2014-06-15 Thread Nadav Amit
The emulator does not emulate the xadd instruction correctly if the two operands are the same. In this (unlikely) situation the result should be the sum of X and X (2X) when it is currently X. The solution is to first perform writeback to the source, before writing to the destination. The only

[PATCH 02/11] qspinlock, x86: Enable x86-64 to use queue spinlock

2014-06-15 Thread Peter Zijlstra
From: Waiman Long waiman.l...@hp.com This patch makes the necessary changes at the x86 architecture specific layer to enable the use of queue spinlock for x86-64. As x86-32 machines are typically not multi-socket. The benefit of queue spinlock may not be apparent. So queue spinlock is not

Re: [PATCH v11 09/16] qspinlock, x86: Allow unfair spinlock in a virtual guest

2014-06-15 Thread Peter Zijlstra
On Thu, Jun 12, 2014 at 05:08:28PM -0400, Waiman Long wrote: Native performance is king, try your very utmost bestest to preserve that, paravirt is a distant second and nobody sane should care about the virt case at all. The patch won't affect native performance unless the kernel is built

[PATCH 4/6] KVM: x86: emulation of dword cmov on long-mode should clear [63:32]

2014-06-15 Thread Nadav Amit
Even if the condition of cmov is not satisfied, bits[63:32] should be cleared. This is clearly stated in Intel's CMOVcc documentation. The solution is to reassign the destination onto itself if the condition is unsatisfied. For that matter the original destination value needs to be read.

[PATCH 11/11] qspinlock, kvm: Add paravirt support

2014-06-15 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra pet...@infradead.org --- arch/x86/kernel/kvm.c | 58 ++ kernel/Kconfig.locks |2 - 2 files changed, 59 insertions(+), 1 deletion(-) Index: linux-2.6/arch/x86/kernel/kvm.c

[PATCH 0/6] KVM: x86: More emulator bugs

2014-06-15 Thread Nadav Amit
This patch-set resolves several emulator bugs. Each fix is independent of the others. The DR6/7 bug can occur during DR-access exit (regardless to unrestricted mode, MMIO and SPT). Thanks for reviewing the patches, Nadav Nadav Amit (6): KVM: x86: bit-ops emulation ignores offset on 64-bit

[PATCH 3/6] KVM: x86: Inter privilage level ret emulation is not implemeneted

2014-06-15 Thread Nadav Amit
Return unhandlable error on inter-privilage level ret instruction. This is since the current emulation does not check the privilage level correctly when loading the CS, and does not pop RSP/SS as needed. Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/emulate.c | 4 1

[PATCH 03/11] qspinlock: Add pending bit

2014-06-15 Thread Peter Zijlstra
Because the qspinlock needs to touch a second cacheline; add a pending bit and allow a single in-word spinner before we punt to the second cacheline. Signed-off-by: Peter Zijlstra pet...@infradead.org --- include/asm-generic/qspinlock_types.h | 12 ++- kernel/locking/qspinlock.c|

[PATCH 08/11] qspinlock: Revert to test-and-set on hypervisors

2014-06-15 Thread Peter Zijlstra
When we detect a hypervisor (!paravirt, see later patches), revert to a simple test-and-set lock to avoid the horrors of queue preemption. Signed-off-by: Peter Zijlstra pet...@infradead.org --- arch/x86/include/asm/qspinlock.h | 14 ++ include/asm-generic/qspinlock.h |7

[PATCH 10/11] qspinlock: Paravirt support

2014-06-15 Thread Peter Zijlstra
Add minimal paravirt support. The code aims for minimal impact on the native case. On the lock side we add one jump label (asm_goto) and 4 paravirt callee saved calls that default to NOPs. The only effects are the extra NOPs and some pointless MOVs to accomodate the calling convention. No

[PATCH 07/11] qspinlock: Use a simple write to grab the lock, if applicable

2014-06-15 Thread Peter Zijlstra
From: Waiman Long waiman.l...@hp.com Currently, atomic_cmpxchg() is used to get the lock. However, this is not really necessary if there is more than one task in the queue and the queue head don't need to reset the queue code word. For that case, a simple write to set the lock bit is enough as

Re: [PATCH v11 14/16] pvqspinlock: Add qspinlock para-virtualization support

2014-06-15 Thread Peter Zijlstra
On Thu, Jun 12, 2014 at 04:48:41PM -0400, Waiman Long wrote: I don't have a good understanding of the kernel alternatives mechanism. I didn't either; I do now, cost me a whole day reading up on alternative/paravirt code patching. See the patches I just send out; I got the 'native' case with

[PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

2014-06-15 Thread Peter Zijlstra
From: Peter Zijlstra pet...@infradead.org When we allow for a max NR_CPUS 2^14 we can optimize the pending wait-acquire and the xchg_tail() operations. By growing the pending bit to a byte, we reduce the tail to 16bit. This means we can use xchg16 for the tail part and do away with all the

Re: [PATCH 9/9] perf, tools: Add a --quiet flag to perf list

2014-06-15 Thread Namhyung Kim
Hi Andi, 2014-06-13 (금), 16:03 -0700, Andi Kleen: From: Andi Kleen a...@linux.intel.com Add a --quiet flag to perf list to not print the event descriptions that were earlier added for JSON events. This may be useful to get a less crowded listing. It's still default to print descriptions

[PATCH 01/11] qspinlock: A simple generic 4-byte queue spinlock

2014-06-15 Thread Peter Zijlstra
From: Waiman Long waiman.l...@hp.com This patch introduces a new generic queue spinlock implementation that can serve as an alternative to the default ticket spinlock. Compared with the ticket spinlock, this queue spinlock should be almost as fair as the ticket spinlock. It has about the same

[PATCH] selinux: introduce str_read() helper

2014-06-15 Thread Namhyung Kim
There're some code duplication for reading a string value during policydb_read(). Add str_read() helper to fix it. Signed-off-by: Namhyung Kim namhy...@kernel.org --- security/selinux/ss/policydb.c | 133 - 1 file changed, 37 insertions(+), 96

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread Mikael Pettersson
Andy Lutomirski writes: The idea is to add AT_VDSO_FINDSYM pointing at __vdso_findsym. This implements __vdso_findsym. This would make it easier for runtimes that don't otherwise implement ELF loaders to use the vdso. Thoughts? I'm opposed to this based on the principle that the

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread Rich Felker
On Sun, Jun 15, 2014 at 04:25:37PM +0200, Mikael Pettersson wrote: Andy Lutomirski writes: The idea is to add AT_VDSO_FINDSYM pointing at __vdso_findsym. This implements __vdso_findsym. This would make it easier for runtimes that don't otherwise implement ELF loaders to use the

Re: [PATCH v2 1/7] mfd: add atmel-hlcdc driver

2014-06-15 Thread Boris BREZILLON
Hello JJ, On 15/06/2014 10:53, Jean-Jacques Hiblot wrote: On 06/09/2014 06:04 PM, Boris BREZILLON wrote: The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) exposes 2 subdevices: - a display controller (controlled by a DRM driver) - a PWM chip

Re: [PATCH v2 2/7] pwm: add support for atmel-hlcdc-pwm device

2014-06-15 Thread Boris BREZILLON
Hello JJ, On 15/06/2014 11:11, Jean-Jacques Hiblot wrote: On 06/09/2014 06:04 PM, Boris BREZILLON wrote: The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. This driver add support for this PWM device.

Re: [PATCH v5] leds: USB: HID: Add support for MSI GT683R led panels

2014-06-15 Thread Janne Kanniainen
Ok, so you decided to continue setting mode on every LED brightness update. That should be fine, but you never answered my question about whether it is necessary? I decided to do it that way because official driver did it as well. I can check if it is necessary. Ok, I checked this one and

Re: [PATCH v2 3/7] drm: add Atmel HLCDC Display Controller support

2014-06-15 Thread Boris BREZILLON
Hello JJ, On 15/06/2014 11:32, Jean-Jacques Hiblot wrote: On 06/09/2014 06:04 PM, Boris BREZILLON wrote: The Atmel HLCDC (High LCD Controller) IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provides a display controller device. This display

Re: [PATCH v3] PCI: rework new_id interface for known vendor/device values

2014-06-15 Thread Konstantin Khlebnikov
On Wed, Apr 30, 2014 at 3:41 AM, Bjorn Helgaas bhelg...@google.com wrote: On Tue, Apr 01, 2014 at 09:32:59PM -0400, Bandan Das wrote: While using the new_id interface, the user can unintentionally feed incorrect values if the driver static table has a matching entry. This is possible since

[PATCH] staging: rtl8192u: r8192U_core.c: Cleaning up unclear and confusing code

2014-06-15 Thread Rickard Strandqvist
Removes confusing and unclear code. Using memcpy to set a pointer, what is the point? The use of = instead of fills no benefit in this case. None of these is a direct error, but I think you should replace the confusing code. Rickard Strandqvist (1): staging: rtl8192u: r8192U_core.c:

[PATCH] staging: rtl8192u: r8192U_core.c: Cleaning up unclear and confusing code

2014-06-15 Thread Rickard Strandqvist
Removes confusing and unclear code. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/rtl8192u/r8192U_core.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

[PATCH RESEND] clk: s2mps11: Simplify s2mps11_clk_probe unwind paths

2014-06-15 Thread Axel Lin
The devm_clk_unregister() in .probe error case is not necessary as it will be automatically called when probe fails. Signed-off-by: Axel Lin axel@ingics.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- This patch was sent on https://lkml.org/lkml/2014/5/18/96 with Krzysztof's

[PATCH RESEND] clk: twl6040: Convert to use devm_clk_register

2014-06-15 Thread Axel Lin
Use devm_clk_register() to simplify the code by removing twl6040_clk_remove(). Signed-off-by: Axel Lin axel@ingics.com Acked-by: Peter Ujfalusi peter.ujfal...@ti.com --- This patch was sent on https://lkml.org/lkml/2014/5/18/75 with Peter's Ack. drivers/clk/clk-twl6040.c | 12 +--- 1

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread Andy Lutomirski
On Sun, Jun 15, 2014 at 7:35 AM, Rich Felker dal...@libc.org wrote: On Sun, Jun 15, 2014 at 04:25:37PM +0200, Mikael Pettersson wrote: Andy Lutomirski writes: The idea is to add AT_VDSO_FINDSYM pointing at __vdso_findsym. This implements __vdso_findsym. This would make it easier for

Re: perf: Add support for full Intel event lists v6

2014-06-15 Thread Andi Kleen
On Sun, Jun 15, 2014 at 10:03:09PM +0900, Namhyung Kim wrote: Hi Hagen, 2014-06-14 (토), 22:49 +0200, Hagen Paul Pfeifer: Probably too late, but IMHO the subcommand download is unhappy named. What is downloaded? traces? Python helper libs for perf-python support, I don't know it. What

Re: [PATCH 9/9] perf, tools: Add a --quiet flag to perf list

2014-06-15 Thread Andi Kleen
On Sun, Jun 15, 2014 at 10:17:41PM +0900, Namhyung Kim wrote: It's still default to print descriptions as that is the more useful default for most users. Requested by Namhyung Kim. Did I request the --quiet thing? It seems like there's a miscommunication.. :-/ Well it was done based on

Re: [PATCH V2] fs/omfs/inode.c: use ULLONG_MAX instead of ~0ULL

2014-06-15 Thread Bob Copeland
On Sun, Jun 15, 2014 at 08:39:20AM +0200, Fabian Frederick wrote: Use more explicit kernel.h definition array_size = DIV_ROUND_UP(bitmap_size, sb-s_blocksize); - if (sbi-s_bitmap_ino == ~0ULL) + if (sbi-s_bitmap_ino == ULLONG_MAX) goto out; So I agree they are

Re: [PATCH] sched: Fast idling of CPU when system is partially loaded

2014-06-15 Thread Peter Zijlstra
On Thu, Jun 12, 2014 at 02:25:59PM -0700, Tim Chen wrote: @@ -2630,7 +2630,7 @@ static inline struct task_struct * pick_next_task(struct rq *rq, struct task_struct *prev) { const struct sched_class *class = fair_sched_class; - struct task_struct *p; + struct task_struct *p =

[PATCH] firmware: Update information in linux.git about adding firmware

2014-06-15 Thread Ben Hutchings
Kyle McMartin recently joined the linux-firmware maintainers, and we now have an alias linux-firmw...@kernel.org which reaches all of us. Include that instead of the individual addresses. Add some further recommendations that were already included in the README in linux-firmware.git added by Xose

Re: [RFC/PATCH] perf tools: Fix segfault in cumulative.callchain report

2014-06-15 Thread Jiri Olsa
On Sun, Jun 15, 2014 at 09:46:31PM +0900, Namhyung Kim wrote: Hi Jiri, 2014-06-15 (일), 10:35 +0200, Jiri Olsa: heya, not completely sure this is what we want to do, but have no streght to dive into annotation code ;-) Currently, cumulative entries do not accounts annotation info so

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-15 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:07:00AM -0400, Vivek Goyal wrote: This is loader specific code which can load bzImage and set it up for 64bit entry. This does not take care of 32bit entry or real mode entry. 32bit mode entry can be implemented if somebody needs it. Signed-off-by: Vivek Goyal

[PATCH 0/4] perf tools tui: Display columns headers

2014-06-15 Thread Jiri Olsa
hi, adding the way to display columns headers in perf TUI on 'H' press. Patches 1 and 2 are not necessary for the functionality, they are just byproducts of another early way I tried, but I think they could go in. Also reachable in here:

[PATCH 4/4] perf tools tui: Display columns header text on 'H' press

2014-06-15 Thread Jiri Olsa
Displaying columns header text whenever 'H' is pressed, and hiding it on on another press. Note I removed the original width setup pcode code in hist_browser__refresh_dimensions function, because it was never used and overwritten by ui_browser setup. Also all the TUI output expect width ot be the

[PATCH 1/4] perf tools: Factor ui_browser ops out of ui_browser struct

2014-06-15 Thread Jiri Olsa
Separating ops out of 'struct ui_browser' into 'struct ui_browser_ops'. Cc: Arnaldo Carvalho de Melo a...@kernel.org Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: David Ahern dsah...@gmail.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@kernel.org Cc: Namhyung Kim

[PATCH 3/4] perf tools: Fix scrollbar refresh row index

2014-06-15 Thread Jiri Olsa
The ui_browser__gotorc function needs offset from 'y' member, so the row index has to begin with 0, which happens by accident in current code, because we display only one header line. The bug shows when we want to display more than 1 header lines like columns headers in following patches. Cc:

[PATCH 2/4] perf tools: Remove ev_name argument from perf_evsel__hists_browse

2014-06-15 Thread Jiri Olsa
Removing ev_name argument from perf_evsel__hists_browse function, because it's not needed. We can get the name out of the 'struct perf_evsel' which is passed as argument as well. Cc: Arnaldo Carvalho de Melo a...@kernel.org Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: David Ahern

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-15 Thread H. Peter Anvin
On 06/15/2014 09:35 AM, Borislav Petkov wrote: +if (memcmp((char *)header-header, HdrS, 4) != 0) { Not strncmp? HdrS is a string... No, memcmp() is more appropriate. It is really more of a byte sequence than a string. It could just as easily be done as: header-header ==

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread H. Peter Anvin
On 06/15/2014 07:35 AM, Rich Felker wrote: Arguably, it was a mistake for the kernel to expose a virtual ELF to begin with, and it should just have exposed a lookup function by name operation to begin with. Yes this can be done in userspace, but I see it more as a matter of fixing a broken

Re: [PATCH 01/17] perf tools: Always force PERF_RECORD_FINISHED_ROUND event

2014-06-15 Thread Jiri Olsa
On Fri, Jun 13, 2014 at 08:51:54PM +0900, Namhyung Kim wrote: Hi Jiri, 2014-06-13 (금), 00:08 +0200, Jiri Olsa: The PERF_RECORD_FINISHED_ROUND governs queue flushing in reporting, so it needs to be stored for any kind of event. Forcing the PERF_RECORD_FINISHED_ROUND event to be stored

[PATCH] staging: rtl8712: rtl871x_ioctl_linux.c: Cleaning up useless if statement

2014-06-15 Thread Rickard Strandqvist
The same code regardless of the outcome of the if statement. And clean up another duplicate line of code. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-)

[PATCH] staging: rtl8712: rtl871x_ioctl_linux.c: Cleaning up useless if statement

2014-06-15 Thread Rickard Strandqvist
The same code regardless of the outcome of the if statement. This may of course be a miss and there should be a difference in the code. And clean up another duplicate line of code. This was partly found using a static code analysis program called cppcheck. Rickard Strandqvist (1): staging:

Re: [PATCH 05/17] perf tools: Add ordered_events_(get|put) interface

2014-06-15 Thread Jiri Olsa
On Fri, Jun 13, 2014 at 09:05:05PM +0900, Namhyung Kim wrote: 2014-06-13 (금), 00:08 +0200, Jiri Olsa: +#define MAX_SAMPLE_BUFFER (64 * 1024 / sizeof(struct ordered_event)) +static struct ordered_event *alloc_event(struct ordered_events_queue *q) +{ + struct list_head *cache = q-cache;

Re: [PATCH] serial: samsung: Fix compile error with SERIAL_SAMSUNG_DEBUG

2014-06-15 Thread Sachin Kamat
On Sun, Jun 15, 2014 at 2:03 AM, Joe Perches j...@perches.com wrote: Greg? Can you please apply this soon? A similar patch has already been posted [1]. Probably Greg will apply it once 3.16-rc1 is out. [1] http://www.spinics.net/lists/linux-serial/msg12843.html Regards, Sachin. Thanks.

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread Andy Lutomirski
On Sun, Jun 15, 2014 at 10:05 AM, H. Peter Anvin h...@zytor.com wrote: On 06/15/2014 07:35 AM, Rich Felker wrote: Arguably, it was a mistake for the kernel to expose a virtual ELF to begin with, and it should just have exposed a lookup function by name operation to begin with. Yes this can be

Re: [PATCH] serial: samsung: Fix compile error with SERIAL_SAMSUNG_DEBUG

2014-06-15 Thread Joe Perches
On Sun, 2014-06-15 at 23:06 +0530, Sachin Kamat wrote: On Sun, Jun 15, 2014 at 2:03 AM, Joe Perches j...@perches.com wrote: Greg? Can you please apply this soon? A similar patch has already been posted [1]. Probably Greg will apply it once 3.16-rc1 is out. [1]

Re: [PATCH 13/17] perf tools: Add perf_config_u64 function

2014-06-15 Thread Jiri Olsa
On Fri, Jun 13, 2014 at 09:07:43PM +0900, Namhyung Kim wrote: 2014-06-13 (금), 00:08 +0200, Jiri Olsa: From: Jiri Olsa jo...@redhat.com Adding perf_config_u64 function to be able to parse 'llong' values out of config file. Cc: Arnaldo Carvalho de Melo a...@kernel.org Cc: Corey

Re: [PATCH 14/17] perf tools: Add report.queue-size config file option

2014-06-15 Thread Jiri Olsa
On Fri, Jun 13, 2014 at 09:08:58PM +0900, Namhyung Kim wrote: 2014-06-13 (금), 00:08 +0200, Jiri Olsa: Adding report.queue-size config file option to setup the maximum allocation size for session's struct ordered_events_queue object. Only a config option without a command line switch?

Re: [RFC 0/2] __vdso_findsym

2014-06-15 Thread H. Peter Anvin
On 06/15/2014 10:40 AM, Andy Lutomirski wrote: To be clear, I have no desire whatsoever to give the vdso an actual ELF parser or anything else that userspace should be providing itself. I think that a special-purpose vdso parser in the vdso makes some sense, though, since userspace might

  1   2   3   4   5   6   >