Re: [PATCH 02/24] Documentation: DT bindings: add more chip compatible strings for Tegra PCIe

2015-01-29 Thread Rob Herring
On Wed, Jan 28, 2015 at 5:49 PM, Paul Walmsley wrote: > > Add compatible strings for the PCIe IP blocks present on several Tegra > chips. The primary objective here is to avoid checkpatch warnings, > per: > > http://marc.info/?l=linux-tegra&m=142201349727836&w=2 > > Signed-off-by: Paul Walmsley

Re: [PATCH] staging: comedi: drivers: ni_mio_cs: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 22:37, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

Re: [RFC][PATCH 2/3] perf: Add a bit of paranoia

2015-01-29 Thread Peter Zijlstra
On Mon, Jan 26, 2015 at 05:26:39PM +0100, Peter Zijlstra wrote: > On Fri, Jan 23, 2015 at 01:52:01PM +0100, Peter Zijlstra wrote: > Jiri reported triggering that WARN_ON_ONCE over the weekend: > > event_sched_out.isra.79+0x2b9/0x2d0 > group_sched_out+0x69/0xc0 > ctx_sched_out+0x106/0x130 > tas

Re: [PATCH] firmware: efi: remove unneeded guid unparse

2015-01-29 Thread Matt Fleming
On Thu, 2015-01-29 at 16:35 +0200, Ivan Khoronzhuk wrote: > There is no reason to translate guid number to string here. > So remove it in order to not do unneeded work. > > Signed-off-by: Ivan Khoronzhuk > --- > drivers/firmware/efi/efi.c | 5 - > 1 file changed, 5 deletions(-) Why the rese

Re: [PATCH 3.12 000/176] 3.12.37-stable review

2015-01-29 Thread Jiri Slaby
On 01/28/2015, 05:48 PM, Guenter Roeck wrote: > On Wed, Jan 28, 2015 at 03:29:35PM +0100, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.37 release. >> There are 176 patches in this series, all will be posted as a response >> to this one. If anyone has any issues wi

[PATCH] spi/xilinx: Cast ioread32/iowrite32 function pointers

2015-01-29 Thread Ricardo Ribalda Delgado
IO functions prototypes may have different argument qualifiers on different architectures. This patch cast the assignment of the function, to match the one defined at iomap.h. Fixes: 99082eab63449f9d spi/xilinx: Remove iowrite/ioread wrappers Reported-by: kbuild test robot Signed-off-by: Ricardo

[PATCH] drivers: ras: Include appropriate header in debugfs.c

2015-01-29 Thread Darshana Padmadas
Includes header file linux/ras.h that has function prototypes for functions used in debugfs.c This eliminates the following warnings: drivers/ras/debugfs.c:7:5: warning: no previous prototype for ‘ras_userspace_consumers’ [-Wmissing-prototypes] drivers/ras/debugfs.c:37:12: warning: no previous pr

[PATCH] sparc: io_64.h: Replace io function-link macros

2015-01-29 Thread Ricardo Ribalda Delgado
Function like macros cannot be assigned to function pointers. This patch convert the function-like macros into object-macros, that the precompiler will replace with the name of the final function. With this patch this kind of code will work: if (priv->mode_big_endian) priv.read = ioread32

Re: [PATCH] firmware: efi: remove unneeded guid unparse

2015-01-29 Thread Ivan Khoronzhuk
Oh, sorry. Just didn't note that it's picked up from linaro list. On 01/29/2015 04:47 PM, Matt Fleming wrote: On Thu, 2015-01-29 at 16:35 +0200, Ivan Khoronzhuk wrote: There is no reason to translate guid number to string here. So remove it in order to not do unneeded work. Signed-off-by: Iva

linux-next - crashes in rhashtable_shrink

2015-01-29 Thread Valdis Kletnieks
For the past few kernels, I've seen occasional crashes in rhashtable_shrink. Looks like the last thing to touch that code was the patch series: Subject [PATCH 0/9 net-next v2] rhashtable: Per bucket locks & deferred table resizing DateFri, 2 Jan 2015 23:00:13 +0100 Most common appears to be

[PATCH v4] mm: incorporate read-only pages into transparent huge pages

2015-01-29 Thread Ebru Akagunduz
This patch aims to improve THP collapse rates, by allowing THP collapse in the presence of read-only ptes, like those left in place by do_swap_page after a read fault. Currently THP can collapse 4kB pages into a THP when there are up to khugepaged_max_ptes_none pte_none ptes in a 2MB range. This p

Re: i915 framebuffer init too slow to find logo

2015-01-29 Thread S. Gilles
On 2015-01-29T10:09:39+0200, Tomi Valkeinen wrote: > On 29/01/15 04:32, S. Gilles wrote: > > Since commit 92b004d1aa9f367c372511ca0330f58216b25703 : prevent use of > > logs after they have been freed, my i915 machine has no logo on boot > > (reverting that commit brings it back on recent trees). My

