[PATCH v2 1/2] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-12 Thread Boris BREZILLON
Make use of lists instead of kfifo in order to dynamically allocate task entry when someone require some delayed work, and thus preventing drm_flip_work_queue from directly calling func instead of queuing this call. This allow drm_flip_work_queue to be safely called even within irq handlers. Add n

[PATCH v2 0/2] drm: rework flip-work framework

2014-07-12 Thread Boris BREZILLON
Hello, This patch series reworks the flip-work framework to make it safe when calling drm_flip_work_queue from atomic contexts. The 2nd patch of this series is optional, as it only reworks drm_flip_work_init prototype to remove unneeded size argument and return code (this function cannot fail any

[PATCH v2 2/2] drm: flip-work: change drm_flip_work_init prototype

2014-07-12 Thread Boris BREZILLON
Now that we're using lists instead of kfifo to store drm flip-work tasks we do not need the size parameter passed to drm_flip_work_init function anymore. Moreover this function cannot fail anymore, we can thus remove the return code. Modify drm_flip_work_init users to take account of these changes

Re: [PATCH] thunderbolt: Use kcalloc

2014-07-12 Thread Andreas Noever
On Fri, Jul 11, 2014 at 9:42 PM, Himangi Saraogi wrote: > The advantage of kcalloc is, that will prevent integer overflows > which could result from the multiplication of number of elements > and size and it is also a bit nicer to read. > > Signed-off-by: Himangi Saraogi > Acked-by: Julia Lawall

Re: [PATCH v2 1/2] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-12 Thread Boris BREZILLON
On Sat, 12 Jul 2014 09:00:08 +0200 Boris BREZILLON wrote: > Make use of lists instead of kfifo in order to dynamically allocate > task entry when someone require some delayed work, and thus preventing > drm_flip_work_queue from directly calling func instead of queuing this > call. > This allow dr

Re: [RESEND PATCH v2 4/5] kvm: Remove ept_identity_pagetable from struct kvm_arch.

2014-07-12 Thread Gleb Natapov
On Wed, Jul 09, 2014 at 10:08:03AM +0800, Tang Chen wrote: > kvm_arch->ept_identity_pagetable holds the ept identity pagetable page. But > it is never used to refer to the page at all. > > In vcpu initialization, it indicates two things: > 1. indicates if ept page is allocated > 2. indicates if a

Re: [PATCH v2 5/5] kvm, mem-hotplug: Do not pin apic access page in memory.

2014-07-12 Thread Gleb Natapov
On Tue, Jul 08, 2014 at 09:01:32PM +0800, Tang Chen wrote: > apic access page is pinned in memory. As a result, it cannot be > migrated/hot-removed. > Actually, it is not necessary to be pinned. > > The hpa of apic access page is stored in VMCS APIC_ACCESS_ADDR pointer. When > the page is migrate

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: > On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: > > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > > A simple script to run checkpatch --fix for various types of > > > of cleanups. > [] > > Anyway, try running this s

Re: [patch 54/55] timekeeping: Provide fast and NMI safe access to CLOCK_MONOTONIC[_RAW]

2014-07-12 Thread Thomas Gleixner
On Fri, 11 Jul 2014, Mathieu Desnoyers wrote: > - Original Message - > > From: "Thomas Gleixner" > > To: "LKML" > > Cc: "John Stultz" , "Peter Zijlstra" > > , "Steven Rostedt" > > , "Mathieu Desnoyers" > > Sent: Friday, July 11, 2014 9:45:19 AM > > Subject: [patch 54/55] timekeeping: P

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > A simple script to run checkpatch --fix for various types of > of cleanups. > > This script is useful primarily for staging. > > This reformats code to a more CodingStyle conforming style, > compiles it, verifies that the object code

[PATCH] libata: handle IDE AMNF errors in the EH path

2014-07-12 Thread Alexey Asemov
libata-eh.c should handle AMNF error condition (error byte bit 0, usually code 0x01) in libata-eh.c along with UNC as a media error so SCSI stack can handle it properly (translation code 0x01 is already present in libata-scsi.c) but was never passed down due to lack of handling in EH. https://bugz

Re: [PATCH 2/2] x86_64,signal: Remove 'fs' and 'gs' from sigcontext

2014-07-12 Thread Andy Lutomirski
On Jul 11, 2014 7:21 PM, "Linus Torvalds" wrote: > > On Fri, Jul 11, 2014 at 9:29 AM, Andy Lutomirski wrote: > > As far as I can tell, these fields have been set to zero on save and > > ignored on restore since Linux was imported into git. Rename them > > '__pad1' and '__pad2' to avoid confusion

Re: [PATCH 02/83] drm/radeon: reduce number of free VMIDs and pipes in KV

2014-07-12 Thread Christian König
Am 11.07.2014 18:22, schrieb Alex Deucher: On Fri, Jul 11, 2014 at 12:18 PM, Christian König wrote: Am 11.07.2014 18:05, schrieb Jerome Glisse: On Fri, Jul 11, 2014 at 12:50:02AM +0300, Oded Gabbay wrote: To support HSA on KV, we need to limit the number of vmids and pipes that are available

Re: [PATCH v2] i2c: stub: Add support for SMBus block commands

2014-07-12 Thread Jean Delvare
Hi Guenter, On Tue, 08 Jul 2014 13:05:41 -0700, Guenter Roeck wrote: > On 07/08/2014 12:54 PM, Jean Delvare wrote: > > Just one thing I have been thinking about while reviewing the updated > > code... You decided to make the first SMBus block write select the > > maximum block length, and you alwa

Re: i915: reduce noise from i915_gem_shrinker_oom when no memory freed.

2014-07-12 Thread Daniel Vetter
On Fri, Jul 11, 2014 at 07:11:43AM +0100, Chris Wilson wrote: > On Thu, Jul 10, 2014 at 11:05:05PM -0400, Dave Jones wrote: > > When the shrinker doesn't free any memory, don't spew over and over > > into the logs. My fuzz tester hits this quite easily, resulting > > in dozens of instances of this

Re: [PATCH v4 6/7] sched: add function nr_running_cpu to expose number of tasks running on cpu

2014-07-12 Thread Kirill Tkhai
On 12.07.2014 00:33, Tim Chen wrote: > This function will help a thread decide if it wants to to do work > that can be delayed, to accumulate more tasks for more efficient > batch processing later. > > However, if no other tasks are running on the cpu, it can take > advantgae of the available cpu

Re: [PATCH 00/83] AMD HSA kernel driver

2014-07-12 Thread Christian König
Am 11.07.2014 23:18, schrieb Jerome Glisse: On Thu, Jul 10, 2014 at 10:51:29PM +, Gabbay, Oded wrote: On Thu, 2014-07-10 at 18:24 -0400, Jerome Glisse wrote: On Fri, Jul 11, 2014 at 12:45:27AM +0300, Oded Gabbay wrote: This patch set implements a Heterogeneous System Architecture (HSA) d

[PATCH] fb: backlight: add driver for iPAQ micro backlight

2014-07-12 Thread Linus Walleij
This adds a driver for the backlight controlled by the microcontroller on the Compaq iPAQ series of handheld computers: h3100, h3600 and h3700. Signed-off-by: Linus Walleij --- drivers/video/backlight/Kconfig | 9 drivers/video/backlight/Makefile| 1 + drivers/video/backli

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Dan Carpenter
On Fri, Jul 11, 2014 at 06:40:16PM -0700, Joe Perches wrote: > On Fri, 2014-07-11 at 18:34 -0700, Greg KH wrote: > > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > > A simple script to run checkpatch --fix for various types of > > > of cleanups. > > > > > > This script is useful

[PATCH] power: add driver for battery reading on iPaq h3xxx

2014-07-12 Thread Linus Walleij
From: Dmitry Artamonow This adds a driver for reading the battery status of the battery connected to the Atmel microcontroller on the iPAQ h3xxx series. Based on a driver from handhelds.org 2.6.21 kernel, written by Alessandro GARDICH. Signed-off-by: Dmitry Artamonow Signed-off-by: Linus Walle

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-12 Thread Will Deacon
Hi Rob, On Fri, Jul 11, 2014 at 09:55:14PM +0100, Rob Clark wrote: > On Fri, Jul 4, 2014 at 11:29 AM, Thierry Reding > wrote: > > From: Thierry Reding > ok, so I was working through this to try to convert my > {qcom,msm}-iommu-v0 RFC over to using these bindings. For background, > I was initial

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Joe Perches
On Sat, 2014-07-12 at 01:18 -0700, Greg KH wrote: > On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: > > A simple script to run checkpatch --fix for various types of > > of cleanups. [] > I did the following: > > $ scripts/reformat_with_checkpatch.sh drivers/base/bus.c > > Ignore the

Re: [Intel-gfx] [Xen-devel] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-07-12 Thread Daniel Vetter
On Fri, Jul 11, 2014 at 08:30:59PM +, Tian, Kevin wrote: > > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > > Sent: Friday, July 11, 2014 12:42 PM > > > > On Fri, Jul 11, 2014 at 08:29:56AM +0200, Daniel Vetter wrote: > > > On Thu, Jul 10, 2014 at 09:08:24PM +, Tian, Kevin w

Re: [PATCH v7 0/4] arm: Fix DEBUG_LL for multi-platform kernels (without PL01X)

2014-07-12 Thread Russell King - ARM Linux
On Mon, Jun 30, 2014 at 12:30:51PM +0100, Daniel Thompson wrote: > This patchset removes some single-platform compatibility tricks related > to DEBUG_LL and, as a result, allows multi_v7_defconfig derived builds > to enable DEBUG_LL. Currently the user selected kbuild setting is > ignored and the P

[PATCH v2] drivers: tty: Merge alloc_tty_struct and initialize_tty_struct

2014-07-12 Thread Rasmus Villemoes
The two functions alloc_tty_struct and initialize_tty_struct are always called together. Merge them into alloc_tty_struct, updating its prototype and the only two callers of these functions. Signed-off-by: Rasmus Villemoes --- I hope this is sufficient. Thanks, Dan and Julia! v2: Don't cause NUL

[PATCH v2] ARM: Fix preemption disable in iwmmxt_task_enable()

2014-07-12 Thread Sebastian Hesselbarth
commit 431a84b1a4f7d1a0085d5b91330c5053cc8e8b12 ("ARM: 8034/1: Disable preemption in iwmmxt_task_enable()") introduced macros {inc,dec}_preempt_count to iwmmxt_task_enable to make it run with preemption disabled. Unfortunately, other functions in iwmmxt.S also use concan_{save,dump,load} sections

Re: [PATCH 00/83] AMD HSA kernel driver

2014-07-12 Thread Daniel Vetter
On Sat, Jul 12, 2014 at 11:24:49AM +0200, Christian König wrote: > Am 11.07.2014 23:18, schrieb Jerome Glisse: > >On Thu, Jul 10, 2014 at 10:51:29PM +, Gabbay, Oded wrote: > >>On Thu, 2014-07-10 at 18:24 -0400, Jerome Glisse wrote: > >>>On Fri, Jul 11, 2014 at 12:45:27AM +0300, Oded Gabbay wrot

Re: [PATCH v7 0/4] arm: Fix DEBUG_LL for multi-platform kernels (without PL01X)

2014-07-12 Thread Russell King - ARM Linux
On Sat, Jul 12, 2014 at 11:16:02AM +0100, Russell King - ARM Linux wrote: > On Mon, Jun 30, 2014 at 12:30:51PM +0100, Daniel Thompson wrote: > > This patchset removes some single-platform compatibility tricks related > > to DEBUG_LL and, as a result, allows multi_v7_defconfig derived builds > > to

[f2fs-dev][PATCH] f2fs: support ->rename2()

2014-07-12 Thread Chao Yu
Now new interface ->rename2() is added to VFS, here are related description: https://lkml.org/lkml/2014/2/7/873 https://lkml.org/lkml/2014/2/7/758 This patch adds function f2fs_rename2() to support ->rename2() including handling both RENAME_EXCHANGE and RENAME_NOREPLACE flag. Signed-off-by: Chao

[PATCH 2/2] PCI/MSI: Remove arch_msi_check_device()

2014-07-12 Thread Alexander Gordeev
There are no archs that override arch_msi_check_device() hook. Remove it as it is completely redundant. If an arch would need to check MSI/MSI-X possibility for a device it should make it within arch_setup_msi_irqs() hook. Cc: linuxppc-...@lists.ozlabs.org Cc: linux-...@vger.kernel.org Signed-off

[PATCH 0/2] PCI/MSI: Remove arch_msi_check_device()

2014-07-12 Thread Alexander Gordeev
Hello, This is a cleanup effort to get rid of useless arch_msi_check_device(). I am not sure what were the reasons for its existence in the first place, but at the moment it appears totally unnecessary. Thanks! Cc: linuxppc-...@lists.ozlabs.org Cc: linux-...@vger.kernel.org Alexander Gordeev (2

[PATCH 1/2] PCI/MSI/PPC: Remove arch_msi_check_device()

2014-07-12 Thread Alexander Gordeev
PowerPC is the only architecture that makes use of hook arch_msi_check_device() and does perform some checks to figure out if MSI/MSI-X could be enabled for a device. However, there are no reasons why those checks could not be done within arch_setup_msi_irqs() hook. Moving MSI checks into arch_set

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-12 Thread Rob Clark
On Sat, Jul 12, 2014 at 5:39 AM, Will Deacon wrote: > Hi Rob, > > On Fri, Jul 11, 2014 at 09:55:14PM +0100, Rob Clark wrote: >> On Fri, Jul 4, 2014 at 11:29 AM, Thierry Reding >> wrote: >> > From: Thierry Reding >> ok, so I was working through this to try to convert my >> {qcom,msm}-iommu-v0 RFC

[PATCH 3/7] powerpc/powernv: replace sscanf %lx by kstrtoul 16

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/platforms/powernv/subcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/powernv/subcore.c b/arch/powerpc/platforms/powernv/subco

[PATCH 0/7] arch/powerpc: convert single variable sscanf to kstrto

2014-07-12 Thread Fabian Frederick
Here is a small untested patchset to use the current string manipulation kstrto functions instead of sscanf like specified in checkpatch: "Prefer kstrto to single variable sscanf" autodetect base 0 has been used for both %d, %i, %ld, %lu, %u and base 16 for %lx Fabian Frederick (7): powerpc:

[PATCH 1/7] powerpc: fadump: replace sscanf by kstrtoint

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/kernel/fadump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 742694c..3c40b5f 100644 ---

[PATCH 2/7] powerpc/mv64x60_pci: replace sscanf by kstrtou32

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/sysdev/mv64x60_pci.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/sysdev/mv64x60_pci.c b/arch/powerpc/sysdev/mv64x60_pci.c index 330d566..

[PATCH 4/7] powerpc/sysfs: replace sscanf by kstrtol

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/kernel/sysfs.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index 67fd2fd..4293e4f 100644 ---

[PATCH 7/7] powerpc/pseries: replace sscanf by kstrtoul

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/platforms/pseries/power.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/power.c b/arch/powerpc/platforms/pseries/power.c in

[PATCH 5/7] hugetlb: replace sscanf by kstrtoul

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 7e70ae9..9118313 100644 --- a

Re: [PATCH v2 1/2] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-12 Thread Rob Clark
On Sat, Jul 12, 2014 at 3:00 AM, Boris BREZILLON wrote: > Make use of lists instead of kfifo in order to dynamically allocate > task entry when someone require some delayed work, and thus preventing > drm_flip_work_queue from directly calling func instead of queuing this > call. > This allow drm_f

[PATCH 6/7] powerpc/cell: replace sscanf by kstrtouint

2014-07-12 Thread Fabian Frederick
See checkpatch warning "Prefer kstrto to single variable sscanf" Signed-off-by: Fabian Frederick --- arch/powerpc/platforms/cell/cbe_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/cbe_thermal.c b/arch/powerpc/platforms/cell/cbe_ther

Re: [PATCH] clk: qcom: Support bypass RCG configuration

2014-07-12 Thread Rob Clark
On Fri, Jul 11, 2014 at 4:01 PM, Stephen Boyd wrote: > In the case of HDMI clocks, we want to bypass the RCG's ability > to divide the output clock and pass through the parent HDMI PLL > rate through. Add a simple set of clk_ops to configure the RCG to > do this. This removes the need to keep addi

Re: [RFC PATCH 1/1] rcu: use atomic_read(v) instead of atomic_add_return(0, v)

2014-07-12 Thread Paul E. McKenney
On Fri, Jul 11, 2014 at 06:32:17PM -0400, Pranith Kumar wrote: > On Fri, Jul 11, 2014 at 5:43 AM, Paul E. McKenney wrote: > > On Thu, Jul 10, 2014 at 09:17:33PM -0400, Pranith Kumar wrote: > >> On Wed, Jul 9, 2014 at 3:56 PM, Paul E. McKenney > >> wrote: > >> > >> > OK, so ->dynticks_snap is acc

Re: [PATCH] pci: Add include guard to include/linux/pci_ids.h

2014-07-12 Thread Rasmus Villemoes
Bjorn Helgaas writes: > On Thu, Jul 10, 2014 at 02:05:11PM +0200, Rasmus Villemoes wrote: >> Adding an include guard frees the preprocessor from reparsing over >> 2600 #defines in the cases where pci_ids.h is somehow included more >> than once. This gives a tiny-but-measurable performance improve

[PATCH v2] f2fs: Add f2fs_balance_fs for direct IO

2014-07-12 Thread Huang Ying
Otherwise, if a large amount of direct IO writes were done, the segment allocation may be failed because no enough segments are gced. Changes: v2: add f2fs_balance_fs into __get_data_block instead of f2fs_direct_IO. Signed-off-by: Huang, Ying --- fs/f2fs/data.c |4 +++- 1 file changed, 3 i

Re: [patch 36/55] misc: ioc4: Use ktime_get_ns()

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Thomas Gleixner wrote: > Replace the ever recurring: > ts = ktime_get_ts(); > ns = timespec_to_ns(&ts); > with > ns = ktime_get_ns(); > > Signed-off-by: Thomas Gleixner > Cc: Arnd Bergmann > Cc: Greg Kroah-Hartman Acked-by: Arnd Bergmann -- To u

Re: [PATCHv8 2/2] mailbox: Introduce framework for mailbox

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Jassi Brar wrote: > + > + This document aims to help developers write client and controller > +drivers for the API. But before we start, let us note that the > +client (especially) and controller drivers are likely going to be > +very platform specific because the remote fir

Re: [PATCH v2] drivers: tty: Merge alloc_tty_struct and initialize_tty_struct

2014-07-12 Thread Dan Carpenter
On Sat, Jul 12, 2014 at 12:55:51PM +0200, Rasmus Villemoes wrote: > The two functions alloc_tty_struct and initialize_tty_struct are > always called together. Merge them into alloc_tty_struct, updating its > prototype and the only two callers of these functions. > > Signed-off-by: Rasmus Villemoes

Re: [patch 33/55] powerpc: cell: Use ktime_get_ns()

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Thomas Gleixner wrote: > Replace the ever recurring: > ts = ktime_get_ts(); > ns = timespec_to_ns(&ts); > with > ns = ktime_get_ns(); > > Signed-off-by: Thomas Gleixner > Cc: Arnd Bergmann Acked-by: Arnd Bergmann -- To unsubscribe from this list:

Re: [patch 47/55] hangcheck-timer: Use ktime_get_raw_ns()

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Thomas Gleixner wrote: > Use the nanoseconds based interface instead of converting timespecs. > > Signed-off-by: Thomas Gleixner > Cc: Arnd Bergmann > Cc: Greg Kroah-Hartman Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCHv8 1/2] mailbox: rename pl320-ipc specific mailbox.h

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Jassi Brar wrote: > From: Suman Anna > > The patch 30058677 "ARM / highbank: add support for pl320 IPC" > added a pl320 IPC specific header file as a generic mailbox.h. > This file has been renamed appropriately to allow the > introduction of the generic mailbox API framew

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-12 Thread Arnd Bergmann
On Saturday 12 July 2014, Rob Clark wrote: > >> Was there actually a good reason for having the device link to the > >> iommu rather than the other way around? How much would people hate it > >> if I just ignore the generic bindings and use something that works for > >> me instead. I mean, it isn

Re: [PATCH 1/1] drivers/base/dma-buf.c: replace dma_buf_uninit_debugfs by debugfs_remove_recursive

2014-07-12 Thread Fabian Frederick
> On 10 July 2014 at 02:34 Greg Kroah-Hartman > wrote: > > > On Fri, Jun 27, 2014 at 10:32:10PM +0200, Fabian Frederick wrote: > > null test before debugfs_remove_recursive is not needed so one line function > > dma_buf_uninit_debugfs can be removed. > > > > This patch calls debugfs_remove_recur

Re: [PATCH v2 2/3] ARM: Use include/asm-generic/io.h

2014-07-12 Thread Arnd Bergmann
On Friday 11 July 2014, Catalin Marinas wrote: > > On Fri, Jul 11, 2014 at 04:31:11PM +0100, Thierry Reding wrote: > > diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h > > index a78562f21aab..ef54f5c8a7ae 100644 > > --- a/arch/arm/include/asm/io.h > > +++ b/arch/arm/include/asm/i

Re: [RFC Patch V1 01/30] mm, kernel: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-12 Thread Jens Axboe
On 2014-07-11 09:37, Jiang Liu wrote: When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get t

Re: [PATCH v4] devicetree: Add generic IOMMU device tree bindings

2014-07-12 Thread Rob Clark
On Sat, Jul 12, 2014 at 8:22 AM, Arnd Bergmann wrote: > On Saturday 12 July 2014, Rob Clark wrote: >> >> Was there actually a good reason for having the device link to the >> >> iommu rather than the other way around? How much would people hate it >> >> if I just ignore the generic bindings and u

[PATCH v4] crypto: Add Allwinner Security System crypto accelerator

2014-07-12 Thread LABBE Corentin
Hello This is the driver for the Security System included in Allwinner SoC A20. The Security System (SS for short) is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on others Allwinner SoC: - A10s and A31 diagram speak about it with pr

[PATCH v4 1/3] ARM: sun7i: dt: Add Security System to A20 SoC DTS

2014-07-12 Thread LABBE Corentin
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. It could be found on many Allwinner SoC. This patch enable the Security System on the Allwinner A20 SoC Device-tree. Signed-off-by: LABBE Corentin --- arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v4 2/3] ARM: sunxi: dt: Add DT bindings documentation for SUNXI Security System

