Re: [RFC PATCH 1/1] remove redundant compare, cmpxchg already does it

2014-06-06 Thread Peter Zijlstra
On Thu, Jun 05, 2014 at 11:08:23AM -0700, Davidlohr Bueso wrote: > I knew I had formally read this technique somewhere: > http://pdos.csail.mit.edu/6.828/2010/readings/mcs.pdf (part 2.1). > > Peter, what do you think of adding a new cmp_cmpxchg() or dcmpxchg() > call for such scenarios? Don't lik

Re: [PATCH v2 04/11] sched: Allow all archs to set the power_orig

2014-06-06 Thread Vincent Guittot
On 4 June 2014 13:17, Morten Rasmussen wrote: > On Tue, Jun 03, 2014 at 03:02:18PM +0100, Vincent Guittot wrote: >> On 3 June 2014 15:22, Morten Rasmussen wrote: >> > On Fri, May 23, 2014 at 04:52:58PM +0100, Vincent Guittot wrote: >> >> power_orig is only changed for system with a SMT sched_doma

[PATCH 1/2] mfd: rtsx: add dma transfer function

2014-06-06 Thread micky_ching
From: Micky Ching rtsx driver using a single function for transfer data, dma map/unmap are placed in one fix function. We need map/unmap dma in different place(for mmc async driver), so add three function for dma map, dma transfer and dma unmap. Signed-off-by: Micky Ching --- drivers/mfd/rtsx_

[PATCH 2/2] mmc: rtsx: add support for async request

2014-06-06 Thread micky_ching
From: Micky Ching Add support for non-blocking request, pre_req() runs dma_map_sg() and post_req() runs dma_unmap_sg(). This patch can increase card read/write speed, especially for high speed card and slow speed CPU. Test on intel i3(800MHz - 2.3GHz) performance mode(2.3GHz), SD card clock 208M

[PATCH 0/2] mmc: rtsx: add support for async request

2014-06-06 Thread micky_ching
From: Micky Ching Add support for sd/mmc async request, which makes next request do dma_map_sg() while previous request transfering data. This behaviour can improve card io performance more than 10%. Since rtsx mfd driver only provide a single function for transfering data, so add three split fu

