Re: [PATCH v1] input: make use of the input_set_capability helper

2015-01-06 Thread Dmitry Torokhov
Hi Olliver, On Wed, Jan 07, 2015 at 08:31:06AM +0100, Olliver Schinagl wrote: > From: Olliver Schinagl > > Almost all of the speaker drivers under input manipulate the ev bits > directly, which is not needed, as there is a helper available. > > This patch makes use of the helper for the

[PATCH v18 12/12] drm: bridge/dw_hdmi: add rockchip rk3288 support

2015-01-06 Thread Andy Yan
Rockchip RK3288 hdmi is compatible with dw_hdmi Signed-off-by: Andy Yan --- Changes in v18: - fix two compile errors when build as module Changes in v17: - parse resource and irq in platform driver Changes in v16: None Changes in v15: - remove THIS_MODULE in platform driver Changes in v14:

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-06 Thread Dmitry Torokhov
On Mon, Jan 05, 2015 at 05:04:55PM -0500, Benjamin Tissoires wrote: > On Mon, Jan 5, 2015 at 5:00 PM, Gabriele Mazzotta > wrote: > > On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: > >> Hi Gabriele, > >> > >> [Adding Peter and Hans as this change will impact both > >>

Re: [PATCH 5/5] perf diff: Fix -o/--order option behavior

2015-01-06 Thread Namhyung Kim
On Sun, Jan 04, 2015 at 07:26:56PM +0100, Jiri Olsa wrote: > On Sat, Dec 27, 2014 at 02:06:33PM +0900, Namhyung Kim wrote: > > SNIP > > > + return 0; > > + > > + fmt = zalloc(sizeof(*fmt)); > > + if (fmt == NULL) { > > + pr_err("Memory allocation failed\n"); > > +

[RFC PATCH 11/11] kprobes: add CONFIG_EARLY_KPROBES option.

2015-01-06 Thread Wang Nan
Enable early kprobes in Kconfig. Signed-off-by: Wang Nan --- arch/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 05d7a8a..06dff4b 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -46,6 +46,18 @@ config KPROBES for kernel

[alsa-devel][PATCH v2 1/2] ASoC: wm8960: Let wm8960 codec driver manage its own MCLK

2015-01-06 Thread Zidan Wang
From: Zidan Wang When we want to use wm8960 codec, we should enable its MCLK in machine driver. It's reasonable for wm8960 codec driver to manage its own MCLK. When current bias_level is SND_SOC_BIAS_ON, it is preparing for a transition away from ON. In this case, disable the codec mclk. When

Re: [PATCH 4/5] perf diff: Fix output ordering to honor next column

2015-01-06 Thread Namhyung Kim
Hi Jiri, On Sun, Jan 04, 2015 at 07:16:40PM +0100, Jiri Olsa wrote: > On Sat, Dec 27, 2014 at 02:06:32PM +0900, Namhyung Kim wrote: > > SNIP > > > if (!pairs_left || !pairs_right) > > return pairs_left ? -1 : 1; > > > > - p_left = get_pair_data(left,

[PATCH v1] ARM:sunxi:sid: Make use of the of_match_ptr

2015-01-06 Thread Olliver Schinagl
From: Olliver Schinagl I probably have forgotten to use this macro for the of_match pointer, so this patch adds the of_match_ptr macro. Signed-off-by: Olliver Schinagl --- drivers/misc/eeprom/sunxi_sid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 01/11] ARM: kprobes: directly modify code if kprobe is not initialized.

2015-01-06 Thread Wang Nan
If kprobe is optimized before kprobe is initialized, there should be only one core, the probed instruction is not armed with breakpoint, so simply patch text is okay. Signed-off-by: Wang Nan --- arch/arm/probes/kprobes/opt-arm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-)

[RFC PATCH 06/11] kprobes: makes kprobes_initialized globally visable.

2015-01-06 Thread Wang Nan
Following patches will enable kprobe registering very early, before kprobe system initialized. Arch code can use it to do special treatments for such kprobes. Signed-off-by: Wang Nan --- include/linux/kprobes.h | 2 ++ kernel/kprobes.c| 2 +- 2 files changed, 3 insertions(+), 1

[RFC PATCH 07/11] kprobes: introduces macros for allocing early kprobe resources.

2015-01-06 Thread Wang Nan
Introduces macros to genearte common early kprobe related resource allocator. All early kprobe related resources are statically allocated during linking for each early kprobe slot. For each type of resource, a bitmap is used to track allocation. __DEFINE_EKPROBE_ALLOC_OPS defines alloc and free

[RFC PATCH 09/11] kprobes: core logic of eraly kprobes.

2015-01-06 Thread Wang Nan
This patch is the main logic of early kprobe. If register_kprobe() is called before kprobes_initialized, an early kprobe is allocated. Try to utilize existing OPTPROBE mechanism to replace the target instruction by a branch instead of breakpoint, because interrupt handlers may not been

Re: [LKP] [sb_edac] 50d1bb93672: EDAC sbridge: ECC is disabled. Aborting

2015-01-06 Thread Huang Ying
On Mon, 2015-01-05 at 09:06 -0500, Aristeu Rozanski wrote: > Hi, > On Fri, Dec 19, 2014 at 01:26:59PM +0800, Huang Ying wrote: > > In fact, I am not complaining :-), just FYI. As I said, this may be a > > expected behavior because this is a Haswell machine and the Haswell > > support was added in

