Re: [PATCH] net:bcmgent:Return the variable ret rather then zero for the function bcmgenet_power_down

2015-07-16 Thread Florian Fainelli
On 16/07/15 12:34, Nicholas Krause wrote: > This makes the function bcmgenet_power_down return the variable ret > rather then zero in order to make this function be able to signal its > caller with a error code when a failure occurs internally rather then > always appearing to run successfully to i

Re: [PATCH v1] ARM: pci: add call to pcie_bus_configure_settings()

2015-07-16 Thread Bjorn Helgaas
On Thu, Jul 16, 2015 at 2:13 PM, Murali Karicheri wrote: > On 05/16/2015 10:02 AM, Bjorn Helgaas wrote: >> >> On Wed, May 28, 2014 at 01:14:53PM -0400, Murali Karicheri wrote: >>> >>> Call pcie_bus_configure_settings on ARM, like for other platforms. >>> pcie_bus_configure_settings makes sure the

[PATCH] mm: trace tlb flush after disabling preemption in try_to_unmap_flush

2015-07-16 Thread Sasha Levin
Commit "mm: send one IPI per CPU to TLB flush all entries after unmapping pages" added a trace_tlb_flush() while preemption was still enabled. This means that we'll access smp_processor_id() which in turn will get us quite a few warnings. Fix it by moving the trace to where the preemption is disab

[PATCH] xen: fix non-ANSI function declaration of function xen_has_pv_devices

2015-07-16 Thread Colin King
From: Colin Ian King xen_has_pv_devices has no parameters, so use the normal void parameter convention to make it match the prototype in the header file include/xen/platform_pci.h Signed-off-by: Colin Ian King --- arch/x86/xen/platform-pci-unplug.c | 2 +- 1 file changed, 1 insertion(+), 1 del

Re: [PATCH v2 06/13] irqchip: kill off set_irq_flags usage

2015-07-16 Thread Robert Jarzmik
Russell King - ARM Linux writes: >> drivers/net/ethernet/smsc/smc911x.c >> drivers/net/ethernet/smsc/smc9194.c >> drivers/net/ethernet/smsc/smc91x.c >> >> Those might still be, but on the DT based boards the probing should be >> completely irrelevant > > SA11x0 stuff uses smc91x.c PXA uses it al

[PATCH] xen: fix non-ANSI function declaration of function xen_has_pv_devices

2015-07-16 Thread Colin King
From: Colin Ian King xen_has_pv_devices has no parameters, so use the normal void parameter convention to make it match the prototype in the header file include/xen/platform_pci.h Signed-off-by: Colin Ian King --- arch/x86/xen/platform-pci-unplug.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] net: netcp: fix improper initialization in netcp_ndo_open()

2015-07-16 Thread Murali Karicheri
The keystone qmss will raise interrupt when packet arrive at the receive queue. Only control available to avoid interrupt from happening is to keep the free descriptor queue (FDQ) empty in the receive side. So the filling of descriptors into the FDQ has to happen after request_irq() call is made as

Re: [PATCH] DocBook: Add initial documentation for IIO

2015-07-16 Thread Jonathan Cameron
On 8 July 2015 13:04:48 BST, Daniel Baluta wrote: >This is intended to help developers faster find their way >inside the Industrial I/O core and reduce time spent on IIO >drivers development. > >Signed-off-by: Daniel Baluta >--- > Documentation/DocBook/Makefile | 2 +- >Documentation/DocBook/i

Re: [PATCH v4 3/8] clk: add support for clocks provided by SCP(System Control Processor)

2015-07-16 Thread Stephen Boyd
On 07/16, Sudeep Holla wrote: > On 08/07/15 02:46, Stephen Boyd wrote: > > > >Yes struct clk would have min/max, and struct clk_core would have > >min/max. Then some sort of provider API (or possibly even > >clk_init_data) would take the min/max fields and copy them over > >to struct clk_core. Then

Re: [PATCH] genet:Return the variable ret rather then zero for the function bcmgenet_power_down

2015-07-16 Thread Florian Fainelli
On 15/07/15 08:09, Nicholas Krause wrote: > This makes the function bcmgenet_power_down return the variable ret > rather then zero in order to make this function be able to signal its > caller with a error code when a failure occurs internally rather then > always appearing to run successfully to i

Re: [RFC][PATCH] x86, fpu: dynamically allocate 'struct fpu'

2015-07-16 Thread Andy Lutomirski
On Thu, Jul 16, 2015 at 12:14 PM, Dave Hansen wrote: > > The FPU rewrite removed the dynamic allocations of 'struct fpu'. > But, this potentially wastes massive amounts of memory (2k per > task on systems that do not have AVX-512 for instance). > > Instead of having a separate slab, this patch jus

Re: [RFC] workqueue: avoiding unbounded wq on isolated CPUs by default

