Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Tomasz Nowicki
On 12.11.2015 15:04, Jiang Liu wrote: On 2015/11/12 21:21, Tomasz Nowicki wrote: On 12.11.2015 09:43, Jiang Liu wrote: On 2015/11/12 1:46, Lorenzo Pieralisi wrote: On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: [...] In particular, I would like to understand, for an eg DWordIO d

Re: [PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 15:22:22 +0100 Arnd Bergmann wrote: > The push_irq_work_func() function is conditionally defined only > when both CONFIG_SMP and HAVE_RT_PUSH_IPI are defined, but the > forward declaration remains visibile without HAVE_RT_PUSH_IPI, > causing a gcc warning in ARM64 allnoconfig:

Re: [PATCH] pwm: sun4i: fix a possible NULL dereference

2015-11-12 Thread Alexandre Belloni
Hi, On 12/11/2015 at 08:42:12 +0100, LABBE Corentin wrote : > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Reported-by: coverity (CID 1324139) > Signed-off-by: LABBE Corentin > --- > drivers/pwm/pwm-sun4i.c | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [PATCH v3 5/5] tty: Add software emulated RS485 support for 8250

2015-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2015 at 4:33 PM, Matwey V. Kornilov wrote: > Implementation of software emulation of RS485 direction handling is based > on omap-serial driver. > Before and after transmission RTS is set to the appropriate value. > One comment below. > Signed-off-by: Matwey V. Kornilov > --- >

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Boqun Feng
On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: [snip] > > I cannot resist suggesting that any lock that interacts with > spin_unlock_wait() must have all relevant acquisitions followed by > smp_mb__after_unlock_lock(). > But 1. This would expand the purpose of smp_mb__af

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Måns Rullgård
"Paul E. McKenney" writes: > On Thu, Nov 12, 2015 at 01:31:23PM +0100, Peter Zijlstra wrote: >> Hi >> >> I think the MIPS arch_spin_unlock() is borken. >> >> spin_unlock() must have RELEASE semantics, these require that no LOADs >> nor STOREs leak out from the critical section. >> >> >From wha

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: > I cannot resist suggesting that any lock that interacts with > spin_unlock_wait() must have all relevant acquisitions followed by > smp_mb__after_unlock_lock(). Ha! that would certainly help here. But it would mean that argh64v8 a

Re: [PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 03:22:22PM +0100, Arnd Bergmann wrote: > -#ifdef CONFIG_SMP > +#if IS_ENABLED(CONFIG_SMP) && defined(HAVE_RT_PUSH_IPI) > static void push_irq_work_func(struct irq_work *work); > #endif I think we can get tid of the whole HAVE_RT_PUSH_IPI thing after: 8053871d0f7f ("smp: F

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread LABBE Corentin
On Thu, Nov 12, 2015 at 02:55:00PM +0100, Thierry Reding wrote: > On Thu, Nov 12, 2015 at 02:45:20PM +0100, Uwe Kleine-König wrote: > > On Thu, Nov 12, 2015 at 02:28:37PM +0100, Thierry Reding wrote: > > > On Thu, Nov 12, 2015 at 01:54:22PM +0100, LABBE Corentin wrote: > > > > On Thu, Nov 12, 2015

Re: [PATCH] ARM64: mark cpus_have_hwcap as __maybe_unused

2015-11-12 Thread Catalin Marinas
On Thu, Nov 12, 2015 at 03:20:16PM +0100, Arnd Bergmann wrote: > cpus_have_hwcap() is defined as a 'static' function an only used in > one place that is inside of an #ifdef, so we get a warning when > the only user is disabled: > > arch/arm64/kernel/cpufeature.c:699:13: warning: 'cpus_have_hwcap'

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 02:50:00PM +, Måns Rullgård wrote: > "Paul E. McKenney" writes: > > > On Thu, Nov 12, 2015 at 01:31:23PM +0100, Peter Zijlstra wrote: > >> Hi > >> > >> I think the MIPS arch_spin_unlock() is borken. > >> > >> spin_unlock() must have RELEASE semantics, these require t

Re: [PATCH 1/3] iio: mma8452: add freefall detection for Freescale's accelerometers

2015-11-12 Thread Martin Kepplinger
Am 2015-11-11 um 20:08 schrieb Lars-Peter Clausen: > On 11/11/2015 07:38 PM, Martin Kepplinger wrote: >> This adds freefall event detection to the supported devices. It adds the >> in_accel_x&y&z_mag_falling_en iio event attribute, which activates >> freefall mode. >> > > Hi, > > Thanks for the

Re: [PATCH v3 1/6] xen: rename dom0_op to platform_op

2015-11-12 Thread Stefano Stabellini
Konrad, David, Boris, are you OK with this? On Wed, 11 Nov 2015, Stefano Stabellini wrote: > The dom0_op hypercall has been renamed to platform_op since Xen 3.2, > which is ancient, and modern upstream Linux kernels cannot run as dom0 > and it anymore anyway. > > Signed-off-by: Stefano Stabelli

input: i8042: build failure on powerpc

2015-11-12 Thread LABBE Corentin
Hello I have made a random .config for testing my powerpc cross-compiler and I got this fail: LD init/built-in.o drivers/built-in.o: In function `i8042_wait_write': i8042.c:(.text+0x13d8be): undefined reference to `kb_cs' i8042.c:(.text+0x13d8c6): undefined reference to `kb_cs' i8042.c:(.

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Mark Brown
On Thu, Nov 12, 2015 at 01:57:27PM +0100, Arnd Bergmann wrote: > On Thursday 12 November 2015 20:51:10 Baolin Wang wrote: > > But it maybe not enough for HW engine which can handle maybe 10M/20M > > at one time. > Given that you have already done measurements, can you find out how much > you lose

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 03:50:13PM +0100, Peter Zijlstra wrote: > On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: > > I cannot resist suggesting that any lock that interacts with > > spin_unlock_wait() must have all relevant acquisitions followed by > > smp_mb__after_unlock_lock()

Re: module: save load_info for livepatch modules

2015-11-12 Thread Petr Mladek
On Thu 2015-11-12 14:22:28, Miroslav Benes wrote: > On Thu, 12 Nov 2015, Petr Mladek wrote: > > > >Maybe I am missing something but isn't it necessary to call vfree() on > > > >info somewhere in the end? > > > > > > So free_copy() will call vfree(info->hdr), except in livepatch modules > > > we wa

Re: [PATCH] acpi: add support for extended IRQ to PCI link

2015-11-12 Thread Sinan Kaya
On 11/12/2015 4:56 AM, Andy Shevchenko wrote: > On Thu, Nov 12, 2015 at 8:14 AM, Sinan Kaya wrote: >> The ACPI compiler uses the extended format when used >> interrupt numbers are greater than 256. The PCI link code >> currently only supports simple interrupt format. The IRQ >> numbers are represe

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Jiang Liu
On 2015/11/12 22:45, Tomasz Nowicki wrote: > On 12.11.2015 15:04, Jiang Liu wrote: >> On 2015/11/12 21:21, Tomasz Nowicki wrote: >>> On 12.11.2015 09:43, Jiang Liu wrote: On 2015/11/12 1:46, Lorenzo Pieralisi wrote: > On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: > > [

[PATCH] aio: Add few code style fixes

2015-11-12 Thread 刘长冬
>From 1609d68dee344925d182631922cd98790109588b Mon Sep 17 00:00:00 2001 From: Liu Changdong Date: Tue, 10 Nov 2015 00:04:18 +0800 Subject: [PATCH] aio: Add few code style fixes Add a blank line after declarations Signed-off-by: Liu Changdong --- fs/aio.c | 5 + 1 file changed, 5 insertions

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 07:01:49AM -0800, Paul E. McKenney wrote: > On Thu, Nov 12, 2015 at 03:50:13PM +0100, Peter Zijlstra wrote: > > On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: > > > I cannot resist suggesting that any lock that interacts with > > > spin_unlock_wait() must

Re: [PATCH 10/14] irqchip/mips-gic: Add a IPI hierarchy domain

2015-11-12 Thread Qais Yousef
Hi Thomas, On 11/07/2015 02:51 PM, Thomas Gleixner wrote: On Tue, 3 Nov 2015, Qais Yousef wrote: Add a new ipi domain on top of the normal domain. MIPS GIC now supports dynamic allocation of an IPI. I don't think you make use of the power of hierarchical irq domains. You just whacked the cur

Re: [PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 09:47:39 Steven Rostedt wrote: > > -#ifdef CONFIG_SMP > > +#if IS_ENABLED(CONFIG_SMP) && defined(HAVE_RT_PUSH_IPI) > > Why IS_ENABLED() and not defined()? > > #if defined(CONFIG_SMP) && defined(HAVE_RT_PUSH_IPI) > > I thought IS_ENABLED() is used for C code, like: >

Re: [PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 15:53:31 +0100 Peter Zijlstra wrote: > On Thu, Nov 12, 2015 at 03:22:22PM +0100, Arnd Bergmann wrote: > > -#ifdef CONFIG_SMP > > +#if IS_ENABLED(CONFIG_SMP) && defined(HAVE_RT_PUSH_IPI) > > static void push_irq_work_func(struct irq_work *work); > > #endif > > I think we c

[PATCH] mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()

2015-11-12 Thread Jerome Marchand
Commit 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") missed a spot. Currently remove_vm_area() decreases vm->size to remove the guard hole page, even when it isn't present. This patch only decreases vm->size when VM_NO_GUARD isn't set. Signed-off-by: Jerome Marchand ---

Re: [PATCH] acpi: add support for extended IRQ to PCI link

2015-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2015 at 5:04 PM, Sinan Kaya wrote: > On 11/12/2015 4:56 AM, Andy Shevchenko wrote: >> On Thu, Nov 12, 2015 at 8:14 AM, Sinan Kaya wrote: >>> - if (acpi_irq_balance || !link->irq.active) { >>> + if ((acpi_irq_balance || !link->irq.active) && (irq < >>> ACPI_MAX_IRQS))

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Boqun Feng
On Thu, Nov 12, 2015 at 04:00:58PM +0100, Oleg Nesterov wrote: > On 11/12, Boqun Feng wrote: [snip] > > > > Hmm.. probably incorrect.. because the ACQUIRE semantics of spin_lock() > > only guarantees that the memory operations following spin_lock() can't > > be reorder before the *LOAD* part of spi

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 04:08:22PM +0100, Peter Zijlstra wrote: > On Thu, Nov 12, 2015 at 07:01:49AM -0800, Paul E. McKenney wrote: > > On Thu, Nov 12, 2015 at 03:50:13PM +0100, Peter Zijlstra wrote: > > > On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: > > > > I cannot resist sug

Re: [PATCH 0/3] arm64: make some functions static

2015-11-12 Thread Catalin Marinas
On Thu, Nov 12, 2015 at 08:04:41PM +0800, Jisheng Zhang wrote: > These functions are only called within the its own file, so they could > be declared static. > > Jisheng Zhang (3): > arm64: smp: make of_parse_and_init_cpus static > arm64: mmu: make split_pud and fixup_executable static > arm

Re: [PATCH v3 1/6] xen: rename dom0_op to platform_op

2015-11-12 Thread Boris Ostrovsky
On 11/11/2015 11:51 AM, Stefano Stabellini wrote: The dom0_op hypercall has been renamed to platform_op since Xen 3.2, which is ancient, and modern upstream Linux kernels cannot run as dom0 and it anymore anyway. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: david.vra...@citr

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Jens Axboe
On 11/12/2015 03:04 AM, Mark Brown wrote: On Thu, Nov 12, 2015 at 04:20:41PM +0800, Baolin Wang wrote: 3. perforamence data It is just a simple dd test result, and will provide the formal report in future. But from the simple test, we can see the improvement. It's probably also worth pointing

Re: livepatch: reuse module loader code to write relocations

2015-11-12 Thread Miroslav Benes
On Wed, 11 Nov 2015, Jessica Yu wrote: > +++ Miroslav Benes [11/11/15 15:30 +0100]: > > On Mon, 9 Nov 2015, Jessica Yu wrote: > > > > So I guess we don't need klp_reloc anymore. > > Yes, that's correct. I am noticing just now that I forgot to remove > the klp_reloc struct definition from livepatc

Re: [PATCH v3 3/6] xen: introduce XENPF_settime64

2015-11-12 Thread Boris Ostrovsky
On 11/11/2015 11:51 AM, Stefano Stabellini wrote: Rename the current XENPF_settime hypercall and related struct to XENPF_settime32. Signed-off-by: Stefano Stabellini Acked-by: Arnd Bergmann CC: konrad.w...@oracle.com CC: david.vra...@citrix.com CC: boris.ostrov...@oracle.com --- arch/x86/xen

[PATCH] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-12 Thread Jason A. Donenfeld
Drivers like vxlan use the recently introduced udp_tunnel_xmit_skb/udp_tunnel6_xmit_skb APIs. udp_tunnel6_xmit_skb makes use of ip6tunnel_xmit, and ip6tunnel_xmit, after sending the packet, updates the struct stats using the usual u64_stats_update_begin/end calls on this_cpu_ptr(dev->tstats). udp_t

Re: [PATCH 3/4] nvdimm: Add IOCTL pass thru

2015-11-12 Thread Jerry Hoemann
On Thu, Nov 12, 2015 at 12:52:47AM +0300, Dmitry Krivenok wrote: > > but, we still want to go through entire list. > > Shouldn't you break the loop immediately after you found the bus and sent > ioctl? > Maybe I'm missing something, but I see no reason to continue iterating > after the bus was fo

Re: [RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:51PM -0500, Jessica Yu wrote: > Add livepatch elf reloc section flag, livepatch symbol bind > and section index > > Signed-off-by: Jessica Yu > --- > include/uapi/linux/elf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/inc

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Jon Hunter
On 12/11/15 14:37, Lars-Peter Clausen wrote: > On 11/12/2015 03:02 PM, Jon Hunter wrote: > [...] > One easy way out might be to always call pm_get/pm_but from > bus_lock,/bus_unlock. This way the chip is guaranteed to be powered up > when > accessed happens. In addition pm_get is

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 10:49:02PM +0800, Boqun Feng wrote: > On Thu, Nov 12, 2015 at 06:40:04AM -0800, Paul E. McKenney wrote: > [snip] > > > > I cannot resist suggesting that any lock that interacts with > > spin_unlock_wait() must have all relevant acquisitions followed by > > smp_mb__after_unl

RE: PCIe host controller behind IOMMU on ARM

2015-11-12 Thread Phil Edworthy
Hi Arnd, On 12 November 2015 09:49, Arnd Bergmann wrote: > On Thursday 12 November 2015 09:26:33 Phil Edworthy wrote: > > On 11 November 2015 18:25, LIviu wrote: > > > On Mon, Nov 09, 2015 at 12:32:13PM +, Phil Edworthy wrote: > > > > I think you're mixing things a bit or not explaining them

[PATCH 4/6] x86/efi: Hoist page table switching code into efi_call_virt()

2015-11-12 Thread Matt Fleming
This change is a prerequisite for pending patches that switch to a dedicated EFI page table, instead of using 'trampoline_pgd' which shares PGD entries with 'swapper_pg_dir'. The pending patches make it impossible to dereference the runtime service function pointer without first switching %cr3. It

Re: input: i8042: build failure on powerpc

2015-11-12 Thread Guenter Roeck
On Thu, Nov 12, 2015 at 04:01:45PM +0100, LABBE Corentin wrote: > Hello > > I have made a random .config for testing my powerpc cross-compiler and I got > this fail: > In general it helps to provide the broken configuration. If you do some digging, you may notice that this has been broken sinc

[PATCH 6/6] Documentation/x86: Update EFI memory region description

2015-11-12 Thread Matt Fleming
Make it clear that the EFI page tables are only available during EFI runtime calls since that subject has come up a fair numbers of times in the past. Additionally, add the EFI region start and end addresses to the table so that it's possible to see at a glance where they fall in relation to other

[PATCH 3/6] x86/efi: Map RAM into the identity page table for mixed mode

2015-11-12 Thread Matt Fleming
We are relying on the pre-existing mappings in 'trampoline_pgd' when accessing function arguments in the EFI mixed mode thunking code. Instead let's map memory explicitly so that things will continue to work when we move to a separate page table in the future. Cc: Borislav Petkov Cc: Sai Praneet

[PATCH 1/6] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-12 Thread Matt Fleming
The x86 pageattr code is confused about the data that is stored cpa->pfn, sometimes it's treated as a page fram number and sometimes it's treated as an unshifted physical address. The result of this is that the mapping functions do not map the intended physical address. This isn't a problem in pr

[GIT PULL 0/6] EFI page table isolation

2015-11-12 Thread Matt Fleming
Folks, This patch series is a response to the report that the EFI region mappings trigger warnings when booting with CONFIG_DEBUG_WX enabled. They allocate a new page table structure and ensure that all the mappings we require during EFI runtime calls are only setup there. It turns out that it st

[PATCH] KVM: x86: correctly print #AC in traces

2015-11-12 Thread Paolo Bonzini
Poor #AC was so unimportant until a few days ago that we were not even tracing its name correctly. But now it's all over the place. Cc: sta...@vger.kernel.org Signed-off-by: Paolo Bonzini --- arch/x86/kvm/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/t

Re: [RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:51PM -0500, Jessica Yu wrote: > Add livepatch elf reloc section flag, livepatch symbol bind > and section index > > Signed-off-by: Jessica Yu > --- > include/uapi/linux/elf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/inc

[PATCH 5/6] x86/efi: Build our own page table structures

2015-11-12 Thread Matt Fleming
With commit e1a58320a38d ("x86/mm: Warn on W^X mappings") all users booting on 64-bit UEFI machines see the following warning, [ cut here ] WARNING: CPU: 7 PID: 1 at arch/x86/mm/dump_pagetables.c:225 note_page+0x5dc/0x780() x86/mm: Found insecure W+X mapping at addre

[PATCH 2/6] x86/mm/pageattr: Do not strip pte flags from cpa->pfn

2015-11-12 Thread Matt Fleming
Removing the PAGE_NX bit from cpa->pfn will corrupt the page frame number address rather than removing PAGE_NX as the code intends. This is unlikley to be a problem in practice because _PAGE_BIT_NX is bit 63 and most machines do not have page frame numbers that reach that high. Still, pte flags ar

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Christoph Hellwig
On Thu, Nov 12, 2015 at 08:49:08AM -0700, Jens Axboe wrote: > But it still avoids duplicating the generics of it. Patch for null_blk: > > 3 files changed, 168 insertions(+), 7 deletions (-) > > vs a standalone of: > > 3 files changed, 459 insertions(+) > > It doesn't screw up null_blk, so I'd p

[PATCH] mm: get rid of __alloc_pages_high_priority

2015-11-12 Thread mhocko
From: Michal Hocko __alloc_pages_high_priority doesn't do anything special other than it calls get_page_from_freelist and loops around GFP_NOFAIL allocation until it succeeds. It would be better if the first part was done in __alloc_pages_slowpath where we modify the zonelist because this would b

Re: [PATCH] acpi: add support for extended IRQ to PCI link

2015-11-12 Thread okaya
> On Thu, Nov 12, 2015 at 5:04 PM, Sinan Kaya wrote: >> On 11/12/2015 4:56 AM, Andy Shevchenko wrote: >>> On Thu, Nov 12, 2015 at 8:14 AM, Sinan Kaya >>> wrote: - if (acpi_irq_balance || !link->irq.active) { + if ((acpi_irq_balance || !link->irq.active) && (irq < ACPI_M

[PATCH v6 3/5] clk: shmobile: div6: Extract cpg_div6_register()

2015-11-12 Thread Geert Uytterhoeven
Extract cpg_div6_register(), to allow registering div6 clocks from another clock driver. Signed-off-by: Geert Uytterhoeven Acked-by: Laurent Pinchart --- v6: - Add Acked-by, v5: - Document cpg_div6_register(), - Free clock on clock->parents allocation failure, - Add include guards to cl

[PATCH v6 5/5] clk: shmobile: r8a7795: Add new CPG/MSSR driver

2015-11-12 Thread Geert Uytterhoeven
Add a new R-Car H3 Clock Pulse Generator / Module Standby and Software Reset driver, using the new CPG/MSSR driver core. Signed-off-by: Geert Uytterhoeven --- v6: - Correct PLL1 and PLL3 multipliers from 156 to 160[*], - Correct CPG_PLL0CR multiplier factor from x1 to x2, and multiplier m

[PATCH v6 0/5] clk: shmobile: Add new CPG/MSSR driver

2015-11-12 Thread Geert Uytterhoeven
Hi Mike, Stephen, et al., This series adds a new driver for the Renesas CPG (Clock Pulse Generator) and MSSR (Module Standby and Software Reset) blocks for R-Car H3 (r8a7795). This is supposed to be more in-line with current CCF best practices, and allows expansion to cover the module res

Re: [PATCH] mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()

2015-11-12 Thread Andrey Ryabinin
2015-11-12 18:17 GMT+03:00 Jerome Marchand : > Commit 71394fe50146 ("mm: vmalloc: add flag preventing guard hole > allocation") missed a spot. Currently remove_vm_area() decreases > vm->size to remove the guard hole page, even when it isn't present. > This patch only decreases vm->size when VM_NO_G

[PATCH v6 1/5] clk: shmobile: Rework CONFIG_ARCH_SHMOBILE_MULTI

2015-11-12 Thread Geert Uytterhoeven
From: Magnus Damm Shmobile is all multiplatform these days, so get rid of the reference to CONFIG_ARCH_SHMOBILE_MULTI in drivers/clk/shmobile/. Also instead of always enabling DIV6 and MSTP adjust the Makefile to enable DIV6 and MSTP depending on if they are included in the SoC or not. Signed-o

[PATCH v6 2/5] clk: shmobile: div6: Make clock-output-names optional

2015-11-12 Thread Geert Uytterhoeven
Renesas DIV6 clocks provide a single clock output. Hence make the "clock-output-names" DT property optional instead of mandatory. In case the DT property is omitted the DT node name will be used. Rename the variable "name" to "clk_name" to make the code more similar with fixed-factor-clock.c, and

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Jens Axboe
On 11/12/2015 01:53 AM, Christoph Hellwig wrote: On Wed, Nov 11, 2015 at 11:06:38AM +0100, Matias Bj??rling wrote: Add support for registering as a LightNVM device. This allows us to evaluate the performance of the LightNVM library. In /drivers/Makefile, LightNVM is moved above block device dri

Re: [PATCH] acpi: add support for extended IRQ to PCI link

2015-11-12 Thread Timur Tabi
ok...@codeaurora.org wrote: This is what it was before. > if (acpi_irq_balance || !link->irq.active) { >- /* >-* Select the best IRQ. This is done in reverse to promote >-* the use of IRQs 9, 10, 11, and >15. >-*/ >-

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Christoph Hellwig
On Thu, Nov 12, 2015 at 08:54:48AM -0700, Jens Axboe wrote: > >300 lines of boilerplate for just setting up a few request_queues seem > >wrong, can you show the actual patch you measured? > > I just took it from Matias' last posting: > > http://marc.info/?l=linux-kernel&m=144605858228534&w=2 Wel

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Jens Axboe
On 11/12/2015 08:58 AM, Christoph Hellwig wrote: On Thu, Nov 12, 2015 at 08:54:48AM -0700, Jens Axboe wrote: 300 lines of boilerplate for just setting up a few request_queues seem wrong, can you show the actual patch you measured? I just took it from Matias' last posting: http://marc.info/?l=

[PATCH v6 4/5] clk: shmobile: Add new CPG/MSSR driver core

2015-11-12 Thread Geert Uytterhoeven
Add the common core for the new Renesas Clock Pulse Generator / Module Standby and Software Reset driver. Signed-off-by: Geert Uytterhoeven --- v6: - No changes, v5: - Convert from CLK_OF_DECLARE() to a real platform_driver, initialized using platform_driver_probe() from subsys_initcall(

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Jens Axboe
On 11/12/2015 08:52 AM, Christoph Hellwig wrote: On Thu, Nov 12, 2015 at 08:49:08AM -0700, Jens Axboe wrote: But it still avoids duplicating the generics of it. Patch for null_blk: 3 files changed, 168 insertions(+), 7 deletions (-) vs a standalone of: 3 files changed, 459 insertions(+) It d

Re: [PATCH v2 3/6] memcg: only account kmem allocations marked as __GFP_ACCOUNT

2015-11-12 Thread Michal Hocko
On Tue 10-11-15 21:34:04, Vladimir Davydov wrote: > Black-list kmem accounting policy (aka __GFP_NOACCOUNT) turned out to be > fragile and difficult to maintain, because there seem to be many more > allocations that should not be accounted than those that should be. > Besides, false accounting an a

Re: [PATCH] MAINTAINERS: update DT binding doc locations

2015-11-12 Thread Vincent ABRIOU
On 11/05/2015 08:41 PM, Rob Herring wrote: > After the recent moving of DT binding documents, some maintainers entries > are stale. Update them to the new locations. > > In bindings/fb/, there were only 2 files and I'm assuming the FB > maintainers don't want to be copied on all of bindings/displ

Re: [PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 16:14:06 +0100 Arnd Bergmann wrote: > On Thursday 12 November 2015 09:47:39 Steven Rostedt wrote: > > > -#ifdef CONFIG_SMP > > > +#if IS_ENABLED(CONFIG_SMP) && defined(HAVE_RT_PUSH_IPI) > > > > Why IS_ENABLED() and not defined()? > > > > #if defined(CONFIG_SMP) && defined(H

Re: [PATCH v3 3/6] xen: introduce XENPF_settime64

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 10:30:23 Boris Ostrovsky wrote: > > diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c > > index 663c2ea..3bbd377 100644 > > --- a/arch/x86/xen/time.c > > +++ b/arch/x86/xen/time.c > > @@ -134,10 +134,10 @@ static int xen_pvclock_gtod_notify(struct > > notifier_blo

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 02:03:35PM +, Liviu Dudau wrote: > On Thu, Nov 12, 2015 at 02:34:11PM +0100, Thierry Reding wrote: > > On Thu, Nov 12, 2015 at 06:49:38PM +0800, Mark yao wrote: > > > On 2015年11月12日 18:36, Liviu Dudau wrote: > > > >On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 03:54:58PM +0100, LABBE Corentin wrote: > On Thu, Nov 12, 2015 at 02:55:00PM +0100, Thierry Reding wrote: > > On Thu, Nov 12, 2015 at 02:45:20PM +0100, Uwe Kleine-König wrote: > > > On Thu, Nov 12, 2015 at 02:28:37PM +0100, Thierry Reding wrote: > > > > On Thu, Nov 12, 2015

Re: [PATCH] media: fix kernel hang in media_device_unregister() during device removal

2015-11-12 Thread Shuah Khan
On 11/12/2015 07:41 AM, Shuah Khan wrote: > Media core drivers (dvb, v4l2, bridge driver) unregister > their entities calling media_device_unregister_entity() > during device removal from their unregister paths. In > addition media_device_unregister() tries to unregister > entity calling media_devi

Re: PCIe host controller behind IOMMU on ARM

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 15:33:41 Phil Edworthy wrote: > On 12 November 2015 09:49, Arnd Bergmann wrote: > > On Thursday 12 November 2015 09:26:33 Phil Edworthy wrote: > > > On 11 November 2015 18:25, LIviu wrote: > > > > On Mon, Nov 09, 2015 at 12:32:13PM +, Phil Edworthy wrote: > > > > o

Re: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag

2015-11-12 Thread Michal Hocko
On Tue 10-11-15 21:34:05, Vladimir Davydov wrote: > Currently, if we want to account all objects of a particular kmem cache, > we have to pass __GFP_ACCOUNT to each kmem_cache_alloc call, which is > inconvenient. This patch introduces SLAB_ACCOUNT flag which if passed to > kmem_cache_create will fo

Re: [PATCH] KVM: svm: add support for RDTSCP

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 15:45, Joerg Roedel wrote: > Hi Paolo, > > On Thu, Nov 12, 2015 at 02:49:16PM +0100, Paolo Bonzini wrote: >> RDTSCP was never supported for AMD CPUs, which nobody noticed because >> Linux does not use it. But exactly the fact that Linux does not >> use it makes the implementation

Re: [PATCH v5] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-12 Thread Mason
[ CCing a few knowledgeable people ] Despite the subject, this is about an Atheros 8035 PHY :-) On 12/11/2015 15:04, Måns Rullgård wrote: > Mason wrote: > >> BTW, you're not using the PHY IRQ, right? I think I remember you saying >> it didn't work reliably? > > It doesn't seem to be wired up o

Re: [PATCH v2 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-12 Thread Alan Stern
On Thu, 12 Nov 2015, Lu Baolu wrote: > Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") > adds usb3_lpm_enabled member to struct usb_device. There is no reference > to this member now. Hence, it could be removed. > > Signed-off-by: Lu Baolu Since patch 1/3 removes all the

Re: [PATCH v2 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-12 Thread Alan Stern
On Thu, 12 Nov 2015, Lu Baolu wrote: > Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 > hardware LPM") introduced usb3_hardware_lpm sysfs node. This > doesn't show the correct status of USB3 U1 and U2 LPM status. > > This patch fixes this by replacing usb3_hardware_lpm with two > n

Re: PING: [PATCH] net: smsc911x: Reset PHY during initialization

2015-11-12 Thread David Miller
From: Pavel Fedin Date: Thu, 12 Nov 2015 10:04:39 +0300 > Or is it just a formal requirement to RESEND? Yes, this always what I ask people to do. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info a

[PATCH v2] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Arnd Bergmann
The push_irq_work_func() function is conditionally defined only when both CONFIG_SMP and HAVE_RT_PUSH_IPI are defined, but the forward declaration remains visibile without HAVE_RT_PUSH_IPI, causing a gcc warning in ARM64 allnoconfig: kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared

[PATCH v2] Documentation: dt: Add bindings for Secure-only devices

2015-11-12 Thread Peter Maydell
The existing device tree bindings assume that we are only trying to describe a single address space with a device tree (for ARM, either the Normal or the Secure world). Some uses for device tree need to describe both Normal and Secure worlds in a single device tree. Add documentation of how to do t

[Patch-V2 0/6] HID: Support for the Logitech G920 Wheel

2015-11-12 Thread Simon Wood
Patch-V2 tweaked as per Benjamin's requests. This series of patches provide input support for the Logitech G920 gaming wheel. This wheel is internally different from the other Logitech wheels; when first connected it is in X-Box mode and can instructed to switch to HID with a 'magic command' (1

[Patch-V2 3/6] HID: hid-logitech-hidpp: Add basic support for Logitech G920

2015-11-12 Thread Simon Wood
This patch adds basic support for the Logitech G920 wheel when in HID mode. This wheel 'speaks' the HID++ protocol, and therefor is driven with hid-logitech-hidpp. At this stage the driver only shows that it can communicate with the wheel by outputting the name discovered over HID++. The normal H

[Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-12 Thread Simon Wood
When plugged in the Logitech G920 wheel starts with USBID 046d:c261 and behaviors as a vendor specific class. If a 'magic' byte sequence is sent the wheel will detach and reconnect as a HID device with the USBID 046d:c262. Signed-off-by: Simon Wood --- drivers/input/joystick/xpad.c | 16

Re: [PATCH 0/4] h8300: clock driver update

2015-11-12 Thread Daniel Lezcano
On 11/11/2015 03:50 PM, Yoshinori Sato wrote: Overall looks good. And I found some problem (in original code). This patches fix it. Please apply after your patches. Hi Yoshinori, could you add a better description in your patches. No need to resend, just answer to the patches with the change

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 01:57:11PM +, Liviu Dudau wrote: > On Thu, Nov 12, 2015 at 01:16:55PM +0100, Thierry Reding wrote: > > On Wed, Nov 11, 2015 at 04:09:42PM +, Liviu Dudau wrote: > > > On Tue, Nov 10, 2015 at 05:56:15PM +0100, Thierry Reding wrote: > > > > On Tue, Nov 10, 2015 at 03:01

Re: [PATCHv4 1/1] SCSI: hosts: update to use ida_simple for host_no management

2015-11-12 Thread Lee Duncan
On 10/14/2015 08:53 PM, James Bottomley wrote: > On Wed, 2015-10-14 at 11:34 -0700, Lee Duncan wrote: >> On 10/14/2015 06:55 AM, James Bottomley wrote: >>> On Wed, 2015-10-07 at 16:51 -0700, Lee Duncan wrote: Update the SCSI hosts module to use the ida_simple*() routines to manage its hos

[Patch-V2 6/6] HID: hid-logitech-hidpp: G920 remove deadzones

2015-11-12 Thread Simon Wood
Ensure that the G920 is not given the default deadzones. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 80ebd1c..e235f3d 100644 ---

[Patch-V2 5/6] HID: Add vendor specific usage pages for Logitech G920

2015-11-12 Thread Simon Wood
The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-input.c | 4 include/linux/hid.

Re: [Patch-V2 0/6] HID: Support for the Logitech G920 Wheel

2015-11-12 Thread Simon Wood
> Note: These patches are applied to Jiri's 'for-next' tree to work with > the other HID++ changes already queued for 4.4. Whoops, left this note in by mistake. These patches are against 4.4 HEAD. Simon. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [PATCH] ARM: xip: Use correct symbol for end of ROM marker

2015-11-12 Thread Russell King - ARM Linux
On Wed, Nov 11, 2015 at 09:17:35AM -0500, Chris Brandt wrote: > diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h > index b58fd66..195554d 100644 > --- a/include/asm-generic/sections.h > +++ b/include/asm-generic/sections.h > @@ -26,7 +26,7 @@ > * __ctors_start, __cto

Re: [PATCHv2 2/2] arm64: Allow changing of attributes outside of modules

2015-11-12 Thread Laura Abbott
On 11/12/2015 03:55 AM, zhong jiang wrote: On 2015/11/11 9:57, Laura Abbott wrote: Currently, the set_memory_* functions that are implemented for arm64 are restricted to module addresses only. This was mostly done because arm64 maps normal zone memory with larger page sizes to improve TLB perfor

[Patch-V2 4/6] HID: hid-logitech-hidpp: Add range sysfs for Logitech G920

2015-11-12 Thread Simon Wood
The G920 can adjust the amount of 'turn' it permits, this patch adds a sysfs file 'range' to control this. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 140 ++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-

Re: [PATCH] mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()

2015-11-12 Thread Jerome Marchand
On 11/12/2015 04:55 PM, Andrey Ryabinin wrote: > 2015-11-12 18:17 GMT+03:00 Jerome Marchand : >> Commit 71394fe50146 ("mm: vmalloc: add flag preventing guard hole >> allocation") missed a spot. Currently remove_vm_area() decreases >> vm->size to remove the guard hole page, even when it isn't presen

[Patch-V2 2/6] HID: hid-logitech-hidpp: Add support for very long packets

2015-11-12 Thread Simon Wood
Patch add support for the 'very long' HID++ packets, which are 64 bytes in length. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 59 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/driv

Re: [PATCH v2] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 17:19:58 +0100 Arnd Bergmann wrote: > The push_irq_work_func() function is conditionally defined only > when both CONFIG_SMP and HAVE_RT_PUSH_IPI are defined, but the > forward declaration remains visibile without HAVE_RT_PUSH_IPI, > causing a gcc warning in ARM64 allnoconfig:

[PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-12 Thread Jason A. Donenfeld
Drivers like vxlan use the recently introduced udp_tunnel_xmit_skb/udp_tunnel6_xmit_skb APIs. udp_tunnel6_xmit_skb makes use of ip6tunnel_xmit, and ip6tunnel_xmit, after sending the packet, updates the struct stats using the usual u64_stats_update_begin/end calls on this_cpu_ptr(dev->tstats). udp_t

[PATCH V2] mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()

2015-11-12 Thread Jerome Marchand
Commit 71394fe50146 ("mm: vmalloc: add flag preventing guard hole allocation") missed a spot. Currently remove_vm_area() decreases vm->size to "remove" the guard hole page, even when it isn't present. All but one users just free the vm_struct rigth away and never access vm->size anyway. Don't touch

Re: [PATCH] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-12 Thread Jason A. Donenfeld
On Thu, Nov 12, 2015 at 5:25 PM, Hannes Frederic Sowa wrote: > The canonical way is get_cpu_ptr(stats) / put_cpu_ptr. Thanks for the pointer. Fixed in v2. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordom

Re: [PATCH v2 2/2] block/xen-blkfront: Handle non-indirect grant with 64KB pages

2015-11-12 Thread Roger Pau Monné
El 19/10/15 a les 16.19, Julien Grall ha escrit: > The minimal size of request in the block framework is always PAGE_SIZE. > It means that when 64KB guest is support, the request will at least be > 64KB. > > Although, if the backend doesn't support indirect descriptor (such as QDISK > in QEMU), a

Re: [PATCH] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-12 Thread Hannes Frederic Sowa
On Thu, Nov 12, 2015, at 16:30, Jason A. Donenfeld wrote: > if (err > 0) { > - struct pcpu_sw_netstats *tstats = this_cpu_ptr(stats); > - > + struct pcpu_sw_netstats *tstats; > + preempt_disable(); > + tstats = this_cpu_ptr(stats); The

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