[PATCH v3 3/6] mmc: pwrseq: Document optional clock for the simple power sequence

2015-01-29 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need an external clock to be operational. Since this is very common, extend the simple MMC power sequence DT binding to support an optional clock. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: None. --- Docum

[PATCH v3 5/6] ARM: dts: exynos5250-snow: Enable wifi power-on

2015-01-29 Thread Javier Martinez Canillas
The Snow board has a MMC/SDIO wifi chip that is always powered but it needs a power sequence involving a reset (active low) and an enable (active high) pins. Both pins are marked as active low since the MMC simple power sequence driver asserts the pins prior to the card power up procedure and de-as

[PATCH v3 1/6] mmc: pwrseq: Document that simple sequence support more than one GPIO

2015-01-29 Thread Javier Martinez Canillas
Many SDIO/MMC attached WLAN chips need more than one ping for their reset sequence. Extend the pwrseq_simple binding to support more than one pin. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: - Make the explanation clearer by adding an explicit "they".

Re: [PATCH] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2

2015-01-29 Thread Ulf Hansson
On 29 January 2015 at 15:17, Jean Delvare wrote: > Hi Ulf, > > On Wed, 28 Jan 2015 15:04:24 +0100, Ulf Hansson wrote: >> On 27 January 2015 at 15:34, Jean Delvare wrote: >> > Hi Ulf, >> > >> > Le Tuesday 27 January 2015 à 15:06 +0100, Ulf Hansson a écrit : >> >> On 26 January 2015 at 11:23, Jean

Re: [PATCH v4 1/6] of: iommu: add ptr to OF node arg to of_iommu_configure()

2015-01-29 Thread Murali Karicheri
On 01/28/2015 06:32 PM, Laurent Pinchart wrote: Hi Will, On Wednesday 28 January 2015 13:32:19 Will Deacon wrote: On Wed, Jan 28, 2015 at 01:15:10PM +, Laurent Pinchart wrote: On Wednesday 28 January 2015 12:29:42 Will Deacon wrote: On Wed, Jan 28, 2015 at 12:23:03PM +, Laurent Pincha

Re: linux-next - crashes in rhashtable_shrink

2015-01-29 Thread Thomas Graf
On 01/29/15 at 09:57am, Valdis Kletnieks wrote: > For the past few kernels, I've seen occasional crashes in rhashtable_shrink. > Looks like the last thing to touch that code was the patch series: > > Subject [PATCH 0/9 net-next v2] rhashtable: Per bucket locks & deferred > table resizing >

Re: [PATCH v4 2/2] thermal: exynos: Add TMU support for Exynos7 SoC

2015-01-29 Thread Abhilash Kesavan
Hi Lukasz, On Thu, Jan 29, 2015 at 1:56 PM, Lukasz Majewski wrote: > Hi Abhilash, > >> Add registers, bit fields and compatible strings for Exynos7 TMU >> (Thermal Management Unit). Following are a few of the differences >> in the Exynos7 TMU from earlier SoCs: >> - 8 trigger levels >>

[PATCH v3 6/6] ARM: dts: exynos5250-snow: Add cap-sdio-irq to wifi mmc node

2015-01-29 Thread Javier Martinez Canillas
Enabling SDIO IRQ signalling for the wifi MMC/SDIO slot doubles the transmission transfer rate. Signed-off-by: Javier Martinez Canillas --- Changes since v2: None. Changes since v1: None, new patch. --- arch/arm/boot/dts/exynos5250-snow.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/a

[PATCH v3 0/6] Add multiple GPIO and external clock to MMC pwrseq_simple

2015-01-29 Thread Javier Martinez Canillas
Hello Ulf, Many WLAN chips attached to an SDIO interface needs more than one GPIO for their reset sequence and also an external clock to be operational. Since this is very common, this series extend the simple MMC power sequence to support more than one reset GPIO and also an optional external cl

[PATCH v3 2/6] mmc: pwrseq_simple: Extend to support more pins

2015-01-29 Thread Javier Martinez Canillas
Many WLAN attached to a SDIO/MMC interface, needs more than one pin for their reset sequence. For example, is very common for chips to have two pins: one for reset and one for power enable. This patch adds support for more reset pins to the pwrseq_simple driver and instead hardcoding a fixed numbe

[PATCH v3 4/6] mmc: pwrseq_simple: Add optional reference clock support

2015-01-29 Thread Javier Martinez Canillas
Some WLAN chips attached to a SDIO interface, need a reference clock. Since this is very common, extend the prseq_simple driver to support an optional clock that is enabled prior the card power up procedure. Note: the external clock is optional. Thus an error is not returned if the clock is not f

Re: [PATCH v9 12/14] x86: perf: intel_pt: Intel PT PMU driver