[RFC PATCH 04/11] x86: kprobes: introduce early kprobes related code area.

2015-01-06 Thread Wang Nan
This patch introduces EARLY_KPROBES_CODES_AREA in x86 vmlinux for early kprobes. Signed-off-by: Wang Nan --- arch/x86/include/asm/insn.h| 7 --- arch/x86/include/asm/kprobes.h | 45 ++ arch/x86/kernel/vmlinux.lds.S | 2 ++ 3 files changed, 43

[RFC PATCH 11/11] kprobes: add CONFIG_EARLY_KPROBES option.

2015-01-06 Thread Wang Nan
Enable early kprobes in Kconfig. Signed-off-by: Wang Nan --- arch/Kconfig | 12 1 file changed, 12 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 05d7a8a..06dff4b 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -46,6 +46,18 @@ config KPROBES for kernel

[RFC PATCH 08/11] kprobes: allows __alloc_insn_slot() from early kprobes slots.

2015-01-06 Thread Wang Nan
Introduces early_slots_start/end and bitmap for struct kprobe_insn_cache then uses previous introduced macro to generate allocator. This patch makes get/free_insn_slot() and get/free_optinsn_slot() transparent to early kprobes. Signed-off-by: Wang Nan --- include/linux/kprobes.h | 33

[RFC PATCH 10/11] kprobes: enable 'ekprobe=' cmdline option for early kprobes.

2015-01-06 Thread Wang Nan
This patch shows the basic idea of usage of early kprobes. By adding kernel cmdline options such as 'ekprobe=__alloc_pages_nodemask' or 'ekprobe=0xc00f3c2c', early kprobes are installed. When the probed instructions get hit, a message is printed. Signed-off-by: Wang Nan --- kernel/kprobes.c |

[RFC PATCH 03/11] x86: kprobes: directly modify code if kprobe is not initialized.

2015-01-06 Thread Wang Nan
When registering early kprobes, SMP should has not been enabled, so doesn't require synchronization in text_poke_bp(). Simply memcpy is enough. Signed-off-by: Wang Nan --- arch/x86/kernel/kprobes/opt.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[RFC PATCH 02/11] ARM: kprobes: introduce early kprobes related code area.

2015-01-06 Thread Wang Nan
In arm's vmlinux.lds, introduces code area inside text section. Executable area used by early kprobes will be allocated from there. Signed-off-by: Wang Nan --- arch/arm/include/asm/kprobes.h | 29 +++-- arch/arm/kernel/vmlinux.lds.S | 2 ++ 2 files changed, 29

[RFC PATCH 05/11] kprobes: Add an KPROBE_FLAG_EARLY for early kprobe.

2015-01-06 Thread Wang Nan
Introduce a KPROBE_FLAG_EARLY for futher expansion. KPROBE_FLAG_EARLY indicates a kprobe is installed at very early stage, its resources should be allocated statically. Signed-off-by: Wang Nan --- include/linux/kprobes.h | 1 + 1 file changed, 1 insertion(+) diff --git

[RFC PATCH 00/11] Early kprobe: enable kprobes at very early

2015-01-06 Thread Wang Nan
This patch series shows early kprobe, a mechanism allows users to track events at very early. It should be useful for optimization of system booting. This can also be used by BSP developers to hook their platform specific procedures at kernel booting stages after setup_arch(). This patch series

Re: [PATCH 0/5] Perf fixes for ARC + uClibc

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:43 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 06, 2015 at 07:22:10PM +0530, Vineet Gupta escreveu: > Hi, > > This series based off linux-next of 20150105 allows us to build/use perf > for ARC with uClibc based userland. Do you have some ready made ARC VM

[PATCH] rsxx: fix time comparison

2015-01-06 Thread Asaf Vertz
To be future-proof and for better readability the time comparisons are modified to use time_before() instead of plain, error-prone math. Signed-off-by: Asaf Vertz --- drivers/block/rsxx/core.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git

Re: linux-next: Tree for Jan 7

2015-01-06 Thread Sedat Dilek
On Wed, Jan 7, 2015 at 5:16 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20150106: > > *crickets* > > Non-merge commits (relative to Linus' tree): 1350 > 1543 files changed, 41856 insertions(+), 24250 deletions(-) > Happy new year, this release is a

[Patch v2 03/16] iommu/vt-d: Convert allocations to GFP_KERNEL

2015-01-06 Thread Jiang Liu
From: Thomas Gleixner No reason anymore to do GFP_ATOMIC allocations which are not harmful in the normal bootup case, but matter in the physical hotplug scenario. Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov Acked-by: Joerg Roedel Cc: Jiang Liu Cc: x...@kernel.org Link:

[Patch v2 07/16] x86/apic: Refine enable_IR_x2apic() and related functions

2015-01-06 Thread Jiang Liu
Refine enable_IR_x2apic() and related functions for better readability. It also changes the way to handle IR in XAPIC mode when enabling X2APIC. Previously it just skips X2APIC initialization without checking max CPU APIC ID in system, which may cause problem if system has CPU with APIC ID bigger

[Patch v2 09/16] iommu/vt-d: Allocate IRQ remapping data structures only for all IOMMUs

2015-01-06 Thread Jiang Liu
From: Joerg Roedel IRQ remapping is only supported when all IOMMUs in the system support it. So check if all IOMMUs in the system support IRQ remapping before doing the allocations. [Jiang] 1) Rebased onto v3.19. 2) Remove redundant check of ecap_ir_support(iommu->ecap) in function

