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

2015-01-21 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 v5 2/5] can: kvaser_usb: Consolidate and unify state change handling

2015-01-21 Thread Andri Yngvason
Quoting Ahmed S. Darwish (2015-01-21 15:36:47) On Wed, Jan 21, 2015 at 03:00:15PM +, Andri Yngvason wrote: Quoting Ahmed S. Darwish (2015-01-21 14:43:23) Hi! ... -- Unplug the cable -- (000.009106) can0 2080 [8] 00 00 00 00 00 00 08 00 ERRORFRAME

[RFC][PATCH 1/5] tracefs: Add new tracefs file system

2015-01-21 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a separate file system to handle the tracing directory. Currently it is part of debugfs, but that is starting to show its limits. One thing is that in order to access the tracing infrastructure, you need to mount debugfs. As that includes

[RFC][PATCH 2/5] tracing: Convert the tracing facility over to use tracefs

2015-01-21 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org debugfs was fine for the tracing facility as a quick way to get an interface. Now that tracing has matured, it should separate itself from debugfs such that it can be mounted separately without needing to mount all of debugfs with it. That is,

[PATCH] gpio: max732x: add set_multiple function

2015-01-21 Thread Mans Rullgard
This adds a set_multiple function to the MAX732x GPIO driver, allowing for performance gains when using gpiod_set_array(). Signed-off-by: Mans Rullgard m...@mansr.com --- drivers/gpio/gpio-max732x.c | 28 +--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git

Aw: randconfig build error with next-20150121, in drivers/char/tpm/tpm_tis.c

2015-01-21 Thread Peter Huewe
Thanks for reporting.   drivers/char/tpm/tpm_tis.c: In function ‘tpm_tis_pnp_init’: drivers/char/tpm/tpm_tis.c:912:45: error: invalid type argument of ‘-’ (have ‘int’) acpi_dev_handle = pnp_acpi_device(pnp_dev)-handle; ^ make[3]: *** [drivers/char/tpm/tpm_tis.o] Error 1 I'll look into it.

Re: [PATCH] staging/lustre/llite: get rid of backing_dev_info

2015-01-21 Thread Jens Axboe
On 01/21/2015 01:10 AM, gr...@linuxhacker.ru wrote: From: Oleg Drokin gr...@linuxhacker.ru With removal of backing_dev_info from struct address_space, we don't need to assign it in Lustre either. Thanks Oleg, applied. Stephen, you should be able to drop the BROKEN lustre patch again. --

Re: rcu, sched: WARNING: CPU: 30 PID: 23771 at kernel/rcu/tree_plugin.h:337 rcu_read_unlock_special+0x369/0x550()

2015-01-21 Thread Sasha Levin
On 01/20/2015 09:57 PM, Paul E. McKenney wrote: So RCU believes that an RCU read-side critical section that ended within an interrupt handler (in this case, an hrtimer) somehow got preempted. Which is not supposed to happen. Do you have CONFIG_PROVE_RCU enabled? If not, could you

Re: [RFC PATCH RESEND] vfs: Move security_inode_killpriv() after permission checks

2015-01-21 Thread Casey Schaufler
On 1/21/2015 6:03 AM, Stephen Smalley wrote: On 01/20/2015 06:17 PM, James Morris wrote: On Sat, 17 Jan 2015, Ben Hutchings wrote: chown() and write() should clear all privilege attributes on a file - setuid, setgid, setcap and any other extended privilege attributes. However, any

[PATCH] MAINTAINERS: Remove self as isci maintainer

2015-01-21 Thread Dave Jiang
Removing myself as a maintainer. Signed-off-by: Dave Jiang dave.ji...@intel.com --- MAINTAINERS |1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 93409ad..7e3d97a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4946,7 +4946,6 @@ K:\b(ABS|SYN)_MT_ INTEL

Re: [PATCH v6 5/7] power: Add support for DA9150 Charger