2014-07-12 Thread LABBE Corentin
This patch adds documentation for Device-Tree bindings for the Security System cryptographic accelerator driver. Signed-off-by: LABBE Corentin --- Documentation/devicetree/bindings/crypto/sunxi-ss.txt | 9 + 1 file changed, 9 insertions(+) create mode 100644 Documentation/devicetree/bin

[PATCH v4 3/3] crypto: Add Allwinner Security System crypto accelerator

2014-07-12 Thread LABBE Corentin
Add support for the Security System included in Allwinner SoC A20. The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG algorithms. Signed-off-by: LABBE Corentin --- drivers/crypto/Kconfig| 17 ++ drivers/crypto/Makefile

Re: linux-next: build failure after merge of the tty.current tree

2014-07-12 Thread Peter Hurley
On 07/11/2014 09:20 PM, Stephen Rothwell wrote: Hi Peter, On Fri, 11 Jul 2014 11:06:56 -0400 Peter Hurley wrote: Sorry about that. I don't have a full cross-compiler setup for build testing. Looks like that's something I'm going to have to add. see https://www.kernel.org/pub/tools/crosstoo

Re: [PATCH] serial: imx: Fix build breakage

2014-07-12 Thread Peter Hurley
On 07/11/2014 10:00 PM, Randy Dunlap wrote: On 07/11/14 17:42, Greg Kroah-Hartman wrote: On Thu, Jul 10, 2014 at 10:36:46PM -0400, Peter Hurley wrote: Fix breakage introduced by commit c557d392fbf5badd693ea1946a4317c87a26a716, 'serial: Test for no tx data on tx restart'. Signed-off-by: Peter H