[Patch v2 11/16] x86/apic: Only disable CPU x2apic mode when necessary

2015-01-06 Thread Jiang Liu
When interrupt remapping hardware is not in X2APIC, CPU X2APIC mode will be disabled if: 1) Maximum CPU APIC ID is bigger than 255 2) hypervisior doesn't support x2apic mode. But we should only check whether hypervisor supports X2APIC mode when hypervisor(CONFIG_HYPERVISOR_GUEST) is enabled,

[PATCH v1] input: make use of the input_set_capability helper

2015-01-06 Thread Olliver Schinagl
From: Olliver Schinagl Almost all of the speaker drivers under input manipulate the ev bits directly, which is not needed, as there is a helper available. This patch makes use of the helper for the speaker drivers. Signed-off-by: Olliver Schinagl --- drivers/input/misc/cm109.c | 4

[Patch v2 15/16] iommu/irq_remapping: Change variable disable_irq_remap to be static

2015-01-06 Thread Jiang Liu
Change variable disable_irq_remap to be static and simplify the code. Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |6 +- drivers/iommu/intel_irq_remapping.c |5 - drivers/iommu/irq_remapping.c |3 +-- drivers/iommu/irq_remapping.h |2 --

Re: [PATCH 6/7] perf tools: Append callchains only when requested

2015-01-06 Thread Namhyung Kim
Hi Arnaldo, On Mon, Jan 05, 2015 at 09:49:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Jan 04, 2015 at 12:01:26AM +0900, Namhyung Kim escreveu: > > On Sat, Jan 3, 2015 at 11:25 AM, Arnaldo Carvalho de Melo > > wrote: > > > Em Mon, Dec 22, 2014 at 01:44:14PM +0900, Namhyung Kim escreveu:

[Patch v2 16/16] iommu/irq_remapping: Normailize the way to detect whether IR is enabled

2015-01-06 Thread Jiang Liu
Refine code by normailizing the way to detect whether IR is enabled. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 38 ++ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/iommu/irq_remapping.c

[Patch v2 12/16] iommu/amd: Check for irq-remap support amd_iommu_prepare()

2015-01-06 Thread Jiang Liu
From: Joerg Roedel This allows to get rid of the irq_remapping_supported() function and all its call-backs into the Intel and AMD IOMMU drivers. Signed-off-by: Joerg Roedel Signed-off-by: Jiang Liu --- drivers/iommu/amd_iommu_init.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[Patch v2 14/16] iommu/irq_remapping: Refine function irq_remapping_prepare() for maintenance

2015-01-06 Thread Jiang Liu
Assign intel_irq_remap_ops to remap_ops only if intel_irq_remap_ops.prepare() succeeds. Signed-off-by: Jiang Liu --- drivers/iommu/irq_remapping.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c

[Patch v2 13/16] iommu/irq_remapping: Kill function irq_remapping_supported() and related code

2015-01-06 Thread Jiang Liu
Simplify irq_remapping code by killing irq_remapping_supported() and related interfaces. Joerg posted a similar patch at https://lkml.org/lkml/2014/12/15/490, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by: Joerg Roedel --- arch/x86/include/asm/irq_remapping.h |

[Patch v2 06/16] x86/apic: Correctly detect X2APIC status in function enable_IR()

2015-01-06 Thread Jiang Liu
X2APIC will be disabled if user specifies "nox2apic" on kernel command line, even when x2apic_preenabled is true. So correctly detect X2APIC status by using x2apic_enabled() instead of x2apic_preenabled. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |2 +- 1 file changed, 1

[Patch v2 05/16] x86/apic: Kill useless variable x2apic_enabled in function enable_IR_x2apic()

2015-01-06 Thread Jiang Liu
Local variable x2apic_enabled has been assigned to but never referred, so kill it. Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/apic.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index

[Patch v2 10/16] iommu/vt-d: Allow IR works in XAPIC mode though CPU works in X2APIC mode

2015-01-06 Thread Jiang Liu
Currently if CPU supports X2APIC, IR hardware must work in X2APIC mode or disabled. Change the code to support IR working in XAPIC mode when CPU supports X2APIC. Then the CPU APIC driver will decide how to handle such as configuration by: 1) Disabling X2APIC mode 2) Forcing X2APIC physical mode

[Patch v2 08/16] iommu/vt-d: Prepare for killing function irq_remapping_supported()

