RE: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace

2014-11-14 Thread Luck, Tony
> Can you also try rebasing onto what will probably be v3? > > https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/tag/?id=paranoid-stack-v2.9 Built that - with none of my other changes ... i.e. still use TIF_NOTIFY_MCE etc. No printk() in the MCE context. System ran 736

Re: [RFC][PATCH 14/23 v4] tracing: Convert seq_buf_path() to be like seq_path()

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 17:53:08 +0100 Petr Mladek wrote: > > /** > > diff --git a/kernel/trace/trace_seq.c b/kernel/trace/trace_seq.c > > index 3c63b619d6b7..475412e31de5 100644 > > --- a/kernel/trace/trace_seq.c > > +++ b/kernel/trace/trace_seq.c > > @@ -342,7 +342,7 @@ int trace_seq_path(struct

Re: [PATCH 3.17 023/319] drivers/net: Disable UFO through virtio

2014-11-14 Thread Greg Kroah-Hartman
On Wed, Nov 12, 2014 at 09:03:59PM +, Ben Hutchings wrote: > On Wed, 2014-11-12 at 10:12 +0900, Greg Kroah-Hartman wrote: > > 3.17-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Ben Hutchings > > > > [ Upstream commit

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2014-11-14 Thread Benson Leung
Hi Jeffrey, On Thu, Nov 13, 2014 at 11:19 PM, jeffrey.lin wrote: > this patch is porting Raydium I2C touch driver. Developer can enable > Raydium touch driver by modifying define "CONFIG_TOUCHSCREEN_RM31100" > in config/base.config > > Change-Id: Idae54cc4bca17f321a1d0895a8b59680bf9af859

Re: [PATCH v2] virtio_balloon: Convert "vballon" kthread into a workqueue

2014-11-14 Thread Petr Mladek
On Fri 2014-11-14 08:19:15, Tejun Heo wrote: > Hello, Michael, Petr. > > On Wed, Nov 12, 2014 at 03:32:04PM +0200, Michael S. Tsirkin wrote: > > > + /* The workqueue servicing the balloon. */ > > > + struct workqueue_struct *wq; > > > + struct work_struct wq_work; > > > > We could use

Re: [BUG] index is out of range for nfnl_group2type[]

2014-11-14 Thread Pablo Neira Ayuso
On Thu, Nov 13, 2014 at 12:00:43PM +0300, Andrey Ryabinin wrote: > FYI I've spotted this: > > [ 180.202810] > > [ 180.203600] UBSan: Undefined behaviour in > ../net/netfilter/nfnetlink.c:467:28 > [ 180.204249]

Re: [PATCH] tty: serial: msm_serial: Use DT aliases

2014-11-14 Thread Kevin Hilman
Stephen Boyd writes: > On 11/13/2014 04:46 PM, Frank Rowand wrote: >> On 11/13/2014 11:31 AM, Stephen Boyd wrote: >>> Sorry, I'm sort of lost. If there are serial aliases in the dts file, >>> then we should alias all of the serial ports. If there aren't aliases >>> then we're backwards

Re: [RFC PATCH 2/3] mmc: omap_hsmmc: add tuning support