2015-07-16 Thread Tejun Heo
Hello, On Thu, Jul 16, 2015 at 04:16:23PM -0300, Daniel Bristot de Oliveira wrote: > By default, unbounded workqueues run on all CPUs, which includes > isolated CPUs. This patch avoids unbounded workqueues running on > isolated CPUs by default, keeping the current behavior when no > CPUs were isol

Re: [PATCH v2] jhash: Deinline jhash, jhash2 and __jhash_nwords

2015-07-16 Thread Joe Perches
On Thu, 2015-07-16 at 11:17 -0700, David Miller wrote: > From: Tom Herbert > Date: Thu, 16 Jul 2015 08:43:25 -0700 > > > On Thu, Jul 16, 2015 at 5:40 AM, Denys Vlasenko wrote: > >> This patch deinlines jhash, jhash2 and __jhash_nwords. > >> > >> It also removes rhashtable_jhash2(key, length, see

Re: [PATCH] tg3:Add error handling to the function tg3_test_loopback

2015-07-16 Thread Michael Chan
On Thu, 2015-07-16 at 12:18 -0700, Michael Chan wrote: > On Thu, 2015-07-16 at 14:51 -0400, Nicholas Krause wrote: > > This adds proper error handling for if the calls to the function > > tg3_phy_lpbk_set fail by returning -EIO by assigning the return > > value to the variable err and if it equal

Re: [PATCH] tg3:Add error handling to the function tg3_test_loopback

2015-07-16 Thread Michael Chan
On Thu, 2015-07-16 at 14:51 -0400, Nicholas Krause wrote: > This adds proper error handling for if the calls to the function > tg3_phy_lpbk_set fail by returning -EIO by assigning the return > value to the variable err and if it equals anything other then > zero jumps to the goto label done as no

[RFC] workqueue: avoiding unbounded wq on isolated CPUs by default

2015-07-16 Thread Daniel Bristot de Oliveira
By default, unbounded workqueues run on all CPUs, which includes isolated CPUs. This patch avoids unbounded workqueues running on isolated CPUs by default, keeping the current behavior when no CPUs were isolated. Signed-off-by: Daniel Bristot de Oliveira --- kernel/workqueue.c | 5 - 1 file

[PATCH] drm: atmel-hlcdc: fix vblank initial state

2015-07-16 Thread Sylvain Rochet
From: Boris Brezillon drm_vblank_on() now warns on nested use or if vblank is not properly initialized. This patch fixes Atmel HLCDC vblank initial state. Signed-off-by: Boris Brezillon Reported-by: Sylvain Rochet --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 1 + drivers/gpu/drm/atme

[RFC][PATCH] x86, fpu: dynamically allocate 'struct fpu'

2015-07-16 Thread Dave Hansen
The FPU rewrite removed the dynamic allocations of 'struct fpu'. But, this potentially wastes massive amounts of memory (2k per task on systems that do not have AVX-512 for instance). Instead of having a separate slab, this patch just appends the space that we need to the 'task_struct' which we d

Re: [PATCH v1] ARM: pci: add call to pcie_bus_configure_settings()

2015-07-16 Thread Murali Karicheri
On 05/16/2015 10:02 AM, Bjorn Helgaas wrote: On Wed, May 28, 2014 at 01:14:53PM -0400, Murali Karicheri wrote: Call pcie_bus_configure_settings on ARM, like for other platforms. pcie_bus_configure_settings makes sure the MPS across the bus is uniform and provides the ability to tune the MRSS and

Re: [PATCH] staging: rtl8188eu: Fix style errors and warnings

2015-07-16 Thread Joe Perches
On Thu, 2015-07-16 at 10:11 -0700, Greg KH wrote: > On Thu, Jul 16, 2015 at 09:41:36AM +0200, Guillaume Bienkowski wrote: > > Fix spaces before comma and indentation. > > That's two different things, so this should be two different patches > please. I think it'd be better to do all the whitespace

Re: [PATCH 1/1] regmap: regcache-rbtree: Use GFP_ATOMIC when using spinlocks

2015-07-16 Thread Mark Brown
On Thu, Jul 16, 2015 at 05:48:52PM +0200, Alexander Stein wrote: > When regmap locking is done using spinlocks (e.g. using > devm_regmap_init_mmio_clk) access is protected using spin_lock_irqsave. > So when calling regmap_write the first time and a node is about to be > inserted kzalloc must not b

[PATCH v2] Drivers: Staging: dgnc: Fix Style Issues

2015-07-16 Thread Craig Inches
Fixed multiple instances of: CHECK: Alignment should match open parenthesis CHECK: Blank lines aren't necessary before a close brace '}' CHECK: Please don't use multiple blank lines CHECK: Blank lines aren't necessary after an open brace '{' WARNING: line over 80 characters Signed-off-by: Craig I

Re: linux-next: build failure after merge of the akpm-current tree

2015-07-16 Thread Andrew Morton
On Thu, 16 Jul 2015 10:36:59 -0400 Eric B Munson wrote: > I have an updated set that addresses the build failures by completing > the system call additions. It does not yet address Jon's concern > about applying MLOCK_ONFAULT to a region with pages that are already > present (this is in progress

Re: [PATCH 0/7] Initial support for user namespace owned mounts

2015-07-16 Thread Seth Forshee
On Thu, Jul 16, 2015 at 08:09:20AM -0700, Casey Schaufler wrote: > On 7/16/2015 6:59 AM, Seth Forshee wrote: > > On Wed, Jul 15, 2015 at 10:15:21PM -0500, Eric W. Biederman wrote: > >> Seth I think for the LSMs we should start with: > >> > >> diff --git a/security/security.c b/security/security.c >

Re: [linux-next:master 2811/2969] lib/test-parse-integer.c:118:57: sparse: constant 4294967296 is so big it is long

2015-07-16 Thread Alexey Dobriyan
On Thu, Jul 16, 2015 at 05:10:30PM +0800, kbuild test robot wrote: Frankly, I don't remember why this sparse warning exists at all. Some numbers are postfixed with ULL because gcc says something about C99 rules and that's it. And linux-mm has nothing to do with the code. :^) > >> lib/test-parse-

