Re: [RFC][PATCH 03/31] locking,arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 10:50:41AM +, Vineet Gupta wrote: > > +#define ATOMIC_FETCH_OP(op, c_op, asm_op) \ > > +static inline int atomic_fetch_##op(int i, atomic_t *v) > > \ > > +{ \ >

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Kirill A. Shutemov
On Fri, Apr 22, 2016 at 05:11:41PM +0300, Kirill A. Shutemov wrote: > On Fri, Apr 22, 2016 at 11:02:16PM +0900, Minchan Kim wrote: > > On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > > > On 04/22/2016 05:31 AM, Andrew Morton wrote: > > > >On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback (struc

Re: [PATCH 1/3] checkpatch: add Kconfig 'default n' test

2016-04-22 Thread Yingjoe Chen
On Thu, 2016-04-21 at 10:16 -0700, Joe Perches wrote: > On Thu, 2016-04-21 at 21:28 +0800, Yingjoe Chen wrote: > > If a Kconfig config option doesn't specify 'default', the default > > will be n. Adding 'default n' is unnecessary. > > > > Add a test to warn about this. > [] > > diff --git a/script

Re: [RFC][PATCH 01/31] locking: Flip arguments to atomic_fetch_or

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 01:09:38PM +0200, Geert Uytterhoeven wrote: > On Fri, Apr 22, 2016 at 11:04 AM, Peter Zijlstra wrote: > > All the atomic operations have their arguments the wrong way around; > > s/wrong/other/? Nah, I find they really are the wrong way around. I forever write: atomic_add

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 14:37:07 +0200 Hans Verkuil escreveu: > On 04/22/2016 02:31 PM, Mauro Carvalho Chehab wrote: > > Em Fri, 22 Apr 2016 11:19:09 +0200 > > Hans Verkuil escreveu: > > > >> Hi Ricardo, > >> > >> On 04/21/2016 11:15 AM, Ricardo Ribalda Delgado wrote: > >>> When using a device

Re: [RFC][PATCH 27/31] locking: Remove linux/atomic.h:atomic_fetch_or

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 02:02:56PM +0100, Will Deacon wrote: > On Fri, Apr 22, 2016 at 11:04:40AM +0200, Peter Zijlstra wrote: > > --- a/arch/arm64/include/asm/atomic.h > > +++ b/arch/arm64/include/asm/atomic.h > > @@ -128,8 +128,6 @@ > > #define __atomic_add_unless(v, a, u) ___atomic_add_un

Re: [RFC][PATCH 00/31] implement atomic_fetch_$op

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 08:56:56PM +0800, Fengguang Wu wrote: > I'll add arm64-defconfig to P1 list to improve its coverage. Thanks; any more architectures missing from P1?

Re: [RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()

2016-04-22 Thread Will Deacon
On Fri, Apr 22, 2016 at 11:04:18AM +0200, Peter Zijlstra wrote: > Implement FETCH-OP atomic primitives, these are very similar to the > existing OP-RETURN primitives we already have, except they return the > value of the atomic variable _before_ modification. > > This is especially useful for irre

Re: [RFC][PATCH 31/31] locking,qrwlock: Employ atomic_fetch_add_acquire()

2016-04-22 Thread Waiman Long
On 04/22/2016 05:04 AM, Peter Zijlstra wrote: The only reason for the current code is to make GCC emit only the "LOCK XADD" instruction on x86 (and not do a pointless extra ADD on the result), do so nicer. Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/qrwlock.c |2 +- 1 file ch

Re: [RFC][PATCH 03/31] locking,arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 10:50:41AM +, Vineet Gupta wrote: > Also per your other comment/patches, converting ARC to _relaxed atomics sounds > trivial, I can provide a fixup patch once your series is stable'ish and u > point me > to ur git tree or some such . Yeah, that change is pretty simple;

Re: [PATCH V6 08/13] PCI: generic, thunder: update to use generic ECAM API

2016-04-22 Thread Jon Masters
On 04/21/2016 06:08 AM, Tomasz Nowicki wrote: > On 21.04.2016 11:36, Arnd Bergmann wrote: >> On Thursday 21 April 2016 11:28:15 Tomasz Nowicki wrote: >>> On 19.04.2016 15:06, Arnd Bergmann wrote: On Monday 18 April 2016 21:31:54 Tomasz Nowicki wrote: > > Basically the whole content of

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Hans Verkuil
On 04/22/2016 04:21 PM, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 14:37:07 +0200 > Hans Verkuil escreveu: > >> On 04/22/2016 02:31 PM, Mauro Carvalho Chehab wrote: >>> Em Fri, 22 Apr 2016 11:19:09 +0200 >>> Hans Verkuil escreveu: >>> Hi Ricardo, On 04/21/2016 11:15 AM,

[PATCH v2 1/3] checkpatch: add Kconfig 'default n' test

2016-04-22 Thread Yingjoe Chen
If a Kconfig config option doesn't specify 'default', the default will be n. Adding 'default n' is unnecessary. Add a test to warn about this. Signed-off-by: Yingjoe Chen --- Change in v2: - Change according to Joe Perches' suggestion scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insert

[PATCH v2 2/3] checkpatch: testing more config for Kconfig help text

2016-04-22 Thread Yingjoe Chen
Current help text check only check a config option if it is followed by another config. Adding check for help text if the next entry is menuconfig, choice/ endchoice, comment, menu/endmenu, if/endif, source or end of file. Signed-off-by: Yingjoe Chen --- Change in v2: - Change according to Joe Pe

Re: [PATCH] documentation: ACQUIRE applies to loads, RELEASE applies to stores

2016-04-22 Thread Peter Zijlstra
On Fri, Apr 22, 2016 at 11:41:49AM +0100, Will Deacon wrote: > For compound atomics performing both a load and a store operation, make > it clear that _acquire and _release variants refer only to the load and > store portions of compound atomic. For example, xchg_acquire is an xchg > operation wher

[PATCH v2 3/3] checkpatch: relax Kconfig help text line number threshold

2016-04-22 Thread Yingjoe Chen
Current threshold is too strict and many upstream patch doesn't pass this test. Relax it. Signed-off-by: Yingjoe Chen --- In v4.6-rc1, 171 new config options was added, and 87 of those options have < 4 lines and 24 options have only 1 line. After this change, checkpatch only raise warning when h

[PATCH] regulator: core: grab supply info before unlocking

2016-04-22 Thread John Ogness
It is necessary to check if there is a supply while still holding the regulator lock. Otherwise a theoretical race can occur that someone else can add a supply and then we incorrectly try to unlock that newly added regulator. Signed-off-by: John Ogness --- patch against next-20160421 drivers/r

Re: [PATCH 0/2] Reinstate irq alloc/dealloc locking patch

2016-04-22 Thread Boris Ostrovsky
Ping? On 03/17/2016 09:33 AM, Boris Ostrovsky wrote: Original version of that patch (commit a89941816726) had to be reverted due to Xen allocating irqs in its cpu_up ops. The first patch moves allocations into hotplug notifiers and the second one restores the original patch (with minor adjustme

Re: [PATCH v12 1/2] kernel.h: add u64_to_user_ptr()

2016-04-22 Thread Gustavo Padovan
2016-04-22 Daniel Vetter : > On Thu, Apr 21, 2016 at 12:38:49PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > This function had copies in 3 different files. Unify them in kernel.h. > > > > Cc: Joe Perches > > Cc: Andrew Morton > > Cc: David Airlie > > Cc: Daniel Vetter > >

Re: [PATCH v3] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 07:44:39PM +0530, Shardar Shariff Md wrote: > Initialize default channel slave_id(req_sel) to invalid id > (i.e max supported slave id + 1) to avoid overwriting of slave_id > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Si

RE: [PATCH] rapidio: fix potential NULL pointer dereference

2016-04-22 Thread Bounine, Alexandre
Thank you. Ack-ed. > -Original Message- > From: Vladimir Zapolskiy [mailto:v...@mleia.com] > Sent: Thursday, April 21, 2016 4:05 PM > To: Matt Porter; Bounine, Alexandre > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH] rapidio: fix potential NULL pointer dereference > > The change f

Re: [PATCH v2] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Jon Hunter
On 22/04/16 14:56, Shardar Mohammed wrote: > Thanks for the review, please check my comments inline in [Shardar]. > >> On 22/04/16 13:44, Shardar Shariff Md wrote: >>> Initialize default channel slave_id(req_sel) to invalid id (i.e max >>> supported slave id + 1) to avoid overwriting of slave_id

Re: [PATCH V6 09/13] pci, acpi: Support for ACPI based generic PCI host controller

2016-04-22 Thread Jon Masters
On 04/21/2016 05:06 AM, Tomasz Nowicki wrote: > On 20.04.2016 21:12, Jayachandran C wrote: >> On Fri, Apr 15, 2016 at 10:36 PM, Tomasz Nowicki wrote: >>> This patch is heavily based on the updated version from Jayachandran C: >>> https://lkml.org/lkml/2016/4/11/908 >>> git: https://github.com/jch

Re: [PATCH] regulator: core: Add debugfs for regulator always_on flag

2016-04-22 Thread Richard Fitzgerald
On 22/04/16 14:57, Mark Brown wrote: On Fri, Apr 22, 2016 at 02:33:02PM +0100, Richard Fitzgerald wrote: This patch adds a debugfs file for the always_on flag in struct regulator. It's useful for debugging to be able to view the state of this flag and as it's set by logic inside the regulator co

[PATCH v2] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
The qla1280 driver sets the scsi_host_template's can_queue field to 0xf which results in an allocation failure when allocating the block layer tags for the driver's queues like the one shown below: [4.804166] scsi host0: QLogic QLA1040 PCI to SCSI Host Adapter Firmware version: 7.65.06,

Re: [PATCH v3] dmaengine: tegra-apb: proper default init of channel slave_id

2016-04-22 Thread Jon Hunter
On 22/04/16 15:14, Shardar Shariff Md wrote: > Initialize default channel slave_id(req_sel) to invalid id > (i.e max supported slave id + 1) to avoid overwriting of slave_id > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Signed-off-by: Shardar S

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 10:26:37 +0200 Hans Verkuil escreveu: > Hi Nick, > > On 04/21/2016 11:31 AM, Nick Dyer wrote: > > This is a series of patches to add diagnostic data support to the Atmel > > maXTouch driver. It's a rewrite of the previous implementation which output > > via > > debugfs: it n

[PATCH 1/1] perf hists: clear dummy entry accumulated period

2016-04-22 Thread kan . liang
From: Kan Liang The accumulated period for dummy entry should also be 0. Otherwise, the total overhead could be overcounted. [perf]$ perf record -e '{LLC-load-misses,cpu/instructions/}' --call-graph=lbr ./tchain [perf]$ perf report --stdio # To display the perf.data header info, please use --he

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 16:31:28 +0200 Hans Verkuil escreveu: > On 04/22/2016 04:21 PM, Mauro Carvalho Chehab wrote: > > Em Fri, 22 Apr 2016 14:37:07 +0200 > > Hans Verkuil escreveu: > > > >> On 04/22/2016 02:31 PM, Mauro Carvalho Chehab wrote: > >>> Em Fri, 22 Apr 2016 11:19:09 +0200 > >>> Han

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Robin Murphy
On 22/04/16 13:00, Eric Auger wrote: Hi Robin, On 04/22/2016 01:31 PM, Robin Murphy wrote: On 20/04/16 16:58, Eric Auger wrote: Hi Robin, On 04/20/2016 02:47 PM, Robin Murphy wrote: Hi Eric, On 19/04/16 17:56, Eric Auger wrote: Introduce a new DOMAIN_ATTR_MSI_MAPPING domain attribute. If sup

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Minchan Kim
On Fri, Apr 22, 2016 at 05:17:16PM +0300, Kirill A. Shutemov wrote: > On Fri, Apr 22, 2016 at 05:11:41PM +0300, Kirill A. Shutemov wrote: > > On Fri, Apr 22, 2016 at 11:02:16PM +0900, Minchan Kim wrote: > > > On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > > > > On 04/22/2016 05:31

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Greg Kurz
On Fri, 22 Apr 2016 15:40:30 +0200 Radim Krčmář wrote: > 2016-04-22 11:25+0200, Greg Kurz: > > Hi Radim ! > > > > On Thu, 21 Apr 2016 19:36:11 +0200 > > Radim Krčmář wrote: > > > > > 2016-04-21 18:45+0200, Greg Kurz: > > > > On Thu, 21 Apr 2016 18:00:19 +0200 > > > > Radim Krčmář wrote:

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 03:02 PM, Eric Auger wrote: > Hi Robin, > On 04/22/2016 02:36 PM, Robin Murphy wrote: >> On 20/04/16 17:14, Eric Auger wrote: >>> Hi Robin, >>> On 04/20/2016 02:55 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: > This patch introduces some new fields i

Re: [PATCH 2/2 v6] arc: axs10x: Add DT bindings for I2S PLL Clock

2016-04-22 Thread Alexey Brodkin
Hi Jose, On Thu, 2016-04-21 at 18:19 +0100, Jose Abreu wrote: > Add device tree bindings for AXS10X I2S PLL Clock driver. > > Signed-off-by: Jose Abreu > --- > > Changes v5 -> v6: > * Added 'clocks' field > > This patch was only introduced in v5. > >  arch/arc/boot/dts/axs10x_mb.dtsi | 13 +++

Re: [PATCH 0/4 v6] drm: Add support of ARC PGU display controller

2016-04-22 Thread Alexey Brodkin
Hi David, On Tue, 2016-04-19 at 16:19 +0300, Alexey Brodkin wrote: > This series add support of ARC PGU display controller. > ARC PGU is a quite simple byte streamer that gets data from the framebuffer > and pushes it to hte connected encoder (DP or HDMI). > > It was tested on ARC SDP boards (axs

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Hans Verkuil
On 04/22/2016 04:48 PM, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 16:31:28 +0200 > Hans Verkuil escreveu: > >> On 04/22/2016 04:21 PM, Mauro Carvalho Chehab wrote: >>> Em Fri, 22 Apr 2016 14:37:07 +0200 >>> Hans Verkuil escreveu: >>> On 04/22/2016 02:31 PM, Mauro Carvalho Chehab

Re: [PATCH v2] qla1280: Reduce can_queue to 32

2016-04-22 Thread James Bottomley
On Fri, 2016-04-22 at 16:41 +0200, Johannes Thumshirn wrote: > The qla1280 driver sets the scsi_host_template's can_queue field to > 0xf which results in an allocation failure when allocating the > block layer tags for the driver's queues like the one shown below: > > [4.804166] scsi hos

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-04-22 Thread Jon Hunter
On 22/04/16 12:22, Mark Rutland wrote: > On Fri, Apr 22, 2016 at 12:12:57PM +0100, Jon Hunter wrote: >> >> On 22/04/16 11:00, Mark Rutland wrote: >>> On Wed, Apr 20, 2016 at 12:03:56PM +0100, Jon Hunter wrote: The Tegra AGIC interrupt controller is compatible with the ARM GIC-400 interru

Re: [PATCH] PM / OPP: -ENOSYS is applicable only to syscalls

2016-04-22 Thread One Thousand Gnomes
On Fri, 22 Apr 2016 14:42:31 +0200 "Rafael J. Wysocki" wrote: > On Friday, April 22, 2016 08:46:51 AM Viresh Kumar wrote: > > Some of the routines have use -ENOSYS, which is supposed to be used only > > for syscalls. Replace that with -EINVAL. > > -EINVAL specifically means "invalid argument".

RE: [PATCH v7] Bluetooth: hci_uart: Support firmware download for Marvell

2016-04-22 Thread Amitkumar Karwar
Hi Marcel, > From: Marcel Holtmann [mailto:mar...@holtmann.org] > Sent: Friday, April 22, 2016 6:19 PM > To: Amitkumar Karwar > Cc: Linux Bluetooth; LKML; Ganapathi Bhat; Cathy Luo > Subject: Re: [PATCH v7] Bluetooth: hci_uart: Support firmware download > for Marvell > > Hi Amitkumar, > > +

Re: [PATCH V4] audit: add tty field to LOGIN event

2016-04-22 Thread Paul Moore
On Thu, Apr 21, 2016 at 11:50 PM, Richard Guy Briggs wrote: > On 16/04/21, Paul Moore wrote: >> On Thu, Apr 21, 2016 at 2:14 PM, Richard Guy Briggs wrote: >> > The tty field was missing from AUDIT_LOGIN events. >> > >> > Refactor code to create a new function audit_get_tty(), using it to >> > rep

Re: [PATCH] regulator: arizona-ldo1: Only enable status change if we have LDOENA

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 02:43:28PM +0100, Richard Fitzgerald wrote: > The driver was hardcoding REGULATOR_CHANGE_STATUS on the regulator > which made the regulator core assume that it can be powered off. > > The power state of the regulator is controlled by the LDOENA pin so > this patch changes t

Re: [PATCH] regulator: core: grab supply info before unlocking

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 04:33:51PM +0200, John Ogness wrote: > It is necessary to check if there is a supply while still holding > the regulator lock. Otherwise a theoretical race can occur that > someone else can add a supply and then we incorrectly try to > unlock that newly added regulator. I d

Re: [PATCH v11 1/4] tpm: Remove all uses of drvdata from the TPM Core

2016-04-22 Thread Jarkko Sakkinen
On Mon, Apr 18, 2016 at 01:26:13PM -0400, Stefan Berger wrote: > From: Jason Gunthorpe > > The final thing preventing this was the way the sysfs files were > attached to the pdev. Follow the approach developed for ppi and move > the sysfs files to the chip->dev with symlinks from the pdev > for c

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Nick Dyer
On 22/04/2016 15:45, Mauro Carvalho Chehab wrote: > Em Fri, 22 Apr 2016 10:26:37 +0200 > Hans Verkuil escreveu: >> On 04/21/2016 11:31 AM, Nick Dyer wrote: >>> This is a series of patches to add diagnostic data support to the Atmel >>> maXTouch driver. It's a rewrite of the previous implementation

[PATCH] i2c: designware: do not disable adapter after transfer

2016-04-22 Thread Lucas De Marchi
Disabling the adapter after each transfer is pretty bad for sensors and other devices doing small transfers at a high rate. It slows down the transfer rate a lot since each of them have to wait the adapter to be enabled again. During the transfer init we check the status register for no activity a

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Minchan Kim
On Fri, Apr 22, 2016 at 12:44:30PM +0300, Kirill A. Shutemov wrote: > On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > > On 04/22/2016 05:31 AM, Andrew Morton wrote: > > >On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak Menon > > >wrote: > > > > > >>Mapping pages around fault is found t

[PATCH] serial: mctrl_gpio: Drop support for out1-gpios and out2-gpios

2016-04-22 Thread Geert Uytterhoeven
The OUT1 and OUT2 pins present on some legacy UARTs are basically GPIOs. It doesn't make much sense to emulate GPIOs using other GPIOs, hence drop support for that. Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/serial_mctrl_gpio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/d

[PATCH] Mark "Out of Date" addresses as undeliverable

2016-04-22 Thread Zhigang Gao
--- Documentation/zh_CN/CodingStyle | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/zh_CN/CodingStyle b/Documentation/zh_CN/CodingStyle index 654afd7..26ff11d 100644 --- a/Documentation/zh_CN/CodingStyle +++ b/Documentation/zh_CN/CodingStyle @@ -5,20 +5

Re: [PATCH v12 1/2] kernel.h: add u64_to_user_ptr()

2016-04-22 Thread Rob Clark
On Thu, Apr 21, 2016 at 11:38 AM, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in kernel.h. > > Cc: Joe Perches > Cc: Andrew Morton > Cc: David Airlie > Cc: Daniel Vetter > Cc: Rob Clark > Signed-off-by: Gustavo Padovan Acked-

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Kirill A. Shutemov
On Sat, Apr 23, 2016 at 12:09:46AM +0900, Minchan Kim wrote: > On Fri, Apr 22, 2016 at 12:44:30PM +0300, Kirill A. Shutemov wrote: > > On Fri, Apr 22, 2016 at 02:15:08PM +0530, Vinayak Menon wrote: > > > On 04/22/2016 05:31 AM, Andrew Morton wrote: > > > >On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Hans Verkuil
On 04/22/2016 05:07 PM, Nick Dyer wrote: > On 22/04/2016 15:45, Mauro Carvalho Chehab wrote: >> Em Fri, 22 Apr 2016 10:26:37 +0200 >> Hans Verkuil escreveu: >>> On 04/21/2016 11:31 AM, Nick Dyer wrote: This is a series of patches to add diagnostic data support to the Atmel maXTouch drive

Re: [PATCH] i2c: designware: do not disable adapter after transfer

2016-04-22 Thread Lucas De Marchi
CC'ing Christian. On Fri, Apr 22, 2016 at 12:08 PM, Lucas De Marchi wrote: > Disabling the adapter after each transfer is pretty bad for sensors and > other devices doing small transfers at a high rate. It slows down the > transfer rate a lot since each of them have to wait the adapter to be > en

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 16:56:00 +0200 Hans Verkuil escreveu: > On 04/22/2016 04:48 PM, Mauro Carvalho Chehab wrote: > > Em Fri, 22 Apr 2016 16:31:28 +0200 > > Hans Verkuil escreveu: > > > >> On 04/22/2016 04:21 PM, Mauro Carvalho Chehab wrote: > >>> Em Fri, 22 Apr 2016 14:37:07 +0200 > >>> Han

[PATCH 2/2] genirq: Add error code reporting to irq_{reserve,destroy}_ipi

2016-04-22 Thread Matt Redfearn
Make these functions return appropriate error codes when something goes wrong. There are currently no users of this function that would break from the API change. Signed-off-by: Matt Redfearn --- include/linux/irqdomain.h | 5 ++--- kernel/irq/ipi.c | 31 +

[PATCH 1/2] genirq: Make irq_destroy_ipi take a cpumask of IPIs to destroy

2016-04-22 Thread Matt Redfearn
Previously irq_destroy_ipi() would destroy IPIs to all CPUs that were configured by irq_reserve_ipi(). This change makes it possible to destroy just a subset of the IPIs. This may be useful to remove IPIs to CPUs that have been hot removed so that the IRQ numbers allocated within the IPI domain can

Applied "ASoC: da7218: Update PLL ranges and dividers to improve locking" to the asoc tree

2016-04-22 Thread Mark Brown
The patch ASoC: da7218: Update PLL ranges and dividers to improve locking has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Applied "regulator: max77620: Add details of device specific ramp rate setting" to the regulator tree

2016-04-22 Thread Mark Brown
The patch regulator: max77620: Add details of device specific ramp rate setting has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in

Re: [PATCH 10/25] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-04-22 Thread Catalin Marinas
On Thu, Apr 14, 2016 at 11:20:29AM +0800, Zhangjian (Bamvor) wrote: > I suggest we enable AARCH32_EL0 by default explicitly. I am not sure > if it should be a dedicated commit. I am ok if you merge my commit, add We currently enable COMPAT in defconfig. I think we keep the same approach and change

[PATCH] toshiba_acpi: Fix regression caused by hotkey enabling value

2016-04-22 Thread Azael Avalos
Commit 52cbae0127ad ("toshiba_acpi: Change default Hotkey enabling value") changed the hotkeys enabling value, as it was the same value Windows uses, however, it turns out that the value tells the EC that the driver will now take care of the hardware events like the physical RFKill switch or the po

Re: [RFC][PATCH 2/4] tracing: Use pid bitmap instead of a pid array for set_event_pid

2016-04-22 Thread Steven Rostedt
On Fri, 22 Apr 2016 11:45:30 +0900 Namhyung Kim wrote: > > + pid_list->pid_max = READ_ONCE(pid_max); > > + /* Only truncating will shrink pid_max */ > > + if (filtered_pids && filtered_pids->pid_max > pid_list->pid_max) > > + pid_list->pid_max = filtered_pids->pid_max; > > + pid

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Eric Auger
Ho Robin, On 04/22/2016 04:49 PM, Robin Murphy wrote: > On 22/04/16 13:00, Eric Auger wrote: >> Hi Robin, >> On 04/22/2016 01:31 PM, Robin Murphy wrote: >>> On 20/04/16 16:58, Eric Auger wrote: Hi Robin, On 04/20/2016 02:47 PM, Robin Murphy wrote: > Hi Eric, > > On 19/04/16 17

Applied "spi: pic32-sqi: silence array overflow warning" to the spi tree

2016-04-22 Thread Mark Brown
The patch spi: pic32-sqi: silence array overflow warning has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "regulator: max77620: Add support for device specific ramp rate setting" to the regulator tree

2016-04-22 Thread Mark Brown
The patch regulator: max77620: Add support for device specific ramp rate setting has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime i

Re: [PATCH 2/2] genirq: Add error code reporting to irq_{reserve,destroy}_ipi

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Matt Redfearn wrote: > Make these functions return appropriate error codes when something goes > wrong. And the reason for this change is?

Re: [PATCH 0/5] x86, boot: clean up KASLR code (step 2)

2016-04-22 Thread Kees Cook
On Fri, Apr 22, 2016 at 12:43 AM, Ingo Molnar wrote: > > Another small request, I've been doing this to the previous patches: > > sed -i 's/x86, KASLR: /x86\/KASLR: /g' > sed -i 's/x86, boot: /x86\/boot: /g' > > Could you please apply the regular x86/subsys title format for future patches? Ah

[PATCH v3 19/21] fuse: Support fuse filesystems outside of init_user_ns

2016-04-22 Thread Seth Forshee
In order to support mounts from namespaces other than init_user_ns, fuse must translate uids and gids to/from the userns of the process servicing requests on /dev/fuse. This patch does that, with a couple of restrictions on the namespace: - The userns for the fuse connection is fixed to the names

[PATCH v3 12/21] fs: Refuse uid/gid changes which don't map into s_user_ns

2016-04-22 Thread Seth Forshee
Add checks to inode_change_ok to verify that uid and gid changes will map into the superblock's user namespace. If they do not fail with -EOVERFLOW. This cannot be overriden with ATTR_FORCE. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/attr.c | 11 +++ 1 file changed, 11 in

Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Eric Auger wrote: > Robin, > On 04/22/2016 01:02 PM, Robin Murphy wrote: > > Hi Eric, > > > > On 19/04/16 18:13, Eric Auger wrote: > >> Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING > >> meant to tell the domain supports IRQ REMAPPING, also known as

Re: [PATCH v7 6/7] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-04-22 Thread Robin Murphy
On 22/04/16 12:39, Eric Auger wrote: Hi Robin, On 04/22/2016 01:16 PM, Robin Murphy wrote: Hi Eric, Alex, On 19/04/16 18:24, Eric Auger wrote: Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu(-v3). Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel

[PATCH v3 20/21] fuse: Restrict allow_other to the superblock's namespace or a descendant

2016-04-22 Thread Seth Forshee
Unprivileged users are normally restricted from mounting with the allow_other option by system policy, but this could be bypassed for a mount done with user namespace root permissions. In such cases allow_other should not allow users outside the userns to access the mount as doing so would give the

[PATCH V2 1/1] perf hists: clear dummy entry accumulated period

2016-04-22 Thread kan . liang
From: Kan Liang The accumulated period for dummy entry should also be 0. Otherwise, the total overhead could be overcounted. [perf]$ perf record -e '{LLC-load-misses,cpu/instructions/}' --call-graph=lbr ./tchain [perf]$ perf report --stdio # To display the perf.data header info, please use --he

[PATCH net-next 7/9] libnl: add nla_put_u64_64bit() helper

2016-04-22 Thread Nicolas Dichtel
With this function, nla_data() is aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/net/netlink.h b/include/net/netlink.h index 113b483b6ee8..e589cb3dccee 100644 --- a/include/net/netlink.

[PATCH net-next 9/9] taskstats: use the libnl API to align nlattr on 64-bit

2016-04-22 Thread Nicolas Dichtel
Goal of this patch is to use the new libnl API to align netlink attribute when needed. The layout of the netlink message will be a bit different after the patch, because the padattr (TASKSTATS_TYPE_STATS) will be inside the nested attribute instead of before it. Signed-off-by: Nicolas Dichtel ---

[PATCH net-next 1/9] libnl: fix help of _64bit functions

2016-04-22 Thread Nicolas Dichtel
Fix typo and describe 'padattr'. Fixes: 089bf1a6a924 ("libnl: add more helpers to align attributes on 64-bit") Signed-off-by: Nicolas Dichtel --- lib/nlattr.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/nlattr.c b/lib/nlattr.c index 2b82f1e2ebc2..fce1e9afc6d9

[PATCH net-next 6/9] libnl: nla_put_msecs(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h| 11 +++ include/uapi/linux/l2tp.h| 1 + include/uapi/linux/neighbour.h | 2 ++ include/uapi/linux/tcp_metrics.h | 1 + net/core/neighbour.c | 19

[PATCH net-next 5/9] libnl: nla_put_s64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. In fact, there is no user of this function. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index 066a921e7cbe..07421

[PATCH net-next 4/9] libnl: nla_put_net64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. The temporary function nla_put_be64_32bit() is removed in this patch. Signed-off-by: Nicolas Dichtel --- include/linux/netfilter/ipset/ip_set.h | 9 ++--- include/net/netlink.h | 14 ++ include/uapi/linux/ne

[PATCH net-next 8/9] xfrm: align nlattr properly when needed

2016-04-22 Thread Nicolas Dichtel
Signed-off-by: Nicolas Dichtel --- include/uapi/linux/xfrm.h | 1 + net/xfrm/xfrm_user.c | 10 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/xfrm.h b/include/uapi/linux/xfrm.h index 2cd9e608d0d1..143338978b48 100644 --- a/include/uapi/linux/xfr

[PATCH net-next 0/9] netlink: align attributes when needed (patchset #1)

2016-04-22 Thread Nicolas Dichtel
This is the continuation of the work done to align netlink attributes when these attributes contain some 64-bit fields. David, if the third patch is too big (or maybe the series), I can split it. Just tell me what you prefer. include/linux/netfilter/ipset/ip_set.h | 9 ++-- include

[PATCH net-next 3/9] libnl: nla_put_be64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. A temporary version (nla_put_be64_32bit()) is added for nla_put_net64(). This function is removed in the next patch. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 15 ++ include/uapi/linux/fib_rule

[PATCH v3 13/21] fs: Update posix_acl support to handle user namespace mounts

2016-04-22 Thread Seth Forshee
ids in on-disk ACLs should be converted to s_user_ns instead of init_user_ns as is done now. This introduces the possibility for id mappings to fail, and when this happens syscalls will return EOVERFLOW. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/posix_acl.c | 67

[PATCH v3 01/21] fs: fix a posible leak of allocated superblock

2016-04-22 Thread Seth Forshee
From: Pavel Tikhomirov We probably need to fix superblock leak in patch (v4 "fs: Add user namesapace member to struct super_block"): Imagine posible code path in sget_userns: we iterate through type->fs_supers and do not find suitable sb, we drop sb_lock to allocate s and go to retry. After we d

[PATCH v3 21/21] fuse: Allow user namespace mounts

2016-04-22 Thread Seth Forshee
Signed-off-by: Seth Forshee Acked-by: Miklos Szeredi --- fs/fuse/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 0a771145d853..254f1944ee98 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1199,7 +1199,7 @@ static void

[PATCH v3 15/21] fs: Don't remove suid for CAP_FSETID in s_user_ns

2016-04-22 Thread Seth Forshee
Expand the check in should_remove_suid() to keep privileges for CAP_FSETID in s_user_ns rather than init_user_ns. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- fs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index 69b8b526c194..c

[PATCH v3 17/21] capabilities: Allow privileged user in s_user_ns to set security.* xattrs

2016-04-22 Thread Seth Forshee
A privileged user in s_user_ns will generally have the ability to manipulate the backing store and insert security.* xattrs into the filesystem directly. Therefore the kernel must be prepared to handle these xattrs from unprivileged mounts, and it makes little sense for commoncap to prevent writing

[PATCH net-next 2/9] libnl: nla_put_le64(): align on a 64-bit area

2016-04-22 Thread Nicolas Dichtel
nla_data() is now aligned on a 64-bit area. Signed-off-by: Nicolas Dichtel --- include/net/netlink.h | 8 +--- include/net/nl802154.h| 6 ++ net/ieee802154/nl802154.c | 13 - 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/include/net/netlink.h b/inc

[PATCH v3 08/21] userns: Replace in_userns with current_in_userns

2016-04-22 Thread Seth Forshee
All current callers of in_userns pass current_user_ns as the first argument. Simplify by replacing in_userns with current_in_userns which checks whether current_user_ns is in the namespace supplied as an argument. Signed-off-by: Seth Forshee Acked-by: James Morris Acked-by: Serge Hallyn --- fs

Re: [PATCH 5/6] leds: pca963x: Inform the output that it is inverted

2016-04-22 Thread Olliver Schinagl
On April 22, 2016 3:09:35 PM CEST, Rob Herring wrote: >On Fri, Apr 22, 2016 at 7:38 AM, Olliver Schinagl >wrote: >> Hey Rob, >> >> On 21-04-16 17:07, Rob Herring wrote: >>> >>> On Tue, Apr 19, 2016 at 09:40:49AM +0200, Olliver Schinagl wrote: When leds are connected in a totem-pole co

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Mauro Carvalho Chehab
Em Fri, 22 Apr 2016 17:18:24 +0200 Hans Verkuil escreveu: > On 04/22/2016 05:07 PM, Nick Dyer wrote: > > On 22/04/2016 15:45, Mauro Carvalho Chehab wrote: > >> Em Fri, 22 Apr 2016 10:26:37 +0200 > >> Hans Verkuil escreveu: > >>> On 04/21/2016 11:31 AM, Nick Dyer wrote: > This is a ser

Re: [PATCH net v2 2/3] drivers: net: cpsw: fix error messages when using phy-handle DT property

2016-04-22 Thread David Rivshin (Allworx)
On Fri, 22 Apr 2016 16:03:34 +0300 Grygorii Strashko wrote: > On 04/21/2016 09:26 PM, David Rivshin (Allworx) wrote: > > From: David Rivshin > > > > The phy-handle, phy_id, and fixed-link properties are mutually exclusive, > > and only one need be specified. However if phy-handle was specified,

[PATCH v3 14/21] fs: Allow superblock owner to change ownership of inodes with unmappable ids

2016-04-22 Thread Seth Forshee
In a userns mount some on-disk inodes may have ids which do not map into s_user_ns, in which case the in-kernel inodes are owned by invalid users. The superblock owner should be able to change attributes of these inodes but cannot. However it is unsafe to grant the superblock owner privileged acces

[PATCH v3 18/21] fuse: Add support for pid namespaces

2016-04-22 Thread Seth Forshee
When the userspace process servicing fuse requests is running in a pid namespace then pids passed via the fuse fd are not being translated into that process' namespace. Translation is necessary for the pid to be useful to that process. Since no use case currently exists for changing namespaces all

[PATCH v3 10/21] fs: Check for invalid i_uid in may_follow_link()

2016-04-22 Thread Seth Forshee
Filesystem uids which don't map into a user namespace may result in inode->i_uid being INVALID_UID. A symlink and its parent could have different owners in the filesystem can both get mapped to INVALID_UID, which may result in following a symlink when this would not have otherwise been permitted wh

[PATCH v3 11/21] cred: Reject inodes with invalid ids in set_create_file_as()

2016-04-22 Thread Seth Forshee
Using INVALID_[UG]ID for the LSM file creation context doesn't make sense, so return an error if the inode passed to set_create_file_as() has an invalid id. Signed-off-by: Seth Forshee Acked-by: Serge Hallyn --- kernel/cred.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cred.c b

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-22 Thread Maciej W. Rozycki
On Fri, 22 Apr 2016, Paul Burton wrote: > > In that case however it looks to me like these `-mcompact-branches=' > > options (all the three we support) need to be wrapped into `$(call > > cc-option,...)'. > > An alternative that it could be argued better fits the principle of > least surprise

[PATCH v3 07/21] selinux: Add support for unprivileged mounts from user namespaces

2016-04-22 Thread Seth Forshee
Security labels from unprivileged mounts in user namespaces must be ignored. Force superblocks from user namespaces whose labeling behavior is to use xattrs to use mountpoint labeling instead. For the mountpoint label, default to converting the current task context into a form suitable for file obj

[PATCH v3 06/21] fs: Treat foreign mounts as nosuid

2016-04-22 Thread Seth Forshee
From: Andy Lutomirski If a process gets access to a mount from a different user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Prevent this by treating mounts from other mount namespaces and those not owned by current_use

[PATCH v3 05/21] block_dev: Check permissions towards block device inode when mounting

2016-04-22 Thread Seth Forshee
Unprivileged users should not be able to mount block devices when they lack sufficient privileges towards the block device inode. Update blkdev_get_by_path() to validate that the user has the required access to the inode at the specified path. The check will be skipped for CAP_SYS_ADMIN, so privile

<    1   2   3   4   5   6   7   8   9   >