[PATCH 02/19] perf, sort: Add physid sorting based on mmap2 data

2014-02-28 Thread Don Zickus
In order for the c2c tool to work correctly, it needs to properly sort all the records on uniquely identifiable data addresses. These unique addresses are converted from virtual addresses provided by the hardware into a kernel address using an mmap2 record as the decoder. Once a unique address is

[PATCH 17/19] perf, c2c: Dump rbtree for debugging

2014-02-28 Thread Don Zickus
Sometimes you want to verify the rbtree sorting on a unique id is working correctly. This allows you to dump it. Sample output: Idx Hit Maj Min Ino InoGenPidDaddr Iaddr Data Src (string) cpumode 0 0 0

[PATCH 19/19] perf, c2c: Add shared cachline summary table

2014-02-28 Thread Don Zickus
This adds a quick summary of the hottest cache contention lines based on the input data. This summarizes what the broken table shows you, so you can see at a quick glance which cachelines are interesting. Originally done by Dick Fowles, backported by me. Sample output (width trimmed): =

Re: smp_call_function_single with wait=0 considered harmful

2014-02-28 Thread Prarit Bhargava
On 02/28/2014 07:39 AM, Peter Zijlstra wrote: > On Fri, Feb 28, 2014 at 01:26:24PM +0100, Peter Zijlstra wrote: >> On Wed, Dec 04, 2013 at 08:46:27AM -0800, Christoph Hellwig wrote: >>> kernel/stop_machine.c:stop_two_cpus() >> >> That site should work with .wait=1 just fine, but given the above

Re: [PATCH v2 4/5] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-02-28 Thread Shevchenko, Andriy
On Fri, 2014-02-28 at 17:37 +0100, Maxime Ripard wrote: > The Allwinner A31 has a 16 channels DMA controller that it shares with the > newer A23. Although sharing some similarities with the DMA controller of the > older Allwinner SoCs, it's significantly different, I don't expect it to be > possibl

Re: [PATCH 11/11] kexec: Support for Kexec on panic using new system call

2014-02-28 Thread Borislav Petkov
On Mon, Jan 27, 2014 at 01:57:51PM -0500, Vivek Goyal wrote: > This patch adds support for loading a kexec on panic (kdump) kernel usning > new system call. Right now this primarily works with bzImage loader only. > But changes to ELF loader should be minimal as all the core infrastrcture > is ther

Re: [PATCH 1/4] ACPI: Provide support for ACPI table adding via OS

2014-02-28 Thread Thomas Renninger
Latest changes are compile tested only! If this gets serialized/merged and accepted in acpica in some form with whatever other stuff currently added, please drop me a mail. I can then submit the Linux parts again to the kernel people with the documentation adjusted as well: Documentation/acpi/ini

[PATCH 4/4] ACPI: Add new table signatures that can be overridden/added.

2014-02-28 Thread Thomas Renninger
Signed-off-by: Thomas Renninger CC: h...@zytor.com CC: t...@linutronix.de CC: c...@conrad-kostecki.de CC: linux-kernel@vger.kernel.org CC: x...@kernel.org CC: mi...@redhat.com CC: r...@rjwysocki.net CC: de...@acpica.org --- drivers/acpi/osl.c |4 +++- 1 files changed, 3 insertions(+), 1 delet

[PATCH 3/4] ACPICA: Add BGRT signature to known signatures

2014-02-28 Thread Thomas Renninger
In Linux there even exists a driver already making use of this table: drivers/acpi/bgrt.c:MODULE_DESCRIPTION("BGRT boot graphic support"); Signed-off-by: Thomas Renninger CC: h...@zytor.com CC: t...@linutronix.de CC: c...@conrad-kostecki.de CC: linux-kernel@vger.kernel.org CC: x...@kernel.org CC:

[PATCH 1/4] ACPI: Provide support for ACPI table adding via OS

2014-02-28 Thread Thomas Renninger
This is done the same way as the previous ACPI physical table override mechanism. How to override or add tables via initrd, please look up: Documentation/acpi/initrd_table_override.txt SSDTs can only be overridden, not added. Overriding only happens if the OEM id of the table header matches the o

[PATCH 2/4] ACPICA: Introduce new acpi_os_physical_table_add OS callback

2014-02-28 Thread Thomas Renninger
This one allows OS to add arbitrary ACPI tables. ToDo: It should get checked whether a table with the same signature already exists and if this is the case, adding should not happen. Signed-off-by: Thomas Renninger CC: h...@zytor.com CC: t...@linutronix.de CC: c...@conrad-kostecki.de CC: linux-k

Re: mm: kernel BUG at mm/huge_memory.c:1371!

2014-02-28 Thread Sasha Levin
re ] [ 3323.069669] kernel BUG at mm/huge_memory.c:1371! [ 3323.070961] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 3323.071028] Dumping ftrace buffer: [ 3323.071028](ftrace buffer empty) [ 3323.071028] Modules linked in: [ 3323.071028] CPU: 101 PID: 48284 Comm: trinity-c1

Re: [PATCH v2 2/3] arm64: Add seccomp support