2014-11-14 Thread Felipe Balbi
Hi, On Thu, Nov 13, 2014 at 06:26:18PM +0530, Kishon Vijay Abraham I wrote: > @@ -233,6 +263,48 @@ struct omap_mmc_of_data { > u8 controller_flags; > }; > > +static const u32 ref_tuning_4bits[] = { > + 0x00FF0FFF, 0xCCC3CCFF, 0xFFCC3CC3, 0xEFFEFFFE, > + 0xDDFFDFFF, 0xFBFFFBFF,

Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled

2014-11-14 Thread Kevin Hilman
Geert Uytterhoeven writes: > Hi Kevin, > > On Thu, Nov 13, 2014 at 11:28 PM, Kevin Hilman wrote: >> It makes little sense to use generic power domains without runtime PM. > > Does it? > It still powers down the PM domains on system suspend (at least on my > boards ;-) Sure, but your devices

Re: [patch 07/16] genirq: Introduce helper irq_domain_set_info() to reduce duplicated code

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:41, Jiang Liu wrote: > On 2014/11/14 23:31, Marc Zyngier wrote: >> On 12/11/14 13:43, Thomas Gleixner wrote: >>> From: Jiang Liu >>> >>> Signed-off-by: Jiang Liu >>> Cc: Bjorn Helgaas >>> Cc: Grant Likely >>> Cc: Marc Zyngier >>> Cc: Yingjoe Chen >>> Cc: Yijing Wang >>>

Re: [RFC][PATCH 19/23 v4] seq_buf: Create seq_buf_used() to find out how much was written

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 18:23:06 +0100 Petr Mladek wrote: > On Thu 2014-11-13 20:13:03, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > Add a helper function seq_buf_used() that replaces the SEQ_BUF_USED() > > private macro to let callers have a method to know how much of the >

Re: N900 modem support in 3.18-rc1

2014-11-14 Thread Pali Rohár
On Friday 14 November 2014 18:20:09 Sebastian Reichel wrote: > Hi, > > On Fri, Nov 14, 2014 at 09:04:23AM +0200, Ivaylo Dimitrov wrote: > > [...] > > https://gitorious.org/linux-n900/freemangordons-linux-n900/c > > ommits/30e9a5c498a89cea4c29523f69e436bf0af3c631 > > > > commits 89ce13b,

Re: [RFC][PATCH 17/23 v4] tracing: Have seq_buf use full buffer

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 18:07:16 +0100 Petr Mladek wrote: > On Thu 2014-11-13 20:13:01, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > Currently seq_buf is full when all but one byte of the buffer is > > filled. Change it so that the seq_buf is full when all of the > > buffer

Linux 3.14.24

2014-11-14 Thread Greg KH
I'm announcing the release of the 3.14.24 kernel. All users of the 3.14 kernel series must upgrade. The updated 3.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.y and can be browsed at the normal kernel.org git web

Re: Linux 3.10.60

2014-11-14 Thread Greg KH
diff --git a/Makefile b/Makefile index 7baf27f5cf0f..9d4f30d0d201 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 59 +SUBLEVEL = 60 EXTRAVERSION = NAME = TOSSUG Baby Fish diff --git a/arch/arc/boot/dts/nsimosci.dts b/arch/arc/boot/dts/nsimosci.dts

Linux 3.10.60

2014-11-14 Thread Greg KH
I'm announcing the release of the 3.10.60 kernel. All users of the 3.10 kernel series must upgrade. The updated 3.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y and can be browsed at the normal kernel.org git web

Re: [PATCH v7 03/13] ARM: Berlin: select the reset controller

2014-11-14 Thread Antoine Tenart
Sebastian, On Fri, Nov 14, 2014 at 04:36:50PM +0100, Sebastian Hesselbarth wrote: > On 11/14/2014 04:33 PM, Arnd Bergmann wrote: > >On Friday 14 November 2014 16:25:53 Antoine Tenart wrote: > >> menuconfig ARCH_BERLIN > >> bool "Marvell Berlin SoCs" if ARCH_MULTI_V7 > >>+ select

Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled

2014-11-14 Thread Kevin Hilman
Hi Ulf, Ulf Hansson writes: > On 13 November 2014 23:28, Kevin Hilman wrote: >> From: Kevin Hilman >> >> It makes little sense to use generic power domains without runtime PM. >> Also, since the complexities of handling the !PM_RUNTIME case are >> causing more trouble and confusion than

Re: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace

2014-11-14 Thread Andy Lutomirski
On Fri, Nov 14, 2014 at 9:24 AM, Borislav Petkov wrote: > On Fri, Nov 14, 2014 at 09:18:51AM -0800, Andy Lutomirski wrote: >> Grr. Do you or Tony have any pointers for how to test this myself? I >> don't know enough about the acpi error injection thing, which I assume >> is that Tony is using. >

Re: [PATCH 3/3] fm10k/igb/ixgbe: Use load_acquire on Rx descriptor

2014-11-14 Thread Jeff Kirsher
On Thu, 2014-11-13 at 11:27 -0800, Alexander Duyck wrote: > This change makes it so that load_acquire is used when reading the Rx > descriptor. The advantage of load_acquire is that it allows for a > much > lower cost barrier on x86, ia64, powerpc, arm64, and s390 > architectures > than a

Re: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace

2014-11-14 Thread Borislav Petkov
On Fri, Nov 14, 2014 at 09:18:51AM -0800, Andy Lutomirski wrote: > Grr. Do you or Tony have any pointers for how to test this myself? I > don't know enough about the acpi error injection thing, which I assume > is that Tony is using. Maybe that would help: Documentation/acpi/apei/einj.txt

Re: [RFC][PATCH 13/23 v4] tracing: Create seq_buf layer in trace_seq

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 17:26:52 +0100 Petr Mladek wrote: > The return is redundant. > > The above mentioned potential overflows happen only if > we apply "[RFC][PATCH 17/23 v4] > tracing: Have seq_buf use full buffer". The code is safe > at this stage. The other problems are minor. > > If you

Re: [RFC][PATCH 19/23 v4] seq_buf: Create seq_buf_used() to find out how much was written

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:13:03, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Add a helper function seq_buf_used() that replaces the SEQ_BUF_USED() > private macro to let callers have a method to know how much of the > seq_buf was written to. > > Signed-off-by: Steven Rostedt

Re: [PATCH v2 1/2] kernel: printk: specify alignment for struct printk_log

2014-11-14 Thread Joe Perches
On Fri, 2014-11-14 at 15:50 +0300, Andrey Ryabinin wrote: > On architectures that have support for efficient unaligned access > struct printk_log has 4-byte alignment. > Specify alignment attribute in type declaration. > > The whole point of this patch is to fix deadlock which happening > when

Re: [PATCH V3 3/3] mfd: palmas: Add support for optional wakeup

2014-11-14 Thread Felipe Balbi
On Fri, Nov 14, 2014 at 09:08:17AM -0800, Tony Lindgren wrote: > * Felipe Balbi [141114 08:20]: > > On Thu, Nov 13, 2014 at 09:40:31AM -0800, Tony Lindgren wrote: > > > +/** > > > + * handle_wakeirq_thread - call device runtime pm calls on wake-up > > > interrupt > > > + * @wakeirq:

Re: [PATCH/RFC] workqueue: allow rescuer thread to do more work.

2014-11-14 Thread Tejun Heo
Hello, On Tue, Nov 11, 2014 at 09:04:02AM +1100, NeilBrown wrote: > diff --git a/kernel/workqueue.c b/kernel/workqueue.c > index 09b685daee3d..f2db6073c498 100644 > --- a/kernel/workqueue.c > +++ b/kernel/workqueue.c > @@ -2235,11 +2235,6 @@ repeat: > struct work_struct *work, *n; >

Re: N900 modem support in 3.18-rc1

2014-11-14 Thread Sebastian Reichel
Hi, On Fri, Nov 14, 2014 at 09:04:23AM +0200, Ivaylo Dimitrov wrote: > [...] > https://gitorious.org/linux-n900/freemangordons-linux-n900/commits/30e9a5c498a89cea4c29523f69e436bf0af3c631 > > commits 89ce13b, b81d80d, ec4d0dc, 91256e2 and 8022a6d - e29f558 (no idea > why gitorious shows those

Re: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace

2014-11-14 Thread Andy Lutomirski
On Nov 14, 2014 2:34 AM, "Borislav Petkov" wrote: > > On Wed, Nov 12, 2014 at 07:03:21PM -0800, Andy Lutomirski wrote: > > printk seems to work just fine in do_machine_check. > > That must be pure luck. Has anything changed which I missed to make > printk NMI-safe? Heh. Probably not. Now I

Re: [RFC][PATCH 13/23 v4] tracing: Create seq_buf layer in trace_seq

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 17:26:52 +0100 Petr Mladek wrote: > On Thu 2014-11-13 20:12:57, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > Create a seq_buf layer that trace_seq sits on. The seq_buf will not > > be limited to page size. This will allow other usages of seq_buf > >

Re: [RFC][PATCH 18/23 v4] tracing: Add seq_buf_get_buf() and seq_buf_commit() helper functions

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:13:02, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Add two helper functions; seq_buf_get_buf() and seq_buf_commit() that > are used by seq_buf_path(). This makes the code similar to the > seq_file: seq_path() function, and will help to be able to consolidate

Re: [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-14 Thread Juergen Gross
On 11/14/2014 05:47 PM, Konrad Rzeszutek Wilk wrote: On Fri, Nov 14, 2014 at 05:53:19AM +0100, Juergen Gross wrote: On 11/13/2014 08:56 PM, Konrad Rzeszutek Wilk wrote: + mfn_save = virt_to_mfn(buf); + + while (xen_remap_mfn != INVALID_P2M_ENTRY) { So the 'list' is constructed by

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Lucas Stach
Am Freitag, den 14.11.2014, 16:03 + schrieb Marc Zyngier: > On 14/11/14 15:25, Jiang Liu wrote: > > On 2014/11/14 23:16, Marc Zyngier wrote: > >> On 14/11/14 14:26, Jiang Liu wrote: > >>> On 2014/11/14 22:11, Yijing Wang wrote: > > >>> We have achieved 1 and 2. And seems we could also

Re: [PATCH 09/11] x86, mpx: on-demand kernel allocation of bounds tables

2014-11-14 Thread Dave Hansen
On 11/14/2014 08:47 AM, Thomas Gleixner wrote: > On Fri, 14 Nov 2014, Dave Hansen wrote: >> * move mm init-time #ifdef to mpx.h > >> +static inline void arch_bprm_mm_init(struct mm_struct *mm, >> +struct vm_area_struct *vma) >> +{ >> +mpx_mm_init(mm); >> +#ifdef

[PATCH] mmu_gather: move minimal range calculations into generic code

2014-11-14 Thread Will Deacon
On architectures with hardware broadcasting of TLB invalidation messages , it makes sense to reduce the range of the mmu_gather structure when unmapping page ranges based on the dirty address information passed to tlb_remove_tlb_entry. arm64 already does this by directly manipulating the

Re: anon_vma accumulating for certain load still not addressed

2014-11-14 Thread Vlastimil Babka
On 11/14/2014 04:06 PM, Rik van Riel wrote: On 11/14/2014 08:08 AM, Michal Hocko wrote: Hi, back in 2012 [1] there was a discussion about a forking load which accumulates anon_vmas. There was a trivial test case which triggers this and can potentially deplete the memory by local user. We have

Re: [PATCHv6 4/5] hwspinlock/core: add common OF helpers

2014-11-14 Thread Suman Anna
Hi Ohad, On 11/14/2014 01:11 AM, Ohad Ben-Cohen wrote: > Hi Suman, > > On Thu, Nov 13, 2014 at 11:02 PM, Suman Anna wrote: >> OK, lets take an example. I have say 2 device instances, say >> hwlock1: hwlock@0 { >> hwlock-num-locks = <32> >> hwlock-base-id

Re: [PATCH V3 3/3] mfd: palmas: Add support for optional wakeup

2014-11-14 Thread Tony Lindgren
* Felipe Balbi [141114 08:20]: > On Thu, Nov 13, 2014 at 09:40:31AM -0800, Tony Lindgren wrote: > > +/** > > + * handle_wakeirq_thread - call device runtime pm calls on wake-up > > interrupt > > + * @wakeirq: device specific wake-up interrupt > > + * @dev_id: struct device entry > > + */ > >

Re: [RFC][PATCH 12/23 v4] tracing: Remove return values of most trace_seq_*() functions

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 14:17:28 +0100 Petr Mladek wrote: > > @@ -334,10 +297,7 @@ int trace_seq_putmem_hex(struct trace_seq *s, const > > void *mem, > > /* j increments twice per loop */ > > len -= j / 2; > > hex[j++] = ' '; > > - > > - cnt +=

Re: [alsa-devel] Question on Compressed offload session

2014-11-14 Thread Mark Brown
On Fri, Nov 14, 2014 at 10:28:54AM -0600, Pierre-Louis Bossart wrote: > On 11/13/14, 10:08 PM, gsant...@codeaurora.org wrote: > >1) in Codec driver avoid adding hw_constraint during startup if compressed > >session is routed, this recommend for codec driver to know that compress > >session is

Re: [RFC][PATCH 17/23 v4] tracing: Have seq_buf use full buffer

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:13:01, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Currently seq_buf is full when all but one byte of the buffer is > filled. Change it so that the seq_buf is full when all of the > buffer is filled. > > Some of the functions would fill the buffer

Re: [PATCH V4 01/14] sh: Eliminate unused irq_reg_{readl,writel} accessors

2014-11-14 Thread Jason Cooper
On Fri, Nov 14, 2014 at 05:38:44PM +0100, Ralf Baechle wrote: > On Mon, Nov 10, 2014 at 09:13:49AM +0100, Geert Uytterhoeven wrote: > > > On Fri, Nov 7, 2014 at 7:44 AM, Kevin Cernekee wrote: > > > Defining these macros way down in arch/sh/.../irq.c doesn't cause > > > kernel/irq/generic-chip.c

Re: [PATCH 1/3] arch: Introduce load_acquire() and store_release()

2014-11-14 Thread Alexander Duyck
On 11/14/2014 02:45 AM, David Laight wrote: From: Alexander Duyck It is common for device drivers to make use of acquire/release semantics when dealing with descriptors stored in device memory. On reviewing the documentation and code for smp_load_acquire() and smp_store_release() as well as

Re: [RFC PATCH] printk: Use ACCESS_ONCE() instead of a volatile type

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 10:39:34 -0600 Alex Elder wrote: > There is only one read of logbuf_cpu: > if (unlikely(logbuf_cpu == this_cpu)) { > This is called only while local interrupts are disabled, so > if this condition holds it cannot be due to an interrupt--it Unless an NMI called

Re: N900 modem support in 3.18-rc1

2014-11-14 Thread Sebastian Reichel
On Fri, Nov 14, 2014 at 08:37:56AM +0100, Pavel Machek wrote: > I'm using nfsroot (no modules), .config is attached. Debian v7.7, > ofono installed. > > To launch ofono, I'm using: > > rmdir /dev/cmt > ln -s /sys/bus/hsi/devices/n900-modem/ /dev/cmt At least with Debian as base you can add this

Re: [RFC][PATCH 14/23 v4] tracing: Convert seq_buf_path() to be like seq_path()

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:12:58, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Rewrite seq_buf_path() like it is done in seq_path() and allow > it to accept any escape character instead of just "\n". > > Making seq_buf_path() like seq_path() will help prevent problems > when

Re: [PATCH v6 0/7] vfs: Non-blockling buffered fs read (page cache only)

2014-11-14 Thread Jeff Moyer
Dave Jones writes: > On Fri, Nov 14, 2014 at 11:32:53AM -0500, Jeff Moyer wrote: > > > > Can you write a test (or set of) for fstests that exercises this new > > > functionality? I'm not worried about performance, just > > > correctness > > > > On the subject of testing, I added

Re: [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-14 Thread Konrad Rzeszutek Wilk
On Fri, Nov 14, 2014 at 05:53:19AM +0100, Juergen Gross wrote: > On 11/13/2014 08:56 PM, Konrad Rzeszutek Wilk wrote: > + mfn_save = virt_to_mfn(buf); > + > + while (xen_remap_mfn != INVALID_P2M_ENTRY) { > >>> > >>>So the 'list' is constructed by going forward - that is from

Re: [PATCH 09/11] x86, mpx: on-demand kernel allocation of bounds tables

2014-11-14 Thread Thomas Gleixner
On Fri, 14 Nov 2014, Dave Hansen wrote: > * move mm init-time #ifdef to mpx.h > +static inline void arch_bprm_mm_init(struct mm_struct *mm, > + struct vm_area_struct *vma) > +{ > + mpx_mm_init(mm); > +#ifdef CONFIG_X86_INTEL_MPX > + mm->bd_addr = MPX_INVALID_BOUNDS_DIR; >

Re: [PATCH 3.10 000/123] 3.10.60-stable review

2014-11-14 Thread Greg Kroah-Hartman
On Thu, Nov 13, 2014 at 08:25:42AM -0700, Shuah Khan wrote: > On 11/11/2014 06:16 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.10.60 release. > > There are 123 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH v6 0/7] vfs: Non-blockling buffered fs read (page cache only)

2014-11-14 Thread Dave Jones
On Fri, Nov 14, 2014 at 11:32:53AM -0500, Jeff Moyer wrote: > > Can you write a test (or set of) for fstests that exercises this new > > functionality? I'm not worried about performance, just > > correctness > > On the subject of testing, I added support to trinity (attached, >

Re: [PATCH V4 01/14] sh: Eliminate unused irq_reg_{readl,writel} accessors

2014-11-14 Thread Ralf Baechle
On Mon, Nov 10, 2014 at 09:13:49AM +0100, Geert Uytterhoeven wrote: > On Fri, Nov 7, 2014 at 7:44 AM, Kevin Cernekee wrote: > > Defining these macros way down in arch/sh/.../irq.c doesn't cause > > kernel/irq/generic-chip.c to use them. As far as I can tell this code > > has no effect. > > > >

Re: [RFC PATCH] printk: Use ACCESS_ONCE() instead of a volatile type

2014-11-14 Thread Alex Elder
On 11/13/2014 11:24 PM, Steven Rostedt wrote: > On Thu, 13 Nov 2014 23:57:22 -0500 > Steven Rostedt wrote: > >> That assignment is what it is initialized to at boot up. I can't see >> any optimization that would cause gcc to modify that. Especially since >> we are hiding its accesses within the

[PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-14 Thread Daniel Forrest
There have been a couple of inquiries about the status of this patch over the last few months, so I am going to try pushing it out. Andrea Arcangeli has commented: > Agreed. The only thing I don't like about this patch is the hardcoding > of number 5: could we make it a variable to tweak with

Re: [PATCH v6 0/7] vfs: Non-blockling buffered fs read (page cache only)

2014-11-14 Thread Jeff Moyer
Dave Chinner writes: > On Mon, Nov 10, 2014 at 11:40:23AM -0500, Milosz Tanski wrote: >> This patcheset introduces an ability to perform a non-blocking read from >> regular files in buffered IO mode. This works by only for those filesystems >> that have data in the page cache. >> >> It does

Re: [PATCH 0/6] arm64: alternatives runtime patching

2014-11-14 Thread Catalin Marinas
On Fri, Nov 14, 2014 at 04:20:10PM +, Arnd Bergmann wrote: > On Friday 14 November 2014 15:54:06 Andre Przywara wrote: > > This series introduces alternatives runtime patching to arm64. > > This allows to patch assembly instruction at runtime to either > > fix hardware bugs or optimize for

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 8:06 AM, Hannes Frederic Sowa wrote: > On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: >> On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa >> wrote: >> > On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: >> >> the current meaning of

Re: BUG in scsi_lib.c due to a bad commit

2014-11-14 Thread Barto
Hello Christoph, I did the new bisect, the first bad commit is : 74665016086615bbaa3fa6f83af410a0a4e029ee scsi: convert host_busy to atomic_t you can find the bisect log here : https://bugzilla.kernel.org/attachment.cgi?id=157621 Le 14/11/2014 08:32, Christoph Hellwig a écrit : > On Thu,

Re: [PATCH v2] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
According to your taste, we need improve 2 contents below: On 11/14/2014 11:55 PM, Marc Zyngier wrote: > > No. This is completely overdesigned, and fixes something that really > cannot happen. What is wrong with: > > diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c > index

Re: [alsa-devel] Question on Compressed offload session

2014-11-14 Thread Pierre-Louis Bossart
On 11/13/14, 10:08 PM, gsant...@codeaurora.org wrote: On 11/12/14, 9:02 PM, gsant...@codeaurora.org wrote: Hi All, The Question is for the compressed offload session. For a generic codec driver during the startup function it will set some of the hw_constraints rule similarly like this.

[PATCHv8 3/4] sparc: Hook up execveat system call.

2014-11-14 Thread David Drysdale
Signed-off-by: David Drysdale --- arch/sparc/include/uapi/asm/unistd.h | 3 ++- arch/sparc/kernel/systbls_32.S | 1 + arch/sparc/kernel/systbls_64.S | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/sparc/include/uapi/asm/unistd.h

Re: [RFC][PATCH 13/23 v4] tracing: Create seq_buf layer in trace_seq

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:12:57, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Create a seq_buf layer that trace_seq sits on. The seq_buf will not > be limited to page size. This will allow other usages of seq_buf > instead of a hard set PAGE_SIZE one that trace_seq has. > > Link:

[PATCHv8 1/4] syscalls,x86: implement execveat() system call

2014-11-14 Thread David Drysdale
Add a new execveat(2) system call. execveat() is to execve() as openat() is to open(): it takes a file descriptor that refers to a directory, and resolves the filename relative to that. In addition, if the filename is empty and AT_EMPTY_PATH is specified, execveat() executes the file to which the

[PATCHv8 2/4] syscalls,x86: add selftest for execveat(2)

2014-11-14 Thread David Drysdale
Signed-off-by: David Drysdale --- tools/testing/selftests/Makefile| 1 + tools/testing/selftests/exec/.gitignore | 9 + tools/testing/selftests/exec/Makefile | 25 ++ tools/testing/selftests/exec/execveat.c | 397 4 files changed, 432 insertions(+)

[PATCHv8 man-pages 4/4] execveat.2: initial man page for execveat(2)

2014-11-14 Thread David Drysdale
Signed-off-by: David Drysdale --- man2/execveat.2 | 153 1 file changed, 153 insertions(+) create mode 100644 man2/execveat.2 diff --git a/man2/execveat.2 b/man2/execveat.2 new file mode 100644 index ..937d79e4c4f0 ---

[PATCHv8 0/4] syscalls,x86,sparc: Add execveat() system call

2014-11-14 Thread David Drysdale
Sparc folks: the kbuild robots complained about sparc missing this syscall, so I've speculatively included an extra patch in this version for that. However, I've not run it (only cross-compiled it), so it may be best to skip the [3/4] patch and let the experts deal with other architectures later

Re: [Cocci] spatch for trivial pointer comparison style?

2014-11-14 Thread Joe Perches
On Fri, 2014-11-14 at 10:18 +0100, Julia Lawall wrote: > On Thu, 13 Nov 2014, Joe Perches wrote: [] > > Yes, I agree with some of the things Al Viro said > > there, but isn't 'type t; t *p;' a subset of > > "expression *e"? > No. How would you expect it to be different. [] > type t means

Re: [RFC][PATCH 12/23 v4] tracing: Remove return values of most trace_seq_*() functions

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 09:53:39 -0500 Steven Rostedt wrote: > > > @@ -334,10 +297,7 @@ int trace_seq_putmem_hex(struct trace_seq *s, const > > > void *mem, > > > /* j increments twice per loop */ > > > len -= j / 2; > > > hex[j++] = ' '; > > > - > > > - cnt

Re: [PATCH 0/6] arm64: alternatives runtime patching

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 15:54:06 Andre Przywara wrote: > This series introduces alternatives runtime patching to arm64. > This allows to patch assembly instruction at runtime to either > fix hardware bugs or optimize for certain hardware features. Look > at patch 5/6 for an example on how to

Re: linux-next: build failure after merge of the block tree

2014-11-14 Thread Fabian Frederick
> On 11 November 2014 at 16:27 Jens Axboe wrote: > > > On 2014-11-11 04:20, Fabian Frederick wrote: > > > > > >> On 11 November 2014 at 03:12 Stephen Rothwell > >> wrote: > >> > >> > >> Hi Jens, > >> > >> After merging the block tree, today's linux-next build (x86_64 > >> allmodconfig) failed

Re: [PATCH V3 3/3] mfd: palmas: Add support for optional wakeup

2014-11-14 Thread Felipe Balbi
Hi, On Thu, Nov 13, 2014 at 09:40:31AM -0800, Tony Lindgren wrote: [snip] > From: Tony Lindgren > Date: Tue, 11 Nov 2014 07:53:55 -0800 > Subject: [PATCH] genirq: Add support for wake-up interrupts to fix irq > reentry issues in drivers > > As pointed out by Thomas Gleixner, at least omap

Re: [PATCH v4 10/13] memory: tegra: Add EMC (external memory controller) driver

2014-11-14 Thread Tomeu Vizoso
On 12 November 2014 16:45, Thierry Reding wrote: > On Wed, Nov 12, 2014 at 08:56:33AM +0100, Tomeu Vizoso wrote: >> +struct emc_timing { >> + unsigned long rate; >> + >> + /* >> + * Store EMC burst data in a union to minimize mistakes. This allows >> + * us to use the same

Re: simd: Allow simd use in kernel threads with softirqs disabled

2014-11-14 Thread Ard Biesheuvel
On 14 November 2014 16:43, Herbert Xu wrote: > While working on the cryptd request reordering problem, I noticed > an anomaly where kernel threads are normally allowed to use simd > per may_use_simd, but as soon as you disable softirqs, they suddenly > lose that ability for no good reason. > >

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:54, Jiang Liu wrote: > On 2014/11/14 5:28, Marc Zyngier wrote: >> On 13/11/14 21:11, Thomas Gleixner wrote: >>> On Thu, 13 Nov 2014, Marc Zyngier wrote: With the new stacked irq domains, it becomes pretty tempting to allocate an MSI domain per PCI bus, which would remove

Re: [PATCH v2] ACPI/osl: speedup grace period in acpi_os_map_cleanup

2014-11-14 Thread joeyli
Hi, On Sun, Nov 09, 2014 at 01:53:37PM +0400, Konstantin Khlebnikov wrote: > ACPI maintains cache of ioremap regions to speed up operations and > access to them from irq context where ioremap() calls aren't allowed. > This code abuses synchronize_rcu() on unmap path for synchronization > with

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: > On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa > wrote: > > On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: > >> the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: > >> either update existing map element

RE: [PATCH 06/10] libata: use __scsi_format_command()

2014-11-14 Thread Elliott, Robert (Server Storage)
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Thursday, 06 November, 2014 2:31 AM > To: James Bottomley > Cc: Christoph Hellwig; Ewan Milne; Elliott, Robert (Server Storage); > linux-s...@vger.kernel.org; Hannes Reinecke; linux- > i...@vger.kernel.org; LKML >

[PATCH 1/2] DT: i2c: Add more devices handled by the rtc-rs5c372 driver

2014-11-14 Thread Geert Uytterhoeven
This allows checkpatch to validate more DTSes. Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:25, Jiang Liu wrote: > On 2014/11/14 23:16, Marc Zyngier wrote: >> On 14/11/14 14:26, Jiang Liu wrote: >>> On 2014/11/14 22:11, Yijing Wang wrote: >>> We have achieved 1 and 2. And seems we could also achieve 3 by >>> converting all arch specific PCI MSI code to use hierarchy

[PATCH 2/2] DT: i2c: Add more devices handled by the adxl34x-i2c driver

2014-11-14 Thread Geert Uytterhoeven
This allows checkpatch to validate more DTSes. Signed-off-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt

Re: [PATCH 09/16] percpu: Replace smp_read_barrier_depends() with lockless_dereference()

2014-11-14 Thread Pranith Kumar
On Fri, Nov 14, 2014 at 8:14 AM, Tejun Heo wrote: > > How should this be routed? There's a pending change on the same > region of code and if this patch is routed outside percpu tree it'd > cause a conflict and I can't route this as lockless_dereference() > isn't in the mainline yet. Maybe

Re: [PATCH 1/3] arch: Introduce load_acquire() and store_release()

2014-11-14 Thread Alexander Duyck
On 11/14/2014 02:19 AM, Will Deacon wrote: Hi Alex, On Thu, Nov 13, 2014 at 07:27:23PM +, Alexander Duyck wrote: It is common for device drivers to make use of acquire/release semantics when dealing with descriptors stored in device memory. On reviewing the documentation and code for

Re: [PATCH 4/4] arm: dts: omap3-gta04: Add static configuration for devconf1 register

2014-11-14 Thread Tony Lindgren
* Grazvydas Ignotas [141114 06:38]: > On Fri, Nov 14, 2014 at 1:58 AM, Tony Lindgren wrote: > > * Paul Walmsley [141113 15:01]: > >> Hi > >> > >> On Thu, 13 Nov 2014, Tony Lindgren wrote: > >> > >> > * Tomi Valkeinen [141113 03:33]: > >> > > On 12/11/14 17:02, Tony Lindgren wrote: > >> > > >

[PATCH 4/6] arm64: add Cortex-A53 cache errata workaround

2014-11-14 Thread Andre Przywara
The ARM errata 819472, 826319, 827319 and 824069 define the same workaround for these hardware issues in certain Cortex-A53 parts. Use the new alternatives framework and the CPU MIDR detection to patch "cache clean" into "cache clean and invalidate" instructions if an affected CPU is detected at

[PATCH 1/6] arm64: add cpu_capabilities bitmap

2014-11-14 Thread Andre Przywara
For taking note if at least one CPU in the system needs a bug workaround or would benefit from a code optimization, we create a new bitmap to hold (artificial) feature bits. Since elf_hwcap is part of the userland ABI, we keep it alone and introduce a new data structure for that (along with some

[PATCH 6/6] arm64: protect alternatives workarounds with Kconfig options

2014-11-14 Thread Andre Przywara
Not all of the errata we have workarounds for apply necessarily to all SoCs, so people compiling a kernel for one very specific SoC may not need to patch the kernel. Introduce a new submenu in the "Platform selection" menu to allow people to turn off certain bugs if they are not affected. By

[PATCH 0/6] arm64: alternatives runtime patching

2014-11-14 Thread Andre Przywara
This series introduces alternatives runtime patching to arm64. This allows to patch assembly instruction at runtime to either fix hardware bugs or optimize for certain hardware features. Look at patch 5/6 for an example on how to use this. The code is heavily based on the x86 implementation.

Re: [PATCH v2] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:18, Chen Gang wrote: > When kvm_register_device_ops() fails, need disable_percpu_irq(), need > vgic_arch_unsetup(), need __unregister_cpu_notifier(), and also need > free_percpu_irq(). > > At present, there is no vgic_arch_unsetup(), so add it for resetting > '__vgic_sr_vectors'. >

Re: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-14 Thread Alan Stern
On Thu, 13 Nov 2014, Julius Werner wrote: > Another thing might be that the port connect interrupt does not > correctly resume the root hub. I don't really know many details about > how that works, and it seems pretty complicated. But I can see that > all other HCDs seem to call

[PATCH 3/6] arm64: detect silicon revisions and set cap bits accordingly

2014-11-14 Thread Andre Przywara
After each CPU has been started, we iterate through a list of CPU features or bugs to detect CPUs which need (or could benefit from) kernel code patches. For each feature/bug there is a function which checks if that particular CPU is affected. We will later provide some more generic functions for

[PATCH 2/6] arm64: add alternative runtime patching

2014-11-14 Thread Andre Przywara
With a blatant copy of some x86 bits we introduce the alternative runtime patching "framework" to arm64. This is quite basic for now and we only provide the functions we need at this time. This is connected to the newly introduced feature bits. Signed-off-by: Andre Przywara ---

[PATCH 5/6] arm64: add Cortex-A57 erratum 832075 workaround

2014-11-14 Thread Andre Przywara
The ARM erratum 832075 applies to certain revisions of Cortex-A57, one of the workarounds is to change device loads into using load-aquire semantics. This is achieved using the alternatives framework. Signed-off-by: Andre Przywara --- arch/arm64/include/asm/cpufeature.h |5 +++--

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Jiang Liu
On 2014/11/14 5:28, Marc Zyngier wrote: > On 13/11/14 21:11, Thomas Gleixner wrote: >> On Thu, 13 Nov 2014, Marc Zyngier wrote: >>> With the new stacked irq domains, it becomes pretty tempting >>> to allocate an MSI domain per PCI bus, which would remove >>> the requirement of either relying on

Re: [RFC 0/5] perf tools: Add perf data CTF conversion

2014-11-14 Thread Mathieu Desnoyers
- Original Message - > From: "Sebastian Andrzej Siewior" > To: "Mathieu Desnoyers" > Cc: "Alexandre Montplaisir" , "Jiri Olsa" > , linux-kernel@vger.kernel.org, > "Dominique Toupin" , "Tom Zanussi" > , "Jeremie Galarneau" > , "David Ahern" , "Arnaldo Carvalho > de Melo" > Sent:

Re: [PATCH 1/6] usb: chipidea: add a core function to setup ci_hdrc_platform_data

2014-11-14 Thread Antoine Tenart
Peter, On Fri, Nov 14, 2014 at 09:16:55AM +0800, Peter Chen wrote: > > Ok, Antoine, I find this patch set may not have many benefits due to > below reasons: > - There is already function ci_get_platdata to do the similar things > - If the PHY can't get from the DT, it will use devm_phy_get or >

[PATCH] [v2] x86: remove arbitrary instruction size limit in instruction decoder

2014-11-14 Thread Dave Hansen
From: Dave Hansen Changes from v1: * update the pebs code to handle short reads * add checking of insn_get_*() functions in case a short read causes them to fail (we probably need this anyway to handle other decoder failure cases) -- The current x86 instruction decoder steps along

[PATCH] kernel:signal.c Fix coding style errors and warnings.

2014-11-14 Thread Ionut Alexa
Fix various coding style errors and warnings as: - space before tabs - exiting a function from different points (else after return ..) Signed-off-by: Ionut Alexa --- kernel/signal.c | 104 +-- 1 file changed, 55

simd: Allow simd use in kernel threads with softirqs disabled

2014-11-14 Thread Herbert Xu
While working on the cryptd request reordering problem, I noticed an anomaly where kernel threads are normally allowed to use simd per may_use_simd, but as soon as you disable softirqs, they suddenly lose that ability for no good reason. The problem is that in_interrupt does not distinguish

Re: [PATCH] rtlwifi: Add more checks for get_btc_status callback

2014-11-14 Thread Mike Galbraith
On Wed, 2014-11-12 at 21:03 -0200, Murilo Opsfelder Araújo wrote: > Hello, Larry. > > I'd like to let you know that next-20141112 brought my rtl8192se > device back to life. I didn't need to build rtlwifi_new to be able to > connect to my wifi network. It worked just fine. Yeah,

Re: [patch 07/16] genirq: Introduce helper irq_domain_set_info() to reduce duplicated code

2014-11-14 Thread Jiang Liu
On 2014/11/14 23:31, Marc Zyngier wrote: > On 12/11/14 13:43, Thomas Gleixner wrote: >> From: Jiang Liu >> >> Signed-off-by: Jiang Liu >> Cc: Bjorn Helgaas >> Cc: Grant Likely >> Cc: Marc Zyngier >> Cc: Yingjoe Chen >> Cc: Yijing Wang >> Signed-off-by: Thomas Gleixner >> --- >>

Re: [RFC][PATCH 10/23 v4] tracing/uprobes: Do not use return values of trace_seq_printf()

2014-11-14 Thread Steven Rostedt
On Sat, 15 Nov 2014 00:35:15 +0900 Masami Hiramatsu wrote: > > for (i = 0; i < tu->tp.nr_args; i++) { > > struct probe_arg *parg = >tp.args[i]; > > > > - if (!parg->type->print(s, parg->name, data + parg->offset, > > entry)) > > - goto partial; > >

<    1   2   3   4   5   6   7   8   9   10   >