Re: [PATCH v4 1/5] arm64: cpufeature: Add scope for capability check

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:31PM +0100, Suzuki K. Poulose wrote: > Add scope parameter to the arm64_cpu_capabilities::matches(), so that > this can be reused for checking the capability on a given CPU vs the > system wide. The system uses the default scope associated with the > capability for

Re: [PATCH v2 2/2] i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared

2016-04-22 Thread Wolfram Sang
On Sat, Apr 16, 2016 at 09:14:53PM -0400, Javier Martinez Canillas wrote: > The exynos5 I2C controller driver always prepares and enables a clock > before using it and then disables unprepares it when the clock is not > used anymore. > > But this can cause a possible ABBA deadlock in some

Re: [PATCH v4 2/5] arm64: Allow a capability to be checked on a single CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:32PM +0100, Suzuki K. Poulose wrote: > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -1005,6 +1005,24 @@ static void __init setup_feature_capabilities(void) > enable_cpu_capabilities(arm64_features); > } > > +/* > + * Check

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

2016-04-22 Thread Jon Hunter
Hi 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 > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > >

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

2016-04-22 Thread Richard Fitzgerald
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 core it doesn't necessarily have the same value as the always_on flag in constraints. Signed-off-by: Richard

Re: [PATCH v4 3/5] irqchip/gic: Restore CPU interface checking

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:33PM +0100, Suzuki K. Poulose wrote: > From: Marc Zyngier > > When introducing the whole CPU feature detection framework, > we lost the capability to detect a mismatched GIC configuration > (using the GICv2 MMIO interface, but having the system register > interface

Re: [PATCH net v2 3/3] drivers: net: cpsw: use of_phy_connect() in fixed-link case

2016-04-22 Thread Grygorii Strashko
On 04/21/2016 09:41 PM, David Rivshin (Allworx) wrote: From: David Rivshin If a fixed-link DT subnode is used, the phy_device was looked up so that a PHY ID string could be constructed and passed to phy_connect(). This is not necessary, as the device_node can be passed directly to

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

2016-04-22 Thread Thierry Reding
On Fri, Apr 22, 2016 at 06:14:53PM +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 > >

Re: [PATCH 10/11] arm64: tegra: Add clock properties on cpu0 for Tegra210

2016-04-22 Thread Jon Hunter
On 22/04/16 14:23, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Fri, Apr 22, 2016 at 12:44:21PM +0100, Jon Hunter wrote: >> Hi Penny, >> >> On 22/04/16 11:31, Penny Chiu wrote: >>> Add clocks, clock-names, and clock-latency into cpu0 node. >>> These properties will be used by

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

2016-04-22 Thread Radim Krčmář
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: > > >> 2016-04-21 16:20+0200, Greg Kurz: > > >> > Commit 338c7dbadd26

Re: [PATCH v4 4/5] arm64: Verify CPU errata work arounds on hotplugged CPU

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:34PM +0100, Suzuki K. Poulose wrote: > CPU Errata work arounds are detected and applied to the > kernel code at boot time and the data is then freed up. > If a new hotplugged CPU requires a work around which > was not applied at boot time, there is nothing we can > do

RE: [PATCH net v2 0/3] drivers: net: cpsw: phy-handle fixes

2016-04-22 Thread Andrew Goodbody
> From: David Rivshin > > The first patch fixes a bug that makes dual_emac mode break if either slave > uses the phy-handle property in the devicetree. > > The second patch fixes some cosmetic problems with error messages, and > also makes the binding documentation more explicit. > > The third

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

2016-04-22 Thread Jon Hunter
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 > during tegra_dma_slave_config() with client data if slave_id > is not initialized through DT > > Signed-off-by: Shardar

Re: [PATCH v4 4/5] arm64: Verify CPU errata work arounds on hotplugged CPU

2016-04-22 Thread Suzuki K Poulose
On 22/04/16 14:40, Catalin Marinas wrote: On Fri, Apr 22, 2016 at 12:25:34PM +0100, Suzuki K. Poulose wrote: CPU Errata work arounds are detected and applied to the kernel code at boot time and the data is then freed up. If a new hotplugged CPU requires a work around which was not applied at

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

2016-04-22 Thread Richard Fitzgerald
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 to only setting the REGULATOR_CHANGE_STATUS flag if we have a valid gpio for

Re: [PATCH v7 5/8] [media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-04-22 Thread Hans Verkuil
On 04/22/2016 06:25 AM, Tiffany Lin wrote: > Add v4l2 layer encoder driver for MT8173 > > Signed-off-by: Tiffany Lin > > --- > drivers/media/platform/Kconfig | 16 + > drivers/media/platform/Makefile|2 + >

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

2016-04-22 Thread Radim Krčmář
2016-04-22 13:19+0200, Igor Mammedov: > On Fri, 22 Apr 2016 11:25:38 +0200 > Greg Kurz wrote: >> 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: >> > >> 2016-04-21

Re: Nokia N900: Broken lirc ir-rx51 driver

2016-04-22 Thread Pali Rohár
On Tuesday 05 January 2016 17:12:50 Tony Lindgren wrote: > * Pali Rohár [160105 02:19]: > > On Saturday 02 January 2016 09:06:57 Tony Lindgren wrote: > > > > > > Yup please take a look at thread "[PATCH 0/3] pwm: omap: Add PWM support > > > using dual-mode timers". Chances are we still need to

Re: [PATCH v4 5/5] arm64: Fix behavior of maxcpus=N

2016-04-22 Thread Catalin Marinas
On Fri, Apr 22, 2016 at 12:25:35PM +0100, Suzuki K. Poulose wrote: > maxcpu=n sets the number of CPUs activated at boot time to a max of n, > but allowing the remaining CPUs to be brought up later if the user > decides to do so. However, on arm64 due to various reasons, we disallowed > hotplugging

[PATCHv2 1/6] efi/runtime-wrappers: add {__,}efi_call_virt templates

2016-04-22 Thread Mark Rutland
Currently each architecture must implement two macros, efi_call_virt and __efi_call_virt, which only differ by the presence or absence of a return type. Otherwise, the logic surrounding the call is identical. As each architecture must define the entire body of each, we can't place any generic

[PATCHv2 0/6] efi: detect erroneous firmware IRQ manipulation

2016-04-22 Thread Mark Rutland
Some firmware erroneously unmask IRQs (and potentially other architecture specific exceptions) during runtime services functions, in violation of both common sense and the UEFI specification. This can result in a number of issues if said exceptions are taken when they are expected to be masked,

[PATCHv2 3/6] arm/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the arm efi code. Signed-off-by: Mark Rutland Reviewed-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Matt Fleming Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Cc: linux-...@vger.kernel.org Cc:

[PATCHv2 6/6] efi/runtime-wrappers: detect FW irq flag corruption

2016-04-22 Thread Mark Rutland
The UEFI spec allows runtime services to be called with interrupts masked or unmasked, and if a runtime service function needs to mask interrupts, it must restore the mask to its original state before returning (i.e. from the PoV of the OS, this does not change across a call). Firmware should

[PATCHv2 4/6] x86/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the x86 efi code. Signed-off-by: Mark Rutland Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Matt Fleming Cc: Thomas Gleixner Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[PATCHv2 2/6] arm64/efi: move to generic {__,}efi_call_virt

2016-04-22 Thread Mark Rutland
Now there's a common template for {__,}efi_call_virt, remove the duplicate logic from the arm64 efi code. Signed-off-by: Mark Rutland Acked-by: Will Deacon Reviewed-by: Ard Biesheuvel Cc: Catalin Marinas Cc: Leif Lindholm Cc: Matt Fleming Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCHv2 5/6] efi/runtime-wrappers: remove redundant ifdefs

2016-04-22 Thread Mark Rutland
Now that all users of the EFI runtime wrappers (arm,arm64,x86) have been migrated to the new setup/teardown macros, we don't need to support overridden {__,}efi_call_virt implementations. This patch removes the unnecessary ifdefs. Signed-off-by: Mark Rutland Cc: Leif Lindholm Cc: Matt Fleming

Re: [PATCH 4/5] regulator: core: Add early supply resolution for a bypassed regulator

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 12:26:57PM +0100, Jon Hunter wrote: > OK. Sorry if I have misunderstood you here, but this sounds more like > Thierry's initial proposal [0] but ignoring the any errors returned (and > we need to fix-up the locking in this patch). In the discussion that Yes! > followed I

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

2016-04-22 Thread Shardar Mohammed
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 during > > tegra_dma_slave_config() with client

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

2016-04-22 Thread Mark Brown
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 core it doesn't necessarily have >

Re: [PATCH 2/2] memcg: relocate charge moving from ->attach to ->post_attach

2016-04-22 Thread Petr Mladek
On Thu 2016-04-21 19:09:02, Tejun Heo wrote: > Hello, > > So, this ended up a lot simpler than I originally expected. I tested > it lightly and it seems to work fine. Petr, can you please test these > two patches w/o the lru drain drop patch and see whether the problem > is gone? The LTP test

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

2016-04-22 Thread Shardar Mohammed
> On Fri, Apr 22, 2016 at 06:14:53PM +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

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

2016-04-22 Thread Shardar Mohammed
> 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 during > > tegra_dma_slave_config() with client data if slave_id is not > > initialized through DT > > > >

Re: [PATCH kernel 1/2] mm: add the related functions to build the free page bitmap

2016-04-22 Thread Michael S. Tsirkin
On Fri, Apr 22, 2016 at 10:48:38AM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Apr 19, 2016 at 03:02:09PM +, Li, Liang Z wrote: > > > > On Tue, 2016-04-19 at 22:34 +0800, Liang Li wrote: > > > > > The free page bitmap will be sent to QEMU

Re: [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver

2016-04-22 Thread Heiko Stübner
Am Freitag, 22. April 2016, 16:58:43 schrieb Viresh Kumar: > From: Finley Xiao > > This patch add rockchip's compatible string to the compat list and > remove similar code from platform code for supporting generic platdev > driver. > > Signed-off-by: Finley Xiao > Acked-by: Viresh Kumar >

Re: [PATCH v4] i2c: designware-platdrv: fix unbalanced clk enable and prepare

2016-04-22 Thread Jarkko Nikula
Hi On 04/22/2016 11:49 AM, Jisheng Zhang wrote: If i2c_dw_probe() fails, we should disable and unprepare the clock, otherwise the clock enable and prepare is left unbalanced. In dw_i2c_plat_remove(), we'd better to not rely on runtime PM to disable and unprepare the clock since CONFIG_PM may

Re: [PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
On Fri, Apr 22, 2016 at 08:16:44AM -0400, Laurence Oberman wrote: > The change looks fine, I see its hard-coded to 32 in qla1280_set_defaults() > Would it be better to create a #define like other drivers and use that in > both. > Also did the below patch resolve this for the bug reporter. Yes,

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Minchan Kim
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 to cause performance degradation > >>in certain use cases. The test performed

Re: [PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Laurence Oberman
Johannes OK , yes thanks for pointing out the commit. Laurence Oberman Principal Software Maintenance Engineer Red Hat Global Support Services - Original Message - From: "Johannes Thumshirn" To: "Laurence Oberman" Cc: "Johannes Thumshirn" , "Martin K . Petersen" , "James E . J .

[PATCH 0/1] nilfs2: constify nilfs_sc_operations structures

2016-04-22 Thread Ryusuke Konishi
Hi Andrew, please queue the following change for the next merge window. Thanks, Ryusuke Konishi -- Julia Lawall (1): nilfs2: constify nilfs_sc_operations structures fs/nilfs2/segment.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 1/1] nilfs2: constify nilfs_sc_operations structures

2016-04-22 Thread Ryusuke Konishi
From: Julia Lawall The nilfs_sc_operations structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Ryusuke Konishi --- fs/nilfs2/segment.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Kirill A. Shutemov
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 Menon > > >wrote: > > > > > >>Mapping pages around fault is found to

Re: [PATCHv2 0/6] efi: detect erroneous firmware IRQ manipulation

2016-04-22 Thread Ard Biesheuvel
On 22 April 2016 at 15:51, Mark Rutland wrote: > Some firmware erroneously unmask IRQs (and potentially other architecture > specific exceptions) during runtime services functions, in violation of both > common sense and the UEFI specification. This can result in a number of issues > if said

/proc/meminfo: relations of values

2016-04-22 Thread Oleg
Hi, all! Google has many explanations of what each value mean, but nothing about relations of values (the same for Documentation/filesystems/proc.txt). For example, i have qemu vm with x86_64 kernel: ~# dd if=/dev/zero of=tmpdata bs=$((1024*1024)) count=10; sleep 1s; \ free; cat

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

2016-04-22 Thread Shardar Shariff Md
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 Shariff Md --- Changes from v1: - Instead of

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

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

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:

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)

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

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

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

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

[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

[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

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

[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

[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

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

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 > >

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

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:

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

[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

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

[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

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 > >>>

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

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

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

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

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

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

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

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

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 >> >

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

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

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

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

[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

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

[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

[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

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

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

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 >

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 > >>>

[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

<    10   11   12   13   14   15   16   17   18   19   >