[PATCH] cpuidle: fix permission for driver name sysfs node

2014-07-12 Thread Mohammad Merajul Islam Molla
cpuidle driver name sysfs node is read-only. So permission should be 0444. Signed-off-by: Mohammad Merajul Islam Molla --- drivers/cpuidle/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index efe2f17..97c5903 100644 -

Re: [PATCH block/for-linus] blkcg: don't call into policy draining if root_blkg is already gone

2014-07-12 Thread Shirish Pargaonkar
On Sat, 2014-07-05 at 18:43 -0400, Tejun Heo wrote: > While a queue is being destroyed, all the blkgs are destroyed and its > ->root_blkg pointer is set to NULL. If someone else starts to drain > while the queue is in this state, the following oops happens. > > NULL pointer dereference at 0

Re: [patch 54/55] timekeeping: Provide fast and NMI safe access to CLOCK_MONOTONIC[_RAW]

2014-07-12 Thread Mathieu Desnoyers
- Original Message - > From: "Thomas Gleixner" > To: "Mathieu Desnoyers" > Cc: "LKML" , "John Stultz" > , "Peter Zijlstra" > , "Steven Rostedt" > Sent: Saturday, July 12, 2014 4:11:17 AM > Subject: Re: [patch 54/55] timekeeping: Provide fast and NMI safe access to > CLOCK_MONOTONIC[_RA

[PATCH v3 0/2] drm: rework flip-work framework

2014-07-12 Thread Boris BREZILLON
Hello, This patch series reworks the flip-work framework to make it safe when calling drm_flip_work_queue from atomic contexts. The 2nd patch of this series is optional, as it only reworks drm_flip_work_init prototype to remove unneeded size argument and return code (this function cannot fail any

[PATCH v3 1/2] drm: rework flip-work helpers to avoid calling func when the FIFO is full

2014-07-12 Thread Boris BREZILLON
Make use of lists instead of kfifo in order to dynamically allocate task entry when someone require some delayed work, and thus preventing drm_flip_work_queue from directly calling func instead of queuing this call. This allow drm_flip_work_queue to be safely called even within irq handlers. Add n

[PATCH v3 2/2] drm: flip-work: change drm_flip_work_init prototype

2014-07-12 Thread Boris BREZILLON
Now that we're using lists instead of kfifo to store drm flip-work tasks we do not need the size parameter passed to drm_flip_work_init function anymore. Moreover this function cannot fail anymore, we can thus remove the return code. Modify drm_flip_work_init users to take account of these changes

Re: [PATCH 1/1] rcutorture: set executable bit and drop bash from Usage

2014-07-12 Thread Josh Triplett
On Fri, Jul 11, 2014 at 07:47:35PM -0400, Pranith Kumar wrote: > This patch is on top of the previous changes. > > Set the executable bit on test scripts config2frag.sh and kvm.sh > Since #!/bin/bash is set in all the scripts, drop it from the usage line as > the > scripts can be invoked directly

Re: [PATCH v2 2/3] ARM: Use include/asm-generic/io.h

2014-07-12 Thread Catalin Marinas
On 12 Jul 2014, at 13:27, Arnd Bergmann wrote: > On Friday 11 July 2014, Catalin Marinas wrote: >> >> On Fri, Jul 11, 2014 at 04:31:11PM +0100, Thierry Reding wrote: >>> diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h >>> index a78562f21aab..ef54f5c8a7ae 100644 >>> --- a/arch/

Re: [PATCH v4 6/7] sched: add function nr_running_cpu to expose number of tasks running on cpu

2014-07-12 Thread Tadeusz Struk
On 07/11/2014 01:33 PM, Tim Chen wrote: > +unsigned long nr_running_cpu(int cpu) > +{ > + if (cpumask_test_cpu(cpu, cpu_online_mask)) > + return cpu_rq(cpu)->nr_running; > + else > + return 0; > +} > + EXPORT_SYMBOL? -- To unsubscribe from this list: send the line "u

Re: [PATCH v2] i2c: stub: Add support for SMBus block commands

2014-07-12 Thread Guenter Roeck
On 07/12/2014 02:20 AM, Jean Delvare wrote: Hi Guenter, On Tue, 08 Jul 2014 13:05:41 -0700, Guenter Roeck wrote: On 07/08/2014 12:54 PM, Jean Delvare wrote: Just one thing I have been thinking about while reviewing the updated code... You decided to make the first SMBus block write select the

Re: [PATCH v3 1/2] iio: adc: add driver for Rockchip saradc

2014-07-12 Thread Jonathan Cameron
On 09/07/14 11:22, Heiko Stübner wrote: The ADC is a 3-channel signal-ended 10-bit Successive Approximation Register (SAR) A/D Converter. It uses the supply and ground as its reference and converts the analog input signal into 10-bit binary digital codes. Signed-off-by: Heiko Stuebner Very nic

[PATCH v2 1/8] init.h: Add __init_str / __exit_str macros

2014-07-12 Thread Mathias Krause
Add macros to be able to mark string literals used in __init / __exit functions. Signed-off-by: Mathias Krause --- v2: - use a better code example --- include/linux/init.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/init.h b/include/linux/init.h ind

[PATCH v2 6/8] x86, mm: e820 - mark __init strings as such

2014-07-12 Thread Mathias Krause
Make use of the pi_() helpers to mark the strings printed during initialization for automatic release. Do so for the strings used in command line parsing as well, by using the __init_str() macro. The debug messages have been converted to printk_init(KERN_DEBUG ...) instead of pi_debug(...), though

[PATCH v2 8/8] kallsyms: exclude pseudo symbols for __init / __exit strings

2014-07-12 Thread Mathias Krause
The __init_str() / __exit_str() annotations create pseudo symbols. Ignore them, they have no value for us. Signed-off-by: Mathias Krause --- scripts/kallsyms.c | 13 + 1 file changed, 13 insertions(+) diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index dc7aa45e80..8fd0f2965

[PATCH v2 7/8] x86: setup - mark __init strings as such

2014-07-12 Thread Mathias Krause
Make use of the pi_() helpers to mark the strings printed during initialization for automatic release. Do so for the strings used in boot parameters parsing as well, by using the __init_str() macro. The debug messages have been converted to printk_init(KERN_DEBUG ...) instead of pi_debug(...), tho

[PATCH v2 4/8] x86, mm: Make x86_init.memory_setup() return a const char *

2014-07-12 Thread Mathias Krause
All implementations of x86_init.memory_setup() actually return a const char *. Adjust the prototypes to reflect reality. Also add the missing __init annotation to xen_auto_xlated_memory_setup(). Signed-off-by: Mathias Krause --- arch/x86/include/asm/e820.h |4 ++-- arch/x86/include/asm

[PATCH v2 0/8] Mark literal strings in __init / __exit code

2014-07-12 Thread Mathias Krause
This is v2 of the patch series initially posted here: https://lkml.org/lkml/2014/6/22/149 I've integrated Joe's idea of also providing printk_init() / printk_exit() wrappers for code that cannot (or doesn't want to) be converted to the pi_*() / pe_*() wrappers. Patches 4 and 5 are cleanup patc

[PATCH v2 2/8] printk: Provide pi_ / pe_ macros for __init / __exit code

2014-07-12 Thread Mathias Krause
The memory used for functions marked with __init will be released after initialization, albeit static data referenced by such code will not, if not explicitly marked this way, too. This is especially true for format strings used in messages printed by such code. Those are not marked and therefore w

[PATCH v2 5/8] x86, mm: early_panic() - pass on the message as string

2014-07-12 Thread Mathias Krause
early_printk() and panic() expect a format string as first argument. Change early_panic() to pass on the message as string instead of a format string. Signed-off-by: Mathias Krause --- arch/x86/kernel/e820.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/ke

[PATCH v2 3/8] x86, acpi: Mark __init strings as such

2014-07-12 Thread Mathias Krause
Make use of the pi_() helpers to mark the strings printed during initialization for automatic release. Do so for the strings used in command line parsing as well, by using the __init_str() macro. Also convert the remaining printk() calls to their pr_ / pi_ counterparts. This moves ~1.7 kB from th

Re: [patch 54/55] timekeeping: Provide fast and NMI safe access to CLOCK_MONOTONIC[_RAW]

2014-07-12 Thread Mathieu Desnoyers
- Original Message - > From: "Thomas Gleixner" > To: "LKML" > Cc: "John Stultz" , "Peter Zijlstra" > , "Steven Rostedt" > , "Mathieu Desnoyers" > Sent: Friday, July 11, 2014 9:45:19 AM > Subject: [patch 54/55] timekeeping: Provide fast and NMI safe access to > CLOCK_MONOTONIC[_RAW] >

Re: [PATCH v2] i2c: stub: Add support for SMBus block commands

2014-07-12 Thread Guenter Roeck
Hi Jean, On 07/12/2014 02:20 AM, Jean Delvare wrote: Hi Guenter, Something else: Any idea how we could inject errors ? Error path testing would be quite useful. Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@

Re: [PATCH v3 1/2] iio: adc: add driver for Rockchip saradc

2014-07-12 Thread Heiko Stübner
Am Samstag, 12. Juli 2014, 15:35:04 schrieb Jonathan Cameron: > On 09/07/14 11:22, Heiko Stübner wrote: > > The ADC is a 3-channel signal-ended 10-bit Successive Approximation > > Register (SAR) A/D Converter. It uses the supply and ground as its > > reference and converts the analog input signal i

RE: [PATCH 0/2] cpufreq: ondemand: Eliminate the deadband effect

2014-07-12 Thread Doug Smythies
On 2014.07.30 10:00 Stratos Karafotis wrote: > This patchset changes slightly the calculation of target frequency to > eliminate the deadband effect (explained in patch 2 changelog) that it > seems to slow down the CPU in low and medium loads. > > Patch 1 introduces a new relation (RELATION_C) fo

Re: i915: reduce noise from i915_gem_shrinker_oom when no memory freed.

2014-07-12 Thread Dave Jones
On Sat, Jul 12, 2014 at 11:23:43AM +0200, Daniel Vetter wrote: > On Fri, Jul 11, 2014 at 07:11:43AM +0100, Chris Wilson wrote: > > On Thu, Jul 10, 2014 at 11:05:05PM -0400, Dave Jones wrote: > > > When the shrinker doesn't free any memory, don't spew over and over > > > into the logs. My fuzz

[PATCH V3 0/7] Drivers: scsi: storvsc: Bug fixes and improvements

2014-07-12 Thread K. Y. Srinivasan
In this patch set I have fixed a few bugs and implemented some enhancements. In this version of the patch I have addressed comments from Christoph Hellwig K. Y. Srinivasan (7): Drivers: scsi: storvsc: Change the limits to reflect the values on the host Drivers: scsi: storvsc: Set cmd_per

[PATCH 6/7] drivers: scsi: storvsc: Set srb_flags in all cases

2014-07-12 Thread K. Y. Srinivasan
Correctly set SRB flags for all valid I/O directions. Some IHV drivers on the Windows host require this. The host validates the command and SRB flags prior to passing the command down to native driver stack. Signed-off-by: K. Y. Srinivasan Cc: --- drivers/scsi/storvsc_drv.c | 12 +---

[PATCH 7/7] drivers: scsi: storvsc: Correctly handle TEST_UNIT_READY failure

2014-07-12 Thread K. Y. Srinivasan
On some Windows hosts on FC SANs, TEST_UNIT_READY can return SRB_STATUS_ERROR. Correctly handle this. Note that there is sufficient sense information to support scsi error handling even in this case. In this version of the patch I have addressed comments from Christoph Hellwig Signed-off-by: K.

[PATCH V3 1/7] Drivers: scsi: storvsc: Change the limits to reflect the values on the host

2014-07-12 Thread K. Y. Srinivasan
Hyper-V hosts can support multiple targets and multiple channels and larger number of LUNs per target. Update the code to reflect this. With this patch we can correctly enumerate all the paths in a multi-path storage environment. In this version of the patch I have addressed comments from Christ

[PATCH V3 3/7] Drivers: scsi: storvsc: Filter commands based on the storage protocol version

2014-07-12 Thread K. Y. Srinivasan
Going forward it is possible that some of the commands that are not currently implemented will be implemented on future Windows hosts. Even if they are not implemented, we are told the host will corrrectly handle unsupported commands (by returning appropriate return code and sense information). Mak

[PATCH V3 2/7] Drivers: scsi: storvsc: Set cmd_per_lun to reflect value supported by the Host

2014-07-12 Thread K. Y. Srinivasan
Set cmd_per_lun to reflect value supported by the Host. In this version of the patch I have addressed comments from Christoph Hellwig Signed-off-by: K. Y. Srinivasan Cc: --- drivers/scsi/storvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/storvs

[PATCH 5/7] Drivers: scsi: storvsc: Implement a timedout handler

2014-07-12 Thread K. Y. Srinivasan
On Azure, we have seen instances of unbounded I/O latencies. To deal with this issue, implement handler that can reset the timeout. Note that the host gaurantees that it will respond to each command that has been issued. Signed-off-by: K. Y. Srinivasan Cc: --- drivers/scsi/storvsc_drv.c | 10

[PATCH V3 4/7] Drivers: scsi: storvsc: Fix a bug in handling VMBUS protocol version

2014-07-12 Thread K. Y. Srinivasan
Based on the negotiated VMBUS protocol version, we adjust the size of the storage protocol messages. The two sizes we currently handle are pre-win8 and post-win8. In WS2012 R2, we are negotiating higher VMBUS protocol version than the win8 version. Make adjustments to correctly handle this. In th

Re: [PATCH block/for-linus] blkcg: don't call into policy draining if root_blkg is already gone

2014-07-12 Thread Jens Axboe
On 2014-07-06 00:43, Tejun Heo wrote: While a queue is being destroyed, all the blkgs are destroyed and its ->root_blkg pointer is set to NULL. If someone else starts to drain while the queue is in this state, the following oops happens. NULL pointer dereference at 0028 IP: []

Re: [PATCH] ARM: at91: at91sam9x5: add clocks for usb device

2014-07-12 Thread Olof Johansson
On Fri, Jul 11, 2014 at 06:34:56PM +0200, Nicolas Ferre wrote: > From: Bo Shen > > Add clocks for usb device, or else switch to CCF, the gadget > won't work. > > Reported-by: Jiri Prchal > Signed-off-by: Bo Shen > Acked-by: Alexandre Belloni > Tested-by: Jiri Prchal > Signed-off-by: Nicolas

Re: [PATCH 6/8] Drivers: scsi: storvsc: Implement an abort handler

2014-07-12 Thread Richard Weinberger
On Thu, Jul 10, 2014 at 12:33 PM, Richard Weinberger wrote: > On Wed, Jul 9, 2014 at 8:51 PM, KY Srinivasan wrote: >> >> >>> -Original Message- >>> From: Christoph Hellwig [mailto:h...@infradead.org] >>> Sent: Wednesday, July 9, 2014 1:44 AM >>> To: KY Srinivasan >>> Cc: linux-kernel@vger

RE: [PATCH 6/8] Drivers: scsi: storvsc: Implement an abort handler

2014-07-12 Thread KY Srinivasan
> -Original Message- > From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Saturday, July 12, 2014 9:17 AM > To: KY Srinivasan > Cc: Christoph Hellwig; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; oher...@suse.com; > jbottom...@parallels.com; jasow...@r

  1   2   3   >