2015-01-06 Thread Jiang Liu
Prepare for killing function irq_remapping_supported() by moving code from intel_irq_remapping_supported() into intel_prepare_irq_remapping(). Combined with patch from Joerg at https://lkml.org/lkml/2014/12/15/487, so assume an signed-off from Joerg. Signed-off-by: Jiang Liu Signed-off-by:

[Patch v2 04/16] x86/apic: Panic if kernel doesn't support x2apic but BIOS has enabled x2apic

2015-01-06 Thread Jiang Liu
When kernel doesn't support X2APIC but BIOS has enabled X2APIC, system may panic or hang without useful messages. On the other hand, it's hard to dynamically disable X2APIC when CONFIG_X86_X2APIC is disabled. So panic with a clear message in such a case. System panics as below when X2APIC is

[Patch v2 02/16] iommu/vt-d: Move iommu preparatory allocations to irq_remap_ops.prepare

2015-01-06 Thread Jiang Liu
From: Thomas Gleixner The whole iommu setup for irq remapping is a convoluted mess. The iommu detect function gets called from mem_init() and the prepare callback gets called from enable_IR_x2apic() for unknown reasons. Of course AMD and Intel setup differs in nonsensical ways. Intels prepare

[Patch v2 01/16] iommu, x86: Restructure setup of the irq remapping feature

2015-01-06 Thread Jiang Liu
From: Thomas Gleixner enable_IR_x2apic() calls setup_irq_remapping_ops() which by default installs the intel dmar remapping ops and then calls the amd iommu irq remapping prepare callback to figure out whether we are running on an AMD machine with irq remapping hardware. Right after that it

[Patch v2 00/16] Refine IR initialization flow and fixes bugs related to X2APIC

2015-01-06 Thread Jiang Liu
When converting x86 to new hierarchy irqdoamin framework, Thomas noticed that the interrupt remapping initialization flow is a little complex and has troubles in memory allocation. Then there is a joint force to simplify IR initialization flow, please refer to related threads at:

[PATCH] staging: ft1000: Fix code style issue

2015-01-06 Thread Arjun AK
Remove unnecessary braces from single statement blocks. Signed-off-by: Arjun AK --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 101 --- 1 file changed, 35 insertions(+), 66 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c

Re: [RFC 2/2] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2015-01-06 Thread Andy Lutomirski
On Tue, Jan 6, 2015 at 9:38 PM, Paolo Bonzini wrote: > > > On 06/01/2015 17:56, Andy Lutomirski wrote: >> Still no good. We can migrate a bunch of times so we see the same CPU >> all three times > > There are no three times. The CPU you see here: > >>> >>> >>> // ... compute nanoseconds

Re: [PATCH v18 0/12] dw-hdmi: convert imx hdmi to bridge/dw_hdmi

