Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Andrew Cooper
On 28/07/15 15:05, Boris Ostrovsky wrote: > On 07/28/2015 06:29 AM, Andrew Cooper wrote: >> After forward-porting my virtio patches, I got this thing to run on Xen. After several tries, I got: [ 53.985707] [ cut here ] [ 53.986314] kernel BUG at

[PATCH 1/2] mm: add utility for early copy from unmapped ram

2015-07-28 Thread Mark Salter
In some early boot circumstances, it may be necessary to copy from RAM outside the kernel linear mapping to mapped RAM. The need to relocate an initrd is one example in the x86 code. This patch creates a helper function based on current x86 code. Signed-off-by: Mark Salter --- include/asm-generi

[PATCH 0/2] arm64: support initrd outside of mapped RAM

2015-07-28 Thread Mark Salter
When booting an arm64 kernel w/initrd using UEFI/grub, use of mem= will likely cut off part or all of the initrd. This leaves it outside the kernel linear map which leads to failure when unpacking. The x86 code has a similar need to relocate an initrd outside of mapped memory in some cases. The cu

[PATCH v3] DocBook documentation for IIO

2015-07-28 Thread Daniel Baluta
In our effort to support vendors writing drivers for their own sensors we introduce IIO documentation in DocBook format. It documents Industrial I/O core including IIO devices, buffers, triggers and triggered buffers. It also offers a short list of online resources for the IIO subsystem. This is

Re: [PATCH] Smack: replace capable() with ns_capable()

2015-07-28 Thread Casey Schaufler
On 7/26/2015 6:27 PM, Sungbae Yoo wrote: > So, Do you agree to allow the process to change its own labels? No. This requires CAP_MAC_ADMIN. Smack is mandatory access control. Being in a namespace (as they are implemented today) is not sufficient. > > Now, init process(eg. systemd) can't be runnin

Re: [PATCH] perf, tools, stat: Fix perf stat -T

2015-07-28 Thread Jiri Olsa
On Tue, Jul 28, 2015 at 11:32:57AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 28, 2015 at 04:30:18PM +0200, Jiri Olsa escreveu: > > On Tue, Jul 28, 2015 at 11:21:32AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Jul 28, 2015 at 04:10:06PM +0200, Jiri Olsa escreveu: > > > > On Mon,

Re: [PATCH 1/2] mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID

2015-07-28 Thread Michal Suchanek
On 28 July 2015 at 16:33, Marek Vasut wrote: > On Tuesday, July 28, 2015 at 11:07:57 AM, Michal Suchanek wrote: >> This 1.8V SPI NOR flash is found on ARM Chromebook XE303C and reads >> something like 25LQ32VIG in the middle. >> >> Signed-off-by: Michal Suchanek >> --- >> drivers/mtd/spi-nor/spi

Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-28 Thread David Woodhouse
On Tue, 2015-07-28 at 11:41 +0100, Robin Murphy wrote: > On 28/07/15 11:03, Joerg Roedel wrote: > > On Mon, Jul 27, 2015 at 04:57:32PM -0700, Ashutosh Dixit wrote: > > > From: Harish Chegondi > > > > > > This patch converts iova.c into a library, moving it from > > > drivers/iommu/ to lib/, and e

Re: X-Gene: Unhandled fault: synchronous external abort in pci_generic_config_read32

2015-07-28 Thread Dall, Elizabeth J
On 07/24/2015 04:43 PM, Bjorn Helgaas wrote: > I regularly see faults like this on an APM X-Gene: > > U-Boot 2013.04-mustang_sw_1.14.14 (Dec 16 2014 - 15:59:33) > CPU0: APM ARM 64-bit Potenza Rev B0 2400MHz PCP 2400MHz >32 KB ICACHE, 32 KB DCACHE >SOC 2000MHz IOBAXI 400MHz AXI

Re: [PATCH 1/2] mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID

2015-07-28 Thread Marek Vasut
On Tuesday, July 28, 2015 at 04:36:29 PM, Michal Suchanek wrote: > On 28 July 2015 at 16:33, Marek Vasut wrote: > > On Tuesday, July 28, 2015 at 11:07:57 AM, Michal Suchanek wrote: > >> This 1.8V SPI NOR flash is found on ARM Chromebook XE303C and reads > >> something like 25LQ32VIG in the middle.