2015-01-21 Thread Varka Bhadram
On Wednesday 21 January 2015 09:16 PM, Adam Thomson wrote: This patch adds support for DA9150 Charger Fuel-Gauge IC Charger. Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com --- (...) +static int da9150_charger_register_irq(struct platform_device *pdev, +

Re: [PATCH v2 3/4] ARM: sti: Provide DT nodes for SSC[0..4]

2015-01-21 Thread Lee Jones
Maxime, Can you ping these up please? The Synchronous Serial Controller is used to provide SPI. Signed-off-by: Lee Jones lee.jo...@linaro.org --- arch/arm/boot/dts/stih407.dtsi | 54 ++ 1 file changed, 54 insertions(+) diff --git

Re: [PATCH] kernel: Conditionally support non-root users, groups and capabilities

2015-01-21 Thread josh
On Wed, Jan 21, 2015 at 02:52:19PM +, One Thousand Gnomes wrote: The proposed patch generates a whole mass of ifdefs all over the place. If it's going to be done move all the functions in question together somewhere logical and give them a single ifdef or a file of their own. I assume the

Re: [PATCH 3/3] x86: drop support for 1995 era EISA based platforms

2015-01-21 Thread tedheadster
I too have old EISA systems that I am using with current kernels. They're good for testing, having uncovered a kernel bug previously with Thomas Gleixner: https://lkml.org/lkml/2013/11/13/424 - Matthew -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

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

2015-01-21 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

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

2015-01-21 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

Re: [Linux-parport] [PATCHv4 2/2] parport: parport_pc: Implement CPU model check to cut off false-positives

2015-01-21 Thread Leopold Palomo-Avellaneda
El Dimecres, 13 d'agost de 2014, a les 12:04:55, Matwey V. Kornilov va escriure: Hi, What do you think, would it be better just to left the check for all x86 32-bit hardware?. Finally, finally this patch was applied? Best regards, Leopold -- -- Linux User 152692 GPG:

Re: [PATCH RESEND v2 5/7] mfd: cros_ec: Instantiate ChromeOS EC character device

2015-01-21 Thread Javier Martinez Canillas
Hello Lee, On 01/20/2015 06:11 PM, Javier Martinez Canillas wrote: But is it really a chardev? Don't chardevs usually live in drivers/char? It probably uses a chardev node in /dev, but what does it really do? What information can/will userspace obtain from this memory block? Right,

Re: [alsa-devel][PATCH 1/3] SoC: fsl_sai: add sai master mode support

2015-01-21 Thread Nicolin Chen
On Wed, Jan 21, 2015 at 05:25:32PM +0800, Zidan Wang wrote: On Tue, Jan 20, 2015 at 10:07:03PM -0800, Nicolin Chen wrote: On Tue, Jan 20, 2015 at 08:21:18PM +0800, Zidan Wang wrote: + if ((tx sai-synchronous[TX]) || (!tx !sai-synchronous[RX])) { + regmap_update_bits(sai-regmap,

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Thierry Reding
On Wed, Jan 21, 2015 at 10:24:11AM -0500, Paul Moore wrote: On Wednesday, January 21, 2015 03:42:16 PM Thierry Reding wrote: On Wed, Jan 21, 2015 at 12:05:39PM +0100, Sabrina Dubroca wrote: 2015-01-21, 04:36:38 +, Al Viro wrote: On Tue, Jan 20, 2015 at 08:01:26PM -0800, Guenter Roeck

Re: [PATCH v4 1/3] perf: Use monotonic clock as a source for timestamps

2015-01-21 Thread Pawel Moll
On Mon, 2015-01-05 at 13:01 +, Peter Zijlstra wrote: On Thu, Dec 11, 2014 at 01:39:13PM +, Pawel Moll wrote: On Thu, 2014-11-27 at 15:05 +, Pawel Moll wrote: It's been 3 weeks without any negative feedback (no feedback at all, but I take the optimistic view :-)... How

Re: [PATCH 3/5] PCI: st: Provide support for the sti PCIe controller

2015-01-21 Thread Gabriel Fernandez
On 19 January 2015 at 14:49, Arnd Bergmann a...@arndb.de wrote: On Monday 19 January 2015 13:37:33 Gabriel Fernandez wrote: On 17 December 2014 at 23:14, Arnd Bergmann a...@arndb.de wrote: On Wednesday 17 December 2014 11:34:44 Gabriel FERNANDEZ wrote: +/* + * On ARM platforms, we

[PATCH v6 0/7] Add initial support for DA9150 Charger Fuel-Gauge IC

2015-01-21 Thread Adam Thomson
This patch set adds initial support for the Dialog DA9150 Integrated Charger Fuel-Gauge IC. The device also provides GPIO and GPADC functionality. In this patch set the following is provided: - MFD Core support and DT bindings documentation. - IIO GPADC support and DT bindings documentation.

[PATCH v6 5/7] power: Add support for DA9150 Charger

2015-01-21 Thread Adam Thomson
This patch adds support for DA9150 Charger Fuel-Gauge IC Charger. Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com --- drivers/power/Kconfig | 12 + drivers/power/Makefile | 1 + drivers/power/da9150-charger.c | 688 + 3

[PATCH v6 3/7] iio: Add support for DA9150 GPADC

2015-01-21 Thread Adam Thomson
This patch adds support for DA9150 Charger Fuel-Gauge IC GPADC. Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com Reviewed-by: Hartmut Knaack knaac...@gmx.de Acked-by: Jonathan Cameron ji...@kernel.org --- drivers/iio/adc/Kconfig| 9 + drivers/iio/adc/Makefile |

[PATCH v6 7/7] MAINTAINERS: Include DA9150 files in Dialog Semiconductor support list.

2015-01-21 Thread Adam Thomson
Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com Acked-by: Lee Jones lee.jo...@linaro.org --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2fa3853..1e46651 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3085,12 +3085,15 @@ S:

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Sabrina Dubroca
2015-01-21, 16:39:12 +0100, Thierry Reding wrote: On Wed, Jan 21, 2015 at 10:24:11AM -0500, Paul Moore wrote: On Wednesday, January 21, 2015 03:42:16 PM Thierry Reding wrote: On Wed, Jan 21, 2015 at 12:05:39PM +0100, Sabrina Dubroca wrote: 2015-01-21, 04:36:38 +, Al Viro wrote:

[PATCH 1/3] spi/xilinx: Use automatic bus number on device tree

2015-01-21 Thread Ricardo Ribalda Delgado
If there is more than one spi device on a device tree, the second one will fail to probe due to a duplicated bus_num. This patch uses automatic bus number if the device is deined on a device tree. Signed-off-by: Ricardo Ribalda Delgado ricardo.riba...@gmail.com --- drivers/spi/spi-xilinx.c | 5

[PATCH V2] ARM: l2c: Maintain CPU endianness for early resume function

2015-01-21 Thread Dmitry Osipenko
In big endian CPU mode l2x0_saved_regs structure stores registers values in BE format. In order to maintain BE CPU mode, these values and immediate constants must be converted back to LE format before writing them to cache controller. Signed-off-by: Dmitry Osipenko dig...@gmail.com --- V2: no

Re: [PATCH v6 3/7] iio: Add support for DA9150 GPADC

2015-01-21 Thread Varka Bhadram
On Wednesday 21 January 2015 09:16 PM, Adam Thomson wrote: This patch adds support for DA9150 Charger Fuel-Gauge IC GPADC. Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com Reviewed-by: Hartmut Knaack knaac...@gmx.de Acked-by: Jonathan Cameron ji...@kernel.org (...) +

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-21 Thread Pantelis Antoniou
Hi Alan, On Jan 21, 2015, at 18:01 , One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: On Thu, 15 Jan 2015 22:54:46 +0200 Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Alan, On Jan 15, 2015, at 22:45 , One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: On

[RFC PATCH 0/1] mmc: dw_mmc: Add runtime pm to dw_mmc

2015-01-21 Thread Karol Wrona
Hello, This patch adds runtime pm for dwmmc host. Runtime PM is enabled for dwmmc-exynos. This is RFC because I need some opinion about the host state detection and handling and is not finished. The runtime pm suspend and resume callback are empty for now because the main goal of this path is

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

2015-01-21 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

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

2015-01-21 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

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

2015-01-21 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.

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

2015-01-21 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 a.ryabi...@samsung.com Acked-by: Christoph Lameter c...@linux.com --- include/linux/slub_def.h | 5 + 1

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

2015-01-21 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

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

2015-01-21 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 a.ryabi...@samsung.com

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

2015-01-21 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

Re: [PATCH v5 2/5] can: kvaser_usb: Consolidate and unify state change handling

2015-01-21 Thread Ahmed S. Darwish
On Wed, Jan 21, 2015 at 03:00:15PM +, Andri Yngvason wrote: Quoting Ahmed S. Darwish (2015-01-21 14:43:23) Hi! ... -- Unplug the cable -- (000.009106) can0 2080 [8] 00 00 00 00 00 00 08 00 ERRORFRAME bus-error error-counter-tx-rx{{8}{0}}

Re: [PATCH 5/5] PCI: st: disable IO support

2015-01-21 Thread Gabriel Fernandez
Hi, Yes, we don't really care about this corner case. Thanks for your reviewing. BR Gabriel On 17 December 2014 at 15:01, One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: On Wed, 17 Dec 2014 11:34:46 +0100 Gabriel FERNANDEZ gabriel.fernan...@st.com wrote: sti SoCs PCIe IPs are built

Re: [PATCH 1/3] spi/xilinx: Use automatic bus number on device tree

2015-01-21 Thread Lars-Peter Clausen
On 01/21/2015 04:53 PM, Ricardo Ribalda Delgado wrote: If there is more than one spi device on a device tree, the second one will fail to probe due to a duplicated bus_num. [...] This should already be fixed. See commit 4b153a2137c5 (spi: xilinx: Use pdev-id instead of pdev-dev.id for the

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

2015-01-21 Thread Catalin Marinas
On Wed, Jan 21, 2015 at 04:05:33PM +, Jon Masters wrote: On 01/21/2015 10:42 AM, Catalin Marinas wrote: On Wed, Jan 21, 2015 at 03:29:52PM +, Jon Masters wrote: On 01/21/2015 10:23 AM, Catalin Marinas wrote: I have some questions for the ACPI and EFI folk: 1. When booting with

Re: [PATCH] MAINTAINERS: Update rydberg's addresses

2015-01-21 Thread Benjamin Tissoires
On Wed, Jan 21, 2015 at 10:25 AM, Henrik Rydberg rydb...@bitmath.org wrote: Hi Peter, it wasn't the first reaction. it was the third, after we hacked up synaptics [1], then libinput [2], both rather unsatisfactory. Not sure what chromeos does but they'll probably would need similar code. And

Re: next-20150120 broken on Tegra by ata: libahci: Allow using multiple regulators

2015-01-21 Thread Tejun Heo
On Wed, Jan 21, 2015 at 04:55:21PM +0100, Thierry Reding wrote: From a4f78e3ec05f1b2ad86aa44d6bd5394d75a23a06 Mon Sep 17 00:00:00 2001 From: Thierry Reding tred...@nvidia.com Date: Wed, 21 Jan 2015 11:50:52 +0100 Subject: [PATCH] ata: libahci: Fix devres cleanup on failure Commit

Re: unclear ipv6 redirect message (was Re: [PATCH v3 2/3] mfd: lubbock_io: add lubbock_io board)

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 16:11 +, Russell King - ARM Linux wrote: On Wed, Jan 21, 2015 at 08:05:21AM -0800, Joe Perches wrote: (adding netdev) I wasn't actually reporting that as an issue; I was using it as an example. It's from a very old kernel (2.6.27.21) which I run on one of my old

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

2015-01-21 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

Re: [rtc-linux] [RFC PATCH v3 3/8] rtc/ab3100: Update driver to address y2038/y2106 issues

2015-01-21 Thread Linus Walleij
On Tue, Jan 20, 2015 at 5:21 PM, Xunlei Pang pang.xun...@linaro.org wrote: This driver has a number of y2038/y2106 issues. This patch resolves them by: - Replace rtc_tm_to_time() with rtc_tm_to_time64() - Replace rtc_time_to_tm() with rtc_time64_to_tm() - Change ab3100_rtc_set_mmss() to use

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

2015-01-21 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 ...)

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

2015-01-21 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

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

2015-01-21 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 a.ryabi...@samsung.com --- include/linux/slub_def.h | 3 +++ mm/slub.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff

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

2015-01-21 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 a.ryabi...@samsung.com ---

Re: [PATCH RESEND v2 3/7] mfd: cros_ec: Add cros_ec_lpc driver for x86 devices

2015-01-21 Thread Javier Martinez Canillas
Hello Lee, On 01/20/2015 05:52 PM, Javier Martinez Canillas wrote: Now, all those drivers may be wrong and the buses don't belong to the mfd subsystem but then I think we need to document that since it seems that is the correct way to do it just by looking at the other drivers. I don't

Re: [PATCH] staging: rtl8712: fix Missing a blank line after declarations

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 16:41 +0200, Lin Kassem wrote: This patch fixes the following checkpatch.pl warning: fix Missing a blank line after declarations False positives. Unnecessary changes. diff --git a/drivers/staging/rtl8712/drv_types.h b/drivers/staging/rtl8712/drv_types.h [] @@ -129,6

[RFC PATCH v2 1/5] arm: irq: Add a __nmi_count stat

2015-01-21 Thread Daniel Thompson
Extends the irq statistics for ARM, making it possible to quickly observe how many times the default FIQ handler has executed. In /proc/interrupts we use the NMI terminology (rather than FIQ) because the statistic is only likely to be updated when we run the default FIQ handler

Re: [RFC][PATCH 0/5] tracing: Add new file system tracefs

2015-01-21 Thread Steven Rostedt
On Wed, 21 Jan 2015 12:19:53 -0500 Steven Rostedt rost...@goodmis.org wrote: fs/Makefile | 1 + fs/tracefs/Makefile | 4 + fs/tracefs/inode.c | 649 +++ include/uapi/linux/magic.h

[PATCH v6 4/7] iio: da9150: Add DT binding documentation for GPADC

2015-01-21 Thread Adam Thomson
Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com Acked-by: Jonathan Cameron ji...@kernel.org --- .../devicetree/bindings/iio/adc/da9150-gpadc.txt | 16 1 file changed, 16 insertions(+) create mode 100644

[PATCH v6 6/7] power: da9150: Add DT binding documentation for charger

2015-01-21 Thread Adam Thomson
Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com --- .../devicetree/bindings/power/da9150-charger.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/da9150-charger.txt diff --git

[PATCH v6 2/7] mfd: da9150: Add DT binding documentation for core

2015-01-21 Thread Adam Thomson
Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com --- Documentation/devicetree/bindings/mfd/da9150.txt | 43 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/da9150.txt diff --git

Re: next-20150120 broken on Tegra by ata: libahci: Allow using multiple regulators

2015-01-21 Thread Thierry Reding
On Wed, Jan 21, 2015 at 07:31:34AM -0500, Tejun Heo wrote: On Wed, Jan 21, 2015 at 11:50:03AM +0100, Thierry Reding wrote: Tejun, preferably the attached patch should be squashed into commit c7d7ddee7e24 (ata: libahci: Allow using multiple regulators) to avoid breaking bisectability. If you

Re: [PATCH] staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

2015-01-21 Thread Joe Perches
On Wed, 2015-01-21 at 18:44 +0200, Lin Kassem wrote: This patch fixes the following checkpatch.pl warning: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Pahole showed that the 2 structs are aligned to u16 [] diff --git a/drivers/staging/vt6656/rxtx.c

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Guenter Roeck
On 01/21/2015 07:54 AM, Sabrina Dubroca wrote: 2015-01-21, 16:39:12 +0100, Thierry Reding wrote: On Wed, Jan 21, 2015 at 10:24:11AM -0500, Paul Moore wrote: On Wednesday, January 21, 2015 03:42:16 PM Thierry Reding wrote: On Wed, Jan 21, 2015 at 12:05:39PM +0100, Sabrina Dubroca wrote:

Re: [PATCHv2 0/4] x86, entry: some cleanup and simplification...

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 14:26, Denys Vlasenko wrote: On Sun, Jan 18, 2015 at 4:47 PM, Alexander van Heukelum heuke...@fastmail.fm wrote: On Sun, Jan 18, 2015, at 13:05, Borislav Petkov wrote: Hi, btw, you might wanna sync with Denys who's doing cleanups in that area too:

Re: [PATCH v4 1/3] perf: Use monotonic clock as a source for timestamps

2015-01-21 Thread Pawel Moll
On Mon, 2015-01-05 at 13:00 +, Peter Zijlstra wrote: On Thu, Nov 06, 2014 at 04:51:56PM +, Pawel Moll wrote: Documentation/kernel-parameters.txt | 9 + kernel/events/core.c| 37 + 2 files changed, 46 insertions(+)

Re: [PATCH v4 2/3] perf: Userspace event

2015-01-21 Thread Pawel Moll
On Mon, 2015-01-05 at 13:12 +, Peter Zijlstra wrote: On Thu, Nov 06, 2014 at 04:51:57PM +, Pawel Moll wrote: This patch adds a PR_TASK_PERF_UEVENT prctl call which can be used by any process to inject custom data into perf data stream as a new PERF_RECORD_UEVENT record, if such

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

2015-01-21 Thread Stefano Stabellini
On Wed, 21 Jan 2015, Catalin Marinas wrote: On Tue, Jan 20, 2015 at 07:20:06PM +, Stefano Stabellini wrote: On Tue, 20 Jan 2015, Hanjun Guo wrote: How about the patch (just RFC, maybe it is horrible :) ) below: When system supporting both DT and ACPI but firmware providing no

Re: [PATCH 15/17] ARM: at91: remove old setup

2015-01-21 Thread Nicolas Ferre
Le 15/01/2015 22:58, Alexandre Belloni a écrit : The old initialization is not used anymore, remove it. Also remove now unused cpu.h and at91_dbgu.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/generic.h | 4 -

Re: [PATCHv2 2/4] x86_64: embrace KERNEL_STACK_OFFSET

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 14:44, Denys Vlasenko wrote: On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum heuke...@fastmail.fm wrote: KERNEL_STACK_OFFSET is the offset from the top of the kernel stack page to the value of the kernel_stack percpu variable. This patch changes

Re: [Regression] 3.19-rc3 : memcg: Hang in mount memcg

2015-01-21 Thread Will Deacon
On Mon, Jan 19, 2015 at 12:51:27PM +, Suzuki K. Poulose wrote: On 10/01/15 08:55, Vladimir Davydov wrote: The problem is that the memory cgroup controller takes a css reference per each charged page and does not reparent charged pages on css offline, while cgroup_mount/cgroup_kill_sb

Re: unclear ipv6 redirect message (was Re: [PATCH v3 2/3] mfd: lubbock_io: add lubbock_io board)

2015-01-21 Thread Russell King - ARM Linux
On Wed, Jan 21, 2015 at 08:40:44AM -0800, Joe Perches wrote: On Wed, 2015-01-21 at 16:11 +, Russell King - ARM Linux wrote: On Wed, Jan 21, 2015 at 08:05:21AM -0800, Joe Perches wrote: (adding netdev) I wasn't actually reporting that as an issue; I was using it as an example.

[PATCH] of: Empty node property flag accessors when !OF

2015-01-21 Thread Pantelis Antoniou
Introduce empty node and property flag accessors when CONFIG_OF is not defined. This allows us to use them without ifdef'ing them in places where it makes sense to do so. Signed-off-by: Pantelis Antoniou pantelis.anton...@konsulko.com --- include/linux/of.h | 32

[PATCH] of: Custom printk format specifier for device node

2015-01-21 Thread Pantelis Antoniou
90% of the usage of device node's full_name is printing it out in a kernel message. Preparing for the eventual delayed allocation introduce a custom printk format specifier that is both more compact and more pleasant to the eye. For instance typical use is: pr_info(Frobbing node %s\n,

[GIT PULL] scripts/recordmcount.pl: There is no -m32 gcc option on Super-H anymore

2015-01-21 Thread Steven Rostedt
Linus, It's been reported that function tracing does not work on the sh architecture because gcc 4.8 for superH does not support -m32, and the recordmcount.pl script adds -m32 when re-compiling the object files with the mcount locations. I was not able to reproduce this problem, as it seems

Re: [PATCHv2 001/002] usbhid: Fix initialisation for the Microsoft Sidewinder Force Feedback Pro 2 joystick

2015-01-21 Thread Jim Keir
Hi, Thanks for the feedback. I've included a replacement patch here for the first issue, and will send a separate message with a patch for the third issue. I've removed the second as per Alan's request. This diff is against the latest version of the hid branch rather than the 3.13 branch I

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

2015-01-21 Thread Russell King - ARM Linux
On Wed, Jan 21, 2015 at 09:46:47AM +0530, Sumit Semwal wrote: +static int calc_constraints(struct device *dev, + struct dma_buf_constraints *calc_cons) +{ + struct dma_buf_constraints cons = *calc_cons; + + cons.dma_mask = dma_get_mask(dev); I don't think

Re: [RFC][PATCH 2/5] tracing: Convert the tracing facility over to use tracefs

2015-01-21 Thread Steven Rostedt
On Wed, 21 Jan 2015 12:19:55 -0500 Steven Rostedt rost...@goodmis.org wrote: scripts/tags.sh | 2 +- 9 files changed, 81 insertions(+), 69 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index cdb491d84503..505231a09b07 100755 --- a/scripts/tags.sh +++

Re: [PATCH v5 2/5] can: kvaser_usb: Consolidate and unify state change handling

2015-01-21 Thread Wolfgang Grandegger
On Wed, 21 Jan 2015 10:36:47 -0500, Ahmed S. Darwish darwish...@gmail.com wrote: On Wed, Jan 21, 2015 at 03:00:15PM +, Andri Yngvason wrote: Quoting Ahmed S. Darwish (2015-01-21 14:43:23) Hi! ... -- Unplug the cable -- (000.009106) can0 2080 [8] 00 00 00 00 00 00 08

[PATCH v2] clk: Introduce clk_has_parent()

2015-01-21 Thread Thierry Reding
From: Thierry Reding tred...@nvidia.com This new function is similar to clk_set_parent(), except that it doesn't actually change the parent. It merely checks that the given parent clock can be a parent for the given clock. A situation where this is useful is to check that a particular setup is

Re: [PATCH v5 2/5] can: kvaser_usb: Consolidate and unify state change handling

2015-01-21 Thread Andri Yngvason
Quoting Ahmed S. Darwish (2015-01-20 21:45:37) From: Ahmed S. Darwish ahmed.darw...@valeo.com Replace most of the can interface's state and error counters handling with the new can-dev can_change_state() mechanism. Suggested-by: Andri Yngvason andri.yngva...@marel.com Signed-off-by: Ahmed

Re: perf: behavior of poll() changed in 3.18

2015-01-21 Thread Jiri Olsa
On Wed, Jan 21, 2015 at 01:06:30AM -0500, Vince Weaver wrote: On Tue, 20 Jan 2015, Jiri Olsa wrote: I made this change to get notification that monitored process exited. We use it in 'perf record' to find out that we have nothing more to monitor and quit. The logic is to return

Re: [PATCH 0/3] pinctrl: Qualcomm msm8916 pinctrl driver

2015-01-21 Thread Linus Walleij
On Tue, Jan 20, 2015 at 10:17 AM, Stanimir Varbanov svarba...@mm-sol.com wrote: This series adds a pinctrl driver for Snapdragon 410 (msm8916) SoC. The first patch increase the register address variable size, next adds a binding document and the last patch adds the pinctrl driver Comments

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

2015-01-21 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 v9 03/17] mm: page_alloc: add kasan hooks on alloc and free paths

2015-01-21 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 a.ryabi...@samsung.com --- include/linux/kasan.h | 7 +++ mm/compaction.c | 2 ++ mm/kasan/kasan.c

Re: [PATCH 01/13] kdbus: add documentation

2015-01-21 Thread Daniel Mack
Hi Michael, On 01/21/2015 11:32 AM, Michael Kerrisk (man-pages) wrote: On 01/20/2015 07:23 PM, Daniel Mack wrote: It's rather an optional driver than a core kernel feature. Given the various things that I've seen said about kdbus, the preceding sentence makes little sense to me: * kdbus

[RFC PATCH v2 2/5] irq: Allow interrupts to routed to NMI (or similar)

2015-01-21 Thread Daniel Thompson
Some combinations of architectures and interrupt controllers make it possible for abitrary interrupt signals to be selectively made immune to masking by local_irq_disable(). For example, on ARM platforms, many interrupt controllers allow interrupts to be routed to FIQ rather than IRQ. These

[RFC PATCH v2 4/5] arm: perf: Make v7 support FIQ-safe

2015-01-21 Thread Daniel Thompson
armv7pmu_disable_event() is called during irq handling. If irq handling switches over to fiq then the spin locks in this function risk deadlock. Both armv7_pmnc_disable_counter() and armv7_pmnc_disable_intens() are unconditional co-processor writes. I haven't yet come up with an schedule where

[RFC PATCH v2 3/5] irq: gic: Add support for NMI routing

2015-01-21 Thread Daniel Thompson
This patch provides an implementation of irq_set_nmi_routing by allowing SPIs to be switched between group 1 (IRQ) and group 0 (FIQ). It also repaces the interface used between the default FIQ handler and the GIC. These extensions are required in order to allow SPIs to be acknowledged and

[RFC PATCH v2 5/5] arm: perf: Use FIQ to handle PMU events.

2015-01-21 Thread Daniel Thompson
Using FIQ (if it is available) gives perf a better insight into the system by allowing code run with interrupts disabled to be profiled. Signed-off-by: Daniel Thompson daniel.thomp...@linaro.org --- arch/arm/include/asm/pmu.h | 2 ++ arch/arm/kernel/perf_event.c | 2 +-

[RFC PATCH v2 0/5] irq: Allow irqs to be routed to NMI/FIQ

2015-01-21 Thread Daniel Thompson
Hi Thomas, Hi Russell: This RFC is particularly for your attention since it results directly from feedback I've received from both of you, albeit quite a few months ago now. This patchset demonstrates using FIQ to improve the quality of the PMU trace on ARM systems. To do so it

Re: [PATCH v4 3/3] perf: Sample additional clock value

2015-01-21 Thread Pawel Moll
On Mon, 2015-01-05 at 13:45 +, Peter Zijlstra wrote: On Thu, Nov 06, 2014 at 04:51:58PM +, Pawel Moll wrote: Currently three clocks are implemented: CLOCK_REALITME = 0, CLOCK_MONOTONIC = 1 and CLOCK_MONOTONIC_RAW = 2. The clock field is 5 bits wide to allow for future extension to

[PATCH] checkpatch: Add types for other OS typedefs

2015-01-21 Thread Joe Perches
bsd and sysv use different typedefs for unsigned types. These are in types.h but not in checkpatch, so add them to checkpatch's ability to know types. This can avoid false positives for code like: void foo(void) { int x; uint y; [...]; } where checkpatch incorrectly

Re: [RFC PATCH] sched_clock: Avoid tearing during read from NMI

2015-01-21 Thread John Stultz
On Wed, Jan 21, 2015 at 8:53 AM, Daniel Thompson daniel.thomp...@linaro.org wrote: Currently it is possible for an NMI (or FIQ on ARM) to come in and read sched_clock() whilst update_sched_clock() has half updated the state. This results in a bad time value being observed. This patch fixes

Re: [RFC PATCHv2 00/19] power_supply: Allow safe usage of power supply

2015-01-21 Thread Sebastian Reichel
Hi Krzysztof, On Mon, Jan 05, 2015 at 04:47:43PM +0100, Krzysztof Kozlowski wrote: This is RFC, please don't apply yet but let me know if this approach is OK. I just reviewed the patchset. It looks fine to me. TLDR Patchset tries to fix following race scenario: Thread 1: charger

Re: [PATCHv2 002/002] usbhid: Fix force effect modifications for the Microsoft Sidewinder Force Feedback Pro 2 joystick

2015-01-21 Thread Jim Keir
Hi, Here's the second part of the patch which allows existing effects to be modified. Cheers, Jim --- Modifications to existing force effects in the Microsoft Sidewinder Force Feedback 2 joystick are sent with the correct effect ID. Signed-off-by: Jim Keir jimk...@oracledbadirect.com

[PATCH v6 1/7] mfd: Add support for DA9150 combined charger fuel-gauge device

2015-01-21 Thread Adam Thomson
DA9150 is a combined Charger and Fuel-Gauge IC, with additional GPIO and GPADC functionality. Signed-off-by: Adam Thomson adam.thomson.opensou...@diasemi.com Acked-by: Lee Jones lee.jo...@linaro.org --- drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile |2 +-

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

2015-01-21 Thread Graeme Gregory
On Wed, Jan 21, 2015 at 03:42:43PM +, Catalin Marinas wrote: On Wed, Jan 21, 2015 at 03:29:52PM +, Jon Masters wrote: On 01/21/2015 10:23 AM, Catalin Marinas wrote: I have some questions for the ACPI and EFI folk: 1. When booting with ACPI, are the EFI run-time services

Re: [PATCH] power: bq24190_charger: suppress build warning

2015-01-21 Thread Sebastian Reichel
Hi, On Thu, Dec 04, 2014 at 02:56:04PM +, Lad, Prabhakar wrote: This patch fixes following build warning: In file included from include/linux/printk.h:261:0, from include/linux/kernel.h:13, from include/linux/list.h:8, from

unclear ipv6 redirect message (was Re: [PATCH v3 2/3] mfd: lubbock_io: add lubbock_io board)

2015-01-21 Thread Joe Perches
(adding netdev) On Wed, 2015-01-21 at 09:44 +, Russell King - ARM Linux wrote: On Wed, Jan 21, 2015 at 08:46:29AM +0100, Robert Jarzmik wrote: Russell King - ARM Linux li...@arm.linux.org.uk writes: What I'd suggest (and always have done) is: dev_err(pdev-dev, couldn't

Re: linux-next: Tree for Jan 20 -- Kernel panic - Unable to mount root fs

2015-01-21 Thread Paul Moore
On Wednesday, January 21, 2015 04:54:07 PM Sabrina Dubroca wrote: 2015-01-21, 16:39:12 +0100, Thierry Reding wrote: That doesn't seem to help, at least in my case. Same here. Okay, thanks for trying. Sorry that didn't resolve things. Well, it's probably not an audit issue. I tried

Re: [PATCH V2] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-21 Thread Zhi Li
On Sun, Dec 28, 2014 at 4:26 AM, Stefan Wahren stefan.wah...@i2se.com wrote: According to i.MX23 and i.MX28 reference manual the fractional clock control registers must be addressed by byte instructions. I don't think mx23 and mx28 have such limitation. I will double check with IC team about

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