2015-01-06 Thread Andy Yan
Hi Liu Ying , Philipp: On 2015年01月07日 10:39, Liu Ying wrote: On 12/05/2014 02:22 PM, Andy Yan wrote: We found Freescale imx6 and Rockchip rk3288 and Ingenic JZ4780 (Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly differences, such as phy pll

Re: [RFC/PATCHSET 00/37] perf tools: Speed-up perf report by using multi thread (v1)

2015-01-06 Thread Namhyung Kim
Hi Stephane, On Tue, Jan 06, 2015 at 10:50:44AM -0500, Stephane Eranian wrote: > On Mon, Jan 5, 2015 at 1:48 PM, Andi Kleen wrote: > > > This also requires to handle multiple files and to find a > > > corresponding machine state when processing samples. On a large > > > profiling session, many

[PATCH 2/2] ARM: dts: vfxxx: Add SNVS node

2015-01-06 Thread Sanchayan Maity
Add device tree node for the Secure Non-Volatile Storage (SNVS) on the VF610 platform. The SNVS block also has a Real Time Counter (RTC). Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf500.dtsi |4 arch/arm/boot/dts/vfxxx.dtsi | 14 ++ 2 files changed, 18

[PATCH 1/2] ARM: imx: clk-vf610: Add clock for SNVS

2015-01-06 Thread Sanchayan Maity
Add support for clock gating of the SNVS peripheral. Signed-off-by: Sanchayan Maity --- arch/arm/mach-imx/clk-vf610.c |2 ++ include/dt-bindings/clock/vf610-clock.h |3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-vf610.c

[PATCH 0/2] Add SNVS clock gating and SNVS node for DT

2015-01-06 Thread Sanchayan Maity
The following patch set adds support for clock gating of the SNVS peripheral required on the Vybrid platform. Also adds a device tree node for this peripheral. This patchset was send before along with the patch which had clock changes to the rtc-snvs driver. Since these could not be merged then,

Re: Another SCHED_DEADLINE bug (with bisection and possible fix)

2015-01-06 Thread Luca Abeni
Hi Kirill, On Tue, 06 Jan 2015 02:07:21 +0300 Kirill Tkhai wrote: > On Пн, 2015-01-05 at 16:21 +0100, Luca Abeni wrote: [...] > > For reference, I attach the patch I am using locally (based on what > > I suggested in my previous mail) and seems to work fine here. > > > > Based on your

Re: [PATCH] ALSA: hda - Add new GPU codec ID 0x10de0072 to snd-hda

2015-01-06 Thread Takashi Iwai
At Tue, 6 Jan 2015 13:40:14 -0800, Aaron Plattner wrote: > > Vendor ID 0x10de0072 is used by a yet-to-be-named GPU chip. > > Signed-off-by: Aaron Plattner > --- > Do you think it would make sense to add some kind of wildcard match for > 0x10de* -> patch_nvhdmi? Looking at the situation until

Re: [RFC/PATCHSET 00/37] perf tools: Speed-up perf report by using multi thread (v1)

2015-01-06 Thread Namhyung Kim
Hi Andi, On Mon, Jan 05, 2015 at 07:48:11PM +0100, Andi Kleen wrote: > > Thanks for working on this. Haven't read any code, just > some high level comments on the design. Really appreciate it! > > > > So my approach is like this: > > > > Partially do stage 1 first - but only for meta events

Re: [PATCH v2 32/40] avr32: macro whitespace fixes

2015-01-06 Thread Hans-Christian Egtvedt
Around Tue 06 Jan 2015 17:45:18 +0200 or thereabout, Michael S. Tsirkin wrote: > While working on arch/avr32/include/asm/uaccess.h, I noticed > that some macros within this header are made harder to read because they > violate a coding style rule: space is missing after comma. > > Fix it up.

Re: [PATCH v2 24/40] avr32: whitespace fix

2015-01-06 Thread Hans-Christian Egtvedt
Around Tue 06 Jan 2015 17:44:50 +0200 or thereabout, Michael S. Tsirkin wrote: > Align using tabs to make code prettier. > It is already aligned using tabs, but there is one too much. Thanks for cleaning. > Signed-off-by: Michael S. Tsirkin > Acked-by: Hans-Christian Egtvedt > --- >

Re: [PATCH] spi: orion: Add multiple chip select support for Armada 370 and 375

2015-01-06 Thread Thomas Petazzoni
Dear Gregory CLEMENT, On Tue, 06 Jan 2015 23:00:54 +0100, Gregory CLEMENT wrote: > On 06/01/2015 22:30, Ken Wilson wrote: > > Create a new dt binding for the Armada 375 that supports up to > > 3 chip selects but uses the same prescaler values and algorithm > > as the basic orion binding. > >

Re: [PATCH] Revert 9fc2105aeaaf56b0cf75296a84702d0f9e64437b to fix pyaudio (and probably more)

2015-01-06 Thread Nicolas Pitre
On Tue, 6 Jan 2015, Catalin Marinas wrote: > I think that's where the misunderstanding is. We don't have any idea > how many times we go through the delay loop. We just go through the > delay loop until the counter (driven by an independent frequency) > changes X times. From arch/arm/lib/delay.c:

Re: [PATCH] input: Add soft kill switch for input devices

2015-01-06 Thread Tristan Lelong
On Tue, Jan 06, 2015 at 10:17:32PM +0100, Bruno Prémont wrote: > > One big issue I see here is that you start dropping all events at a random > point in time. > You may end up within a gesture or just while a button is down and remain > so until that same button gets pressed again on unmute. > >

Re: [Patch v4] ARC: Dynamically determine BASE_BAUD from DeviceTree

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:08 PM, Rob Herring wrote: > On Tue, Jan 6, 2015 at 7:59 AM, Vineet Gupta > wrote: >> 8250 earlycon is broken on multi-platform ARC because the UART clk >> value (BASE_BAUD) is fixed at build time. > Note that it should only be broken if you rely on the kernel to

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-06 Thread Peter Hutterer
On Mon, Jan 05, 2015 at 02:24:30PM -0500, Benjamin Tissoires wrote: > Hi Gabriele, > > [Adding Peter and Hans as this change will impact both > xf86-input-synaptics and libinput] > > On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta > wrote: > > Despite claiming to be able to report

Re: [PATCH] brcm80211: brcmsmac: dma: Remove some unused functions

2015-01-06 Thread Julia Lawall
On Wed, 7 Jan 2015, Rickard Strandqvist wrote: > 2015-01-05 12:06 GMT+01:00 Arend van Spriel : > > On 01/05/15 11:49, Kalle Valo wrote: > >> > >> Rickard Strandqvist writes: > >> > >>> As I hope you can see I have made some changes regarding the > >>> subject-line. Thought it was an advantage

Re: [PATCH] sparc32: nocheck uaccess coding style tweaks

2015-01-06 Thread Sam Ravnborg
On Wed, Jan 07, 2015 at 12:10:18AM +0200, Michael S. Tsirkin wrote: > Sam Ravnborg suggested packing single-lines cases in switch statements > in nocheck uaccess macros makes for easier to read code. > > Suggested-by: Sam Ravnborg > Signed-off-by: Michael S. Tsirkin Acked-by: Sam Ravnborg --

Re: [PATCH] sparc64: minor coding style tweaks

2015-01-06 Thread Sam Ravnborg
On Tue, Jan 06, 2015 at 11:39:59PM +0200, Michael S. Tsirkin wrote: > Sam Ravnborg suggested packing single-line cases > in nocheck switch statements makes for easier to > read code. > > This is on top of arch/sparc: uaccess_64 macro whitespace fixes > that I sent earlier. > > Suggested-by: Sam

[Bugfix] x86/apic: Fix xen IRQ allocation failure caused by commit b81975eade8c

2015-01-06 Thread Jiang Liu
Commit b81975eade8c ("x86, irq: Clean up irqdomain transition code") breaks xen IRQ allocation because xen_smp_prepare_cpus() doesn't invoke setup_IO_APIC(), so no irqdomains created for IOAPICs and mp_map_pin_to_irq() fails at the very beginning. Enhance xen_smp_prepare_cpus() to call

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-06 Thread Peter Hutterer
On Mon, Jan 05, 2015 at 05:04:55PM -0500, Benjamin Tissoires wrote: > On Mon, Jan 5, 2015 at 5:00 PM, Gabriele Mazzotta > wrote: > > On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: > >> Hi Gabriele, > >> > >> [Adding Peter and Hans as this change will impact both > >>

[PATCH v6 1/6] input: touchscreen: ti_am335x_tsc Interchange touchscreen and ADC steps

2015-01-06 Thread Vignesh R
From: Brad Griffis This patch makes the initial changes required to workaround TSC-false pen-up interrupts. It is required to implement these changes in order to remove udelay in the TSC interrupt handler and false pen-up events. The charge step is to be executed immediately after sampling X+.

[PATCH v6 2/6] input: touchscreen: ti_am335x_tsc: Remove udelay in interrupt handler

2015-01-06 Thread Vignesh R
From: Brad Griffis TSC interrupt handler had udelay to avoid reporting of false pen-up interrupt to user space. This patch implements workaround suggesting in Advisory 1.0.31 of silicon errata for am335x, thus eliminating udelay and touchscreen lag. This also improves performance of touchscreen

[PATCH v6 4/6] input: touchscreen: ti_am335x_tsc: Read charge delay from DT

2015-01-06 Thread Vignesh R
This patch reads charge delay from tsc DT node and writes to REG_CHARGEDELAY register. If the charge delay is not specified in DT then default value of 0x400(CHARGEDLY_OPENDLY) is used. Signed-off-by: Vignesh R --- v6: - Move Documentation from DT patch to driver code. v5: - print out a

[PATCH v6 3/6] mfd: ti_am335x_tscadc: Remove unwanted reg_se_cache save

2015-01-06 Thread Vignesh R
In one shot mode, sequencer automatically disables all enabled steps at the end of each cycle. (both ADC steps and TSC steps) Hence these steps need not be saved in reg_se_cache for clearing these steps at a later stage. Also, when ADC wakes up Sequencer should not be busy executing any of the

[PATCH v6 6/6] input: touchscreen: ti_am335x_tsc: Replace delta filtering with median filtering

2015-01-06 Thread Vignesh R
Previously, delta filtering was applied TSC co-ordinate readouts before reporting a single value to user space. This patch replaces delta filtering with median filtering. Median filtering sorts co-ordinate readouts, drops min and max values, and reports the average of remaining values. This method

[PATCH v6 5/6] ARM: dts: AM335x: Make charge delay a DT parameter for TSC

2015-01-06 Thread Vignesh R
The charge delay value is by default 0x400. But it can be set to lower values on some boards, as long as false pen-ups are avoided. Lowering the value increases the sampling rate (though current sampling rate is sufficient for TSC operation). In some boards, the value has to be increased to avoid

[PATCH] arm64: mm: support instruction SETEND

2015-01-06 Thread Leo Yan
Currently kernel has set the bit SCTLR_EL1.SED, so the SETEND instruction will be treated as UNALLOCATED; this error can be reproduced when ARMv8 cpu runs with EL1/aarch64 and EL0/aarch32 mode, finally kernel will trap the exception if the userspace libs use SETEND instruction. So this patch

[PATCH v6 0/6] Touchscreen performance related fixes

2015-01-06 Thread Vignesh R
This series is rebase of v4 onto v3.19-rc1. It also fixes concerns expressed on v4 wrt simultaneous use of IIO and TSC. I have tested this patch series on am335x-evm and Beaglebone black with lcd7-cape. Note that, these patches do not work as expected on Beaglebone Black with BB-View 4.3 Cape

RE: [PATCH v7 9/11] xfstests: generic/043: Test multiple fallocate insert/collapse range calls

2015-01-06 Thread Namjae Jeon
> > + > > +for (( BSIZE = 1024; BSIZE <= 4096; BSIZE *= 2 )); do > > + > > + length=$(($BLOCKS * $BSIZE)) > > + case $FSTYP in > > + xfs) > > + _scratch_mkfs -b size=$BSIZE >> $seqres.full 2>&1 > > + ;; > > + ext4) > > + _scratch_mkfs -b $BSIZE >> $seqres.full 2>&1 > > + ;; > > +