2014-02-28 Thread Will Deacon
On Tue, Feb 25, 2014 at 09:20:24AM +, AKASHI Takahiro wrote: > secure_computing() should always be called first in syscall_trace(), and > if it returns non-zero, we should stop further handling. Then that system > call may eventually fail, be trapped or the process itself be killed > depending

Re: [PATCH v2] xen: add support for MSI message groups

2014-02-28 Thread Boris Ostrovsky
On 02/27/2014 01:45 PM, Boris Ostrovsky wrote: On 02/27/2014 01:15 PM, Roger Pau Monne wrote: Add support for MSI message groups for Xen Dom0 using the MAP_PIRQ_TYPE_MULTI_MSI pirq map type. In order to keep track of which pirq is the first one in the group all pirqs in the MSI group except for

Re: [PATCH] Staging: comedi: add timeouts to while loops in s626.c

2014-02-28 Thread Ian Abbott
On 2014-02-28 07:35, Chase Southwood wrote: Smatch located a handful of while loops testing readl calls in s626.c. Since these while loops depend on readl succeeding, it's safer to make sure they time out eventually. Signed-off-by: Chase Southwood --- Ian and/or Hartley, I'd love your comments

Re: [PATCH v2 2/5] clk: sun6i: Reparent AHB clock on PLL6

2014-02-28 Thread Emilio López
Hi Maxime, El 28/02/14 13:37, Maxime Ripard escribió: In order for the DMA controller to work for SDRAM to devices transfers, the AHB clock should be reparented on the PLL6. Force that parenting in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 18 +++

Re: [PATCH 10/11] kexec: Support for loading ELF x86_64 images

2014-02-28 Thread Vivek Goyal
On Fri, Feb 28, 2014 at 03:58:32PM +0100, Borislav Petkov wrote: > On Mon, Jan 27, 2014 at 01:57:50PM -0500, Vivek Goyal wrote: > > This patch provides support for kexec for loading ELF x86_64 images. I have > > tested it with loading vmlinux and it worked. > > Can you please enlighten me what the

[PATCH] x86, crash: Unify ifdef

2014-02-28 Thread Borislav Petkov
From: Borislav Petkov Merge two back-to-back CONFIG_X86_32 ifdefs into one. Signed-off-by: Borislav Petkov --- arch/x86/kernel/crash.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index a57902efe2d5..507de8066594 100644 --- a/arch/x86/k

Re: smp_call_function_single with wait=0 considered harmful

2014-02-28 Thread Rik van Riel
On 02/28/2014 07:39 AM, Peter Zijlstra wrote: > Subject: stop_machine: Fix^2 race between stop_two_cpus() and stop_cpus() > > We must use smp_call_function_single(.wait=1) for the > irq_cpu_stop_queue_work() to ensure the queueing is actually done under > stop_cpus_lock. Without this we could hav

Re: [PATCH] Drivers:staging:ozwpan Fixed sparse context imbalance warning

2014-02-28 Thread Greg KH
On Fri, Feb 28, 2014 at 08:57:02AM -0800, Surendra Patil wrote: > Sparse warns about - > drivers/staging/ozwpan/ozproto.c:797:6: warning: context imbalance in > 'oz_polling_lock_bh' - wrong count at exit > drivers/staging/ozwpan/ozproto.c:802:6: warning: context imbalance in > 'oz_polling_unlock_

FIQ on xilinx cortex a9 zynq

2014-02-28 Thread Tim Sander
Hi I am currently trying to get the FIQ interrupt working with linux. I want to have the FIQ to have an interrupt which is not masked by linux and gives the lowest irq latencys the hardware can deliver. In the case of the xilinx zynx i have seen that the ICCICR register enables the FIQ via the f

Re: [PATCH v2 3/3] arm64: is_compat_task is defined both in asm/compat.h and linux/compat.h

2014-02-28 Thread Will Deacon
On Tue, Feb 25, 2014 at 09:20:25AM +, AKASHI Takahiro wrote: > kernel/seccomp.c includes linux/compat.h and, indicrectly, asm/compat.h > via asm/syscall.h. Due to the duplicated definitions of is_compat_task, > compiling this file will fail in the case of !CONFIG_COMPAT. > So this patch > 1) re

[PATCH] Drivers:staging:ozwpan Fixed sparse context imbalance warning

2014-02-28 Thread Surendra Patil
Sparse warns about - drivers/staging/ozwpan/ozproto.c:797:6: warning: context imbalance in 'oz_polling_lock_bh' - wrong count at exit drivers/staging/ozwpan/ozproto.c:802:6: warning: context imbalance in 'oz_polling_unlock_bh' - unexpected unlock so added __acquires() and __releases(). Signed-of

Re: [PATCH 09/11] kexec: Provide a function to add a segment at fixed address