Re: [PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-06 Thread Antoine Ténart
Hi, On Fri, Jun 06, 2014 at 12:09:06PM +0530, Vivek Gautam wrote: > On Thu, Jun 5, 2014 at 9:18 PM, Antoine Ténart > wrote: > > Add the driver driving the Marvell Berlin USB PHY. This allows to > > initialize the PHY and to use it from the USB driver later. > > Just out of curiosity, going forwa

[PATCH -tip 4/4] perf/probe: Improve error messages with --line option

2014-06-06 Thread Masami Hiramatsu
Improve error messages of perf probe --line mode. Current perf probe shows "Debuginfo analysis failed" error with an error code when the given symbol is not found as below. - # perf probe -L page_cgroup_init_flatmem Debuginfo analysis failed. (-2) Error: Failed to show lines. -

[PATCH -tip 2/4] perf/probe: Show error code and description in verbose mode

2014-06-06 Thread Masami Hiramatsu
Show error code and description only in verbose mode if perf probe command is failed. Current perf probe shows error code with final error message, and that is meaningless for many users. This changes error messages to show the error code and its description only in verbose mode (-v option). Witho

[PATCH -tip 1/4] perf/probe: Improve error message for unknown member of data structure

2014-06-06 Thread Masami Hiramatsu
Improve the error message if we can not find given member in the given structure. Currently perf probe shows a wrong error message as below. - # perf probe getname_flags:65 "result->BOGUS" result(type:filename) has no member BOGUS. Failed to find 'result' in this function. Error: F

[PATCH -tip 3/4] perf/probe: Improve an error message of perf probe --vars mode

2014-06-06 Thread Masami Hiramatsu
Fix an error message when failed to find given address in --vars mode. Without this fix, perf probe -V doesn't show the final "Error" message if it fails to find given source line. Moreover, it tells it fails to find "variables" instead of the source line. - # perf probe -V foo@bar Faile

[PATCH -tip 0/4] perf/probe: Improve error messages

2014-06-06 Thread Masami Hiramatsu
Hi, Here is a series that improves error messages of perf probe. - Improve the error message if we can not find given member in the given structure. (perf probe --add) - Show error code and description only in verbose mode if perf probe command is failed. - Improve error messages of

Re: [PATCH 3/5] vt: Don't ignore unbind errors in vt_unbind

2014-06-06 Thread David Herrmann
Hi On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > Otherwise the loop will never stop since we don't make any > forward progress. Noticed while breaking this accidentally > in a painful attempt to make vga_con unregistering work. > > With this patch we'll bail out on the first attempt, whi

Re: [PATCH 1/5] vt: Fix replacement console check when unbinding

2014-06-06 Thread David Herrmann
Hi On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > I don't fully understand the magic of the vt register/unregister > logic, but apparently everything but the inital console (as set > in the conswitchp pointer) is marked with FLAG_MODULE. Which means > if something unregistered the boot vt

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-06 Thread Thierry Reding
On Fri, Jun 06, 2014 at 09:27:07AM +0300, Mikko Perttunen wrote: > The only compile-time dependencies here should be that: > - patch 8 of 9 which contains the actual driver depends on patch 6 of 9 > (though only when building as a module) and the efuse series > - patch 2 of 9 refers to the DT node

Re: [PATCH 0/9] Serial ATA support for NVIDIA Tegra124

2014-06-06 Thread Mikko Perttunen
Yes, that might be the easiest. If you go that way, you should probably also add an #include for the XUSB binding include file. - Mikko On 06/06/14 10:11, Thierry Reding wrote: * PGP Signed by an unknown key On Fri, Jun 06, 2014 at 09:27:07AM +0300, Mikko Perttunen wrote: The only compile-ti

Re: [RFC PATCH 4/6] mm, compaction: skip buddy pages by their order in the migrate scanner

2014-06-06 Thread Vlastimil Babka
On 06/05/2014 11:30 PM, David Rientjes wrote: > On Thu, 5 Jun 2014, Vlastimil Babka wrote: > >> > > diff --git a/mm/compaction.c b/mm/compaction.c >> > > index ae7db5f..3dce5a7 100644 >> > > --- a/mm/compaction.c >> > > +++ b/mm/compaction.c >> > > @@ -640,11 +640,18 @@ isolate_migratepages_range(

Re: [PATCH 5/7 v6] trace, RAS: Add eMCA trace event interface

2014-06-06 Thread Chen, Gong
On Tue, Jun 03, 2014 at 10:35:44AM -0400, Steven Rostedt wrote: > Note, there's a pointer to a trace_seq structure "p" that is available. > Hmm, I should add a get_dynamic_array_len(field), to give you the > length. I'll add that now. I also don't like the trace_seq being "p" as > that is too gener

Re: [PATCH 2/5] vt: Fix up unregistration of vt drivers

2014-06-06 Thread David Herrmann
Hi On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > A bunch of issues: > - We should not kick out the default console (which is tracked in > conswitchp), so check for that. > - Add better error codes so callers can differentiate between "something > went wrong" and "your driver isn't re

Re: [PATCH 5/5] drm/i915: Kick out vga console

2014-06-06 Thread David Herrmann
Hi On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > Touching the VGA resources on an IVB EFI machine causes hard hangs when > we then kick out the efifb. Ouch. > > Apparently this also prevents unclaimed register errors on hsw and > hard machine hangs on my i855gm when trying to unbind fbco

[PATCH v2 0/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver

2014-06-06 Thread Dudley Du
This patch set is made based on kernel 3.15.0-rc8. It's aimed to re-architecture the cyapa driver to support old gen3 trackpad device and new gen5 trackpad device in one cyapa driver for easily productions support based on customers' requirements, and add sysfs functions and interfaces supported th

[PATCH v2 8/14] input: cyapa: add gen3 trackpad device baseline and calibrate functions supported

2014-06-06 Thread Dudley Du
Add report baseline and force calibrate functions supported for gen3 trackpad device, which these functions are supplied through cyapa core baseline and calibrate interfaces. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse

[PATCH v2 7/14] input: cyapa: add gen3 trackpad device firmware update function supported

2014-06-06 Thread Dudley Du
Add firmware image update function supported for gen3 trackpad device, which its function is supplied through cyapa core update_fw interface. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse/cyapa_gen3.c index 5345a9e..a3e1

[PATCH v2 6/14] input: cyapa: add gen3 trackpad device basic functions supported

2014-06-06 Thread Dudley Du
Based on the cyapa core, add the gen3 trackpad device's basic functions supported, so gen3 trackpad device can work with kernel input system. The basic function is absolutely same as previous cyapa driver only support gen3 trackpad device. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- di

Re: regarding use of various cmpxchg* API

2014-06-06 Thread Peter Zijlstra
On Thu, Jun 05, 2014 at 06:44:37PM -0400, Pranith Kumar wrote: > Hi Peter, Ingo, > > I see that in the drivers there are the following types of cmpxchg API: > > __cmpxchg64() That shouldn't really be used, and its only used in intel-iommu.c. > atomic_cmpxchg() > atomic64_cmpxchg() > atomic_long

[PATCH v2 14/14] input: cyapa: add function to monitor LID close event to off trackpad device

2014-06-06 Thread Dudley Du
Add the function to monitor lid close event to suspend and resume trackpad device. Because system suspend takes some time to trigger from user space, and in that time, the lid panel of the laptop may couple with the active trackpad. This may generate stray input events, which may in turn cancel the

[PATCH v2 12/14] input: cyapa: add gen5 trackpad device baseline and calibrate functions supported

2014-06-06 Thread Dudley Du
Add report baseline and force calibrate functions supported for gen5 trackpad device, which these functions are supplied through cyapa core baseline and calibrate interfaces. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa_gen5.c b/drivers/input/mouse

[PATCH v2 3/14] input: cyapa: add cyapa driver runtime power management interfaces supported

2014-06-06 Thread Dudley Du
Add runtime_suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the runtime power management strategy of trackpad device as their requirements. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa.c

[PATCH v2 13/14] input: cyapa: add gen5 trackpad device read firmware image and raw data functions supported

2014-06-06 Thread Dudley Du
Add read firmware image function supported for gen5 trackpad device, which its function is supplied through cyapa core read_fw interface. Through this interface, upper layer application can read out, check and backup the firmware image in trackpad device before updated with new one when new firmwar

[PATCH v2 5/14] input: cyapa: add read firmware image and raw data interfaces in debugfs system

2014-06-06 Thread Dudley Du
Add read_fw and raw_data debugfs interfaces for easier issues location and collection when report by user. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index 3b80de6..b5dc9f9 100644 --- a/drivers/input/mouse/cyapa.c

[PATCH v2 2/14] input: cyapa: add cyapa driver power management interfaces supported

2014-06-06 Thread Dudley Du
Add suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the power management strategy of trackpad device as their requirements. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa.c b/drivers/input

[PATCH v2 11/14] input: cyapa: add gen5 trackpad device firmware update function supported

2014-06-06 Thread Dudley Du
Add firmware image update function supported for gen5 trackpad device, which its function is supplied through cyapa core update_fw interface. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig index 6b8441f..e484569 100644

[PATCH v2 9/14] input: cyapa: add gen3 trackpad device read firmware image function supported

2014-06-06 Thread Dudley Du
Add read firmware image function supported for gen3 trackpad device, which its function is supplied through cyapa core read_fw interface. TEST=test on Chomebooks. Signed-off-by: Du, Dudley --- diff --git a/drivers/input/mouse/cyapa_gen3.c b/drivers/input/mouse/cyapa_gen3.c index 9ffdbc1..e903e62

[PATCH v2 4/14] input: cyapa: add cyapa key function interfaces in sysfs system

2014-06-06 Thread Dudley Du
Add key basic function interfaces in cyapa driver in sysfs system, these interfaces are commonly used in pre- and after production, and for trackpad device state checking, manage and firmware image updating. These interfaces including firmware_version and product_id interfaces for reading firmware

Re: [PATCH 1/2] rtc: rtc-sa1100: Make of_device_id array const

2014-06-06 Thread Haojian Zhuang
On 3 June 2014 20:06, Jingoo Han wrote: > Make of_device_id array const, because all OF functions handle > it as const. > > Signed-off-by: Jingoo Han > --- > drivers/rtc/rtc-sa1100.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rt

Re: [RFC PATCH 6/6] mm, compaction: don't migrate in blocks that cannot be fully compacted in async direct compaction

2014-06-06 Thread Vlastimil Babka
On 06/05/2014 11:38 PM, David Rientjes wrote: > On Thu, 5 Jun 2014, Vlastimil Babka wrote: > >> > Ok, so this obsoletes my patchseries that did something similar. I hope >> >> Your patches 1/3 and 2/3 would still make sense. Checking alloc flags is IMHO >> better than checking async here. That w

Re: [PATCH v7 3/5] misc: fuse: Add efuse driver for Tegra

2014-06-06 Thread Peter De Schrijver
On Fri, Jun 06, 2014 at 12:54:00AM +0200, Stephen Warren wrote: > On 06/05/2014 04:09 PM, Peter De Schrijver wrote: > > On Thu, Jun 05, 2014 at 08:37:26PM +0200, Stephen Warren wrote: > >> On 06/05/2014 07:09 AM, Peter De Schrijver wrote: > >>> Implement fuse driver for Tegra20, Tegra30, Tegra114 a

Re: [PATCH v7 4/5] ARM: tegra: Add efuse and apbmisc bindings

2014-06-06 Thread Peter De Schrijver
On Fri, Jun 06, 2014 at 12:55:22AM +0200, Stephen Warren wrote: > On 06/05/2014 04:13 PM, Peter De Schrijver wrote: > > On Thu, Jun 05, 2014 at 08:41:55PM +0200, Stephen Warren wrote: > >> On 06/05/2014 07:09 AM, Peter De Schrijver wrote: > >>> Add efuse and apbmisc bindings for Tegra20, Tegra30, T

Re: [RFC PATCH 1/1] cleanup: use bool as return type for rwsem_is_locked

2014-06-06 Thread Peter Zijlstra
On Thu, Jun 05, 2014 at 04:49:37PM -0400, Pranith Kumar wrote: > I see that there are functions like this which basically say: > > return 1 if true else return 0. Is it worth cleaning them up? Or is > there any reason why this convention is followed? Hysterical raisins, a lot of people learnt C b

Re: [RFC PATCH 00/13][V3] kexec: A new system call to allow in kernel loading

2014-06-06 Thread Dave Young
On 06/05/14 at 11:01am, Vivek Goyal wrote: > On Thu, Jun 05, 2014 at 04:31:34PM +0800, Dave Young wrote: > > [..] > > > + ret = kexec_file_load(kernel_fd, info.initrd_fd, info.command_line, > > > + info.command_line_len, info.kexec_flags); > > > > Vivek, > > > > I tried your patc

Re: [PATCH] smp, ipi: Speed up IPI handling by invoking the callbacks in reverse order

2014-06-06 Thread Srivatsa S. Bhat
On 06/05/2014 12:56 PM, Peter Zijlstra wrote: > On Thu, Jun 05, 2014 at 01:37:25AM +0530, Srivatsa S. Bhat wrote: >> On 06/05/2014 01:17 AM, Peter Zijlstra wrote: >>> On Thu, Jun 05, 2014 at 01:09:35AM +0530, Srivatsa S. Bhat wrote: The current implementation of lockless list (llist) has a dra

Re: [PATCH v2] ARM: KVM: add irqfd and irq routing support

2014-06-06 Thread Eric Auger
On 06/05/2014 06:08 PM, Christoffer Dall wrote: > On Thu, Jun 05, 2014 at 05:58:02PM +0200, Eric Auger wrote: >> On 06/05/2014 04:39 PM, Christoffer Dall wrote: >>> On Thu, Jun 05, 2014 at 03:15:15PM +0200, Eric Auger wrote: On 06/05/2014 12:28 PM, Christoffer Dall wrote: > On Mon, Jun 02,

[PATCH] libahci_platform: Fail when PHY required but PHY support disabled

2014-06-06 Thread Mikko Perttunen
ahci_platform_get_resources handles resource management for platform AHCI drivers, including getting a possible PHY from the device tree. Since not all drivers need a PHY, it ignores -ENODEV and -ENOSYS from devm_get_phy. However, when the PHY subsystem is mistakenly disabled, -ENOSYS can be return

Re: [PATCH 5/5] drm/i915: Kick out vga console

2014-06-06 Thread Daniel Vetter
On Fri, Jun 06, 2014 at 09:28:03AM +0200, David Herrmann wrote: > Hi > > On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > > Touching the VGA resources on an IVB EFI machine causes hard hangs when > > we then kick out the efifb. Ouch. > > > > Apparently this also prevents unclaimed register

Re: [PATCH 1/5] vt: Fix replacement console check when unbinding

2014-06-06 Thread Daniel Vetter
On Fri, Jun 06, 2014 at 09:16:13AM +0200, David Herrmann wrote: > Hi > > On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > > I don't fully understand the magic of the vt register/unregister > > logic, but apparently everything but the inital console (as set > > in the conswitchp pointer) is

linux-next: Tree for Jun 6

2014-06-06 Thread Stephen Rothwell
Hi all, NEWS: I am now using v4.9.0 cross compilers to do my builds during the day - not my over night builds yet (see https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/). The powerpc allyesconfig is again broken more than usual. Our over night build server is down today, so thi

Re: [PATCH 3.14 000/228] 3.14.6-stable review

2014-06-06 Thread Guenter Roeck
On Thu, Jun 05, 2014 at 04:20:08PM -0700, Greg Kroah-Hartman wrote: > On Wed, Jun 04, 2014 at 04:20:29PM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.14.6 release. > > There are 228 patches in this series, all will be posted as a response > > to this o

Re: [PATCH v5] pinctrl: to avoid duplicated calling enable_pinmux_setting for a pin

2014-06-06 Thread Patrice Chotard
Hi Fan On 06/05/2014 08:50 AM, f...@marvell.com wrote: From: Fan Wu What the patch did: 1.To call pinmux_disable_setting ahead of pinmux_enable_setting in each time of calling pinctrl_select_state 2.Remove the HW disable operation in in pinmux_disable_setting function. 3.Remove the disable

Re: [PATCH 2/5] vt: Fix up unregistration of vt drivers

2014-06-06 Thread Daniel Vetter
On Fri, Jun 06, 2014 at 09:24:35AM +0200, David Herrmann wrote: > Hi > > On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: > > A bunch of issues: > > - We should not kick out the default console (which is tracked in > > conswitchp), so check for that. > > - Add better error codes so callers

Re: [PATCH 07/10] xhci: Use command structures when queuing commands on the command ring

2014-06-06 Thread Mathias Nyman
On 06/06/2014 01:16 AM, Dan Williams wrote: > Hi Mathias, hit a small issue playing with -next: > > On Thu, May 8, 2014 at 9:26 AM, Mathias Nyman > wrote: >> To create a global command queue we require that each command put on the >> command ring is submitted with a command structure. >> >> Funct

Re: [PATCH kvm-unit-tests 0/2] x86: Additional smsw tests

2014-06-06 Thread Paolo Bonzini
Il 06/06/2014 01:56, Nadav Amit ha scritto: This patch set adds two tests for smsw. The first one is intended to add coverage of smsw. It covers the case smsw is executed with memory operand in a page which is write-protected by the hypervisor. Note that the existing smsw tests are not supposed t

Re: [RFC PATCH 06/16] arm: topology: Define TC2 sched energy and provide it to scheduler

2014-06-06 Thread Peter Zijlstra
On Fri, Jun 06, 2014 at 04:29:30AM +0800, Yuyang Du wrote: > On Thu, Jun 05, 2014 at 08:03:15AM -0700, Dirk Brandewie wrote: > > > > You can request a P state per core but the package does coordination at > > a package level for the P state that will be used based on all requests. > > This is due

Re: [PATCH V2 1/2] sched: idle: Encapsulate the code to compile it out

2014-06-06 Thread Peter Zijlstra
On Fri, May 02, 2014 at 05:32:25PM +0200, Rafael J. Wysocki wrote: > That would be perfectly fine by me, but I'm not sure what Ingo and Peter think > about that. > > I can set up a branch with sched/idle/cpuidle changes. Ingo typically likes things like that. I'm still a git Luddite, I'll learn

Re: [PATCH 3/7] i2c: Add the ability to match device to compatible string without an of_node

2014-06-06 Thread Lee Jones
On Thu, 05 Jun 2014, Grant Likely wrote: > On Wed, 4 Jun 2014 13:09:52 +0100, Lee Jones wrote: > > A great deal of I2C devices are currently matched via DT node name, and > > as such the compatible naming convention of ',' has gone > > somewhat awry - some nodes don't supply one, some supply an

Re: [PATCH v5] pinctrl: to avoid duplicated calling enable_pinmux_setting for a pin

2014-06-06 Thread Heiko Stübner
Am Donnerstag, 5. Juni 2014, 14:50:40 schrieb f...@marvell.com: > From: Fan Wu > > What the patch did: > 1.To call pinmux_disable_setting ahead of pinmux_enable_setting in each time > of calling pinctrl_select_state > 2.Remove the HW disable operation in in pinmux_disable_setting function. > 3.Re

[PATCH v2] ARM: EXYNOS: SWRESET is needed to boot secondary CPU on Exynos3250

2014-06-06 Thread Krzysztof Kozlowski
Without software reset the secondary CPU does not power up and exynos_boot_secondary() ends with pen_release equal to 1. This can be observed in dmesg: CPU1: failed to come online Brought up 1 CPUs SMP: Total of 1 processors activated. CPU: All CPU(s) started in SVC

Re: [PATCH] x86/dumpstack: Walk frames when built with frame pointers

2014-06-06 Thread Peter Zijlstra
On Wed, May 07, 2014 at 06:40:14PM +0200, Ingo Molnar wrote: > Agreed, that's a very good point. > > Also, consider the following holistic argument, what is easier to > achieve, when looking at an oops and not seeing the bug: > > - if only I had more information > - if only I had less inform

Re: [PATCH 1/1] kernel/locking/lockdep_proc.c: replace seq_printf and seq_puts

2014-06-06 Thread Peter Zijlstra
On Thu, Jun 05, 2014 at 08:36:48PM +0200, Fabian Frederick wrote: > replace seq_printf by seq_puts and seq_puts by seq_putc where possible Why? pgpjGcMl7VKGy.pgp Description: PGP signature

Re: [PATCH 1/1] kernel/locking/rtmutex-tester.c: kernel-doc warning fix

2014-06-06 Thread Peter Zijlstra
On Thu, Jun 05, 2014 at 08:29:25PM +0200, Fabian Frederick wrote: > attr was added by commit > 4a0b2b4dbe1335 > ("sysdev: Pass the attribute to the low level sysdev show/store function") > > and is unused here. I think tglx has a patch killing this entire file somewhere.. > Cc: Peter Zijlstra >

Re: [PATCH] x86/dumpstack: Walk frames when built with frame pointers

2014-06-06 Thread Borislav Petkov
On Fri, Jun 06, 2014 at 10:17:26AM +0200, Peter Zijlstra wrote: > Hopefully the EFI pstore thing will work out, but I've already heard > that can wear out very quickly and render your machine a brick :-( And not only that - write speed is awfully low. I hear you might be ok to record an oops or so

Re: [PATCH 9/9] perf/x86: add syfs entry to disable HT bug workaround

2014-06-06 Thread Matt Fleming
On 6 June 2014 00:29, Andi Kleen wrote: >> As Stephane pointed out, the sysfs entry is optional and the workaround >> can be disabled only as root. >> >> It is not absolutely necessary and it's not important. >> We will drop it in V2. > > I would prefer to keep it. It's fairly complex and it's alw

Re: [RFC PATCH 06/16] arm: topology: Define TC2 sched energy and provide it to scheduler

2014-06-06 Thread Yuyang Du
On Fri, Jun 06, 2014 at 10:05:43AM +0200, Peter Zijlstra wrote: > On Fri, Jun 06, 2014 at 04:29:30AM +0800, Yuyang Du wrote: > > On Thu, Jun 05, 2014 at 08:03:15AM -0700, Dirk Brandewie wrote: > > > > > > You can request a P state per core but the package does coordination at > > > a package level

[PATCH] net-sysfs: Report link speed only when possible

2014-06-06 Thread Michal Privoznik
The link speed is available at /sys/class/net/$nic/speed. However, in some cases, depending on the driver, if the link is not plugged, -1 is reported (this is the case of e1000e for instance). To make things worse, the value is printed out as an unsigned integer, so you'll get this shady number whi

[PATCH 1/6] powerpc/powernv: use it_page_shift for TCE invalidation

2014-06-06 Thread Alexey Kardashevskiy
This fixes IODA1/2 to use it_page_shift as it may be bigger than 4K. This changes involved constant values to use "ull" modifier. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git

[PATCH 6/6] powerpc/powernv: Make invalidate() callback an iommu_table callback

2014-06-06 Thread Alexey Kardashevskiy
This implements pnv_pci_ioda(1|2)_tce_invalidate as a callback of iommu_table to simplify code structure. This registers invalidate() callbacks for IODA1 and IODA2. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h| 4 arch/powerpc/platforms/powernv/pci-

[PATCH 0/6] powerpc/powernv: Applying it_page_shift to platform code

2014-06-06 Thread Alexey Kardashevskiy
Here is what I got for powernv in order to support variable page size in iommu_table. I am very uncertain about Patch #4 "Add @it_owner to iommu_table struct" and wonder if there any better way to get PE from iommu_table. Please comment. Thanks. Alexey Kardashevskiy (6): powerpc/powernv: use

[PATCH 4/6] powerpc/powernv: Add @it_owner to iommu_table struct

2014-06-06 Thread Alexey Kardashevskiy
Modern IBM POWERPC systems support multiple IOMMU tables per PHB so we need a more reliable way (compared to container_of()) to get a PE pointer from the iommu_table struct pointer used in IOMMU functions. This also provides better way of getting a PE handle from iommu_table pointer. This defines

[PATCH 3/6] powerpc/powernv: Add a page size parameter to pnv_pci_setup_iommu_table()

2014-06-06 Thread Alexey Kardashevskiy
Since a TCE page size can be other than 4K, make it configurable for P5IOC2 and IODA PHBs. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 5 +++-- arch/powerpc/platforms/powernv/pci-p5ioc2.c | 3 ++- arch/powerpc/platforms/powernv/pci.c| 6 +++--- a

Re: [PATCH ftrace/core] tracing: Remove return value in event_trace_self_tests() when top_trace_array() returns NULL

2014-06-06 Thread Steven Rostedt
On Fri, 06 Jun 2014 15:31:15 +0900 Yoshihiro YUNOMAE wrote: > Hi Steven, > > Thank you for applying my patches. > I received build warning report from kbuild test bot, > so I fixed it. Would you apply this patch? > My tests also caught it. I pushed to my ftrace/core branch which is allowed to r

[PATCH 5/6] powerpc/powernv: Make set_bypass() callback a type

2014-06-06 Thread Alexey Kardashevskiy
There are going to be other callbacks which are going to be used as function parameters so change the existing set_bypass() callback to be a type. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/p

[PATCH 2/6] powerpc/powernv: use it_page_shift in TCE build

2014-06-06 Thread Alexey Kardashevskiy
This makes use of iommu_table::it_page_shift instead of TCE_SHIFT and TCE_RPN_SHIFT hardcoded values. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch

Re: [PATCH 2/5] vt: Fix up unregistration of vt drivers

2014-06-06 Thread David Herrmann
Hi On Fri, Jun 6, 2014 at 9:56 AM, Daniel Vetter wrote: > On Fri, Jun 06, 2014 at 09:24:35AM +0200, David Herrmann wrote: >> Hi >> >> On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter wrote: >> > A bunch of issues: >> > - We should not kick out the default console (which is tracked in >> > conswit

Re: [PATCH 1/1] rtmutex: Handle when top lock owner changes

2014-06-06 Thread Steven Rostedt
On Fri, 6 Jun 2014 07:40:10 +0200 (CEST) Thomas Gleixner wrote: > On Thu, 5 Jun 2014, Steven Rostedt wrote: > > On Wed, 4 Jun 2014 17:32:37 +0200 (CEST) > > Thomas Gleixner wrote: > > + /* > > +* When we dropped the spinlocks, if the owner of the lock we > > +* are currently processing

Re: [PATCH] net-sysfs: Report link speed only when possible

2014-06-06 Thread Jiri Pirko
Fri, Jun 06, 2014 at 10:40:30AM CEST, mpriv...@redhat.com wrote: >The link speed is available at /sys/class/net/$nic/speed. >However, in some cases, depending on the driver, if the link is >not plugged, -1 is reported (this is the case of e1000e for >instance). To make things worse, the value is pr

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2014-06-06 Thread Maciej W. Rozycki
On Wed, 4 Jun 2014, H. Peter Anvin wrote: > > Also IIRC PCI-PCI bridges only forward port I/O space accesses > > within the low 64kB. > > Not true. It must have been an implementation-specific constraint then (e.g. DECchip 21050), it's been a while since I looked into it. Thanks for straigh

RE: netlink executing RO memory

2014-06-06 Thread David Laight
From: Sasha Levin > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel I've stumbled on the following spew: > > [ 306.065161] kernel tried to execute NX-protected page - exploit attempt? > (uid: 0) > [ 306.067295] BUG: unable to handle kernel paging request at

Re: [PATCH v3] iio: dac: mcp4902/mcp4912/mcp4922 dac driver

2014-06-06 Thread Lars-Peter Clausen
On 06/06/2014 03:12 AM, Michael Welling wrote: [...] +enum mcp49x2_supported_device_ids { + ID_MCP4902, + ID_MCP4912, + ID_MCP4922, +}; + +struct mcp49x2_state { + struct spi_device *spi; + unsigned int value[MCP49X2_NUM_CHANNELS]; + unsigned int power_mode[MCP

Re: [RFC][PATCH] oom: Be less verbose if the oom_control event fd has listeners

2014-06-06 Thread Michal Hocko
On Thu 05-06-14 14:01:02, David Rientjes wrote: > On Thu, 5 Jun 2014, Michal Hocko wrote: > > > If we are printing too much then OK, let's remove those parts which are > > not that useful but hiding information which tells us more about the oom > > decision doesn't sound right to me. > > > > Mem

[PATCH v3] ARM: KVM: Unmap IPA on memslot delete/move

2014-06-06 Thread Eric Auger
Currently when a KVM region is deleted or moved after KVM_SET_USER_MEMORY_REGION ioctl, the corresponding intermediate physical memory is not unmapped. This patch corrects this and unmaps the region's IPA range in kvm_arch_commit_memory_region using unmap_stage2_range. Signed-off-by: Eric Auger

[PATCHv2 5/5] tools: ffs-test: add compatibility code for old kernels

2014-06-06 Thread Michal Nazarewicz
If ffs-test is used with a kernel prior to 3.14, which do not support the new descriptors format, it will fail when trying to write the descriptors. Add a function that converts the new descriptors to the legacy ones and use it to retry writing the descriptors using the legacy format. Also add “-

[PATCHv2 1/5] usb: gadget: f_fs: resurect usb_functionfs_descs_head structure

2014-06-06 Thread Michal Nazarewicz
Even though usb_functionfs_descs_head structure is now deprecated, it has been used by some user space tools. Its removel in commit [ac8dde1: “Add flags to descriptors block”] was an oversight leading to build breakage for such tools. Bring it back so that old user space tools can still be build

[PATCHv2 2/5] tools: ffs-test: fix header values endianess

2014-06-06 Thread Michal Nazarewicz
It appears that no one ever run ffs-test on a big-endian machine, since it used cpu-endianess for fs_count and hs_count fields which should be in little-endian format. Fix by wrapping the numbers in cpu_to_le32. Cc: sta...@vger.kernel.org Signed-off-by: Michal Nazarewicz --- tools/usb/ffs-test.

[PATCHv2 3/5] usb: gadget: f_fs: add usb_functionfs_descs_head_v2 structure

2014-06-06 Thread Michal Nazarewicz
The structure can be used with user space tools that use the new functionfs description format, for example as follows: static const struct { struct usb_functionfs_descs_head_v2 header; __le32 fs_count; __le32 hs_count; struct { … } fs_desc;

Re: Interactivity regression since v3.11 in mm/vmscan.c

2014-06-06 Thread Michal Hocko
On Thu 05-06-14 09:00:10, Felipe Contreras wrote: > On Thu, Jun 5, 2014 at 8:37 AM, Michal Hocko wrote: > > On Thu 05-06-14 06:33:40, Felipe Contreras wrote: > > >> For a while I've noticed that my machine bogs down in certain > >> situations, usually while doing heavy I/O operations, it is not j

Re: [PATCH v3] ARM: KVM: Unmap IPA on memslot delete/move

2014-06-06 Thread Christoffer Dall
On Fri, Jun 06, 2014 at 11:10:23AM +0200, Eric Auger wrote: > Currently when a KVM region is deleted or moved after > KVM_SET_USER_MEMORY_REGION ioctl, the corresponding > intermediate physical memory is not unmapped. > > This patch corrects this and unmaps the region's IPA range > in kvm_arch_com

[RFC 1/1] vfs: del redundant BH_new flag on unrelated buffer heads.

2014-06-06 Thread chishanmingshen
Just skip the unrelated buffer heads when clear buffer head's BH_new flag. This patch is *untested*. Signed-off-by: chishanmingshen --- fs/buffer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 9ddb9fc..a28a1a1 100644 --- a/fs/buffer.c +++

Re: [PATCH] x86/dumpstack: Walk frames when built with frame pointers

2014-06-06 Thread Peter Zijlstra
On Fri, Jun 06, 2014 at 10:24:20AM +0200, Borislav Petkov wrote: > Well, with all the other crap they put in modern machines, how hard it > is to put a goddam stupid serial line out everywhere...? WTF do I need a > goddam adaptive keyboard and other idiotic bling-bling if I can't have a > simple se

[PATCH 2/2] ARM: at91/sama5_defconfig: enable sound support

2014-06-06 Thread Bo Shen
Signed-off-by: Bo Shen --- arch/arm/configs/sama5_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index dc3881e..c8613f0 100644 --- a/arch/arm/configs/sama5_defconfig +++ b/arch/arm/configs/sama5_defconfig @@ -

[PATCH 1/2] ARM: at91/at91_dt_defconfig: enable sound support

2014-06-06 Thread Bo Shen
As sound support depends on ssc, i2c and dma, so also enable them. Signed-off-by: Bo Shen --- arch/arm/configs/at91_dt_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 300ded9..bd0a307 100644

Re: [PATCH 2/5] vt: Fix up unregistration of vt drivers

2014-06-06 Thread Daniel Vetter
On Fri, Jun 06, 2014 at 10:47:25AM +0200, David Herrmann wrote: > Hi > > On Fri, Jun 6, 2014 at 9:56 AM, Daniel Vetter wrote: > > On Fri, Jun 06, 2014 at 09:24:35AM +0200, David Herrmann wrote: > >> Hi > >> > >> On Thu, Jun 5, 2014 at 4:58 PM, Daniel Vetter > >> wrote: > >> > A bunch of issues:

[PATCH] vt: Fix replacement console check when unbinding

2014-06-06 Thread Daniel Vetter
I don't fully understand the magic of the vt register/unregister logic, but apparently everything but the inital console (as set in the conswitchp pointer) is marked with FLAG_MODULE. Which means if something unregistered the boot vt driver (e.g. i915.ko kicking out vga_con) there's nothing left wh

[PATCHv2 4/5] tools: ffs-test: convert to new descriptor format

2014-06-06 Thread Michal Nazarewicz
Since commit [ac8dde11: “Add flags to descriptors block”] functionfs supports a new, more powerful and extensible, descriptor format. Since ffs-test is probably the first thing users of the functionfs interface see when they start writing functionfs user space daemons, convert it to use the new for

Re: [PATCH] mm/mempolicy: fix sleeping function called from invalid context

2014-06-06 Thread Gu Zheng
Hi Greg, On 06/05/2014 10:18 PM, Greg KH wrote: > On Thu, Jun 05, 2014 at 04:28:52PM +0800, Gu Zheng wrote: >> When running with the kernel(3.15-rc7+), the follow bug occurs: >> [ 9969.258987] BUG: sleeping function called from invalid context at >> kernel/locking/mutex.c:586 >> [ 9969.359906] in

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

2014-06-06 Thread Johan Hovold
[ +CC: Jiri, linux-input, linux-usb (again) ] First of all, please reply to the original thread and make sure to not drop people or lists from CC. On Fri, Jun 06, 2014 at 12:29:06AM +0300, Janne Kanniainen wrote: > This driver adds support for USB controlled led panels that exist in > MSI GT683R

Re: [patch 2/2] rtmutex: Detect changes in the pi lock chain

2014-06-06 Thread Peter Zijlstra
hehe, I can almost follow this code :-) How about something like this on top? --- --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -260,6 +260,11 @@ static void rt_mutex_adjust_prio(struct */ int max_lock_depth = 1024; +static inline struct rt_mutex *task_blocked_on(struct

Re: [PATCH] ARM: dts: am43x-epos-evm: Add Missing cpsw-phy-sel for am43x-epos-evm

2014-06-06 Thread George Cherian
On 6/6/2014 12:23 PM, Nishanth Menon wrote: On 06/06/2014 01:17 AM, George Cherian wrote: AM437x EPOS evm use external clock for RMII interface. Enable the same in DT. Signed-off-by: George Cherian Reported-by: Nishanth Menon --- arch/arm/boot/dts/am43x-epos-evm.dts | 4 1 file change

Re: [PATCH] ARM: dts: am43x-epos-evm: Add Missing cpsw-phy-sel for am43x-epos-evm

2014-06-06 Thread George Cherian
On 6/6/2014 12:25 PM, Nishanth Menon wrote: On 06/06/2014 01:53 AM, Nishanth Menon wrote: On 06/06/2014 01:17 AM, George Cherian wrote: AM437x EPOS evm use external clock for RMII interface. Enable the same in DT. Signed-off-by: George Cherian Reported-by: Nishanth Menon --- arch/arm/boot/

Re: [patch 2/2] rtmutex: Detect changes in the pi lock chain

2014-06-06 Thread Steven Rostedt
On Fri, 6 Jun 2014 11:48:59 +0200 Peter Zijlstra wrote: > > > hehe, I can almost follow this code :-) > > How about something like this on top? Acked-by: Steven Rostedt -- Steve > > --- > --- a/kernel/locking/rtmutex.c > +++ b/kernel/locking/rtmutex.c > @@ -260,6 +260,11 @@ static void rt

Re: sched: how to pick runqueue when checking task hot?

2014-06-06 Thread Peter Zijlstra
On Fri, Jun 06, 2014 at 02:59:56PM +0800, zhd...@sina.com wrote: > Hi all > > When computing cache hot, question-1: should we check the number of running > tasks > against the migration target runqueue, as shown by the following diff? > > It looks that we dont migrate task if it is buddy and the

Re: [PATCH] mm/mempolicy: fix sleeping function called from invalid context

2014-06-06 Thread Gu Zheng
(cc'ing Li) Hi Andrew, Thanks for your comment. On 06/06/2014 04:23 AM, Andrew Morton wrote: > On Thu, 5 Jun 2014 16:28:52 +0800 Gu Zheng wrote: > >> When running with the kernel(3.15-rc7+), the follow bug occurs: >> [ 9969.258987] BUG: sleeping function called from invalid context at >> kerne

[RFC] Bluetooth: Add ACL MTU, available buffers and total buffers to hci_conn_info.

2014-06-06 Thread Kiran Kumar Raparthy
From: Nick Pelly Add ACL MTU, available buffers and total buffers to hci_conn_info. This provides userspace debugging tools access to ACL flow control state. This is one of the number of patches from the Android AOSP common.git tree, which is used on almost all Android devices. so I wanted to

  1   2   3   4   5   6   7   >