RE: [PATCH v7 11/11] xfstests: fsx: Add fallocate insert range operation

2015-01-06 Thread Namjae Jeon
> > } > > break; > > + case OP_INSERT_RANGE: > > + if (!insert_range_calls) { > > + log4(OP_SKIPPED, OP_INSERT_RANGE, offset, size); > > + goto out; > > + } > > + break; > > } > > > > switch (op) {

Re: [PATCH v5 4/6] ARM: dts: AM335x: Make charge delay a DT parameter for TSC

2015-01-06 Thread Vignesh R
On Friday 02 January 2015 10:39 PM, Tony Lindgren wrote: > * Vignesh R [141223 23:07]: >> The charge delay value is by default 0x400. But it can be set to lower >> values on some boards, as long as false pen-ups are avoided. Lowering the >> value increases the sampling rate (though current

RE: [PATCH v7 1/11] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-06 Thread Namjae Jeon
> On Fri, Jan 02, 2015 at 06:40:33PM +0900, Namjae Jeon wrote: > > FALLOC_FL_INSERT_RANGE command is the opposite command of > > FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want > > to > > add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create > >

RE: [PATCH v7 10/11] xfstests: fsstress: Add fallocate insert range operation

2015-01-06 Thread Namjae Jeon
> > On Fri, Jan 02, 2015 at 06:42:51PM +0900, Namjae Jeon wrote: > > This commit adds insert operation support for fsstress, which is > > meant to exercise fallocate FALLOC_FL_INSERT_RANGE support. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Ashish Sangwan > > --- > > It might be

RE: [PATCH v7 2/11] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-01-06 Thread Namjae Jeon
> > On Fri, Jan 02, 2015 at 06:40:54PM +0900, Namjae Jeon wrote: > > This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. > > > > 1) Make sure that both offset and len are block size aligned. > > 2) Update the i_size of inode by len bytes. > > 3) Compute the file's logical block