2015-01-29 Thread Alexander Shishkin
On 29 January 2015 at 13:59, Peter Zijlstra wrote: > I think that logic fails for per-task events that have a cpu set. True. >> +static bool exclusive_event_ok(struct perf_event *event, >> +struct perf_event_context *ctx) >> +{ >> + struct pmu *pmu = event->pmu; >

[3.18.3] poll() on gpio pins broken

2015-01-29 Thread folkert
Hi, For timekeeping I wrote a program which waits for interrupts on gpio-pins and then tells the local ntp daemon the clock offset. I'm aware of the pps support in recent kernel but that does not work (yet) on all platforms (eg cubieboard 1). This has worked for quite some time but no longer. Un

Odd heuristic in load average calculation when many processes start in a small window

2015-01-29 Thread SZALAY Attila
I found a strange spike in one of my machine's load average. The machine does nothing (right now). The normal load average is nearly zero, the user and system usage is not more than 5 per cent. But once in a while the load average go to more than one, some times even much higher (5-20). The probl

Re: [PATCH v4 05/13] pm: at91: move the copying the sram function to the sram initializationi phase

2015-01-29 Thread Alexandre Belloni
Hi, On 29/01/2015 at 11:28:00 +, Russell King - ARM Linux wrote : > On Wed, Jan 28, 2015 at 09:43:16AM +0800, Wenyou Yang wrote: > > -#ifdef CONFIG_AT91_SLOW_CLOCK > > - /* copy slow_clock handler to SRAM, and call it > > */ > > - memcpy(slo

linux-next - process hangs in do_exit().

2015-01-29 Thread Valdis Kletnieks
Saw my laptop grind to a halt this morning where processes would hang while trying to exit. Looks like Al was last person to touch kernel/acct.c back around Jan 9: commit 9e251d02041432487d89cb340e72490c4bbc198a Author: Al Viro Date: Fri Jan 9 20:40:02 2015 -0500 kill pin_put() touched c

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-01-29 Thread Sergey Senozhatsky
On (01/29/15 21:48), Ganesh Mahendran wrote: > > Admin could reset zram during I/O operation going on so we have > > used zram->init_lock as read-side lock in I/O path to prevent > > sudden zram meta freeing. > > When I/O operation is running, that means the /dev/zram0 is > mounted or swaped on. T

[PATCH v10 05/17] mm: slub: share object_err function

2015-01-29 Thread Andrey Ryabinin
Remove static and add function declarations to linux/slub_def.h so it could be used by kernel address sanitizer. Signed-off-by: Andrey Ryabinin --- include/linux/slub_def.h | 3 +++ mm/slub.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/slub_

[PATCH v10 00/17] Kernel address sanitizer - runtime memory debugger.

2015-01-29 Thread Andrey Ryabinin
KASan is a runtime memory debugger designed to find use-after-free and out-of-bounds bugs. Currently KASAN supported only for x86_64 architecture and requires kernel to be build with SLUB allocator. KASAN uses compile-time instrumentation for checking every memory access, therefore you will need

[PATCH v10 01/17] Add kernel address sanitizer infrastructure.

2015-01-29 Thread Andrey Ryabinin
Kernel Address sanitizer (KASan) is a dynamic memory error detector. It provides fast and comprehensive solution for finding use-after-free and out-of-bounds bugs. KASAN uses compile-time instrumentation for checking every memory access, therefore GCC >= v4.9.2 required. This patch only adds inf

[PATCH v10 15/17] kernel: add support for .init_array.* constructors

2015-01-29 Thread Andrey Ryabinin
KASan uses constructors for initializing redzones for global variables. Actually KASan doesn't need priorities for constructors, so they were removed from GCC 5.0, but GCC 4.9.2 still generates constructors with priorities. Signed-off-by: Andrey Ryabinin --- include/asm-generic/vmlinux.lds.h | 1

[PATCH v10 13/17] mm: vmalloc: add flag preventing guard hole allocation

2015-01-29 Thread Andrey Ryabinin
For instrumenting global variables KASan will shadow memory backing memory for modules. So on module loading we will need to allocate shadow memory and map it at exact virtual address. __vmalloc_node_range() seems like the best fit for that purpose, except it puts a guard hole after allocated area.

[PATCH v10 06/17] mm: slub: introduce metadata_access_enable()/metadata_access_disable()

2015-01-29 Thread Andrey Ryabinin
Wrap access to object's metadata in external functions with metadata_access_enable()/metadata_access_disable() function calls. This hooks separates payload accesses from metadata accesses which might be useful for different checkers (e.g. KASan). Signed-off-by: Andrey Ryabinin --- mm/slub.c | 1

[PATCH] ARM: keystone: defconfig: add DEVTMPFS option by default.

2015-01-29 Thread Murali Karicheri
When using network driver on keystone and nfs rootfs is used following error displayed and device halts. Missing devtmpfs, which is required for udev to run Halting... Add the DEVTMPFS option by default to fix this Signed-off-by: Murali Karicheri --- arch/arm/configs/keystone_defconfig |1

Re: [PATCH] staging: comedi: drivers: addi-data: hwdrv_apci3501: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 21:51, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

[PATCH v10 16/17] module: fix types of device tables aliases

2015-01-29 Thread Andrey Ryabinin
MODULE_DEVICE_TABLE() macro used to create aliases to device tables. Normally alias should have the same type as aliased symbol. Device tables are arrays, so they have 'struct type##_device_id[x]' types. Alias created by MODULE_DEVICE_TABLE() will have non-array type - 'struct type##_devic

[PATCH v10 10/17] lib: add kasan test module

2015-01-29 Thread Andrey Ryabinin
This is a test module doing various nasty things like out of bounds accesses, use after free. It is useful for testing kernel debugging features like kernel address sanitizer. It mostly concentrates on testing of slab allocator, but we might want to add more different stuff here in future (like st

[PATCH v10 11/17] x86_64: kasan: add interceptors for memset/memmove/memcpy functions

2015-01-29 Thread Andrey Ryabinin
Recently instrumentation of builtin functions calls was removed from GCC 5.0. To check the memory accessed by such functions, userspace asan always uses interceptors for them. So now we should do this as well. This patch declares memset/memmove/memcpy as weak symbols. In mm/kasan/kasan.c we have o

[PATCH v10 02/17] x86_64: add KASan support

2015-01-29 Thread Andrey Ryabinin
This patch adds arch specific code for kernel address sanitizer. 16TB of virtual addressed used for shadow memory. It's located in range [ec00 - fc00] between vmemmap and %esp fixup stacks. At early stage we map whole shadow region with zero page. Latter, after pages mappe

[PATCH v10 14/17] mm: vmalloc: pass additional vm_flags to __vmalloc_node_range()

2015-01-29 Thread Andrey Ryabinin
For instrumenting global variables KASan will shadow memory backing memory for modules. So on module loading we will need to allocate shadow memory and map it at exact virtual address. __vmalloc_node_range() seems like the best fit for that purpose, except it puts a guard hole after allocated area.

[PATCH v10 12/17] kasan: enable stack instrumentation

2015-01-29 Thread Andrey Ryabinin
Stack instrumentation allows to detect out of bounds memory accesses for variables allocated on stack. Compiler adds redzones around every variable on stack and poisons redzones in function's prologue. Such approach significantly increases stack usage, so all in-kernel stacks size were doubled. S

[PATCH v10 07/17] mm: slub: add kernel address sanitizer support for slub allocator

2015-01-29 Thread Andrey Ryabinin
With this patch kasan will be able to catch bugs in memory allocated by slub. Initially all objects in newly allocated slab page, marked as redzone. Later, when allocation of slub object happens, requested by caller number of bytes marked as accessible, and the rest of the object (including slub's

RE: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-29 Thread Ong, Boon Leong
Hi Bryan, These two patches requires another patch "x86: Re-enable IO-APIC for non-SMP X86_32" to be included to make sure we have the right build for Quark. I tested v6 on Galileo Gen v2 just now. I am happy with it. Many thanks. Below are the logs: root@quark:/proc# dmesg | grep imr [3.

[PATCH v10 09/17] kmemleak: disable kasan instrumentation for kmemleak

2015-01-29 Thread Andrey Ryabinin
kmalloc internally round up allocation size, and kmemleak uses rounded up size as object's size. This makes kasan to complain while kmemleak scans memory or calculates of object's checksum. The simplest solution here is to disable kasan. Signed-off-by: Andrey Ryabinin Acked-by: Catalin Marinas -

[PATCH v10 08/17] fs: dcache: manually unpoison dname after allocation to shut up kasan's reports

2015-01-29 Thread Andrey Ryabinin
We need to manually unpoison rounded up allocation size for dname to avoid kasan's reports in dentry_string_cmp(). When CONFIG_DCACHE_WORD_ACCESS=y dentry_string_cmp may access few bytes beyound requested in kmalloc() size. dentry_string_cmp() relates on that fact that dentry allocated using kmall

[PATCH v10 17/17] kasan: enable instrumentation of global variables

2015-01-29 Thread Andrey Ryabinin
This feature let us to detect accesses out of bounds of global variables. The idea of this is simple. Compiler increases each global variable by redzone size and add constructors invoking __asan_register_globals() function. Information about global variable (address, size, size with redzone ...) p

Re: [PATCH] staging: comedi: drivers: addi_apci_3501: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 22:33, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

[PATCH v10 03/17] mm: page_alloc: add kasan hooks on alloc and free paths

2015-01-29 Thread Andrey Ryabinin
Add kernel address sanitizer hooks to mark allocated page's addresses as accessible in corresponding shadow region. Mark freed pages as inaccessible. Signed-off-by: Andrey Ryabinin --- include/linux/kasan.h | 6 ++ mm/compaction.c | 2 ++ mm/kasan/kasan.c | 14 ++ mm

[PATCH v10 04/17] mm: slub: introduce virt_to_obj function.

2015-01-29 Thread Andrey Ryabinin
virt_to_obj takes kmem_cache address, address of slab page, address x pointing somewhere inside slab object, and returns address of the begging of object. Signed-off-by: Andrey Ryabinin Acked-by: Christoph Lameter --- include/linux/slub_def.h | 5 + 1 file changed, 5 insertions(+) diff --g

RE: [PATCH] x86: Re-enable IO-APIC for non-SMP X86_32

2015-01-29 Thread Ong, Boon Leong
Tested this patch together with following v6 patch for Quark IMR: 1) x86: Add Isolated Memory Regions for Quark X1000 2) x86, quark: Add Intel Quark platform support Built and tested on Galileo Genv2. This patch looks good. I will give you my tested-by below. Thanks! >-Original Message

Re: [Linaro-acpi] [PATCH v7 04/17] ARM64 / ACPI: Introduce early_param for "acpi" and pass acpi=force to enable ACPI

2015-01-29 Thread Catalin Marinas
On Wed, Jan 28, 2015 at 06:18:44PM +, Timur Tabi wrote: > On 01/28/2015 12:14 PM, Catalin Marinas wrote: > >> >So it looks like there's a whole conversation about this already in > >> >this thread that I didn't notice. However, reading through all of it, > >> >I still don't understand sure why

Re: [PATCH v9 12/14] x86: perf: intel_pt: Intel PT PMU driver

2015-01-29 Thread Peter Zijlstra
On Thu, Jan 29, 2015 at 05:03:21PM +0200, Alexander Shishkin wrote: > > We're already holding ctx->mutex, this should have made lockdep scream. > > As I mentioned offline, cpuctx->ctx.mutex is set to a lockdep class of > its own, so lockdep doesn't see this. It is, of course, still a > problem. R

Re: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-29 Thread Bryan O'Donoghue
On 29/01/15 13:47, Ong, Boon Leong wrote: Bryan, Once you have the next revision ready, I would like to test it on my end across both Galileo Gen v1 & v2. Cheers, BL Andy/BL - thanks for taking the time to test. I may end up dropping the imr_del_range() tests based on index as a result of

Re: PCIe 32-bit MMIO exhaustion

2015-01-29 Thread Bjorn Helgaas
[+cc Yinghai] Hi Daniel, On Wed, Jan 28, 2015 at 2:42 AM, Daniel J Blueman wrote: > With systems with a large number of PCI devices, we're seeing lack of 32-bit > MMIO space, eg one quad-port NetXtreme-2 adapter takes 128MB of space [1]. > > An errata to the PCIe 2.1 spec provides guidance on li

Re: [PATCH] staging: comedi: drivers: dyna_pci10xx: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 22:35, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

Re: [PATCH v9 12/14] x86: perf: intel_pt: Intel PT PMU driver

2015-01-29 Thread Peter Zijlstra
On Thu, Jan 29, 2015 at 04:20:22PM +0100, Peter Zijlstra wrote: > event->ctx is never NULL, With the one exception of partially initialized events, that is. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

Re: [PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Varka Bhadram
Hi, On Wednesday 28 January 2015 04:38 PM, Chunyan Zhang wrote: Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu Signed-off-by: Orson Zhai Signed-off-by: Chunyan Zhang Acked-by: Arnd

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Catalin Marinas
On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: > On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier wrote: > @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct > pt_regs *)) > void __init init_IRQ(void) > { > irqchip_init(); > + >

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-29 Thread Sumit Semwal
Hi Russell! On 29 January 2015 at 20:09, Russell King - ARM Linux wrote: > On Tue, Jan 27, 2015 at 01:55:54PM +0530, Sumit Semwal wrote: >> +/* >> + * recalc_constraints - recalculates constraints for all attached devices; >> + * useful for detach() recalculation, and for dma_buf_recalc_constrai

[PATCH v10 1/2] Documentation: DT: Add bindings for Spreadtrum SoC Platform

2015-01-29 Thread Chunyan Zhang
Adds Spreadtrum's prefix "sprd" to vendor-prefixes file. Adds the devicetree binding documentations for Spreadtrum's sc9836-uart and SC9836 SoC based on the Sharkl64 Platform which is a 64-bit SoC Platform of Spreadtrum. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/arm/sprd

Re: [PATCH] staging: comedi: drivers: rtd520: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 22:38, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

Re: [PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Varka Bhadram
On Thursday 29 January 2015 08:56 PM, Varka Bhadram wrote: Hi, On Wednesday 28 January 2015 04:38 PM, Chunyan Zhang wrote: Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu Signed-off-

RE: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-29 Thread Ong, Boon Leong
>-Original Message- >From: Bryan O'Donoghue [mailto:pure.lo...@nexus-software.ie] >Sent: Thursday, January 29, 2015 11:22 PM >To: Ong, Boon Leong >Cc: Thomas Gleixner; Ingo Molnar; H. Peter Anvin; x...@kernel.org; >dvh...@infradead.org; linux-kernel@vger.kernel.org; Andy Shevchenko; Ingo

Re: + mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm.patch added to -mm tree

2015-01-29 Thread Kirill A. Shutemov
On Mon, Jan 26, 2015 at 12:04:11PM -0800, a...@linux-foundation.org wrote: > diff -puN > arch/unicore32/mm/pgd.c~mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm > arch/unicore32/mm/pgd.c > --- > a/arch/unicore32/mm/pgd.c~mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm > +++ a/arch/

Re: + mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm.patch added to -mm tree

2015-01-29 Thread Kirill A. Shutemov
On Mon, Jan 26, 2015 at 12:04:11PM -0800, a...@linux-foundation.org wrote: > diff -puN > arch/unicore32/mm/pgd.c~mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm > arch/unicore32/mm/pgd.c > --- > a/arch/unicore32/mm/pgd.c~mm-fix-false-positive-warning-on-exit-due-mm_nr_pmdsmm > +++ a/arch/

Re: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-29 Thread Bryan O'Donoghue
On 29/01/15 15:32, Ong, Boon Leong wrote: -Original Message- From: Bryan O'Donoghue [mailto:pure.lo...@nexus-software.ie] Sent: Thursday, January 29, 2015 11:22 PM To: Ong, Boon Leong Cc: Thomas Gleixner; Ingo Molnar; H. Peter Anvin; x...@kernel.org; dvh...@infradead.org; linux-kernel@

Re: [PATCH] staging: comedi: drivers: usbduxsigma: Removed variables that is never used

2015-01-29 Thread Ian Abbott
On 28/01/15 22:39, Rickard Strandqvist wrote: Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/staging/comedi/dr

[PATCH v2] arm64: Kconfig: clean up two no-op Kconfig options from CONFIG_ARCH_TEGRA*

2015-01-29 Thread Paul Walmsley
Paul Bolle pointed out that commit d035fdfa27ac124bc8f94c3d7dc82ad069802170 ("arm64: Add Tegra132 support") included two Kconfig symbols that are now no-ops: USB_ARCH_HAS_EHCI and HAVE_SMP. So, drop the two symbols. This second version corrects a thinko in Paul Bolle's E-mail address. Signed-of

[PATCH v10 0/2] Add Spreadtrum SoC bindings and serial driver support

2015-01-29 Thread Chunyan Zhang
Changes from v9: - Added SUPPORT_SYSRQ definition for sprd serial Changes from v8: - Removed a few unuseful code lines. Chunyan Zhang (2): Documentation: DT: Add bindings for Spreadtrum SoC Platform tty/serial: Add Spreadtrum sc9836-uart driver support Documentation/devicetr

Re: [PATCH 0/2] Fix secondary CPU boot for thumb2 kernels

2015-01-29 Thread Catalin Marinas
On Wed, Jan 28, 2015 at 08:22:41PM +, Stephen Boyd wrote: > On 01/21/15 11:48, Stephen Boyd wrote: > > Currently I can't boot up secondary CPUs on qcom platforms when I > > compile the kernel for THUMB2 mode. This is because we always enter > > the kernel in ARM mode regardless of what mode the

Re: [PATCH 02/24] Documentation: DT bindings: add more chip compatible strings for Tegra PCIe

2015-01-29 Thread Paul Walmsley
Hi Rob On Thu, 29 Jan 2015, Rob Herring wrote: > On Wed, Jan 28, 2015 at 5:49 PM, Paul Walmsley wrote: > > > > Add compatible strings for the PCIe IP blocks present on several Tegra > > chips. The primary objective here is to avoid checkpatch warnings, > > per: > > > > http://marc.info/?l=linux

[PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Chunyan Zhang
Add a full sc9836-uart driver for SC9836 SoC which is based on the spreadtrum sharkl64 platform. This driver also support earlycon. Originally-by: Lanqing Liu Signed-off-by: Orson Zhai Signed-off-by: Chunyan Zhang Acked-by: Arnd Bergmann Reviewed-by: Peter Hurley --- drivers/tty/serial/Kconf

Re: [PATCH v2] MediaTek PMIC support

2015-01-29 Thread Matthias Brugger
2015-01-29 15:27 GMT+01:00 Sascha Hauer : > On Thu, Jan 29, 2015 at 01:39:42PM +0100, Matthias Brugger wrote: >> Hi Sascha, >> >> 2015-01-26 12:47 GMT+01:00 Sascha Hauer : >> > Olof, Arnd, >> > >> > OK to put the driver into drivers/soc/mediatek? Can you take these >> > patches? >> >> How does this

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-29 Thread Russell King - ARM Linux
On Thu, Jan 29, 2015 at 09:00:11PM +0530, Sumit Semwal wrote: > So, short answer is, it is left to the exporter to decide. The dma-buf > framework should not even attempt to decide or enforce any of the > above. > > At each dma_buf_attach(), there's a callback to the exporter, where > the exporter

Re: [PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Peter Hurley
Hi Varka, On 01/29/2015 10:26 AM, Varka Bhadram wrote: > Hi, > > On Wednesday 28 January 2015 04:38 PM, Chunyan Zhang wrote: >> Add a full sc9836-uart driver for SC9836 SoC which is based on the >> spreadtrum sharkl64 platform. >> This driver also support earlycon. >> >> Originally-by: Lanqing Li

Re: randconfig bug: ARM/KVM link error in hyp_idmap section

2015-01-29 Thread Arnd Bergmann
On Thursday 29 January 2015 16:23:42 Christoffer Dall wrote: > On Wed, Jan 28, 2015 at 8:57 PM, Arnd Bergmann wrote: > > > 8< > > Subject: [PATCH] ARM: KVM: avoid "HYP init code too big" error > > > > When building large kernels, the linker will emit lots of veneers > > into the .hyp.idmap.tex

Re: [LTP] The Linux Test Project has been released for JANUARY 2015

2015-01-29 Thread Cyril Hrubis
Hi! > >> Yupp, that popped up. > >> How can I disable that gvfsd (here: Ubuntu/precise? > > > > Just kill the process, or run the testcases via ssh session. > > > >> And can this issue be documented? > > > > Hmm, maybe we can change the test cases to complain loudly if the > > process is found runn

Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache

2015-01-29 Thread Christoph Lameter
On Thu, 29 Jan 2015, Vladimir Davydov wrote: > Come to think of it, do we really need to optimize slab placement in > kmem_cache_shrink? None of its users except shrink_store expects it - > they just want to purge the cache before destruction, that's it. May be, > we'd better move slab placement o

Re: [PATCH] spi/xilinx: Cast ioread32/iowrite32 function pointers

2015-01-29 Thread Geert Uytterhoeven
On Thu, Jan 29, 2015 at 3:51 PM, Ricardo Ribalda Delgado wrote: > IO functions prototypes may have different argument qualifiers > on different architectures. > > This patch cast the assignment of the function, to match the one defined > at iomap.h. Adding casts is (usually) not the solution to t

Re: [PATCH] dtc: Use quotes to include header files

2015-01-29 Thread Grant Likely
On Tue, 16 Dec 2014 15:13:24 +1300 , Chris Packham wrote: > Currently in arch and driver code that needs early access to the > flattened device tree it is necessary to add specific CFLAGS so that > when scripts/dtc/libfdt/libfdt.h is included the C preprocessor is able > to locate the libfdt vers

Re: [PATCH 1/2] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-01-29 Thread Alan Stern
On Thu, 29 Jan 2015, Ruslan Bilovol wrote: > Change behavior during registration of gadgets and > gadget drivers in udc-core. Instead of previous > approach when for successful probe of usb gadget driver > at least one usb gadget should be already registered > use another one where gadget drivers

Re: [PATCH] arm64: Kconfig: clean up two no-op Kconfig options from CONFIG_ARCH_TEGRA*

2015-01-29 Thread Paul Walmsley
On Thu, 29 Jan 2015, Paul Bolle wrote: > On Thu, 2015-01-29 at 09:35 +, Paul Walmsley wrote: > > Paul Bolle pointed out that commit > > d035fdfa27ac124bc8f94c3d7dc82ad069802170 ("arm64: Add Tegra132 > > support") included two Kconfig symbols that are now no-ops: > > USB_ARCH_HAS_EHCI and HAVE_

[PATCH v2 3/4] sched/deadline: Fix wrong cpudl_find() in check_preempt_equal_dl()

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang In check_preempt_equal_dl(), cpudl_find() is called with a NULL later_mask, thus cpudl_find() here doesn't check cpudl::free_cpus at all. This patch takles this issue by always passing a non-NULL later_mask to cpudl_find(), thereby fixing this issue. Signed-off-by: Xunlei Pang

[PATCH v2 1/4] sched/deadline: Modify cpudl::free_cpus to reflect root_domain::online

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang Currently, cpudl::free_cpus contains all cpus during init, see cpudl_init(). When calling cpudl_find(), we have to mask rd->span to avoid selecting the cpu outside current root domain, because cpus_allowed is undependable when performing clustered scheduling using the cpuset, se

[PATCH v2 4/4] sched/rt: Consider deadline tasks in cpupri_find()

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang Currently, RT global scheduling doesn't factor deadline tasks, this may cause some problems. See a case below: On a 3 CPU system, CPU0 has one running deadline task, CPU1 has one running low priority RT task or idle, CPU3 has one running high priority RT task. When another mid

Re: randconfig bug: ARM/KVM link error in hyp_idmap section

2015-01-29 Thread Marc Zyngier
Hi Arnd, On 29/01/15 15:53, Arnd Bergmann wrote: > On Thursday 29 January 2015 16:23:42 Christoffer Dall wrote: >> On Wed, Jan 28, 2015 at 8:57 PM, Arnd Bergmann wrote: >> >>> 8< >>> Subject: [PATCH] ARM: KVM: avoid "HYP init code too big" error >>> >>> When building large kernels, the linker

Re: [PATCH] sparc: io_64.h: Replace io function-link macros

2015-01-29 Thread Arnd Bergmann
On Thursday 29 January 2015 15:52:02 Ricardo Ribalda Delgado wrote: > Function like macros cannot be assigned to function pointers. This patch > convert the function-like macros into object-macros, that the > precompiler will replace with the name of the final function. > > With this patch this ki

[PATCH v2 2/4] sched/deadline: Remove cpu_active_mask from cpudl_find()

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang cpu_active_mask is rarely changeable, so remove this operation to gain a little performance. If there is a change in cpu_active_mask, rq_online_dl() and rq_offline_dl() should take care of it normally, so cpudl:: free_cpus carries enough information for us. For the rare case(c

Re: Hangs in libhugetlbfs tests in -next

2015-01-29 Thread Steve Capper
On 28 January 2015 at 15:24, Mark Brown wrote: > For at least the past couple of days tests of libhugetlbfs have been > hanging on mustang in the mlock test running ARMv8 defconfig with both > 32 bit and 64 bit userspace - after the mprotect test (the one before > it) we get no console output for

[PATCH v3 1/2] time: Don't bother to run rtc_resume() for the nonstop clocksource

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang If a system does not provide a persistent_clock(), the time will be updated on resume by rtc_resume(). With the addition of the non-stop clocksources for suspend timing, those systems set the time on resume in timekeeping_resume(), but may not provide a valid persistent_clock().

[PATCH v3] doc: brief user documentation for completion

2015-01-29 Thread Nicholas Mc Guire
Signed-off-by: Nicholas Mc Guire --- v3: cleanups and merged review notes from Jonathan Corbet patch is against 3.19.0-rc5 -next-20150119 Documentation/scheduler/completion.txt | 243 1 file changed, 243 insertions(+) create mode 100644 Documentation/schedul

Re: [PATCH] spi/xilinx: Cast ioread32/iowrite32 function pointers

2015-01-29 Thread Arnd Bergmann
On Thursday 29 January 2015 15:51:13 Ricardo Ribalda Delgado wrote: > * Setup little endian helper functions first and try to use them > * and check if bit was correctly setup or not. > */ > - xspi->read_fn = ioread32; > - xspi->write_fn = iowrite32; > +

Re: [PATCH v10 2/2] tty/serial: Add Spreadtrum sc9836-uart driver support

2015-01-29 Thread Russell King - ARM Linux
On Thu, Jan 29, 2015 at 10:49:34AM -0500, Peter Hurley wrote: > Hi Varka, > > On 01/29/2015 10:26 AM, Varka Bhadram wrote: > > This check is not required. It will be done by devm_ioremap_resource() > > I disagree. devm_ioremap_resource() interprets the NULL resource as > a bad parameter and retur

Re: [PATCH v7 13/17] ARM64 / ACPI: Add GICv2 specific ACPI boot support

2015-01-29 Thread Tomasz Nowicki
On 29.01.2015 16:29, Catalin Marinas wrote: On Tue, Jan 27, 2015 at 04:12:08PM +, Grant Likely wrote: On Fri, Jan 16, 2015 at 2:37 PM, Marc Zyngier wrote: @@ -78,6 +79,10 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void __init init_IRQ(void) { irqchip_init

[PATCH v3 2/2] rtc: Remove redundant rtc_valid_tm() from rtc_resume()

2015-01-29 Thread Xunlei Pang
From: Xunlei Pang rtc_read_time() has already judged valid tm by rtc_valid_tm(), so just remove it. Signed-off-by: Xunlei Pang --- drivers/rtc/class.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 6100af5..7db4c90 100644 --- a/drivers/rt

Re: Edited kexec_load(2) [kexec_file_load()] man page for review

2015-01-29 Thread Scot Doyle
On Thu, 29 Jan 2015, Michael Kerrisk (man-pages) wrote: > On 29 January 2015 at 02:27, Scot Doyle wrote: > > On Wed, 28 Jan 2015, Vivek Goyal wrote: > >> On Wed, Jan 28, 2015 at 10:10:59PM +, Scot Doyle wrote: > >> > On Wed, 28 Jan 2015, Vivek Goyal wrote: > >> > > On Wed, Jan 28, 2015 at 09:1

Re: [PATCH 7/8] phy: helpers for USB ULPI PHY registering

2015-01-29 Thread Felipe Balbi
On Thu, Jan 29, 2015 at 04:34:41PM +0200, Heikki Krogerus wrote: > On Wed, Jan 28, 2015 at 11:03:55PM -0600, Felipe Balbi wrote: > > On Fri, Jan 23, 2015 at 05:12:57PM +0200, Heikki Krogerus wrote: > > > ULPI PHYs need to be bound to their controllers with a > > > lookup. This adds helpers that the

Re: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-29 Thread Bryan O'Donoghue
On 29/01/15 15:40, Bryan O'Donoghue wrote: It would be nice to have two variants (1) index based & (2) address based. Understood. The direction from Ingo was to have address based external interface imr_del_range() and support an index based internal imr_clear() - internally. So - in order to

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