2014-02-28 Thread Vivek Goyal
On Thu, Feb 27, 2014 at 10:52:32PM +0100, Borislav Petkov wrote: [..] > > +/* Add a kexec segment at fixed address provided by caller */ > > +int kexec_add_segment(struct kimage *image, char *buffer, unsigned long > > bufsz, > > + unsigned long memsz, unsigned long base) > > +{

Re: [PATCH 3/3] usb: phy: msm: use ASSIGN_*_PM_OPS variants

2014-02-28 Thread Greg Kroah-Hartman
On Fri, Feb 28, 2014 at 09:48:08AM +0100, Ulf Hansson wrote: > On 28 February 2014 00:44, Greg Kroah-Hartman > wrote: > > On Thu, Feb 27, 2014 at 03:41:31PM -0800, David Cohen wrote: > >> On Thu, Feb 27, 2014 at 11:03:24AM -0800, Greg Kroah-Hartman wrote: > >> > On Tue, Feb 25, 2014 at 12:33:36PM

Re: [PATCH v9 3/3] mmc: sdhci-msm: Add platform_execute_tunning implementation

2014-02-28 Thread Kumar Gala
On Feb 28, 2014, at 5:24 AM, Georgi Djakov wrote: > This patch adds implementation for platform specific tuning in order to > support > HS200 bus speed mode on Qualcomm SDHCI controller. > > Signed-off-by: Asutosh Das > Signed-off-by: Venkat Gopalakrishnan > Signed-off-by: Georgi Djakov > -

Re: [PATCH 2/2] timer: Make sure TIMER_FLAG_MASK bits are free in allocated base

2014-02-28 Thread Viresh Kumar
> On 28-Feb-2014, at 4:22 pm, Thomas Gleixner wrote: > >> On Fri, 28 Feb 2014, Viresh Kumar wrote: >> >> Currently we are using two lowest bit of base for internal purpose and so >> they >> both should be zero in the allocated address. The code was doing the right >> thing >> before this pat

[PATCH v2 3/5] clk: sun6i: Protect SDRAM gating bit

2014-02-28 Thread Maxime Ripard
Prevent the SDRAM controller from being gated by force-enabling it in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index a5c5882..bbbc5c0 100

[PATCH v2 2/5] clk: sun6i: Reparent AHB clock on PLL6

2014-02-28 Thread Maxime Ripard
In order for the DMA controller to work for SDRAM to devices transfers, the AHB clock should be reparented on the PLL6. Force that parenting in the clock driver. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-sunxi.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(

Re: [PATCH] ARM: qcom: Enable basic support for Qualcomm platforms in multi_v7_defconfig

2014-02-28 Thread Kevin Hilman
Hi Kumar, Kevin Hilman writes: > Kumar Gala writes: > >> Enable support for the MSM8x60, MSM8960, and MSM8974 SoCs, clocks and >> serial console as part of the standard multi_v7_defconfig. >> >> Signed-off-by: Kumar Gala >> --- >> >> I leave this to the arm-soc guys to apply because of possibl

Re: [PATCH] doc: update SubmittingPatches about the Fixed tag

2014-02-28 Thread Jason Cooper
On Thu, Feb 27, 2014 at 07:37:02PM -0800, Aaron Brown wrote: > From: Jacob Keller > > This patch updates the SubmittingPatches process to include howto about > the new 'Fixed' tag to be used when a patch fixes an issue in a previous > commit (found by git-bisect for example). > > Signed-off-by:

[PATCH v2 0/5] Add support for the Allwinner A31 DMA Controller

2014-02-28 Thread Maxime Ripard
Hi, This patchset adds support for the DMA controller found in the Allwinner A31 and A23 SoCs. This has been tested using the newly introduced SPI driver on an A31 EVK. Support for DMA-driven SPI transfers will be the subject of another patch serie. Thanks, Maxime Changes from v1: - Removed t

[PATCH v2 5/5] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-02-28 Thread Maxime Ripard
Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot

[PATCH 3/3] HID: multitouch: add support of other generic collections in hid-mt

2014-02-28 Thread Benjamin Tissoires
The ANTON Touch Pad is a device which can switch from a multitouch touchpad to a mouse. It thus presents several generic collections which are currently ignored by hid-multitouch. Enable them by not ignoring them in mt_input_mapping. Adding also a suffix for them depending on their application. Re

[PATCH 1/3] HID: multitouch: remove registered devices with default behavior

2014-02-28 Thread Benjamin Tissoires
The default multitouch protocol class in use since the kernel v3.9 is working quite well. Since its inclusion, the only devices we had to tweak were those who really need quirks (GeneralTouch, FocalTech and Wistron, the 3 of them are Win 7 certified ones). The flow of new unhandled devices has stop

[PATCH 0/3] HID: multitouch cleanups and support for fancy devices

2014-02-28 Thread Benjamin Tissoires
Hi guys, Ok, this patch series is not very consistent and could have been split in two... Anyway, here is some work for hid-multitouch: - the first patch is mainly a way for us to reduce the work load regarding hid-mt when device makers ask for an inclusion in the kernel. Also, I have been n

[PATCH 2/3] HID: multitouch: remove pen special handling

2014-02-28 Thread Benjamin Tissoires
Pens have a special handling in hid-mt as hybrid pen/touch devices are quite common now. However, some fancy devices presents also useful collections like mouse or keyboard. The special case for the pen may not be a special case, and treat it as a generic case. Signed-off-by: Benjamin Tissoires -

[PATCH v2 4/5] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-02-28 Thread Maxime Ripard
The Allwinner A31 has a 16 channels DMA controller that it shares with the newer A23. Although sharing some similarities with the DMA controller of the older Allwinner SoCs, it's significantly different, I don't expect it to be possible to share the driver for these two. The A31 Controller is able

[PATCH v2 1/5] clk: sun6i: Protect CPU clock

2014-02-28 Thread Maxime Ripard
Right now, AHB is an indirect child clock of the CPU clock. If that happens to change, since the CPU clock has no other consumers declared in Linux, it would be shut down, which is not really a good idea. Prevent this by forcing it enabled. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk

Re: [PATCH 2/4] ARM: dove: prepare new Dove DT Kconfig variable

2014-02-28 Thread Jason Cooper
On Fri, Feb 28, 2014 at 10:53:10AM +0900, Mark Brown wrote: > On Thu, Feb 27, 2014 at 10:28:03PM +0100, Sebastian Hesselbarth wrote: > > DT-enabled Dove will move over from ARCH_DOVE in mach-dove to MACH_DOVE in > > mach-mvebu. As non-DT ARCH_DOVE will stay to rot for a while, add a new > > DT-only

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

2014-02-28 Thread Vivek Goyal
On Thu, Feb 27, 2014 at 10:36:29PM +0100, Borislav Petkov wrote: Hi Boris, Thanks for taking time to review this large patchset. Please find my comments inline. [..] > > diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile > > index cb648c8..fa9981d 100644 > > --- a/arch/x86/kernel/M

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread Steven Rostedt
On Fri, 28 Feb 2014 08:15:11 -0800 "H. Peter Anvin" wrote: > Well, I was talking about the assumption spelled out in the comment > above copy_from_user_nmi() which pretty much states "cr2 is safe because > cr2 is saved/restored in the NMI wrappers." Yeah, it seems that the name "copy_from_user_n

Re: [PATCH] Staging: comedi: addi-data: remove unnecessary variable initializations in hwdrv_apci035.c

2014-02-28 Thread Ian Abbott
On 2014-02-28 07:30, Chase Southwood wrote: Nearly every variable in hwdrv_apci035.c is initialized to 0 when it is declared, and then set to some other value before ever being used. As such, we can remove all of these initializations. They are accomplishing nothing. Signed-off-by: Chase South

[PATCH v2 2/2] checkpatch: fix spurious vendor compatible warnings

2014-02-28 Thread Florian Vaussard
With a compatible string like compatible = "foo"; checkpatch will currently try to find "foo" in vendor-prefixes.txt, which is wrong since the vendor prefix is empty in this specific case. Skip the vendor test if the compatible is not like compatible = "vendor,something"; Signed-off-by: Flori

[PATCH v2 1/2] checkpatch: check vendor compatible with dashes

2014-02-28 Thread Florian Vaussard
The current vendor compatible check will not match vendors with dashes, like: compatible="asahi-kasei" Reported-by: Joe Perches Signed-off-by: Florian Vaussard --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpat

[PATCH v2 0/2] checkpatch: fixes for vendor compatible check

2014-02-28 Thread Florian Vaussard
Hi, Since v1 [1]: - Add check for vendors with '-', as suggested by Joe Perches Regards, Florian [1] http://thread.gmane.org/gmane.linux.drivers.devicetree/63770 Florian Vaussard (2): checkpatch: check vendor compatible with dashes checkpatch: fix spurious vendor compatible warnings scri

Re: [PATCHv2] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Steven Rostedt
On Fri, 28 Feb 2014 08:11:59 -0800 "H. Peter Anvin" wrote: > If so, do we need to hoist the reading of %cr2 all the way into assembly > or something else? Function tracing code should not fault. Peter and Jiri were discussing on IRC to make sure that perf could not enable userspace stack tracing

Re: [PATCH v6 0/2] Introduce AEMIF driver for Davinci/Keystone archs

2014-02-28 Thread Santosh Shilimkar
On Friday 28 February 2014 11:06 AM, Greg KH wrote: > On Fri, Feb 28, 2014 at 10:43:36AM -0500, Santosh Shilimkar wrote: >> Greg, >> >> On Monday 24 February 2014 12:26 PM, Ivan Khoronzhuk wrote: >>> These patches introduce Async External Memory Interface (EMIF16/AEMIF) >>> controller driver for Da

[GIT PULL] KVM changes for 3.14-rc5

2014-02-28 Thread Paolo Bonzini
Linus, The following changes since commit 6d0abeca3242a88cab8232e4acd7e2bf088f3bc2: Linux 3.14-rc3 (2014-02-16 13:30:25 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to 1b385cbdd74aa803e966e01e5fe4949

Re: [PATCH] usb: gadget: atmel_usba: Fix crashed during stopping when DEBUG is enabled

2014-02-28 Thread Gregory CLEMENT
On 28/02/2014 16:50, Alexandre Belloni wrote: > Hi Gregory, > > On 28/02/2014 at 15:34:01 +0100, Gregory CLEMENT wrote : >> The debug trace in the atmel_usba_stop function made the assumption >> that the driver pointer passed in parameter was not NULL. Since the >> commit "usb: gadget: udc-core: f

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread H. Peter Anvin
On 02/28/2014 07:40 AM, Peter Zijlstra wrote: > On Fri, Feb 28, 2014 at 07:13:06AM -0800, H. Peter Anvin wrote: >> If I'm reading this right we end up going from the page fault >> tracepoint to copy_from_user_nmi() without going through NMI, and the >> cr2 corruption is obvious. I guess the assump

Re: [PATCH v6 2/2] arm64: audit: Add audit hook in ptrace/syscall_trace

2014-02-28 Thread Will Deacon
On Fri, Feb 28, 2014 at 05:17:15AM +, AKASHI Takahiro wrote: > This patch adds auditing functions on entry to or exit from > every system call invocation. > > Acked-by: Richard Guy Briggs > Signed-off-by: AKASHI Takahiro > --- > arch/arm64/kernel/ptrace.c | 54 > +

Re: [PATCHv2] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Steven Rostedt
Vince, you probably missed my other emails, as I sent from mutt, and not my normal email client. I see that mutt uses my own box to send, and I got these error messages (need to put back sending via my ISP instead of my local mail server): >>> vincent.wea...@maine.edu (after MAIL FROM): 550 5.5.4

Re: [PATCHv2] x86 trace: Fix page fault tracing bug

2014-02-28 Thread H. Peter Anvin
On 02/28/2014 08:05 AM, Jiri Olsa wrote: > On Fri, Feb 28, 2014 at 04:47:08PM +0100, Peter Zijlstra wrote: >> On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote: >> >> While I like the idea of just pushing up the CR2 read; the below does >> the read too late still, exception_enter() also has

Re: [GIT PULL timers] Timer-wheel bandaids^Wcommits for 3.15

2014-02-28 Thread Paul E. McKenney
On Fri, Feb 28, 2014 at 06:06:38AM +0100, Mike Galbraith wrote: > On Thu, 2014-02-27 at 17:27 -0800, Paul E. McKenney wrote: > > Hello, Thomas and Ingo, > > > > This pull request contains latency bandaids^Woptimizations to the > > timer-wheel code that are useful in conjunction with NO_HZ_FULL Kc

Re: [PATCH] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Steven Rostedt
On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote: > The trace_do_page_fault function trigger tracepoint > and then handles the actual page fault. > > This could lead to error if the tracepoint caused page > fault. The original cr2 value gets lost and the original > page fault handler kill

[PATCHv2] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Jiri Olsa
On Fri, Feb 28, 2014 at 04:47:08PM +0100, Peter Zijlstra wrote: > On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote: > > While I like the idea of just pushing up the CR2 read; the below does > the read too late still, exception_enter() also has a tracepoint in. please check v2, thanks ji

Re: [PATCH v6 0/2] Introduce AEMIF driver for Davinci/Keystone archs

2014-02-28 Thread Greg KH
On Fri, Feb 28, 2014 at 10:43:36AM -0500, Santosh Shilimkar wrote: > Greg, > > On Monday 24 February 2014 12:26 PM, Ivan Khoronzhuk wrote: > > These patches introduce Async External Memory Interface (EMIF16/AEMIF) > > controller driver for Davinci/Keystone archs. > > > > For more informations see

Re: [PATCH] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Steven Rostedt
Vince, can you test this patch instead. Seems that the bug you found was found by others. You can remove all patches again, and modify this patch such that the read of cr2 is before the exception_enter() call (in both locations) On Fri, Feb 28, 2014 at 04:47:15PM +0100, Jiri Olsa wrote: > On Fri,

Re: 3.12-stable kernel tree being taken over by Jiri Slaby

2014-02-28 Thread Shuah Khan
On 02/26/2014 04:19 PM, Greg Kroah-Hartman wrote: As I hinted at in my kernel summit talk about the stable kernel tree, we have a sucker^Wvolunteer who has stepped up to take over the longterm maintenance of the 3.12 stable kernel tree. Jiri Slaby will be doing this work, for how ever long he wa

RE: [RFC V1] drivers/base/regmap: Implementation for regmap_multi_reg_write

2014-02-28 Thread Opensource [Anthony Olech]
;t apply with the recent patches > that Charles did to provide a bypassed version of the API, it needs to be > rebased. I see that next-20140228 has Charles' patch applied, my next attempt will be rebased against the latest linux-next. > > a) should an async operation be allowed? ea

Re: [PATCH v3 1/2] arm64: make a single hook to syscall_trace() for all syscall features

2014-02-28 Thread Will Deacon
On Fri, Feb 28, 2014 at 05:14:24AM +, AKASHI Takahiro wrote: > Currently syscall_trace() is called only for ptrace. > With additional TIF_xx flags defined, it is now called in all the cases > of audit, ftrace and seccomp in addition to ptrace. > > Acked-by: Richard Guy Briggs > Signed-off-by:

Re: [PATCH] usb: gadget: atmel_usba: Fix crashed during stopping when DEBUG is enabled

2014-02-28 Thread Alexandre Belloni
Hi Gregory, On 28/02/2014 at 15:34:01 +0100, Gregory CLEMENT wrote : > The debug trace in the atmel_usba_stop function made the assumption > that the driver pointer passed in parameter was not NULL. Since the > commit "usb: gadget: udc-core: fix a regression during gadget driver > unbinding", it w

Re: [PATCH] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Jiri Olsa
On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote: > The trace_do_page_fault function trigger tracepoint > and then handles the actual page fault. > > This could lead to error if the tracepoint caused page > fault. The original cr2 value gets lost and the original > page fault handler kill

Re: [PATCH] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Peter Zijlstra
On Fri, Feb 28, 2014 at 04:33:40PM +0100, Jiri Olsa wrote: While I like the idea of just pushing up the CR2 read; the below does the read too late still, exception_enter() also has a tracepoint in. > @@ -1267,9 +1269,18 @@ dotraplinkage void __kprobes > trace_do_page_fault(struct pt_regs *regs,

Re: [PATCH v6 0/2] Introduce AEMIF driver for Davinci/Keystone archs

2014-02-28 Thread Santosh Shilimkar
Greg, On Monday 24 February 2014 12:26 PM, Ivan Khoronzhuk wrote: > These patches introduce Async External Memory Interface (EMIF16/AEMIF) > controller driver for Davinci/Keystone archs. > > For more informations see documentation: > Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf

Re: [PATCH 1/2] asm-generic: rwsem: ensure sem->cnt is only accessed via atomic_long_*

2014-02-28 Thread Will Deacon
On Fri, Feb 28, 2014 at 12:50:06PM +, Peter Hurley wrote: > On 02/28/2014 07:13 AM, Will Deacon wrote: > > diff --git a/include/asm-generic/rwsem.h b/include/asm-generic/rwsem.h > > index 603a0a11e592..2b6401f9e428 100644 > > --- a/include/asm-generic/rwsem.h > > +++ b/include/asm-generic/rwsem

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread Peter Zijlstra
On Fri, Feb 28, 2014 at 07:13:06AM -0800, H. Peter Anvin wrote: > If I'm reading this right we end up going from the page fault > tracepoint to copy_from_user_nmi() without going through NMI, and the > cr2 corruption is obvious. I guess the assumption that only the NMI > path needed to save cr2 is

[PATCH] x86 trace: Fix page fault tracing bug

2014-02-28 Thread Jiri Olsa
The trace_do_page_fault function trigger tracepoint and then handles the actual page fault. This could lead to error if the tracepoint caused page fault. The original cr2 value gets lost and the original page fault handler kills current process with SIGSEGV. This happens if you record page faults

Re: [PATCH V3 1/5] idle/cpuidle: Split cpuidle_idle_call main function into smaller functions

2014-02-28 Thread Daniel Lezcano
On 02/28/2014 01:56 PM, Peter Zijlstra wrote: Daniel; can you rebase these patches on top of tip/master. Yes, sure. No problem. Ingo is going to create tip/sched/idle := tip/sched/core + tip/timer/core and then we can stick these patches in there. Perfect ! Thanks -- Daniel --

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread Steven Rostedt
On Fri, 28 Feb 2014 10:20:00 -0500 Steven Rostedt wrote: > Below is a patch that should fix this. Please remove all other patches > and try this out. Updated patch, as Peter Zijlstra on IRC asked me if the exception_enter() can be traced. And looking at it, it sure can be. -- Steve diff --git

Re: [PATCH v2 2/3] arm64: Extend the PCI I/O space to 16MB

2014-02-28 Thread Catalin Marinas
On Thu, Feb 27, 2014 at 01:09:58PM +, Liviu Dudau wrote: > From: Catalin Marinas > > The patch moves the PCI I/O space (currently at 64K) before the > earlyprintk mapping and extends it to 16MB. > > Signed-off-by: Catalin Marinas I'll push this into mainline for 3.15, no need to carry it.

Re: [GIT PULL] qcom DT changes for v3.15

2014-02-28 Thread Arnd Bergmann
On Thursday 20 February 2014, Kumar Gala wrote: > The following changes since commit cf1e8f0cd665e2a9966d2bee4e11ecc0938ff166: > >ARM: qcom: Rename various msm prefixed functions to qcom (2014-02-06 > 16:20:41 -0600) > > are available in the git repository at: > >git://git.kernel.org/pu

Re: [PATCH v2] zram: support REQ_DISCARD

2014-02-28 Thread Joonsoo Kim
2014-02-26 17:07 GMT+09:00 Minchan Kim : > Hi Joonsoo, > > On Wed, Feb 26, 2014 at 02:23:15PM +0900, Joonsoo Kim wrote: >> zram is ram based block device and can be used by backend of filesystem. >> When filesystem deletes a file, it normally doesn't do anything on data >> block of that file. It ju

Re: [PATCH v2] zram: support REQ_DISCARD

2014-02-28 Thread Joonsoo Kim
2014-02-26 23:06 GMT+09:00 Jerome Marchand : > On 02/26/2014 02:57 PM, Sergey Senozhatsky wrote: >> On (02/26/14 14:44), Jerome Marchand wrote: >>> On 02/26/2014 02:16 PM, Sergey Senozhatsky wrote: Hello, On (02/26/14 14:23), Joonsoo Kim wrote: > zram is ram based block device an

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread Steven Rostedt
On Fri, 28 Feb 2014 10:07:29 -0500 (EST) Vince Weaver wrote: > On Fri, 28 Feb 2014, Steven Rostedt wrote: > 199.900696: function: __module_address > ... > 199.900705: function: __kernel_text_address > 199.900809: kernel_stack: > => perf

Re: [PATCH 2/8] integrity: fix checkpatch errors

2014-02-28 Thread Dmitry Kasatkin
This patch is on the top of Joe Perches patch. - Dmitry On 28/02/14 16:59, Dmitry Kasatkin wrote: > Unfixed checkpatch errors make it difficult to see new errors.. > This patch fix them. > Some lines with over 80 chars remained unchanged to improve > code readability. > > Signed-off-by: Dmitry K

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread H. Peter Anvin
If I'm reading this right we end up going from the page fault tracepoint to copy_from_user_nmi() without going through NMI, and the cr2 corruption is obvious. I guess the assumption that only the NMI path needed to save cr2 is flawed? On February 28, 2014 7:07:29 AM PST, Vince Weaver wrote:

Feb. Fedora Kernel Patch Report

2014-02-28 Thread Josh Boyer
It's been a while since I sent one of these. Mostly that's due to the overlap between which upstream stable version we're using in Fedora across the releases, and how fast those have been happening upstream. We're settled on 3.13.y now, and with 3.14-rc4 out there things have calmed down enough to

Re: [PATCH V2 1/2] mmc: omap_hsmmc: Add support for quirky omap3 hsmmc controller

2014-02-28 Thread Nishanth Menon
On 02/14/2014 10:31 AM, Tony Lindgren wrote: > * Nishanth Menon [140213 21:48]: >> When device is booted using devicetree, platforms impacted by Erratum >> 2.1.1.128 is not detected easily in the mmc driver. This erratum >> indicates that the module cannot do multi-block transfers. Platforms >> su

[RFC 1/2] ima: use ahash API for file hash calculation

2014-02-28 Thread Dmitry Kasatkin
Async hash API allows to use HW acceleration for hash calculation. It may give significant performance gain or/and reduce power consumption, which might be very beneficial for battery powered devices. This patch introduces use of ahash API if 'ima_use_ahash' parameter is specified on the command l

[RFC 2/2] ima: provide double buffering for hash calculation

2014-02-28 Thread Dmitry Kasatkin
Asynchronous hash API allows initiate hash calculation and perform other tasks while hash is calculated. This patch introduces using of double buffering for simultenous hashing and reading of the next chunk of data from storage. Signed-off-by: Dmitry Kasatkin --- security/integrity/ima/ima_cryp

[RFC 0/2] integrity: asynchronous hash support

2014-02-28 Thread Dmitry Kasatkin
HW accelerated hash calculation is available only via ahash API. First patch introduces usage of ahash API for file hash calculation. It allows to offload hash calculation to HW accelerator and release CPU time to do other usefull job. It might speedup hash calculation but also reduce power consum

Re: [PATCH v2 1/4] x86: Use the default ABI for the 32-bit vDSO

2014-02-28 Thread H. Peter Anvin
How many internal function calls are there? It seems we should try to avoid those as much as possible by suitable inlining. On February 27, 2014 11:28:25 PM PST, Stefani Seibold wrote: >Am Donnerstag, den 27.02.2014, 16:18 -0800 schrieb Andy Lutomirski: >> There's no reason for the vDSO to use

Re: [PATCH 1/3] mfd: twl6040: Select i2c fast mode as default with regmap patch

2014-02-28 Thread Nishanth Menon
On 02/28/2014 08:26 AM, Peter Ujfalusi wrote: > On 02/28/2014 03:30 PM, Nishanth Menon wrote: >> TWL6030 can do 3.3MHz by default and there are no speed registers to >> configure. > > According to the datasheet the speed of twl6030 is limited to 2.4MHz. I have > not seen registers or pins to selec

Re: perf_fuzzer compiled for x32 causes reboot

2014-02-28 Thread Vince Weaver
On Fri, 28 Feb 2014, Steven Rostedt wrote: > Interesting. Are you doing a perf function trace? > > And just in case, can you add this patch and make sure the copy is > called by NMI. 199.900682: function: trace_do_page_fault 199.900683: page_fault_user: address=__per_cpu_end ip=

[PATCH 4/8] evm: EVM does not use MD5

2014-02-28 Thread Dmitry Kasatkin
Signed-off-by: Dmitry Kasatkin --- security/integrity/evm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/security/integrity/evm/Kconfig b/security/integrity/evm/Kconfig index fea9749..5aa9103 100644 --- a/security/integrity/evm/Kconfig +++ b/security/integrity/evm/Kconfig @@ -2,7 +2,6

[PATCH 1/8] ima: fix erronous removal of security.ima xattr

2014-02-28 Thread Dmitry Kasatkin
ima_inode_post_setattr() calls ima_must_appraise() to check if file needs to be appraised. If it is not then it removes security.ima xattr. With original policy matching code it might happen that even file needs to be appraised with FILE_CHECK hook, it might not be for POST_SETATTR hook. 'security.

[PATCH 2/8] integrity: fix checkpatch errors

2014-02-28 Thread Dmitry Kasatkin
Unfixed checkpatch errors make it difficult to see new errors.. This patch fix them. Some lines with over 80 chars remained unchanged to improve code readability. Signed-off-by: Dmitry Kasatkin --- security/integrity/evm/evm.h | 28 +++--- security/integrity/evm/evm_crypto.c |

[PATCH 8/8] evm: introduce EVM hmac xattr list

2014-02-28 Thread Dmitry Kasatkin
EVM currently uses source hard coded list of xattrs which needs to be included into the HMAC calculation. This is very unflexible. Adding new attributes requires modifcation of the source code and prevents building the kernel which works with previously labeled filesystems. Early versions of Smack

[PATCH 0/8] integrity: fixes and new features

2014-02-28 Thread Dmitry Kasatkin
Hi, This patchset contains bug fixes, cleanups and new features for integrity subsytem. - Dmitry Dmitry Kasatkin (8): ima: fix erronous removal of security.ima xattr integrity: fix checkpatch errors ima: return d_name.name if d_path fails evm: EVM does not use MD5 ima: skip memory allo

[PATCH 7/8] evm: introduce EVM hmac attribute list

2014-02-28 Thread Dmitry Kasatkin
This patch replaces using of hmac version configuration parameter with attribute list. It allows to build kernels which works with previously labeled filesystems. Currently supported attribute is 'fsuuid' which is equivalent of former version 2. Signed-off-by: Dmitry Kasatkin --- security/integ

[PATCH 5/8] ima: skip memory allocation for empty files

2014-02-28 Thread Dmitry Kasatkin
Memory allocation is unnecessary for empty files. This patch finalize the hash without memory allocation. Signed-off-by: Dmitry Kasatkin --- security/integrity/ima/ima_crypto.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/security/integrity/ima/ima_cr

[PATCH 3/8] ima: return d_name.name if d_path fails

2014-02-28 Thread Dmitry Kasatkin
Signed-off-by: Dmitry Kasatkin --- security/integrity/ima/ima_api.c | 2 +- security/integrity/ima/ima_main.c | 7 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c index c6b4a73..ba9e4d7 100644 --- a/securi

[PATCH 6/8] evm: enable key retention service automatically

2014-02-28 Thread Dmitry Kasatkin
If keys are not enabled, EVM is not visible in the configuration menu. It may be difficult to figure out what to do unless you really know. Other subsystems as NFS, CIFS select keys automatically. This patch does the same. Signed-off-by: Dmitry Kasatkin --- security/integrity/evm/Kconfig | 5 +

Is it possible to get deterministic system with 3.10.xx and Full-RT-preemption?

2014-02-28 Thread Andreas Starzer
Is there a possible configuration/implementation at Kernel 3.10.xx with PREEMPT_RT_FULL=y (or newer) to get an explicit thread for workqueues which do exclusive work? I want to increase the priority of my drivers workqueue (and only this) to be still functional under heavy system load like network

Re: [PATCH 10/11] kexec: Support for loading ELF x86_64 images

2014-02-28 Thread Borislav Petkov
On Mon, Jan 27, 2014 at 01:57:50PM -0500, Vivek Goyal wrote: > This patch provides support for kexec for loading ELF x86_64 images. I have > tested it with loading vmlinux and it worked. Can you please enlighten me what the use case for ELF kernel images is? bzImage I understand but what produces

Re: [PATCH 0/2 v2] x86: kvm: global clock updates

2014-02-28 Thread Marcelo Tosatti
On Fri, Feb 28, 2014 at 12:52:53PM +0100, Andrew Jones wrote: > This patch series addresses two issues with global clock updates. > The first fixes a bug found on hosts that have a tsc marked as > unstable. As global clock updates get triggered on every vcpu load > in these cases, guests with a lar

Re: [alsa-devel] [PATCHv2 1/3] ASoC: codec: Simplify ASoC probe code.

2014-02-28 Thread Lars-Peter Clausen
On 02/28/2014 10:04 AM, Xiubo Li wrote: Signed-off-by: Xiubo Li --- @Mark, @Lars, @All, I have checked for each driver about the following issue from Lars: "Just removing the set_cache_io() call will not work for all drivers. There are some MFD child devices which use regmap from the parent d

Re: [PATCH] Doc: USB: gadget: atmel_usba correct atmel,vbus-gpio meaning

2014-02-28 Thread Nicolas Ferre
On 27/02/2014 16:45, Alexandre Belloni : > atmel,at91sam9rl-udc is a USB gadget, it has now means to control vbus. s/now/no/ > atmel,vbus-gpio is in fact used to detect the presence of vbus. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > Documentation/devicetree/bindin

<    1   2   3   4   5   6   7   >