Re: [PATCH] perf: fix building error in x86_64 when dwarf unwind is on

2015-01-06 Thread Namhyung Kim
Hi, On Wed, Jan 07, 2015 at 10:53:52AM +0800, Wang Nan wrote: > Ping... Sorry for long delay. > > On 2014/12/29 16:14, Wang Nan wrote: > > On 2014/12/29 15:56, Namhyung Kim wrote: > >> Hi Wang, > >> > >> (Adding Arnaldo and Jiri to CC) > >> > >> On Sat, Dec 27, 2014 at 09:26:11AM +0800, Wang

[PATCH] CXL: Fix device_node reference counting

2015-01-06 Thread Ian Munsie
From: Ryan Grimm When unbinding and rebinding the driver on a system with a card in PHB0, this error condition is reached after a few attempts: ERROR: Bad of_node_put() on /pciex@3fffe4000 CPU: 0 PID: 3040 Comm: bash Not tainted 3.18.0-rc3-12545-g3627ffe #152 Call Trace: [c00721acb5c0]

Re: [RFC 2/2] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2015-01-06 Thread Paolo Bonzini
On 06/01/2015 19:26, Andy Lutomirski wrote: > Don't you stil need: > > version++; > write the rest; > version++; > > with possible smp_wmb() in there to keep the compiler from messing around? No, see my other reply. Separating the version write is a real bug, but that should be all that it's

Re: [PATCH net] ipv6: Prevent ipv6_find_hdr() from returning ENOENT for valid non-first fragments

2015-01-06 Thread Rahul Sharma
Hi Pablo, On Wed, Jan 7, 2015 at 4:17 AM, Pablo Neira Ayuso wrote: > On Wed, Jan 07, 2015 at 03:03:20AM +0530, Rahul Sharma wrote: >> ipv6_find_hdr() currently assumes that the next-header field in the >> fragment header of the non-first fragment is the "protocol number of >> the last header"

[PATCH v2 1/6] ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung"

2015-01-06 Thread Pankaj Dubey
From: Amit Daniel Kachhap Moving Exynos PMU specific header file into "include/linux/soc/samsung" thus updated affected files under "mach-exynos" to use new location of these header files. Signed-off-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/exynos.c

[PATCH v2 3/6] ARCH: EXYNOS: split up exynos4 SoC specific PMU data

2015-01-06 Thread Pankaj Dubey
This patch splits up mach-exynos/pmu.c file, and moves exynos4210, exynos4412 and exynos4212 PMU configuration data and functions handing data into a common exynos4 SoC specific PMU file mach-exynos/exynos4-pmu.c. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/Makefile | 2 +-

[PATCH v2 5/6] ARCH: EXYNOS: split up exynos5420 SoC specific PMU data

2015-01-06 Thread Pankaj Dubey
This patch splits up mach-exynos/pmu.c file, and moves exynos5420, PMU configuration data and functions handing data into exynos5420 SoC specific PMU file mach-exynos/exynos5420-pmu.c. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/Makefile | 2 +-

[PATCH v2 0/6] samsung: pmu: split up SoC specific PMU data

2015-01-06 Thread Pankaj Dubey
This patch series is a part of continuation work from following series [1] and [2]. 1: exynos: Move pmu driver to driver/soc folder and add exynos7 support http://www.spinics.net/lists/linux-samsung-soc/msg39797.html from Amit Daniel Kacchap 2: soc: samsung: pmu: split up SoC specific PMU

[PATCH v2 4/6] ARCH: EXYNOS: split up exynos5250 SoC specific PMU data