Re: [PATCH v7 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources

2015-07-28 Thread Shawn Guo
On Tue, Jul 28, 2015 at 02:27:42PM +, Shenwei Wang wrote: > > > +static int gpcv2_wakeup_source_save(void) { > > > + struct imx_gpcv2_irq *cd; > > > > We generally name variables in an abbrev of the types to make them > > intuitive. I > > tried hard to map "cd" to "imx_gpcv2_irq" and failed.

Re: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs

2015-07-28 Thread Lee Jones
On Tue, 28 Jul 2015, Rob Herring wrote: > On Mon, Jul 27, 2015 at 10:20 AM, Lee Jones wrote: > > These OPPs are used in ST's CPUFreq implementation. > > > > Signed-off-by: Lee Jones > > --- > > > > Changelog: > > - None, new patch > > > > Documentation/devicetree/bindings/power/opp-st.txt | 76

[RFC PATCH 10/14] ring_buffer: Fix more races when terminating the producer in the benchmark

2015-07-28 Thread Petr Mladek
The commit b44754d8262d3aab8 ("ring_buffer: Allow to exit the ring buffer benchmark immediately") added a hack into ring_buffer_producer() that set @kill_test when kthread_should_stop() returned true. It improved the situation a lot. It stopped the kthread in most cases because the producer spent m

[RFC PATCH 08/14] rcu: Convert RCU gp kthreads into kthread worker API

2015-07-28 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[RFC PATCH 14/14] kthread_worker: Add set_kthread_worker_scheduler*()

2015-07-28 Thread Petr Mladek
The kthread worker API will be used for kthreads that need to modify the scheduling policy. This patch adds a function that allows to make it easily, safe way, and hides implementation details. It might even help to get rid of an init work. It uses @sched_priority as a parameter instead of struct

[RFC PATCH 13/14] kthread_worker: Add set_kthread_worker_user_nice()

2015-07-28 Thread Petr Mladek
kthread worker API will be used for kthreads that need to modify the scheduling priority. This patch adds a function that allows to make it easily, safe way, and hides implementation details. It might even help to get rid of an init work. Signed-off-by: Petr Mladek --- include/linux/kthread.h

[RFC PATCH 09/14] ring_buffer: Initialize completions statically in the benchmark

2015-07-28 Thread Petr Mladek
It looks strange to initialize the completions repeatedly. This patch uses static initialization. It simplifies the code and even helps to get rid of two memory barriers. Signed-off-by: Petr Mladek --- kernel/trace/ring_buffer_benchmark.c | 12 ++-- 1 file changed, 2 insertions(+), 10 d

[RFC PATCH 12/14] kthread_worker: Better support freezable kthread workers

2015-07-28 Thread Petr Mladek
This patch allows to make kthread worker freezable via a new @flags parameter. It will allow to avoid an init work in some kthreads. It currently does not affect the function of kthread_worker_fn() but it might help to do some optimization or fixes eventually. I currently do not know about any ot

[RFC PATCH 02/14] kthread: Add create_kthread_worker*()

2015-07-28 Thread Petr Mladek
Kthread workers are currently created using the classic kthread API, namely kthread_run(). kthread_worker_fn() is passed as the @threadfn parameter. This patch defines create_kthread_worker_on_node() and create_kthread_worker() functions that hide implementation details. It enforces using kthread

[RFC PATCH 05/14] kthread: Add wakeup_and_destroy_kthread_worker()

2015-07-28 Thread Petr Mladek
Most kthreads are sleeping lots of time. They do some job either in regular intervals or when there is an event. Many of them combine the two approaches. The job is either a "single" operation, e.g. check and make a huge page. Or the kthread is serving several requests, e.g. handling several NFS c

[PATCH 0/4] clk: imx7d: switch to clk api with CLK_OPS_PARENT_ON enabled

2015-07-28 Thread Dong Aisheng
After clk core supports mx7d type clocks, we don't have to enable all clock by default anymore, this patch series remove the enable all clocks code and only enable set of minimum required clocks instead. This patch series depends on: [PATCH V3 0/5] clk: support clocks which requires parent clock o

[RFC PATCH 06/14] kthread: Add kthread_worker_created()

2015-07-28 Thread Petr Mladek
I would like to make cleaner kthread worker API and hide the definition of struct kthread_worker. It will prevent any custom hacks and make the API more secure. This patch provides an API to check if the worker has been created and hides the implementation details. Signed-off-by: Petr Mladek ---

[RFC PATCH 07/14] mm/huge_page: Convert khugepaged() into kthread worker API

2015-07-28 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[RFC PATCH 01/14] kthread: Allow to call __kthread_create_on_node() with va_list args

2015-07-28 Thread Petr Mladek
kthread_create_on_node() implements a bunch of logic to create the kthread. It is already called by kthread_create_on_cpu(). We are going to add a new API that will allow to standardize kthreads and define safe points for termination, freezing, parking, and even signal handling. It will want to ca

[PATCH 2/4] clk: imx: add clk api for supporting clk_OPS_PARENT_ON clocks

2015-07-28 Thread Dong Aisheng
Some IMX SoC like i.MX7D requires using clk_OPS_PARENT_ON flags, adding the corresponding clock APIs variants for easy use. Signed-off-by: Dong Aisheng --- drivers/clk/imx/clk.h | 32 1 file changed, 32 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/

Re: [PATCH v2 3/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation

2015-07-28 Thread Pavel Machek
On Sun 2015-06-21 13:20:34, Pali Rohár wrote: > This patch adds dm message commands and option strings to optionally wipe key > from dm-crypt device before entering suspend or hibernate state. > > Before key is wiped dm device must be suspended. To prevent race conditions > with > I/O and userspa

[PATCH 4/4] clk: imx7d: only enable minimum required clocks

2015-07-28 Thread Dong Aisheng
Formerly clk core does not support imx7d clock type well that all its clock operations requires the parent clock on. Therefore we enabled all clocks by default in clock driver initialization for other module clocks operate well. After patch 'clk: imx7d: using api with flag CLK_OPS_PARENT_ON', clk

[PATCH 3/4] clk: imx7d: using api with flag CLK_OPS_PARENT_ON

2015-07-28 Thread Dong Aisheng
i.MX7D requires all clocks operations including enable/disable, rate change and re-parent with its parent clock on. Changing to the correct APIs to tell clk core such requirement. Signed-off-by: Dong Aisheng --- drivers/clk/imx/clk-imx7d.c | 712 ++-- 1 fi

Re: [linux-sunxi] [RFC] ARM: dts: sunxi: Add regulators and board-specific operating points for LeMaker BananaPi

2015-07-28 Thread Timo Sigurdsson
Hi, Maxime Ripard schrieb am 28.07.2015 14:49: > I don't feel like holding patches that were posted before you did > because you did them some time ago and never submitted them is > reasonnable and / or encouraging for new submitters of patches. > > I'd really like to get more sunxi-people contri

Re: [PATCH v2] DocBook: Add initial documentation for IIO

2015-07-28 Thread Daniel Baluta
>> + converters (DACs), that functionality is also supported. > > > I wouldn't necessarily treat DACs and ADCs differently here. Maybe something > like: > > The main purpose of the Industrial I/O subsystem (IIO) is to provide > support for devices that in some sense perform either analog

[PATCH 1/4] clk: imx: move imx_clk_gate_x into one place

2015-07-28 Thread Dong Aisheng
move imx_clk_gate_x api into one place for better code maintenance. Signed-off-by: Dong Aisheng --- drivers/clk/imx/clk.h | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 1049b0c..cda8756 1006

[PATCH V3 5/5] clk: core: add CLK_OPS_PARENT_ON flags to support clocks require parent on

2015-07-28 Thread Dong Aisheng
On Freescale i.MX7D platform, all clocks operations, including enable/disable, rate change and re-parent, requires its parent clock on. Current clock core can not support it well. This patch adding flag CLK_OPS_PARENT_ON to handle this special case in clock core that enable its parent clock firstly

[RFC PATCH 04/14] kthread: Add destroy_kthread_worker()

2015-07-28 Thread Petr Mladek
The current kthread worker users call flush() and stop() explicitly. The new function will make it easier and will do it better. Note that flush() does not guarantee that the queue is empty. drain() is more safe. It returns when the queue is empty. Also is causes that queue() ignores unexpected wo

[RFC PATCH 11/14] ring_buffer: Use kthread worker API for the producer kthread in the benchmark

2015-07-28 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a

[PATCH v8 20/21] x86/asm/efi: Fix frame pointer usage in efi_call()

2015-07-28 Thread Josh Poimboeuf
efi_call() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/platform/efi/efi_stub_64.S | 3 +++ 1 file changed, 3 insertion

RE: [PATCH v7 1/2] irqchip: imx-gpcv2: IMX GPCv2 driver for wakeup sources

2015-07-28 Thread Shenwei Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2015年7月28日 9:39 > To: Wang Shenwei-B38339 > Cc: shawn@linaro.org; t...@linutronix.de; ja...@lakedaemon.net; Huang > Yongcai-B20788; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org > Subject:

[RFC PATCH 00/14] kthread: Use kthread worker API more widely

2015-07-28 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. Sometimes, it is hard to say if they are done correctly. They are also harder to maintain if there is a generic problem found in the area. I have proposed a so-called kt

[PATCH v8 12/21] x86/xen: Add xen_cpuid() and xen_setup_gdt() to stackvalidate whitelists

2015-07-28 Thread Josh Poimboeuf
stackvalidate reports the following false positive warnings: stackvalidate: arch/x86/xen/enlighten.o: xen_cpuid()+0x41: can't find jump dest instruction at .text+0x108 stackvalidate: arch/x86/xen/enlighten.o: xen_setup_gdt.constprop.23()+0x2e: kernel entry/exit from callable instruction The

[RFC PATCH 03/14] kthread: Add drain_kthread_worker()

2015-07-28 Thread Petr Mladek
flush_kthread_worker() returns when the currently queued works are proceed. But some other works might have been queued in the meantime. This patch adds drain_kthread_work() that is inspired by drain_workqueue(). It returns when the queue is completely empty. Also it affects the behavior of queue_

[PATCH v8 16/21] x86/asm/crypto: Fix frame pointer usage in clmul_ghash_mul/update()

2015-07-28 Thread Josh Poimboeuf
clmul_ghash_mul() and clmul_ghash_update() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/crypto/ghash-clmulni-intel_asm.S

[PATCH v8 21/21] x86/asm/power: Fix frame pointer usage in hibernate_asm_64.S

2015-07-28 Thread Josh Poimboeuf
swsusp_arch_suspend() and restore_registers() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create a stack frame for them when CONFIG_FRAME_POINTER is en

Re: [PATCH v2 3/3] dm-crypt: Adds support for wiping key when doing suspend/hibernation

2015-07-28 Thread Pali Rohár
On Tuesday 28 July 2015 16:44:19 Pavel Machek wrote: > On Sun 2015-06-21 13:20:34, Pali Rohár wrote: > > This patch adds dm message commands and option strings to optionally wipe > > key > > from dm-crypt device before entering suspend or hibernate state. > > > > Before key is wiped dm device mus

[PATCH v8 18/21] x86/asm/acpi: Fix frame pointer usage in do_suspend_lowlevel()

2015-07-28 Thread Josh Poimboeuf
do_suspend_lowlevel() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/acpi/wakeup_64.S | 3 +++ 1 file changed, 3 i

Re: [PATCH v2] tools: perf: Fix test build error when bindir contains double slash

2015-07-28 Thread Jiri Olsa
On Tue, Jul 28, 2015 at 03:10:13PM +0100, Pawel Moll wrote: > When building with a prefix ending with a slash, for example: > > $ make prefix=/usr/local/ > > one of the perf tests fail to compile due to BUILD_STR macro mishandling > bindir_SQ string containing with two slashes: > > -

[PATCH v8 17/21] x86/asm/entry: Fix frame pointer usage in thunk functions

2015-07-28 Thread Josh Poimboeuf
Thunk functions are callable non-leaf functions that don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create stack frames for them when CONFIG_FRAME_POINTER is enabled and add the ELF function t

[PATCH v8 07/21] x86/paravirt: Add stack frame dependency to PVOP inline asm calls

2015-07-28 Thread Josh Poimboeuf
If a PVOP call macro is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created by listing the stack

[PATCH v8 00/21] Compile-time stack validation

2015-07-28 Thread Josh Poimboeuf
This is v8 of the compile-time stack validation patch set, based on the tip/master branch. The frame pointer macros are still called FRAME and ENDFRAME because I don't think we converged on anything else yet. Otherwise I tried to address all the other review comments from v7. v7 can be found her

[PATCH v8 19/21] x86/asm: Fix frame pointer usage in rwsem functions

2015-07-28 Thread Josh Poimboeuf
rwsem.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/lib/rwsem.S | 11 ++- 1 file changed, 10 insertions

[PATCH v8 09/21] x86/paravirt: Align paravirt thunk functions at 16-byte boundaries

2015-07-28 Thread Josh Poimboeuf
Paravirt thunk functions aren't aligned, which can impact performance and is inconsistent with gcc-generated functions. Align them at 16-byte boundaries to be consistent with gcc functions. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/paravirt.h | 1 + 1 file changed, 1 insertion(+)

[PATCH v8 02/21] x86/asm: Add C versions of FRAME and ENDFRAME macros

2015-07-28 Thread Josh Poimboeuf
Add C versions of the FRAME and ENDFRAME macros which can be used to create a stack frame in inline assembly. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/frame.h | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/frame.h b/ar

[PATCH v8 15/21] x86/asm/crypto: Move jump_table to .rodata section

2015-07-28 Thread Josh Poimboeuf
stackvalidate reports the following warning: stackvalidate: arch/x86/crypto/crc32c-pcl-intel-asm_64.o: crc_pcl()+0x11dd: can't decode instruction It gets confused when trying to decode jump_table data. Move jump_table to the .rodata section which is a more appropriate home for read-only data.

Re: [PATCH v4 0/3] x86: modify_ldt improvement, test, and config option

2015-07-28 Thread Boris Ostrovsky
On 07/28/2015 10:35 AM, Andrew Cooper wrote: On 28/07/15 15:05, Boris Ostrovsky wrote: On 07/28/2015 06:29 AM, Andrew Cooper wrote: After forward-porting my virtio patches, I got this thing to run on Xen. After several tries, I got: [ 53.985707] [ cut here ] [ 53.9

[PATCH v8 10/21] x86/amd: Set ELF function type for vide()

2015-07-28 Thread Josh Poimboeuf
vide() is a callable function, but is missing the ELF function type, which confuses tools like stackvalidate. Properly annotate it to be a callable function. The generated code is unchanged. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/cpu/amd.c | 5 - 1 file changed, 4 insertions(+),

[PATCH v8 11/21] x86/reboot: Add ljmp instructions to stackvalidate whitelist

2015-07-28 Thread Josh Poimboeuf
stackvalidate reports a false positive warning for the ljmp instruction in machine_real_restart(). Normally, ljmp isn't allowed in a function, but this is a special case where it's jumping into real mode. Add the jumps to a whitelist which tells stackvalidate to ignore them. Signed-off-by: Josh

[PATCH v8 08/21] x86/paravirt: Fix frame pointer usage in PV_CALLEE_SAVE_REGS_THUNK

2015-07-28 Thread Josh Poimboeuf
A function created with the PV_CALLEE_SAVE_REGS_THUNK macro doesn't set up a new stack frame before the call instruction, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Also, the thunk functions aren't annotated as ELF callable functio

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Hans de Goede
Hi, On 07/28/2015 04:29 PM, Michal Suchanek wrote: Hello, the NAND chips on Cubietech boards are not known to Linux. I used Petros Angelatos' patch from sunxi experimental tree for one chip and added another chip. I hope it's ok to send both patches to avoid merge conflict. I do not think t

[PATCH v8 03/21] x86/stackvalidate: Compile-time stack validation

2015-07-28 Thread Josh Poimboeuf
This adds a CONFIG_STACK_VALIDATION option which enables a host tool named stackvalidate which runs at compile time. It analyzes every .o file and ensures the validity of its stack metadata. It enforces a set of rules on asm code and C inline assembly code so that stack traces can be reliable. C

[PATCH v8 14/21] x86/asm/crypto: Move .Lbswap_mask data to .rodata section

2015-07-28 Thread Josh Poimboeuf
stackvalidate reports the following warning: stackvalidate: arch/x86/crypto/aesni-intel_asm.o: _aesni_inc_init(): can't find starting instruction stackvalidate gets confused when it tries to disassemble the following data in the .text section: .Lbswap_mask: .byte 15, 14, 13, 12, 1

Re: [PATCH v2 2/2] spi: s3c64xx: add more debug prints.

2015-07-28 Thread Mark Brown
On Tue, Jul 28, 2015 at 09:37:03AM -, Michal Suchanek wrote: > The SPI transfers can mysteriously fail so add more debug prints about > SPI parameters set by the driver. > > The hardware specific SPI driver is the only place where the programmed > SPI parameters are known so there is no other

[PATCH v8 06/21] x86/xen: Add stack frame dependency to hypercall inline asm calls

2015-07-28 Thread Josh Poimboeuf
If a hypercall is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created if CONFIG_FRAME_POINTER is

Re: [PATCHv2 01/10] mm: memory hotplug with an existing resource

2015-07-28 Thread Daniel Kiper
On Fri, Jul 24, 2015 at 12:47:39PM +0100, David Vrabel wrote: > Add add_memory_resource() to add memory using an existing "System RAM" > resource. This is useful if the memory region is being located by > finding a free resource slot with allocate_resource(). > > Xen guests will make use of this i

[PATCH v8 01/21] x86/asm: Frame pointer macro cleanup

2015-07-28 Thread Josh Poimboeuf
The FRAME/ENDFRAME asm macros for setting up and restoring the frame pointer aren't currently being used. However, they will be needed soon to help asm functions to comply with stackvalidate. Make the code more readable and improve the comments. Signed-off-by: Josh Poimboeuf --- arch/x86/inclu

[PATCH v8 05/21] x86/stackvalidate: Add ignore macros

2015-07-28 Thread Josh Poimboeuf
Add new stackvalidate ignore macros: STACKVALIDATE_IGNORE_INSN and STACKVALIDATE_IGNORE_FUNC. These can be used to tell stackvalidate to skip validation of an instruction or a function, respectively. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/stackvalidate.h | 45 +++

[PATCH v8 04/21] x86/stackvalidate: Add file and directory ignores

2015-07-28 Thread Josh Poimboeuf
Tell stackvalidate to skip validation of the following code: - boot image - vdso image - kexec purgatory - realmode - efi libstub They all run outside the kernel's normal mode of operation and they don't affect runtime kernel stack traces, so they're free to skirt the stackvalidate rules. Signed

Re: [PATCH] staging: dgnc: dgnc_neo.c: Style and spelling fixes

2015-07-28 Thread Greg KH
On Tue, Jul 28, 2015 at 06:18:05PM +0530, Bhaktipriya Shridhar wrote: > This patch fixes: > 1.Fixes comments that are over 80-characters either by: > -breaking up comment lines, into multi-line comments (kernel style) or > -shortening comments (Done in 7 places): > - Chan

Re: [PATCH 3/9] x86/intel_rdt: Cache Allocation documentation and cgroup usage guide

2015-07-28 Thread Peter Zijlstra
On Wed, Jul 01, 2015 at 03:21:04PM -0700, Vikas Shivappa wrote: Please edit this document to have consistent spacing. Its really hard to read this. Every time I spot a misplaced space my brain stumbles and I need to restart. > diff --git a/Documentation/cgroups/rdt.txt b/Documentation/cgroups/rdt

Re: [linux-sunxi] [RFC] ARM: dts: sunxi: Add regulators and board-specific operating points for LeMaker BananaPi

2015-07-28 Thread Timo Sigurdsson
Hi, Maxime Ripard schrieb am 28.07.2015 14:55: >> > I plan to submit this for 4.3. >> >> Ok, then I guess we can drop my patch. > > Please don't. Ok. > It was used in mainline, and reverted because it was not stable > enough. Well, the explanation given was, it was not stable because of the mi

[PATCH,v3 1/3] doc: dt: Update eTSEC bindings doc

2015-07-28 Thread Claudiu Manoil
Update the eTSEC bindings document with missing info on properties that are already in use for the PPC platforms: * "tbi-phy" property; * "fsl,etsec2" compatibility string; Signed-off-by: Claudiu Manoil --- v2 - none; v3 - added "tbi-handle" documentation; - fixed typo ("fsl,etsec2" is the cor

[PATCH 1/5] iommu/amd: Use iommu_attach_group()

2015-07-28 Thread Joerg Roedel
From: Joerg Roedel Since the conversion to default domains the iommu_attach_device function only works for devices with their own group. But this isn't always true for current IOMMUv2 capable devices, so use iommu_attach_group instead. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu_v2

Re: [PATCH 0/2] arm64: support initrd outside of mapped RAM

2015-07-28 Thread Mark Rutland
Hi Mark, As a heads-up, it looks like you missed a space when sending this; Arnd and Ard got merged into: "Arnd Bergmann --cc=Ard Biesheuvel" I've corrected that for this reply. On Tue, Jul 28, 2015 at 03:32:39PM +0100, Mark Salter wrote: > When booting an arm64 kernel w/initrd using UEFI/grub

[PATCH 0/5] AMD IOMMU Fixes for v4.2-rc4

2015-07-28 Thread Joerg Roedel
Hi, here are a couple of fixes for the AMD IOMMU driver for issues found recently. The issues were introduced by the default-domain conversion in this development cycle. I plan to send these fixes upstream by the end of the week. Please review! Thanks, Joerg Joerg Roedel (5): iommu/a

[PATCH,v3 3/3] ARM: dts: ls1021a: Enable the eTSEC ports on QDS and TWR

2015-07-28 Thread Claudiu Manoil
This enables the available eTSEC ethernet ports for the ls1021aqds and ls1021atwr boards. For the QDS, SGMII connections (via riser cards) are assumed for the eTSEC0 and eTSEC1 ports as default configuration. Signed-off-by: Alison Wang Signed-off-by: Claudiu Manoil --- v2, v3 - none; arch/arm/

Re: [PATCH 1/2] mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID

2015-07-28 Thread Michal Suchanek
On 28 July 2015 at 16:38, Marek Vasut wrote: > On Tuesday, July 28, 2015 at 04:36:29 PM, Michal Suchanek wrote: >> On 28 July 2015 at 16:33, Marek Vasut wrote: >> > On Tuesday, July 28, 2015 at 11:07:57 AM, Michal Suchanek wrote: >> >> This 1.8V SPI NOR flash is found on ARM Chromebook XE303C and

[PATCH v8 13/21] x86/asm/crypto: Fix frame pointer usage in aesni-intel_asm.S

2015-07-28 Thread Josh Poimboeuf
aesni-intel_asm.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/crypto/aesni-intel_asm.S | 19 +++

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-28 Thread Lee Jones
On Tue, 28 Jul 2015, Matt Fleming wrote: > On Tue, 28 Jul, at 12:37:21PM, Lee Jones wrote: > > > > The driver shouldn't be called that either. > > > > You are the only one. What makes iTCO 'special'? > > I don't know, I didn't write it. It looks like Wim did ~9 years ago, so > it must have made

[PATCH 4/5] iommu/amd: Use swiotlb in passthrough mode

2015-07-28 Thread Joerg Roedel
From: Joerg Roedel In passthrough mode (iommu=pt) all devices are identity mapped. If a device does not support 64bit DMA it might still need remapping. Make sure swiotlb is initialized to provide this remapping. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 8 +++- 1 file ch

[PATCH 3/5] iommu/amd: Allow non-IOMMUv2 devices in IOMMUv2 domains

2015-07-28 Thread Joerg Roedel
From: Joerg Roedel Since devices with IOMMUv2 functionality might be in the same group as devices without it, allow those devices in IOMMUv2 domains too. Otherwise attaching the group with the IOMMUv2 device to the domain will fail. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 1

[PATCH 5/5] iommu/amd: Set global dma_ops if swiotlb is disabled

2015-07-28 Thread Joerg Roedel
From: Joerg Roedel Some AMD systems also have non-PCI devices which can do DMA. Those can't be handled by the AMD IOMMU, as the hardware can only handle PCI. These devices would end up with no dma_ops, as neither the per-device nor the global dma_ops will get set. SWIOTLB provides global dma_ops

Re: [linux-sunxi] [RFC] ARM: dts: sunxi: Add regulators and board-specific operating points for LeMaker BananaPi

2015-07-28 Thread Timo Sigurdsson
Hi, Maxime Ripard schrieb am 28.07.2015 14:55: >> IMHO for a common maximum opp that's a good approach. But for the lowest >> frequency setting, it would seem more logical to me, to raise the voltage >> to a point where all boards will run fine with them, unless those boards >> cannot handle the

[PATCH,v3 2/3] ARM: dts: ls1021a: Add the eTSEC controller nodes

2015-07-28 Thread Claudiu Manoil
Add basic support for all the eTSEC controllers on the ls1021a SoC. Second interrupt group register blocks and their corresponding Rx/Tx/Err interrupt sources are included as well for each eTSEC node. Signed-off-by: Alison Wang Signed-off-by: Claudiu Manoil --- v2: various findings, added 2nd i

[PATCH] iio: light: Add support for UPISEMI uS5182d als and proximity sensor

2015-07-28 Thread Adriana Reus
Add support for UPISEMI us5182d als and proximity sensor. Supports raw readings. Signed-off-by: Adriana Reus --- drivers/iio/light/Kconfig | 10 + drivers/iio/light/Makefile | 1 + drivers/iio/light/us5182d.c | 539 3 files changed, 550 insertio

Re: [PATCH V3 0/5] clk: support clocks which requires parent clock on during operation

2015-07-28 Thread Dong Aisheng
On Tue, Jul 28, 2015 at 09:19:40PM +0800, Dong Aisheng wrote: > This patch series adds support in clock framework for clocks which operations > requires its parent clock is on. > > Such clock type is initially met on Freescale i.MX7D platform that all clocks > operations, including enable/disable,

[PATCH 2/5] iommu/amd: Use iommu core for passthrough mode

2015-07-28 Thread Joerg Roedel
From: Joerg Roedel Remove the AMD IOMMU driver implementation for passthrough mode and rely on the new iommu core features for that. Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 58 ++ drivers/iommu/amd_iommu_init.c | 10 +--- 2 f

[PATCH 3/8] arm/xen: implement correctly pfn_to_mfn

2015-07-28 Thread Julien Grall
After the commit introducing convertion between DMA and guest address, all the callers of pfn_to_mfn are expecting to get a GFN (Guest Frame Number). On ARM, all the guests are auto-translated so the GFN is equal to the Linux PFN (Pseudo-physical Frame Number). The current implementation may retur

[PATCH 0/8] Use correctly the Xen memory terminologies in Linux

2015-07-28 Thread Julien Grall
Hi all, This patch series aims to use the memory terminologies described in include/linux/mm.h [1] for Linux xen code. Linux is using mistakenly MFN when GFN is meant, I suspect this is because the first support of Xen was for PV. This has brought some misimplementation of memory helpers on ARM a

[PATCH 6/8] video/xen-fbfront: Further s/MFN/GFN clean-up

2015-07-28 Thread Julien Grall
The PV driver xen-fbfront is only dealing with GFN and not MFN. Rename all the occurence of MFN to GFN. Also take the opportunity to replace to usage of pfn_to_gfn by page_to_pfn. Signed-off-by: Julien Grall Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: David Vrabel Cc: linux-fb

Re: [PATCH 0/2] arm64: support initrd outside of mapped RAM

2015-07-28 Thread Mark Salter
On Tue, 2015-07-28 at 15:59 +0100, Mark Rutland wrote: > Hi Mark, > > As a heads-up, it looks like you missed a space when sending this; Arnd > and Ard got merged into: > > "Arnd Bergmann --cc=Ard Biesheuvel" < > ard.biesheu...@linaro.org> > > I've corrected that for this reply. Oops. Thanks.

[PATCH 5/8] xen/tmem: Use page_to_gfn rather than pfn_to_gfn

2015-07-28 Thread Julien Grall
All the caller of xen_tmem_{get,put}_page have a struct page * in hand and call pfn_to_gfn for the only benefits of these 2 functions. Rather than passing the pfn in parameter, pass directly the page and use directly page_to_gfn. Signed-off-by: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Boris O

[PATCH 2/8] xen: Make clear that swiotlb and biomerge are dealing with DMA address

2015-07-28 Thread Julien Grall
The swiotlb is required when programming a DMA address on ARM when a device is not protected by an IOMMU. In this case, the DMA address should always be equal to the machine address. For DOM0 memory, Xen ensure it by have an identity mapping between the guest address and host address. However, whe

Re: [PATCH 3.12 000/124] 3.12.45-stable review

2015-07-28 Thread Shuah Khan
On 07/28/2015 03:42 AM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.45 release. > There are 124 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should b

[PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-28 Thread Julien Grall
Based on include/xen/mm.h [1], Linux is mistakenly using MFN when GFN is meant, I suspect this is because the first support for Xen was for PV. This brough some misimplementation of helpers on ARM and make the developper confused the expected behavior. For instance, with pfn_to_mfn, we expect to g

[PATCH 1/8] arm/xen: Remove helpers which are PV specific

2015-07-28 Thread Julien Grall
ARM guests are assimilated to HVM guest on ARM. The current implementation is assuming a 1:1 mapping which is only true for DOM0 and may not be at all in the future. Furthermore, all the helpers but arbitrary_virt_to_machine are used in x86 specific code (or only compiled for). The helper arbitra

[PATCH 7/8] hvc/xen: Further s/MFN/GFN clean-up

2015-07-28 Thread Julien Grall
HVM_PARAM_CONSOLE_PFN is used to retrieved the console PFN for HVM guest. It returns a PFN (aka GFN) and not a MFN. Furthermore, use directly virt_to_gfn for both PV and HVM domain rather than doing a special case for each of the them. Signed-off-by: Julien Grall Cc: Greg Kroah-Hartman Cc: Jiri

[PATCH 8/8] xen/privcmd: Further s/MFN/GFN/ clean-up

2015-07-28 Thread Julien Grall
The privcmd code is mixing the usage of GFN and MFN within the same functions which make the code difficult to understand when you only work with auto-translated guests. The privcmd driver is only dealing with GFN so replace all the mention of MFN into GFN. The ioctl structure used to map foreign

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Boris Brezillon
Hi Hans, On Tue, 28 Jul 2015 16:49:58 +0200 Hans de Goede wrote: > Hi, > > On 07/28/2015 04:29 PM, Michal Suchanek wrote: > > Hello, > > > > the NAND chips on Cubietech boards are not known to Linux. > > > > I used Petros Angelatos' patch from sunxi experimental tree for one chip and > > added

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-28 Thread Vlastimil Babka
On 07/28/2015 03:49 PM, Eric B Munson wrote: On Tue, 28 Jul 2015, Michal Hocko wrote: [...] The only remaining question I have is should we have 2 new mlockall flags so that the caller can explicitly set VM_LOCKONFAULT in the mm->def_flags vs locking all current VMAs on fault. I ask because

Re: [linux-sunxi] [RFC] ARM: dts: sunxi: Add regulators and board-specific operating points for LeMaker BananaPi

2015-07-28 Thread Timo Sigurdsson
Hi, Hans de Goede schrieb am 28.07.2015 16:24: > I've no problem with Timo submitting a cleaned up version of his > patch and you taking that instead. I just wanted to point out that > I do have a similar patch pending. Ok, I will do that. It might take a couple of days, though, as I will be movi

Re: [PATCH 2/4] ASoc: rockchip: Add rockchip SPDIF transceiver driver

2015-07-28 Thread Sjoerd Simons
On Tue, 2015-07-28 at 16:28 +0200, Heiko Stübner wrote: > Hi, > > could you streamline the prefixes a bit perhaps? I.e. so far I've > seen > > rk_spdif_dev > spdif_runtime_suspend > rockchip_snd_txctrl > rockchip_spdif_hw_params > > I guess rockchip_spdif_* or rk_spdif_* for everything might ma

Re: [PATCH 0/2] New NAND chip IDs

2015-07-28 Thread Boris Brezillon
On Tue, 28 Jul 2015 17:10:13 +0200 Boris Brezillon wrote: > Hi Hans, > > On Tue, 28 Jul 2015 16:49:58 +0200 > Hans de Goede wrote: > > > Hi, > > > > On 07/28/2015 04:29 PM, Michal Suchanek wrote: > > > Hello, > > > > > > the NAND chips on Cubietech boards are not known to Linux. > > > > > > I

RE: [PATCH v6 2/2] ARM: imx: Add suspend codes for imx7D

2015-07-28 Thread Shenwei Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2015年7月28日 9:31 > To: Wang Shenwei-B38339 > Cc: ja...@lakedaemon.net; Huang Yongcai-B20788; > linux-kernel@vger.kernel.org; t...@linutronix.de; shawn@linaro.org; > linux-arm-ker...@lists.infradead.org > Subjec

  1   2   3   4   5   6   7   8   9   10   >