[PATCH] pagemap: update documentation

2015-07-16 Thread Konstantin Khlebnikov
Notes about recent changes. Signed-off-by: Konstantin Khlebnikov --- Documentation/vm/pagemap.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/vm/pagemap.txt b/Documentation/vm/pagemap.txt index 3cfbbb333ea1..aab39aa7dd8f 100644 --- a/Docume

Re: [PATCH v4 1/2] vTPM: support little endian guests

2015-07-16 Thread Peter Hüwe
Hi Vicky, Am Donnerstag, 16. Juli 2015, 19:54:15 schrieb Hon Ching(Vicky) Lo: > Hi Peter, > > On Mon, 2015-07-13 at 23:08 +0200, Peter Hüwe wrote: > > Hi Vicky, > > > > sorry for the late reply > > > > > This patch makes the code endianness independent. We defined a > > > macro do_endian_convers

[PATCH -mm] parse_integer: fixup mm/memcontrol.c conversion

2015-07-16 Thread Alexey Dobriyan
Fix copypasterro: efd => cfd. Signed-off-by: Alexey Dobriyan --- mm/memcontrol.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4197,21 +4197,21 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of, int ret;

RE: [PATCH] infiniband:cxgb4:Make the function rdma_supported bool

2015-07-16 Thread Steve Wise
Is this change really worth the effort? > -Original Message- > From: Nicholas Krause [mailto:xerofo...@gmail.com] > Sent: Thursday, July 16, 2015 1:34 PM > To: sw...@chelsio.com > Cc: dledf...@redhat.com; sean.he...@intel.com; hal.rosenst...@gmail.com; > linux-r...@vger.kernel.org; linux

Re: [PATCH] Security.c: fix 3 coding style indentation errors

