Re: [PATCH v4 2/5] irqchip, gicv3: Workaround for Cavium ThunderX erratum 23154

2015-09-07 Thread Suzuki K. Poulose
On 14/08/15 19:28, Robert Richter wrote: From: Robert Richter This patch implements Cavium ThunderX erratum 23154. The gicv3 of ThunderX requires a modified version for reading the IAR status to ensure data synchronization. Since this is in the fast-path and called with each interrupt, runtime

Re: [RFC 0/8] Allow GFP_NOFS allocation to fail

2015-09-07 Thread Tetsuo Handa
Michal Hocko wrote: > As the VM cannot do much about these requests we should face the reality > and allow those allocations to fail. Johannes has already posted the > patch which does that (http://marc.info/?l=linux-mm&m=142726428514236&w=2) > but the discussion died pretty quickly. Addition of _

[PATCH V1] audit: add warning that an old auditd may be starved out by a new auditd

2015-09-07 Thread Richard Guy Briggs
Nothing prevents a new auditd starting up and replacing a valid audit_pid when an old auditd is still running, effectively starving out the old auditd since audit_pid no longer points to the old valid auditd. There isn't an easy way to detect if an old auditd is still running on the existing audit

Re: [PATCH v2] irqchip, gicv3-its, numa: Workaround for Cavium ThunderX erratum 23144

2015-09-07 Thread Robert Richter
On 07.09.15 17:44:41, Marc Zyngier wrote: > On 25/08/15 11:18, Ganapatrao Kulkarni wrote: > > The patch below adds a workaround for gicv3 in a numa environment. It > > is on top of Robert's recent gicv3 errata patch submission v4 and my > > arm64 numa patches v5. > > > > This implements a workarou

Re: [PATCH v2] irqchip, gicv3-its, numa: Workaround for Cavium ThunderX erratum 23144

2015-09-07 Thread Marc Zyngier
On 25/08/15 11:18, Ganapatrao Kulkarni wrote: > The patch below adds a workaround for gicv3 in a numa environment. It > is on top of Robert's recent gicv3 errata patch submission v4 and my > arm64 numa patches v5. > > This implements a workaround for gicv3-its erratum 23144 on Cavium's > ThunderX

Re: [PATCH v4 12/20] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-09-07 Thread Stefano Stabellini
On Mon, 7 Sep 2015, Julien Grall wrote: > For ARM64 guests, Linux is able to support either 64K or 4K page > granularity. Although, the hypercall interface is always based on 4K > page granularity. > > With 64K page granularity, a single page will be spread over multiple > Xen frame. > > To avoid

Fwd: Use-after-free in page_cache_async_readahead

2015-09-07 Thread Andrey Konovalov
On Thu, Sep 3, 2015 at 1:49 PM, Andrey Konovalov wrote: > On Wed, Sep 2, 2015 at 9:40 PM, Tejun Heo wrote: >> Hello, Andrey. > > Hello Tejun, > >> On Wed, Sep 02, 2015 at 01:08:52PM +0200, Andrey Konovalov wrote: >>> While running KASAN on 4.2 with Trinity I got the following report: >>> >>>

Re: [PATCH v4 0/5] irqchip, gicv3: Updates and Cavium ThunderX errata workarounds

2015-09-07 Thread Marc Zyngier
Hi Robert, On 14/08/15 19:28, Robert Richter wrote: > From: Robert Richter > > This patch series adds gicv3 updates and workarounds for HW errata in > Cavium's ThunderX GICV3. > > The first one is an unchanged resubmission of a patch from a gicv3 > series I sent a while ago. > > The next patch

Re: [PATCH] arm64: kernel: Use a separate stack for irq interrupts.

2015-09-07 Thread Jungseok Lee
On Sep 8, 2015, at 1:06 AM, James Morse wrote: > On 07/09/15 16:48, Jungseok Lee wrote: >> On Sep 7, 2015, at 11:36 PM, James Morse wrote: >> >> Hi James, >> >>> Having to handle interrupts on top of an existing kernel stack means the >>> kernel stack must be large enough to accomodate both the m

Re: [RFC PATCH v1 2/4] irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT

2015-09-07 Thread Jiang Liu
On 2015/9/7 22:56, Marc Zyngier wrote: > Hi Thomas, > > On 07/09/15 14:24, Thomas Gleixner wrote: >> On Mon, 7 Sep 2015, Marc Zyngier wrote: >>> On 06/09/15 06:56, Jiang Liu wrote: On 2015/9/6 12:23, Yang Yingliang wrote: > Use irq_settings_set_move_pcntxt() helper irqs status with >

Re: [PATCH v4 5/5] irqchip, gicv3-its: Workaround for Cavium ThunderX errata 22375, 24313

2015-09-07 Thread Marc Zyngier
On 14/08/15 19:28, Robert Richter wrote: > From: Robert Richter > > This implements two gicv3-its errata workarounds for ThunderX. Both > with small impact affecting only ITS table allocation. > > erratum 22375: only alloc 8MB table size > erratum 24313: ignore memory access type > > The fixe

Re: [PATCH 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver

2015-09-07 Thread Mark Brown
On Sun, Sep 06, 2015 at 05:44:30PM +0800, Wu, Songjun wrote: > On 9/3/2015 19:43, Mark Brown wrote: > >Why is this a separate DT node? It seems that this IP is entirely self > >contained so I'm not clear why we need a separate node for the card, the > >card is usually a separate node because it t

Re: [PATCH v4 4/5] irqchip, gicv3-its: Add HW revision detection and configuration

2015-09-07 Thread Marc Zyngier
Hi Robert, On 14/08/15 19:28, Robert Richter wrote: > From: Robert Richter > > Some GIC revisions require an individual configuration to esp. add > workarounds for HW bugs. This patch implements generic code to parse > the hw revision provided by an IIDR register value and runs specific > code i

[PATCH] ARM: dts: omap3-igep: Move eth IRQ pinmux to IGEPv2 common dtsi

2015-09-07 Thread Javier Martinez Canillas
Only the IGEPv2 boards have a LAN9221i chip connected to the GPMC so the pinmux configuration for the GPIO connected to the IRQ line of the LAN chip should not be defined in the IGEP common dtsi but in the one common to the IGEPv2 boards. While there, use the OMAP3_CORE1_IOPAD() macro for the padc

[PATCH v3 2/2] leds: leds-ipaq-micro: Fix coding style issues

2015-09-07 Thread Muhammad Falak R Wani
Spaces at the starting of a line are removed, indentation using tab, instead of space. Also, line width of more than 80 characters is also taken care of. Two warnings are left alone to aid better readability. Signed-off-by: Muhammad Falak R Wani --- drivers/leds/leds-ipaq-micro.c | 18 +-

Re: [PATCH 1/2] ASoC: atmel-classd: add the Audio Class D Amplifier code

2015-09-07 Thread Mark Brown
On Sun, Sep 06, 2015 at 05:44:21PM +0800, Wu, Songjun wrote: > On 9/3/2015 19:37, Mark Brown wrote: > >On Tue, Sep 01, 2015 at 01:41:40PM +0800, Songjun Wu wrote: > >>+static const char * const eqcfg_bass_text[] = { > >>+ "-12 dB", "-6 dB", "0 dB", "+6 dB", "+12 dB" > >>+}; > > > >>+static const

Re: [PATCH 5/6] sched/fair: Get rid of scaling utilization by capacity_orig

2015-09-07 Thread Vincent Guittot
On 7 September 2015 at 17:37, Dietmar Eggemann wrote: > On 04/09/15 00:51, Steve Muckle wrote: >> Hi Morten, Dietmar, >> >> On 08/14/2015 09:23 AM, Morten Rasmussen wrote: >> ... >>> + * cfs_rq.avg.util_avg is the sum of running time of runnable tasks plus >>> the >>> + * recent utilization of cu

[PATCH v2 1/9] [picked] powerpc: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
Allow it to be used from SPU, since it should not have unwanted side-effects. [ Picked-by: Michael Ellerman ] Signed-off-by: Mathieu Desnoyers CC: Andrew Morton CC: linux-...@vger.kernel.org CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: linuxppc-...@lists.ozlabs.org

[PATCH v2 3/9] sparc/sparc64: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Acked-by: "David S. Miller" CC: Andrew Morton CC: linux-...@vger.kernel.org CC: sparcli...@vger.kernel.org --- arch/sparc/include/uapi/asm/unistd.h | 3 ++- arch/sparc/kernel/systbls_32.S | 2 +- arch/sparc/kernel/systbls_64.S | 4 ++-- 3 files chang

[RFC PATCH v2 5/9] alpha: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
[ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ] Signed-off-by: Mathieu Desnoyers CC: Andrew Morton CC: linux-...@vger.kernel.org CC: Richard Henderson CC: Ivan Kokshaysky CC: Matt Turne

[PATCH v2 4/9] parisc: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Tested-by: Helge Deller CC: Andrew Morton CC: linux-...@vger.kernel.org CC: "James E.J. Bottomley" CC: linux-par...@vger.kernel.org --- arch/parisc/include/uapi/asm/unistd.h | 3 ++- arch/parisc/kernel/syscall_table.S| 1 + 2 files changed, 3 insertions(+),

[RFC PATCH v2 9/9] s390/s390x: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
[ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ] Signed-off-by: Mathieu Desnoyers CC: Andrew Morton CC: linux-...@vger.kernel.org CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s...

[RFC PATCH v2 7/9] arm64: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64. [ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and

[RFC PATCH v2 8/9] ia64: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
[ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ] Signed-off-by: Mathieu Desnoyers CC: Andrew Morton CC: linux-...@vger.kernel.org CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.

[RFC PATCH v2 6/9] arm: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
[ Untested on this architecture. To try it out: fetch linux-next/akpm, apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ] Signed-off-by: Mathieu Desnoyers CC: Andrew Morton CC: linux-...@vger.kernel.org CC: Russell King --- arch/arm/include/asm/unistd.h

[PATCH v2 0/9] Allocate sys_membarrier on main architectures

2015-09-07 Thread Mathieu Desnoyers
Following feedback from architecture maintainers, this is v2 of this patchset. Status: * Picked into maintainer's tree: - powerpc * Ready to be picked into maintainer's tree (acked/tested): - mips, sparc/sparc64, parisc, * Awaiting feedback/testing: - arm, arm64, ia64, s390/s390x Thanks, M

[PATCH v2 2/9] mips: allocate sys_membarrier system call number

2015-09-07 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Acked-by: Ralf Baechle CC: Andrew Morton CC: linux-...@vger.kernel.org CC: linux-m...@linux-mips.org --- arch/mips/include/uapi/asm/unistd.h | 15 +-- arch/mips/kernel/scall32-o32.S | 1 + arch/mips/kernel/scall64-64.S | 1 + arch/mips/k

Re: [PATCH] virtio-blk: use VIRTIO_BLK_F_WCE and VIRTIO_BLK_F_CONFIG_WCE in virtio1

2015-09-07 Thread Paolo Bonzini
On 22/08/2015 00:53, Paolo Bonzini wrote: > VIRTIO_BLK_F_CONFIG_WCE is important in order to achieve good performance > (up to 2x, though more realistically +30-40%) in latency-bound workloads. > However, it was removed by mistake together with VIRTIO_BLK_F_FLUSH. > > It will be restored in the

Re: [PATCH] arm64: kernel: Use a separate stack for irq interrupts.

2015-09-07 Thread James Morse
On 07/09/15 16:48, Jungseok Lee wrote: > On Sep 7, 2015, at 11:36 PM, James Morse wrote: > > Hi James, > >> Having to handle interrupts on top of an existing kernel stack means the >> kernel stack must be large enough to accomodate both the maximum kernel >> usage, and the maximum irq handler usa

Re: [PATCH 2/3] selftests: add membarrier syscall test

2015-09-07 Thread Mathieu Desnoyers
- On Sep 3, 2015, at 11:36 PM, Michael Ellerman m...@ellerman.id.au wrote: > On Thu, 2015-09-03 at 15:47 +, Mathieu Desnoyers wrote: >> - On Sep 3, 2015, at 5:33 AM, Michael Ellerman m...@ellerman.id.au wrote: >> >> > On Tue, 2015-09-01 at 11:32 -0700, Andy Lutomirski wrote: >> >> On

Re: [PATCH v4 0/3] mtd: nand: jz4780: Add NAND and BCH drivers

2015-09-07 Thread Ezequiel Garcia
On 7 September 2015 at 11:54, Alex Smith wrote: > On 06/09/2015 21:38, Ezequiel Garcia wrote: >> On 27 Jul 02:50 PM, Alex Smith wrote: >>> Hi, >>> >>> This series adds support for the BCH controller and NAND devices on >>> the Ingenic JZ4780 SoC. >>> >>> Tested on the MIPS Creator Ci20 board. All

Re: [PATCH 1/5] acpi: Add basic device probing infrastructure

2015-09-07 Thread Lorenzo Pieralisi
[+M.Salter] On Fri, Sep 04, 2015 at 06:06:48PM +0100, Marc Zyngier wrote: > IRQ controllers and timers are the two types of device the kernel > requires before being able to use the device driver model. > > ACPI so far lacks a proper probing infrastructure similar to the one > we have with DT, wh

[PATCH v2 1/1] Add Corsair Vengeance K90 driver

2015-09-07 Thread Clément Vuchener
This patch implements a HID driver for the Corsair Vengeance K90 keyboard. It fixes the behaviour of the keys using incorrect HID usage codes and exposes the macro playback mode and current profile to the user space through sysfs attributes. It also adds two LED class devices controlling the "r

[PATCH v2 0/1] Corsair Vengeance K90 driver

2015-09-07 Thread Clément Vuchener
I removed the k90_profile class completely. I cannot write a good enough ABI with what I know of the keyboard so I am leaving that part out of the kernel. If I change my mind in the future, it will be done in another patch. I also fixed a bug I had when unregistering the led device. Work was bei

[PATCH v1] usb: core: driver: Use kmalloc_array

2015-09-07 Thread Muhammad Falak R Wani
Use kmalloc_array instead of kmalloc to allocate memory for an array. Also, remove the dev_warn for a memory leak, making the if check more sleek. Signed-off-by: Muhammad Falak R Wani --- On suggestion by Joe Perches Changes since v0 -remove dev_warn for memory leak -remove unne

[PATCH v4 RESEND] x86/asm/entry/32, selftests: Add 'test_syscall_vdso' test

2015-09-07 Thread Denys Vlasenko
This new test checks that all x86 registers are preserved across 32-bit syscalls. It tests syscalls through VDSO (if available) and through INT 0x80, normally and under ptrace. If kernel is a 64-bit one, high registers (r8..r15) are poisoned before the syscall is called and are checked afterwards.

Re: [RFC PATCH 1/3] arm64: entry: Remove unnecessary calculation for S_SP in EL1h

2015-09-07 Thread Jungseok Lee
On Sep 7, 2015, at 11:56 PM, Mark Rutland wrote: Hi Mark, > On Fri, Sep 04, 2015 at 03:23:05PM +0100, Jungseok Lee wrote: >> Under EL1h, S_SP data is not seen in kernel_exit. Thus, x21 calculation >> is not needed in kernel_entry. Currently, S_SP information is vaild only >> when sp_el0 is used.

Re: [PATCH] ARM: fix bug which lowmem size is limited to 760MB

2015-09-07 Thread Nicolas Pitre
On Mon, 7 Sep 2015, Arnd Bergmann wrote: > On Monday 07 September 2015 11:34:36 Nicolas Pitre wrote: > > > > That shifts the risk to user space though. But if there is a regression > > there, it will manifest itself on all systems and not only with some > > particular hardware. > > I'd consid

Re: [PATCH] arm64: kernel: Use a separate stack for irq interrupts.

2015-09-07 Thread Jungseok Lee
On Sep 7, 2015, at 11:36 PM, James Morse wrote: Hi James, > Having to handle interrupts on top of an existing kernel stack means the > kernel stack must be large enough to accomodate both the maximum kernel > usage, and the maximum irq handler usage. Switching to a different stack > when processi

[PATCH v4 4/4] ARM: dts: add suspend opp to exynos4412

2015-09-07 Thread Bartlomiej Zolnierkiewicz
Mark 800MHz OPP as a suspend opp for Exynos4412 based boards so effectively cpufreq-dt driver behavior w.r.t. suspend frequency matches what the old exynos-cpufreq driver has been doing. This patch fixes suspend/resume support on Exynos4412 based Trats2 board and reboot hang on Exynos4412 based Od

Re: [PATCH] ARM: fix bug which lowmem size is limited to 760MB

2015-09-07 Thread Arnd Bergmann
On Monday 07 September 2015 11:34:36 Nicolas Pitre wrote: > > That shifts the risk to user space though. But if there is a regression > there, it will manifest itself on all systems and not only with some > particular hardware. I'd consider that a good thing, as it makes it easier to test when

[PATCH v4 3/4] cpufreq-dt: add suspend frequency support

2015-09-07 Thread Bartlomiej Zolnierkiewicz
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Cc: Viresh Kumar Cc: Thomas Abraham Cc: Javier Martinez Canillas Cc: Krzysztof Kozlowski Cc: Marek Szyprowski Cc: Tobias Jakobi Signed-off

[PATCH v4 1/4] PM / OPP: add dev_pm_opp_get_suspend_opp() helper

2015-09-07 Thread Bartlomiej Zolnierkiewicz
Add dev_pm_opp_get_suspend_opp() helper to obtain suspend opp. Cc: Viresh Kumar Cc: Thomas Abraham Cc: Javier Martinez Canillas Cc: Krzysztof Kozlowski Cc: Marek Szyprowski Cc: Tobias Jakobi Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/base/power/opp.c | 30

[PATCH v4 2/4] cpufreq: allow cpufreq_generic_suspend() to work without suspend frequency

2015-09-07 Thread Bartlomiej Zolnierkiewicz
Some cpufreq drivers may set suspend frequency only for selected setups but still would like to use the generic suspend handler. Thus don't treat !policy->suspend_freq condition as an incorrect one. Cc: Viresh Kumar Cc: Thomas Abraham Cc: Javier Martinez Canillas Cc: Krzysztof Kozlowski Cc: M

Re: [RFC PATCH 0/3] Implement IRQ stack on ARM64

2015-09-07 Thread Jungseok Lee
On Sep 7, 2015, at 11:33 PM, James Morse wrote: > On 04/09/15 15:23, Jungseok Lee wrote: >> ARM64 kernel allocates 16KB kernel stack when creating a process. In case >> of low memory platforms with tough workloads on userland, this order-2 >> allocation request reaches to memory pressure and perfor

[PATCH v4 0/4] cpufreq-dt: add suspend frequency support

2015-09-07 Thread Bartlomiej Zolnierkiewicz
Hi, This patch series adds suspend frequency support (using opp-v2 bindings and suspend-opp functionality) to cpufreq-dt driver and then adds suspend opp for Exynos4412 based boards. This patch series fixes suspend/resume support on Exynos4412 based Trats2 board and reboot hang on Exynos4412 base

[PATCH v4 18/20] net/xen-netback: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
The PV network protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity working as a network backend on a non-modified Xen. It's only necessary to adapt the ring size and break skb data in small chunk of 4KB. The rest of the code is relying on

[PATCH v4 17/20] net/xen-netfront: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
The PV network protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity using network device on a non-modified Xen. It's only necessary to adapt the ring size and break skb data in small chunk of 4KB. The rest of the code is relying on the gran

[PATCH v4 15/20] block/xen-blkfront: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
The PV block protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity using block device on a non-modified Xen. The block API is using segment which should at least be the size of a Linux page. Therefore, the driver will have to break the page

[PATCH v4 20/20] arm/xen: Add support for 64KB page granularity

2015-09-07 Thread Julien Grall
The hypercall interface is always using 4KB page granularity. This is requiring to use xen page definition macro when we deal with hypercall. Note that pfn_to_gfn is working with a Xen pfn (i.e 4KB). We may want to rename pfn_gfn to make this explicit. We also allocate a 64KB page for the shared

[PATCH v4 12/20] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-09-07 Thread Julien Grall
For ARM64 guests, Linux is able to support either 64K or 4K page granularity. Although, the hypercall interface is always based on 4K page granularity. With 64K page granularity, a single page will be spread over multiple Xen frame. To avoid splitting the page into 4K frame, take advantage of the

[PATCH v4 16/20] block/xen-blkback: Make it running on 64KB page granularity

2015-09-07 Thread Julien Grall
The PV block protocol is using 4KB page granularity. The goal of this patch is to allow a Linux using 64KB page granularity behaving as a block backend on a non-modified Xen. It's only necessary to adapt the ring size and the number of request per indirect frames. The rest of the code is relying o

[PATCH v4 13/20] xen/events: fifo: Make it running on 64KB granularity

2015-09-07 Thread Julien Grall
Only use the first 4KB of the page to store the events channel info. It means that we will waste 60KB every time we allocate page for: * control block: a page is allocating per CPU * event array: a page is allocating everytime we need to expand it I think we can reduce the memory waste f

[PATCH v4 10/20] xen/xenbus: Use Xen page definition

2015-09-07 Thread Julien Grall
All the ring (xenstore, and PV rings) are always based on the page granularity of Xen. Signed-off-by: Julien Grall Reviewed-by: David Vrabel Reviewed-by: Stefano Stabellini --- Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Changes in v3: - Fix errors reported by checkpatch.pl

[PATCH v4 14/20] xen/grant-table: Make it running on 64KB granularity

2015-09-07 Thread Julien Grall
The Xen interface is using 4KB page granularity. This means that each grant is 4KB. The current implementation allocates a Linux page per grant. On Linux using 64KB page granularity, only the first 4KB of the page will be used. We could decrease the memory wasted by sharing the page with multiple

[PATCH v4 11/20] tty/hvc: xen: Use xen page definition

2015-09-07 Thread Julien Grall
The console ring is always based on the page granularity of Xen. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: David Vrabel Cc: Boris Ostrovsky Cc: linuxppc-...@lists.ozlabs.org Changes in v4: - The ring is always 4K (

[PATCH v4 19/20] xen/privcmd: Add support for Linux 64KB page granularity

2015-09-07 Thread Julien Grall
The hypercall interface (as well as the toolstack) is always using 4KB page granularity. When the toolstack is asking for mapping a series of guest PFN in a batch, it expects to have the page map contiguously in its virtual memory. When Linux is using 64KB page granularity, the privcmd driver will

[PATCH v4 00/20] xen/arm64: Add support for 64KB page in Linux

2015-09-07 Thread Julien Grall
Hi all, ARM64 Linux is supporting both 4KB and 64KB page granularity. Although, Xen hypercall interface and PV protocol are always based on 4KB page granularity. Any attempt to boot a Linux guest with 64KB pages enabled will result to a guest crash. This series is a first attempt to allow those

[PATCH v4 07/20] block/xen-blkfront: Store a page rather a pfn in the grant structure

2015-09-07 Thread Julien Grall
All the usage of the field pfn are done using the same idiom: pfn_to_page(grant->pfn) This will return always the same page. Store directly the page in the grant to clean up the code. Signed-off-by: Julien Grall Acked-by: Roger Pau Monné Reviewed-by: Stefano Stabellini --- Cc: Konrad Rzeszu

[PATCH v4 06/20] block/xen-blkfront: Split blkif_queue_request in 2

2015-09-07 Thread Julien Grall
Currently, blkif_queue_request has 2 distinct execution path: - Send a discard request - Send a read/write request The function is also allocating grants to use for generating the request. Although, this is only used for read/write request. Rather than having a function with 2 distinct ex

Re: [PATCH 5/6] sched/fair: Get rid of scaling utilization by capacity_orig

2015-09-07 Thread Dietmar Eggemann
On 04/09/15 00:51, Steve Muckle wrote: > Hi Morten, Dietmar, > > On 08/14/2015 09:23 AM, Morten Rasmussen wrote: > ... >> + * cfs_rq.avg.util_avg is the sum of running time of runnable tasks plus the >> + * recent utilization of currently non-runnable tasks on a CPU. It >> represents >> + * the a

[PATCH v4 04/20] xen/grant: Introduce helpers to split a page into grant

2015-09-07 Thread Julien Grall
Currently, a grant is always based on the Xen page granularity (i.e 4KB). When Linux is using a different page granularity, a single page will be split between multiple grants. The new helpers will be in charge of splitting the Linux page into grants and call a function given by the caller on each

[PATCH v4 05/20] xen/grant: Add helper gnttab_page_grant_foreign_access_ref_one

2015-09-07 Thread Julien Grall
Many PV drivers contain the idiom: pfn = page_to_gfn(...) /* Or similar */ gnttab_grant_foreign_access_ref Replace it by a new helper. Note that when Linux is using a different page granularity than Xen, the helper only gives access to the first 4KB grant. This is useful where drivers are alloca

[PATCH v4 09/20] xen/biomerge: Don't allow biovec's to be merged when Linux is not using 4KB pages

2015-09-07 Thread Julien Grall
On ARM all dma-capable devices on a same platform may not be protected by an IOMMU. The DMA requests have to use the BFN (i.e MFN on ARM) in order to use correctly the device. While the DOM0 memory is allocated in a 1:1 fashion (PFN == MFN), grant mapping will screw this contiguous mapping. When

[PATCH v4 01/20] net/xen-netback: xenvif_gop_frag_copy: move GSO check out of the loop

2015-09-07 Thread Julien Grall
The skb doesn't change within the function. Therefore it's only necessary to check if we need GSO once at the beginning. Signed-off-by: Julien Grall Acked-by: Wei Liu --- Cc: Ian Campbell Cc: net...@vger.kernel.org Changes in v4: - Add Wei's acked Changes in v2: - Pat

[PATCH v4 03/20] xen: Add Xen specific page definition

2015-09-07 Thread Julien Grall
The Xen hypercall interface is always using 4K page granularity on ARM and x86 architecture. With the incoming support of 64K page granularity for ARM64 guest, it won't be possible to re-use the Linux page definition in Xen drivers. Introduce Xen page definition helpers based on the Linux page de

[PATCH v4 08/20] block/xen-blkfront: split get_grant in 2

2015-09-07 Thread Julien Grall
Prepare the code to support 64KB page granularity. The first implementation will use a full Linux page per indirect and persistent grant. When non-persistent grant is used, each page of a bio request may be split in multiple grant. Furthermore, the field page of the grant structure is only used to

[PATCH v4 02/20] arm/xen: Drop pte_mfn and mfn_pte

2015-09-07 Thread Julien Grall
They are not used in common code expect in one place in balloon.c which is only compiled when Linux is using PV MMU. It's not the case on ARM. Rather than worrying how to handle the 64KB case, drop them. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Cc: Russell King Cha

Re: [PATCH] ARM: fix bug which lowmem size is limited to 760MB

2015-09-07 Thread Nicolas Pitre
On Mon, 7 Sep 2015, Arnd Bergmann wrote: > Given how much more common 1GB hardware configurations are compared to 768MB > configuration, we could however think about adding a VMSPLIT_3G_OPT option > that x86 has (also VMSPLIT_2_75G on ARCH_TILE), to allow using the entire > 1GB of lowmem without g

Re: [PATCH v2 1/5] ACPI: add in a bad_madt_entry() function to eventually replace the macro

2015-09-07 Thread Sudeep Holla
Hi Al, On 19/08/15 23:07, Al Stone wrote: I finally got a chance to try this series on Juno. Well it exposed a firmware bug in MADT table :) [..] acpi_tbl_entry_handler handler, @@ -245,6 +484,8 @@ acpi_parse_entries(char *id, unsigned long table_size, table

[GIT PULL] regmap updates for v4.3

2015-09-07 Thread Mark Brown
The following changes since commit 64291f7db5bd8150a74ad2036f1037e6a0428df2: Linux 4.2 (2015-08-30 11:34:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v4.3 for you to fetch changes up to 072502a67c9164625288cc

Re: [PATCH 2/2] rcu: Fix up timeouts for forcing the quiescent state

2015-09-07 Thread Petr Mladek
On Fri 2015-09-04 16:49:46, Paul E. McKenney wrote: > On Fri, Sep 04, 2015 at 02:11:30PM +0200, Petr Mladek wrote: > > The deadline to force the quiescent state (jiffies_force_qs) is currently > > updated only when the previous timeout passed. But the timeout used for > > wait_event() is always the

Re: [PATCH v8 2/2] ARM: imx: support suspend states on imx7D

2015-09-07 Thread Shawn Guo
On Fri, Jul 31, 2015 at 04:33:59PM -0500, Shenwei Wang wrote: > IMX7D contains a new version of GPC IP block (GPCv2). It has two > major functions: power management and wakeup source management. > > GPCv2 provides low power mode control for Cortex-A7 and Cortex-M4 > domains. And it can support WAI

similar files amd vs radeon

2015-09-07 Thread Peter Senna Tschudin
I executed a clone detection tool* on drivers source code and I found that there are similar files between drivers/gpu/drm/amd/ and drivers/gpu/drm/radeon, but also inside each of theses folders. Some examples: drivers/gpu/drm/amd/amdgpu/dce_v11_0.c,drivers/gpu/drm/amd/amdgpu/dce_v10_0.c drivers/g

[PATCH v2] 9p: trans_fd, bail out if recv fcall if missing

2015-09-07 Thread Dominique Martinet
req->rc is pre-allocated early on with p9_tag_alloc and shouldn't be missing Signed-off-by: Dominique Martinet --- net/9p/trans_fd.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) Feel free to adapt error code/message if you can think of something better. diff --git a/net/

RE: [PATCH] powerpc32: memcpy: only use dcbz once cache is enabled

2015-09-07 Thread David Laight
From: Christophe Leroy > Sent: 07 September 2015 15:25 ... > diff --git a/arch/powerpc/lib/copy_32.S b/arch/powerpc/lib/copy_32.S > index 2ef50c6..05b3096 100644 > --- a/arch/powerpc/lib/copy_32.S > +++ b/arch/powerpc/lib/copy_32.S > @@ -172,7 +172,16 @@ _GLOBAL(memcpy) > mtctr r0 > b

Re: [PATCH v2 1/2] leds: leds-ipaq-micro: Use devm_led_classdev_register

2015-09-07 Thread Jacek Anaszewski
On 09/07/2015 04:13 PM, Muhammad Falak R Wani wrote: Use of resource-managed function devm_led_classdev_register instead of led_classdev_register is preferred, consequently remove redundant function micro_leds_remove. Signed-off-by: Muhammad Falak R Wani --- drivers/leds/leds-ipaq-micro.c | 9

Re: [RFC PATCH v1 2/4] irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT

2015-09-07 Thread Thomas Gleixner
On Mon, 7 Sep 2015, Marc Zyngier wrote: > On 07/09/15 14:24, Thomas Gleixner wrote: > > The history of this flag is as follows: > > > > On x86 interrupts can only be safely migrated while the interrupt is > > handled. > > Woa! That's creative! :-) I suppose this doesn't work very well with CPU >

Re: [PATCH 1/2] rcu: Show the real fqs_state

2015-09-07 Thread Petr Mladek
On Fri 2015-09-04 16:24:22, Paul E. McKenney wrote: > On Fri, Sep 04, 2015 at 02:11:29PM +0200, Petr Mladek wrote: > > The value of "fqs_state" in struct rcu_state is always RCU_GP_IDLE. > > > > The real state is stored in a local variable in rcu_gp_kthread(). > > It is modified by rcu_gp_fqs() vi

Re: [RFC PATCH 1/3] arm64: entry: Remove unnecessary calculation for S_SP in EL1h

2015-09-07 Thread Mark Rutland
On Fri, Sep 04, 2015 at 03:23:05PM +0100, Jungseok Lee wrote: > Under EL1h, S_SP data is not seen in kernel_exit. Thus, x21 calculation > is not needed in kernel_entry. Currently, S_SP information is vaild only > when sp_el0 is used. I don't think this is true. The generic BUG implementation will

Re: [RFC PATCH v1 2/4] irqchip: GICv3: set non-percpu irqs status with _IRQ_MOVE_PCNTXT

2015-09-07 Thread Marc Zyngier
Hi Thomas, On 07/09/15 14:24, Thomas Gleixner wrote: > On Mon, 7 Sep 2015, Marc Zyngier wrote: >> On 06/09/15 06:56, Jiang Liu wrote: >>> On 2015/9/6 12:23, Yang Yingliang wrote: Use irq_settings_set_move_pcntxt() helper irqs status with _IRQ_MOVE_PCNTXT. So that it can do set affinity w

Re: [PATCH] powerpc32: memcpy: only use dcbz once cache is enabled

2015-09-07 Thread Michal Sojka
On Mon, Sep 07 2015, Christophe Leroy wrote: > memcpy() uses instruction dcbz to speed up copy by not wasting time > loading cache line with data that will be overwritten. > Some platform like mpc52xx do no have cache active at startup and > can therefore not use memcpy(). Allthough no part of the

Re: [PATCH v4 0/3] mtd: nand: jz4780: Add NAND and BCH drivers

2015-09-07 Thread Alex Smith
On 06/09/2015 21:38, Ezequiel Garcia wrote: > On 27 Jul 02:50 PM, Alex Smith wrote: >> Hi, >> >> This series adds support for the BCH controller and NAND devices on >> the Ingenic JZ4780 SoC. >> >> Tested on the MIPS Creator Ci20 board. All dependencies are now in >> mainline so it should be possib

Re: [PATCH v2 2/2] leds: leds-ipaq-micro: Fix coding style issues

2015-09-07 Thread Jacek Anaszewski
Hi Muhammad, On 09/07/2015 04:13 PM, Muhammad Falak R Wani wrote: Spaces at the starting of a line are removed, indentation using tab, instead of space. Also, warnings related to line width of more than 80 characters is also taken care of. Two warnings have been left alone to aid better readabil

Re: [PATCH v4 3/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-09-07 Thread Alex Smith
Hi, On 06/09/2015 22:21, Ezequiel Garcia wrote: > On 27 Jul 03:21 PM, Alex Smith wrote: >> Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as >> well as the hardware BCH controller. DMA is not currently implemented. >> >> While older 47xx SoCs also have a BCH controller, they a

Re: [RFC PATCH 1/3] arm64: entry: Remove unnecessary calculation for S_SP in EL1h

2015-09-07 Thread James Morse
On 04/09/15 15:23, Jungseok Lee wrote: > Under EL1h, S_SP data is not seen in kernel_exit. Thus, x21 calculation > is not needed in kernel_entry. Currently, S_SP information is vaild only > when sp_el0 is used. > > Signed-off-by: Jungseok Lee > diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/

Re: [RFC PATCH 2/3] arm64: Introduce IRQ stack

2015-09-07 Thread James Morse
On 04/09/15 15:23, Jungseok Lee wrote: > Currently, kernel context and interrupts are handled using a single > kernel stack navigated by sp_el1. This forces many systems to use > 16KB stack, not 8KB one. Low memory platforms naturally suffer from > both memory pressure and performance degradation s

similar files: fusbh200-hcd.c and fotg210-hcd.c

2015-09-07 Thread Peter Senna Tschudin
I executed a clone detection tool* on drivers source code and I found that the files drivers/usb/host/fusbh200-hcd.c and drivers/usb/host/fotg210-hcd.c are very similar. The main difference between the two files are replacing the string 'USBH20' by 'OTG21' and some white space fixes. Some chang

Re: [PATCH 0/6] sched/fair: Compute capacity invariant load/utilization tracking

2015-09-07 Thread Dietmar Eggemann
On 07/09/15 13:42, Peter Zijlstra wrote: > On Mon, Aug 31, 2015 at 11:24:49AM +0200, Peter Zijlstra wrote: > >> A quick run here gives: >> >> IVB-EP (2*20*2): > > As noted by someone; that should be 2*10*2, for a total of 40 cpus in > this machine. > >> >> perf stat --null --repeat 10 -- perf be

[PATCH v5 2/9] Input: goodix - use actual config length for each device type

2015-09-07 Thread Irina Tirdea
Each of the Goodix devices supported by this driver has a fixed size for the configuration information registers. The size varies depending on the device and is specified in the datasheet. Use the proper configuration length as specified in the datasheet for each device model, so we do not read mo

[PATCH v5 4/9] Input: goodix - write configuration data to device

2015-09-07 Thread Irina Tirdea
Goodix devices can be configured by writing custom data to the device at init. The configuration data is read with request_firmware from "goodix__cfg.bin", where is the product id read from the device (e.g.: goodix_911_cfg.bin for Goodix GT911, goodix_9271_cfg.bin for GT9271). The configuration i

[PATCH v5 6/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-09-07 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 3d4a004

[PATCH v5 8/9] Input: goodix - add sysfs interface to dump config

2015-09-07 Thread Irina Tirdea
Goodix devices have a configuration information register area that specify various parameters for the device. The configuration information has a specific format described in the Goodix datasheet. It includes X/Y resolution, maximum supported touch points, interrupt flags, various sesitivity factor

[PATCH] arm64: kernel: Use a separate stack for irq interrupts.

2015-09-07 Thread James Morse
Having to handle interrupts on top of an existing kernel stack means the kernel stack must be large enough to accomodate both the maximum kernel usage, and the maximum irq handler usage. Switching to a different stack when processing irqs allows us to make the stack size smaller. Maximum kernel st

[PATCH v5 9/9] Input: goodix - add runtime power management support

2015-09-07 Thread Irina Tirdea
Add support for runtime power management so that the device is turned off when not used (when the userspace holds no open handles of the input device). The device uses autosuspend with a default delay of 2 seconds, so the device will suspend if no handles to it are open for 2 seconds. The runtime

[PATCH v5 7/9] Input: goodix - add support for ESD

2015-09-07 Thread Irina Tirdea
Add ESD (Electrostatic Discharge) protection mechanism. The driver enables ESD protection in HW and checks a register to determine if ESD occurred. If ESD is signalled by the HW, the driver will reset the device. The ESD poll time (in ms) can be set through the sysfs property esd_timeout. If it i

Re: [PATCH v4 1/3] mtd: nand: increase ready wait timeout and report timeouts

2015-09-07 Thread Alex Smith
Hi Ezequiel, Thanks for reviewing the series. On 06/09/2015 21:37, Ezequiel Garcia wrote: > On 27 Jul 02:50 PM, Alex Smith wrote: >> If nand_wait_ready() times out, this is silently ignored, and its >> caller will then proceed to read from/write to the chip before it is >> ready. This can potenti

[PATCH v5 5/9] Input: goodix - add power management support

2015-09-07 Thread Irina Tirdea
Implement suspend/resume for goodix driver. The suspend and resume process uses the gpio pins. If the device ACPI/DT information does not declare gpio pins, suspend/resume will not be available for these devices. This is based on Goodix datasheets for GT911 and GT9271 and on Goodix driver gt9xx.c

[PATCH v5 1/9] Input: goodix - sort includes alphabetically

2015-09-07 Thread Irina Tirdea
Signed-off-by: Irina Tirdea --- drivers/input/touchscreen/goodix.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index e36162b..6ae28c5 100644 --- a/drivers/input/touchscreen/goodix.c +++ b

[PATCH v5 3/9] Input: goodix - reset device at init

2015-09-07 Thread Irina Tirdea
After power on, it is recommended that the driver resets the device. The reset procedure timing is described in the datasheet and is used at device init (before writing device configuration) and for power management. It is a sequence of setting the interrupt and reset pins high/low at specific timi

<    1   2   3   4   5   6   >