2015-01-06 Thread Pankaj Dubey
This patch splits up mach-exynos/pmu.c file, and moves exynos5250, PMU configuration data and functions handing data into exynos5250 SoC specific PMU file mach-exynos/exynos5250-pmu.c. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/Makefile | 4 +-

[PATCH v2 6/6] drivers: soc: Add support for Exynos PMU driver

2015-01-06 Thread Pankaj Dubey
This patch moves Exynos PMU driver implementation from "arm/mach-exynos" to "drivers/soc/samsung". This driver is mainly used for setting misc bits of register from PMU IP of Exynos SoC which will be required to configure before Suspend/Resume. Currently all these settings are done in

[PATCH v2 2/6] ARCH: EXYNOS: split up exynos3250 SoC specific PMU data

2015-01-06 Thread Pankaj Dubey
This patch splits up mach-exynos/pmu.c file, and moves exynos3250 PMU configuration data and functions handing those data into exynos3250 SoC specific PMU file mach-exynos/exynos3250-pmu.c. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/Makefile | 2 +-

Re: [RFC 2/2] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2015-01-06 Thread Paolo Bonzini
On 06/01/2015 17:56, Andy Lutomirski wrote: > Still no good. We can migrate a bunch of times so we see the same CPU > all three times There are no three times. The CPU you see here: >> >> >> // ... compute nanoseconds from pvti and tsc ... >> rmb(); >> } while(v !=

[PATCH v2] video: vt8500lcdfb: remove unneeded continue

2015-01-06 Thread Sudip Mukherjee
continue is not needed at the end of a for loop, also removed the braces which were no longer required. Signed-off-by: Sudip Mukherjee --- v2: removed braces drivers/video/fbdev/vt8500lcdfb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] cxl: Fix issues when unmapping contexts

2015-01-06 Thread Ian Munsie
From: Ian Munsie An issue was introduced with "cxl: Unmap MMIO regions when detaching a context" (b123429e6a9e8d03aacf888d23262835f0081448) where closing a context normally could also unmap the problem state area of other contexts currently using the AFU. It was also discovered that after a

Re: [PATCH v7 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-01-06 Thread Li, ZhenHua
It is same as the last one I send to you yesterday. The continuous memory that needed for data in this patchset: RE: PAGE_SIZE, 4096 Bytes; IRTE: 65536 * 16 ; 1M Bytes; It should use same memory as the old versions of this patchset. The changes for the last version do not need more memory.

Re: [PATCH 0/5] Perf fixes for ARC + uClibc

2015-01-06 Thread Vineet Gupta
On Tuesday 06 January 2015 08:43 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 06, 2015 at 07:22:10PM +0530, Vineet Gupta escreveu: > Hi, > > This series based off linux-next of 20150105 allows us to build/use perf > for ARC with uClibc based userland. Do you have some ready made ARC VM

Re: [PATCH v7 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-01-06 Thread Baoquan He
On 01/07/15 at 12:11pm, Li, ZhenHua wrote: > Many thanks to Takao Indoh and Baoquan He, for your testing on more > different systems. > > The calling of flush functions are added to this version. > > The usage of __iommu_flush_cache function : > 1. Fixes a dump on Takao's system. > 2. Reduces

Re: [PATCH] x86: don't rely on VMWare emulating PAT MSR correctly

2015-01-06 Thread Juergen Gross
x86 maintainers, could you please consider taking my patch? There have been several reports now regarding this issue, all could be fixed using my patch. Juergen On 12/17/2014 05:57 AM, Alok Kataria wrote: Hi, On Tue, 2014-12-16 at 10:58 +0100, Juergen Gross wrote: VMWare seems not to

Re: [Linaro-acpi] [PATCH v5 18/18] Documentation: ACPI for ARM64

2015-01-06 Thread Jon Masters
On 01/06/2015 05:06 PM, Jon Masters wrote: > Hi Arnd, > > Happy New Year! > > On 01/06/2015 02:21 PM, Arnd Bergmann wrote: >> On Tuesday 06 January 2015 11:24:43 Jon Masters wrote: >>> On 01/06/2015 06:20 AM, Catalin Marinas wrote: >>> Now, what's preventing a vendor firmware from providing

Re: [PATCH] firmware class: remove from pending list on load failure

2015-01-06 Thread Ming Lei
On Mon, Jan 5, 2015 at 11:41 PM, Sasha Levin wrote: > If we failed loading the firmware we have to make sure it leaves the pending > list if abort wasn't executed for it. > > Otherwise we'd free an object still on the pending list and corrupt it. > > Signed-off-by: Sasha Levin > --- >

Re: [PATCH V3 0/4] Reducing parameters of alloc_pages* family of functions

2015-01-06 Thread Linus Torvalds
On Mon, Jan 5, 2015 at 8:01 AM, Vlastimil Babka wrote: > > Hm, nope. The !CONFIG_COMPACTION variant of try_to_compact_pages() is static > inline that returns COMPACT_CONTINUE, which is defined in compaction.h. > Another solution is to add a "forward" declaration (not actually followed > later >

  1   2   3   4   5   6   7   8   9   10   >