2015-07-16 Thread Joe Perches
On Thu, 2015-07-16 at 18:21 +0200, Ahmed Mohamed Abd EL Mawgood wrote: > This is my first patch to get my hand dirty > 3 simple indentation errors fixing withen security/security.c [] > diff --git a/security/security.c b/security/security.c [] > @@ -567,8 +567,8 @@ int security_inode_rename(struct

Re: [Xen-devel] [PATCH v2 09/20] xen/biomerge: Don't allow biovec to be merge when Linux is not using 4KB page

2015-07-16 Thread Konrad Rzeszutek Wilk
On Thu, Jul 16, 2015 at 05:15:41PM +0100, Julien Grall wrote: > Hi Stefano, > > On 16/07/2015 16:33, Stefano Stabellini wrote: > >On Fri, 10 Jul 2015, Konrad Rzeszutek Wilk wrote: > >>On Thu, Jul 09, 2015 at 09:42:21PM +0100, Julien Grall wrote: > >>>When Linux is using 64K page granularity, every

Re: [PATCH v3 00/11] USB: OTG/DRD Core functionality

2015-07-16 Thread Andrew Bresticker
Hi Roger, On Wed, Jul 15, 2015 at 6:26 AM, Roger Quadros wrote: > Hi Andrew, > > On 13/07/15 22:14, Andrew Bresticker wrote: >> Hi Roger, >> >> On Wed, Jul 8, 2015 at 3:19 AM, Roger Quadros wrote: >>> Usage model: >>> --- >>> >>> - The OTG controller device is assumed to be the parent of

Re: [RFC] Completely remove CONFIG_EXPERIMENTAL from defconfigs

2015-07-16 Thread Kees Cook
On Thu, Jul 16, 2015 at 11:22 AM, Joe Perches wrote: > It doesn't seem to be used anywhere. > > https://lkml.org/lkml/2012/10/23/572 > > Maybe this script should be run one day: > > $ git grep --name-only CONFIG_EXPERIMENTAL arch | \ > xargs perl -p -i -e 'local $/; while (<>) { s/^[ > \t]*CONF

[RFC] Completely remove CONFIG_EXPERIMENTAL from defconfigs

2015-07-16 Thread Joe Perches
It doesn't seem to be used anywhere. https://lkml.org/lkml/2012/10/23/572 Maybe this script should be run one day: $ git grep --name-only CONFIG_EXPERIMENTAL arch | \ xargs perl -p -i -e 'local $/; while (<>) { s/^[ \t]*CONFIG_EXPERIMENTAL=y\s*//g; -- To unsubscribe from this list: send the

Re: [PATCH 4/7] clocksource: cadence_ttc: Remove clk-provider.h include

2015-07-16 Thread Stephen Boyd
On 07/16/2015 04:07 AM, Daniel Lezcano wrote: On 07/11/2015 01:03 AM, Stephen Boyd wrote: This file doesn't use the clk provider APIs. Remove the include. Cc: Michal Simek Cc: Daniel Lezcano Signed-off-by: Stephen Boyd --- Please ack if you want this to go through clk-tree, otherwise it's o

[PATCH 0/5] regulator: 88pm800: Add 88pm860 regulator support

2015-07-16 Thread Vaibhav Hiremath
88PM860 falls under 88pm800 family of devices, with additional feature enhancements, like, - 88pm860 had additional BUCK regulator (BUCK6 and BUCK1B) - Additional LDO (LDO20) - different voltage and current capability This patch adds 88PM860 related buck/ldo voltage/current data to the drive

[PATCH 2/5] regulator: 88pm800: Update driver to use devm_regulator_register fn

2015-07-16 Thread Vaibhav Hiremath
This patch replaces standard regulator_register with devm_regulator_register() fn, as using devm_regulator_register() fn simplifies the driver return/exit path. As part of this update, patch also cleanups up all unnecessary changes which is result of this patch - - Remove _remove() fn, as devm_

[PATCH 5/5] regulator: 88pm800: Add support for configuration of dual phase on BUCK1

2015-07-16 Thread Vaibhav Hiremath
88PM860 device supports dual phase mode on BUCK1 output. In normal usecase, BUCK1A and BUCK1B operates independently with 3A capacity. And they both can work as a dual phase providing 6A capacity. This patch adds support for regulator_ops.set_current_limit() callback fn, in turn enabling support f

[PATCH 1/5] regulator: 88pm800: Fix indentation of assignments of data structures

2015-07-16 Thread Vaibhav Hiremath
This patch makes code more clean from readability point of view, make all assignments of LDO, BUCk and regulator_ops structure at the same indentation. Signed-off-by: Vaibhav Hiremath --- drivers/regulator/88pm800.c | 68 ++--- 1 file changed, 34 insertion

[PATCH 4/5] regulator: 88pm800: Add 88pm860 regulator support

2015-07-16 Thread Vaibhav Hiremath
88PM860 falls under 88pm800 family of devices, with additional feature enhancements, like, - 88pm860 had additional BUCK regulator (BUCK6 and BUCK1B) - Additional LDO (LDO20) - different voltage and current capability This patch adds 88PM860 related buck/ldo voltage/current data to the drive

[PATCH 3/5] regulator: 88pm800: Use regulator_nodes/of_match in the descriptor

2015-07-16 Thread Vaibhav Hiremath
This patch is add regulator_nodes/of_match in the regulator descriptor for using information from DT instead of specific codes. With this patch, driver gets simplified, - No need to maintain "struct of_regulator_match" table and call of_regulator_match() fn. - No need for pm800_regulator_

Re: [PATCH] arm64: alternative: Provide if/else/endif assembler macros

2015-07-16 Thread Will Deacon
Hi Daniel, On Fri, Jul 10, 2015 at 02:48:50PM +0100, Daniel Thompson wrote: > The existing alternative_insn macro has some limitations that make it > hard to work with. In partiuclar the fact it takes instructions from it > own macro arguments means it doesn't play very nicely with C pre-processor

[PATCH RFC] intel_pstate: play well with frequency limits set by acpi

2015-07-16 Thread Konstantin Khlebnikov
IPMI can control CPU P-states remotely: configuration is reported via common ACPI interface (_PPC/_PSS/etc). This patch adds required minimal support in intel_pstate to receive and use these P-state limits. * ignore limit of top state in _PPC: it lower than turbo boost frequency * register intel_p

Re: [PATCH v2] jhash: Deinline jhash, jhash2 and __jhash_nwords

2015-07-16 Thread David Miller
From: Tom Herbert Date: Thu, 16 Jul 2015 08:43:25 -0700 > On Thu, Jul 16, 2015 at 5:40 AM, Denys Vlasenko wrote: >> This patch deinlines jhash, jhash2 and __jhash_nwords. >> >> It also removes rhashtable_jhash2(key, length, seed) >> because it was merely calling jhash2(key, length, seed). >> >>

Re: [PATCH 17/23] sparc/time: Migrate to new 'set-state' interface

2015-07-16 Thread David Miller
From: Viresh Kumar Date: Thu, 16 Jul 2015 16:56:29 +0530 > Migrate sparc drivers to the new 'set-state' interface provided by > clockevents core, the earlier 'set-mode' interface is marked obsolete > now. > > This also enables us to implement callbacks for new states of clockevent > devices, for

Re: [PATCH v2 5/7] locking/qrwlock: make use of acquire/release/relaxed atomics

2015-07-16 Thread Will Deacon
On Thu, Jul 16, 2015 at 05:59:03PM +0100, Peter Zijlstra wrote: > On Thu, Jul 16, 2015 at 04:32:36PM +0100, Will Deacon wrote: > > @@ -130,8 +130,7 @@ static inline void queued_read_unlock(struct qrwlock > > *lock) > > /* > > * Atomically decrement the reader count > > */ > > - smp

Re: [PATCH 01/13] arm/arm64: Add new is_kernel_in_hyp_mode predicate

2015-07-16 Thread Will Deacon
On Wed, Jul 08, 2015 at 05:19:04PM +0100, Marc Zyngier wrote: > With ARMv8.1 VHE extension, it will be possible to run the kernel > at EL2 (aka HYP mode). In order for the kernel to easily find out > where it is running, add a new predicate that returns whether or > not the kernel is in HYP mode. >

Re: [PATCH 03/13] arm64: Add ARM64_HAS_VIRT_HOST_EXTN feature

2015-07-16 Thread Will Deacon
On Wed, Jul 08, 2015 at 05:19:06PM +0100, Marc Zyngier wrote: > Add a new ARM64_HAS_VIRT_HOST_EXTN features to indicate that the > CPU has the ARMv8,1 VHE capability. > > This will be used to trigger kernel patching in KVM. > > Signed-off-by: Marc Zyngier Acked-by: Will Deacon Will -- To unsu

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Peter Zijlstra
On Thu, Jul 16, 2015 at 12:22:40PM -0500, Tom Zanussi wrote: > + map->map = kcalloc(map->map_size, sizeof(struct tracing_map_entry), > +GFP_KERNEL); In a later email you state the max map size to be 128k, with a 16 byte struct, that is 2m of memory for this allocation.

Re: [PATCH 11/13] arm64: Panic when VHE and non VHE CPUs coexist

2015-07-16 Thread Will Deacon
On Wed, Jul 08, 2015 at 05:19:14PM +0100, Marc Zyngier wrote: > Having both VHE and non-VHE capable CPUs in the same system > is likely to be a recipe for disaster. > > If the boot CPU has VHE, but a secondary is not, we won't be > able to downgrade and run the kernel at EL1. Add CPU hotplug > to

[PATCH] staging: fsl-mc: update TODO list

2015-07-16 Thread Stuart Yoder
update TODO list to provide more detail on remaining work Signed-off-by: Stuart Yoder --- drivers/staging/fsl-mc/TODO | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index d78288b..c29516b 1006

Re: [PATCH v4 1/2] vTPM: support little endian guests

2015-07-16 Thread Hon Ching(Vicky) Lo
Hi Peter, On Mon, 2015-07-13 at 23:08 +0200, Peter Hüwe wrote: > Hi Vicky, > > sorry for the late reply > > > > This patch makes the code endianness independent. We defined a > > macro do_endian_conversion to apply endianness to raw integers > > in the event entries so that they will be displa

Re: [PATCH] Staging: drivers: dgnc

2015-07-16 Thread Joe Perches
On Fri, 2015-07-17 at 00:20 +, Craig Inches wrote: > Hi Joe, Rehi Craig. > On Thu, Jul 16, 2015 at 08:30:53AM -0700, Joe Perches wrote: > > On Thu, 2015-07-16 at 23:11 +, Craig Inches wrote: > > > Fixed up some checkpatch.pl style issues. > > > Line greater than 80 Chars in multiple locat

[PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe

2015-07-16 Thread K. Y. Srinivasan
The current code returns from probe without waiting for the proper handling of subchannels that may be requested. If the netvsc driver were to be rapidly loaded/unloaded, we can trigger a panic as the unload will be tearing down state that may not have been fully setup yet. We fix this issue by ma

[PATCH] arm64: remove dead code

2015-07-16 Thread Mark Salter
Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed soft_reset() from the kernel. This was the only caller of setup_mm_for_reboot(), so remove that also. Signed-off-by: Mark Salter --- arch/arm64/include/asm/mmu.h | 1 - arch/arm64/mm/mmu.c | 11 --- 2 files changed,

[PATCH-v3 2/2] mfd: 88pm800: Add init time initial configuration support

2015-07-16 Thread Vaibhav Hiremath
This patch adds init time configuration of 88PM800/805 and 88PM860. It includes, - Enable BUCK clock gating in low power mode - Full mode support for BUCK2 and 4 - Enable voltage change (LPF, DVC) in PMIC Note that both 88PM800 and 88PM860 do share common configurations, but since I can not

[PATCH-v3 1/2] mfd: 88pm80x: Add 88pm860 chip type support

2015-07-16 Thread Vaibhav Hiremath
Add chip identification support for 88PM860 device to the pm80x_chip_mapping table. Signed-off-by: Vaibhav Hiremath Reviewed-by: Krzysztof Kozlowski --- drivers/mfd/88pm80x.c | 2 ++ include/linux/mfd/88pm80x.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/mfd/88pm80x.c b/

[PATCH-v3 0/2] mfd: 88pm800: Add 88pm860 device support

2015-07-16 Thread Vaibhav Hiremath
88PM860 falls under 88pm800 family of devices, with some feature additions, for example, support for dual phase on BUCK1. This patch series, enabled chip ID support for 88pm860 in the driver and adds Init time configuration support based on chip ID V2 => V3 === Link to V2: https://www.mail-a

Re: [mminit] [ INFO: possible recursive locking detected ]

2015-07-16 Thread Mel Gorman
On Thu, Jul 16, 2015 at 08:13:38PM +0300, Konstantin Khlebnikov wrote: > > @@ -1187,14 +1195,14 @@ void __init page_alloc_init_late(void) > > {pgdat_init_rwsempgdat_init_rwsempgdat_init_rwsem > > int nid; > > > > + /* There will be num_node_state(N_MEMORY) threads */ > > + atom

Re: [PATCH v9 07/22] tracing: Add lock-free tracing_map

2015-07-16 Thread Peter Zijlstra
On Thu, Jul 16, 2015 at 12:22:40PM -0500, Tom Zanussi wrote: > + for (i = 0; i < elt->map->n_fields; i++) { > + atomic64_set(&dup_elt->fields[i].sum, > + atomic64_read(&elt->fields[i].sum)); > + dup_elt->fields[i].cmp_fn = elt->fields[i].cmp_fn;

Re: [PATCH 10/13] arm64: Add support for running Linux in EL2 mode

2015-07-16 Thread Will Deacon
On Wed, Jul 08, 2015 at 05:19:13PM +0100, Marc Zyngier wrote: > With the ARMv8.1 VHE, the architecture is able to (almost) transparently > run the kernel at EL2, despite being written for EL1. > > This patch takes care of the "almost" part, mostly preventing the kernel > from dropping from EL2 to

[PATCH 08/28] hexagon: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/hexagon/include/asm/atomic.h |6 ++ 1 file changed, 6 insertions(+) --- a/arch/hexagon/include/as

[PATCH 22/28] frv: Rewrite atomic implementation

2015-07-16 Thread Peter Zijlstra
Mostly complete rewrite of the FRV atomic implementation, instead of using assembly files, use inline assembler. The out-of-line CONFIG option makes a bit of a mess of things, but a little CPP trickery gets that done too. FRV already had the atomic logic ops but under a non standard name, the rei

[PATCH 11/28] m68k: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: Geert Uytterhoeven Signed-off-by: Peter Zijlstra (Intel) --- arch/m68k/include/asm/atomic.h | 14 ++ 1 file changed, 10 insertio

[PATCH 24/28] tile: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
From: Chris Metcalf Implement atomic logic ops -- atomic_{or,xor,and}. For tilegx, these are relatively straightforward; the architecture provides atomic "or" and "and", both 32-bit and 64-bit. To support xor we provide a loop using "cmpexch". For the older 32-bit tilepro architecture, we have

Re: [PATCH 4/7] Documentation: mtd: add a DT property to set the latency code of Spansion memory

2015-07-16 Thread Marek Vasut
On Thursday, July 16, 2015 at 05:27:51 PM, Cyrille Pitchen wrote: Hi! > Both the SPI controller and the NOR flash memory need to agree on the > number of dummy cycles to use for Fast Read commands. For Spansion > memories, this number of dummy cycles is not given directly but through a > so calle

[PATCH 26/28] atomic: Collapse all atomic_{set,clear}_mask definitions

2015-07-16 Thread Peter Zijlstra
Move the now generic definitions of atomic_{set,clear}_mask() into linux/atomic.h to avoid endless and pointless repetition. Also, provide an atomic_andnot() wrapper for those few archs that can implement that. Signed-off-by: Peter Zijlstra (Intel) --- arch/arc/include/asm/atomic.h |

[PATCH 14/28] mn10300: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/mn10300/include/asm/atomic.h | 57 ++ 1 file changed, 10 insertions(

[PATCH 13/28] mips: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: Ralf Baechle Signed-off-by: Peter Zijlstra (Intel) --- arch/mips/include/asm/atomic.h |9 + 1 file changed, 9 insertions(+) --- a

[PATCH 20/28] s390: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: Heiko Carstens Signed-off-by: Peter Zijlstra (Intel) --- arch/s390/include/asm/atomic.h | 47 - 1 fi

[PATCH 05/28] arm64: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/arm64/include/asm/atomic.h | 15 +++ 1 file changed, 15 insertions(+) --- a/arch/arm64/incl

[PATCH 12/28] metag: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/metag/include/asm/atomic_lnkget.h | 38 - arch/metag/include/asm/atomic_

[PATCH 17/28] sh: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/sh/include/asm/atomic-grb.h | 45 +- arch/sh/include/asm/atomic-irq

[PATCH v2 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

2015-07-16 Thread Tal Shorer
Add a new options to gpio Kconfig, CONFIG_GPIO_TRACING, that is used for enabling/disabling compilation of gpio function trace events. Signed-off-by: Tal Shorer --- drivers/gpio/Kconfig| 7 +++ include/trace/events/gpio.h | 4 2 files changed, 11 insertions(+) diff --git a/driv

[PATCH 25/28] atomic: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/alpha/include/asm/atomic.h|1 - arch/arc/include/asm/atomic.h |1 - arch/arm/incl

[PATCH 04/28] arm: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/arm/include/asm/atomic.h | 15 +++ 1 file changed, 15 insertions(+) --- a/arch/arm/include/

[PATCH 18/28] sparc: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: David S. Miller Signed-off-by: Peter Zijlstra (Intel) --- arch/sparc/include/asm/atomic_32.h |4 arch/sparc/include/asm/atomic_64.h |

Re: [PATCH] arm64: KVM: Enable minimalistic support for Thunder

2015-07-16 Thread Chalamarla, Tirumalesh
the discussion on the generic cpu seems to be stuck, is there a possibility to take this patch. so that Thunder has a chance to run some KVM. Thanks, Tirumalesh. > On Jun 29, 2015, at 10:11 AM, Marc Zyngier wrote: > > On 29/06/15 18:06, Chalamarla, Tirumalesh wrote: >> >>> On Jun 29, 2015, a

Re: [PATCH] Input - elantech: force a resolution of 31 u/mm

2015-07-16 Thread Dmitry Torokhov
On Tue, Jul 14, 2015 at 07:59:47PM +0200, David Herrmann wrote: > Hi > > On Fri, Jul 10, 2015 at 2:32 AM, Peter Hutterer > wrote: > > All Elantech touchpads pre-v4 with dynamic resolution queries have a fixed > > resolution of 800dpi -> 31.49 units/mm. Set this statically, so userspace > > does

[PATCH v2 1/2] tracing: allow disabling compilation of specific trace systems

2015-07-16 Thread Tal Shorer
Allow a trace events header file to disable compilation of its trace events by defining the preprocessor macro NOTRACE. This could be done, for example, according to a Kconfig option. Signed-off-by: Tal Shorer --- include/linux/tracepoint.h | 17 ++--- include/trace/define_trace.h

[PATCH v2 0/2] tracing: allow disabling compilation of specific trace systems

2015-07-16 Thread Tal Shorer
Currently, enabling CONFIG_TRACING on a system comes as all-or-nothing: either tracepoints for all subsystems are compiled (with CONFIG_TRACING) or none of them do (without it). This caused me an unacceptable performance penalty (obviously SOME penalty was expected, but not one so severe) which ma

[PATCH 15/28] parisc: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/parisc/include/asm/atomic.h |9 + 1 file changed, 9 insertions(+) --- a/arch/parisc/include/a

[PATCH 10/28] m32r: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/m32r/include/asm/atomic.h | 44 + 1 file changed, 10 insertions(

[PATCH 01/28] atomic: Prepare generic atomic implementation for logic ops

2015-07-16 Thread Peter Zijlstra
Clean up the #ifdef guards a bit to prepare for architectures to supply their own logic ops. Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/atomic.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/

[PATCH 19/28] xtensa: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/xtensa/include/asm/atomic.h | 85 +++ 1 file changed, 16 insertions(

[PATCH 03/28] arc: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: Vineet Gupta Signed-off-by: Peter Zijlstra (Intel) --- arch/arc/include/asm/atomic.h | 19 +-- 1 file changed, 17 insertions

[PATCH 27/28] atomic: Replace atomic_{set,clear}_mask() usage

2015-07-16 Thread Peter Zijlstra
Replace the deprecated atomic_{set,clear}_mask() usage with the now ubiquous atomic_{or,andnot}() functions. Signed-off-by: Peter Zijlstra (Intel) --- arch/blackfin/mach-common/smp.c |2 - arch/m32r/kernel/smp.c |4 +- arch/mn10300/mm/tlb-smp.c |2 - arch/s390/kernel/t

[PATCH 28/28] atomic: Add simple atomic_t tests

2015-07-16 Thread Peter Zijlstra
Add a few atomic_t tests, gets some compile coverage for the new operations. Signed-off-by: Peter Zijlstra (Intel) --- lib/atomic64_test.c | 69 1 file changed, 48 insertions(+), 21 deletions(-) --- a/lib/atomic64_test.c +++ b/lib/atomic64_

Re: [RFT PATCH] gpio: etraxfs: Fix devm_ioremap_resource return value check

2015-07-16 Thread Rabin Vincent
On Thu, Jul 09, 2015 at 10:19:53PM +0900, Krzysztof Kozlowski wrote: > Value returned by devm_ioremap_resource() was checked for non-NULL but > devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of > error this could lead to dereference of ERR_PTR. > > Signed-off-by: Krzysztof Kozlow

Re: [PATCH] gpio/davinci: add interrupt support for GPIOs 16-31

2015-07-16 Thread Vitaly Andrianov
On 07/16/2015 05:04 AM, Sekhar Nori wrote: On Tuesday 14 July 2015 07:31 PM, Linus Walleij wrote: On Thu, Jun 18, 2015 at 7:10 PM, Vitaly Andrianov wrote: Interrupts for GPIOs 16 through 31 are enabled by bit 1 in the "binten" register (offset 8). Previous versions of GPIO only used bit 0,

Re: [PATCH RFC 0/4] change sb_writers to use percpu_rw_semaphore

2015-07-16 Thread Oleg Nesterov
On 07/16, Jan Kara wrote: > > On Wed 15-07-15 20:19:20, Oleg Nesterov wrote: > > > > Perhaps it makes to merge other 2 patches from Dave first? (those which > > change __sb_start/end_write to rely on RCU). Afaics these changes are > > straightforward and correct. Although I'd suggest to use preempt

[PATCH v4 4/6] fnic: Remove redundant module.h includes

2015-07-16 Thread Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN (via KSYM_SYMBOL_LEN). Signed-off-by: Tom Zanussi --- drivers/scsi/fnic/fnic_trace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_

[PATCH v4 2/6] tracing: Remove redundant module.h includes

2015-07-16 Thread Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN (via KSYM_SYMBOL_LEN). Signed-off-by: Tom Zanussi --- kernel/trace/trace_output.c | 1 - kernel/trace/trace_syscalls.c | 1 - 2 files changed, 2 deletions(-)

Re: [PATCH 0/6] BPF JIT fixes and features for ARM

2015-07-16 Thread Alexei Starovoitov
On 7/16/15 9:46 AM, Nicolas Schichan wrote: This serie fixes issues with the ARM BPF JIT and adds support for more instructions to the ARM BPF JIT. The first three patches are fixing bugs in the ARM JIT and should probably find their way to a stable kernel. The last three patches add support to

[PATCH v4 6/6] tracing: Remove unnecessary kallsyms.h and module.h includes

2015-07-16 Thread Tom Zanussi
At some point, these files made use of something from kallsyms.h and/or module.h, but they now use nothing from either and can be removed. Signed-off-by: Tom Zanussi --- kernel/trace/trace.c | 1 - kernel/trace/trace_branch.c | 2 -- kernel/trace/trace_export.c | 2 -- k

[PATCH v4 5/6] slub: Remove redundant module.h includes

2015-07-16 Thread Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN (via KSYM_SYMBOL_LEN). Signed-off-by: Tom Zanussi Acked-by: David Rientjes --- mm/slub.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/slub.c b/mm/slu

[PATCH 02/28] alpha: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Signed-off-by: Peter Zijlstra (Intel) --- arch/alpha/include/asm/atomic.h | 43 ++-- 1 file changed, 28 insertions(

[PATCH 16/28] powerpc: Provide atomic_{or,xor,and}

2015-07-16 Thread Peter Zijlstra
Implement atomic logic ops -- atomic_{or,xor,and}. These will replace the atomic_{set,clear}_mask functions that are available on some archs. Acked-by: Benjamin Herrenschmidt Signed-off-by: Peter Zijlstra (Intel) --- arch/powerpc/include/asm/atomic.h |9 + 1 file changed, 9 inserti

[PATCH v4 1/6] tracing: Remove kallsyms.h include from linux/ftrace.h

2015-07-16 Thread Tom Zanussi
kallsyms.h was included by ftrace.h for KSYM_NAME_LEN, but that usage was removed by commit 3f5ec13696f [tracing/fastboot: move boot tracer structs and funcs into their own header]. Remove kallsyms.h and have users relying on ftrace.h to include it for them include it explicitly. Signed-off-by: T

[PATCH v4 3/6] lib: Remove redundant module.h includes

2015-07-16 Thread Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN (via KSYM_SYMBOL_LEN). Signed-off-by: Tom Zanussi --- lib/vsprintf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 7

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