Re: [PATCH V2 3/5] cpuidle: idle: menu: Don't reflect when a state selection failed

2014-10-29 Thread Kevin Hilman
Daniel Lezcano writes: > On 10/28/2014 08:01 AM, Preeti Murthy wrote: >> On Thu, Oct 23, 2014 at 2:31 PM, Daniel Lezcano >> wrote: >>> In the current code, the check to reflect or not the outcoming state is done >>> against the idle state which has been chosen and its value. >>> >>> Instead of d

Re: [PATCH 07/11] irqchip: brcmstb-l2: Use irq_reg_* accessors

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > This change was just made on bcm7120-l2, so let's keep things consistent > between the two drivers. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fainelli > --- > drivers/irqchip/irq-brcmstb-l2.c | 22 +++--- > 1 file chang

Re: [PATCH 05/11] irqchip: bcm7120-l2: Make sure all register accesses use base+offset

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > A couple of accesses to IRQEN (base+0x00) just used "base" directly, so > they would break if IRQEN ever became nonzero. Make sure that all > reads/writes specify the register offset constant. > > Signed-off-by: Kevin Cernekee Acked-by: Florian Fa

[PATCH v1 3/4] ARM: dts: keystone: add DT bindings for PCI controller for port 0

2014-10-29 Thread Murali Karicheri
Add common DT bindings to support PCI controller driver for port 0 on all of the K2 SoCs that has Synopsis Designware based pcie h/w. Signed-off-by: Murali Karicheri CC: Santosh Shilimkar CC: Rob Herring CC: Pawel Moll CC: Mark Rutland CC: Ian Campbell CC: Kumar Gala CC: Russell King CC: d

Re: [PATCH 03/11] irqchip: bcm7120-l2: Eliminate bad IRQ check

2014-10-29 Thread Florian Fainelli
On 10/28/2014 08:58 PM, Kevin Cernekee wrote: > This check may be prone to race conditions, e.g. > > 1) Some external event (e.g. GPIO level) causes an IRQ to become pending > 2) Peripheral asserts the L2 IRQ > 3) CPU takes an interrupt > 4) The event from #1 goes away > 5) bcm7120_l2_intc_irq_han

[PATCH 1/5] mm: gup: add get_user_pages_locked and get_user_pages_unlocked

2014-10-29 Thread Andrea Arcangeli
We can leverage the VM_FAULT_RETRY functionality in the page fault paths better by using either get_user_pages_locked or get_user_pages_unlocked. The former allow conversion of get_user_pages invocations that will have to pass a "&locked" parameter to know if the mmap_sem was dropped during the ca

Re: [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration

2014-10-29 Thread Tristan Lelong
On Thu, Oct 30, 2014 at 12:08:12AM +0800, Greg KH wrote: > On Tue, Oct 28, 2014 at 11:09:10PM -0700, Tristan Lelong wrote: > > This patch removes tabs used to align variable names in declaration and > > assignation. > > It replaces them with exactly one space. > > Why? This seems like a totally

[char-misc-next V2] mei: add reference counting for me clients

2014-10-29 Thread Tomas Winkler
To support dynamic addition/remove we add reference counter. Signed-off-by: Tomas Winkler --- V2: code style and documentation fixes drivers/misc/mei/amthif.c | 14 ++--- drivers/misc/mei/bus.c | 39 -- drivers/misc/mei/client.c | 126

Re: [PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808

2014-10-29 Thread Doug Anderson
Javier, On Wed, Oct 29, 2014 at 9:29 AM, Javier Martinez Canillas wrote: >>> @@ -76,6 +80,7 @@ >>> regulator-min-microvolt = <330>; >>> regulator-max-microvolt = <330>; >>> regulator-name = "vc

Re: [RFC Patch] gpio: add GPIO hogging mechanism

2014-10-29 Thread Pantelis Antoniou
Hi Benoit, > On Oct 29, 2014, at 18:34 , Benoit Parrot wrote: > > Pantelis, > > Thanks for the feedback. > > Pantelis Antoniou wrote on Wed [2014-Oct-29 > 10:53:44 +0200]: >> Hi Benoit, >> >>> On Oct 21, 2014, at 23:09 , Benoit Parrot wrote: >>> >>> Based on Boris Brezillion work this is

Re: [RFC Patch] gpio: add GPIO hogging mechanism

2014-10-29 Thread Maxime Ripard
On Wed, Oct 29, 2014 at 11:41:22AM -0500, Benoit Parrot wrote: > Maxime Ripard wrote on Wed [2014-Oct-29 > 11:45:59 +0100]: > > Hi, > > > > On Tue, Oct 21, 2014 at 03:09:58PM -0500, Benoit Parrot wrote: > > > Based on Boris Brezillion work this is a reworked patch > > > of his initial GPIO hoggi

[PATCH v1 0/4] Enable PCI controller for Keystone SoCs

2014-10-29 Thread Murali Karicheri
Now that Keystone PCI driver is merged to v3.18, this patch series add build options and DTS bindings to enable the driver for Keystone SoCs. v1: resend with some minor fix up of the commit description and fixing the email ID for Santosh. CC: Santosh Shilimkar CC: Greg Kroah-Hartman CC: Rob

[PATCH v1 4/4] ARM: dts: keystone-k2e: add DT bindings for PCI controller for port 1

2014-10-29 Thread Murali Karicheri
K2E SoC has a second PCI port based on Synopsis Designware PCIe h/w. Add DT bindings to support PCI controller for port 1 for this SoC. Signed-off-by: Murali Karicheri CC: Santosh Shilimkar CC: Rob Herring CC: Pawel Moll CC: Mark Rutland CC: Ian Campbell CC: Kumar Gala CC: Russell King CC:

[PATCH v1 1/4] ARM: keystone: add pcie related options

2014-10-29 Thread Murali Karicheri
Now that Keystone PCI controller is merged, add pcie related options by default for keystone architecture so that driver can be enabled in the build. Signed-off-by: Murali Karicheri CC: Russell King CC: Santosh Shilimkar --- - v1 - No change w.r.t arch/arm/mach-keystone/Kconfig |2 ++ 1

[PATCH v1 2/4] ARM: keystone: defconfig: add options to enable PCI controller

2014-10-29 Thread Murali Karicheri
Signed-off-by: Murali Karicheri CC: Santosh Shilimkar CC: Russell King CC: Greg Kroah-Hartman --- v1 - fixed email ID for Santosh arch/arm/configs/keystone_defconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defc

Re: [PATCH 2/4] mm: gup: add get_user_pages_locked and get_user_pages_unlocked

2014-10-29 Thread Andrea Arcangeli
On Thu, Oct 09, 2014 at 12:47:23PM +0200, Peter Zijlstra wrote: > On Wed, Oct 01, 2014 at 10:56:35AM +0200, Andrea Arcangeli wrote: > > +static inline long __get_user_pages_locked(struct task_struct *tsk, > > + struct mm_struct *mm, > > +

Re: [RFC Patch] gpio: add GPIO hogging mechanism

2014-10-29 Thread Benoit Parrot
Maxime Ripard wrote on Wed [2014-Oct-29 11:45:59 +0100]: > Hi, > > On Tue, Oct 21, 2014 at 03:09:58PM -0500, Benoit Parrot wrote: > > Based on Boris Brezillion work this is a reworked patch > > of his initial GPIO hogging mechanism. > > This patch provides a way to initally configure specific GP

[PATCH 5/7] drbd: merge_bvec_fn: properly remap bvm->bi_bdev

2014-10-29 Thread Philipp Reisner
From: Lars Ellenberg This was not noticed for many years. Affects operation if md raid is used a backing device for DRBD. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_req.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/drbd/drbd_

[PATCH 6/7] drbd: Fix state change in case of connection timeout

2014-10-29 Thread Philipp Reisner
A connection timeout affects all volumes of a resource! Under the following conditions: A resource with multiple volumes AND ko-count >=1 AND a write request triggers the timeout (ko-count * timeout) DRBD's internal state gets confused. That in turn may lead to very miss leading follow up

Re: [PATCH] ARM: bcm2835: add device tree for Raspberry Pi model B+

2014-10-29 Thread Stephen Warren
On 10/29/2014 03:07 AM, Matthias Klein wrote: Am 29.10.2014 um 02:33 schrieb Stephen Warren: On 10/27/2014 06:52 PM, Matthias Klein wrote: The model B and B+ differ in the GPIO lines for ACT and PWR led. The PWR led on the B+ model is active low. This new file is almost identical to bcm2835-r

[PATCH] serial: msm: Add magic SysRq support in dmmode

2014-10-29 Thread Daniel Thompson
Currently the _dm RX handler detects breaks but does not pass any characters to uart_handle_sysrq_char(). The _dm optimizations combined with the port's spin lock make if difficult to pass all characters to the sysrq logic because we cannot safely call uart_handle_sysrq_char() when the lock is hel

[PATCH 2/7] drbd: Only use drbd_msg_put_info() in drbd_nl.c

2014-10-29 Thread Philipp Reisner
From: Andreas Gruenbacher Avoid generic netlink calls in other parts of the code base. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h | 1 - drivers/block/drbd/drbd_main.c | 17 +++-- drivers/block/drbd/drbd_nl.c | 2 +- 3 files

Re: [PATCH v2] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Mikael Svantesson
On 2014-10-29 17:05, Greg Kroah-Hartman wrote: > Please send this as a "correct" patch, not one with a whole bunch of > other stuff in it that I would have to hand-edit in order to apply > properly. > > Remember, you want to make it as easy as possible for me to accept your > patches, so far, this

[PATCH 3/7] drbd: fix race between role change and handshake

2014-10-29 Thread Philipp Reisner
Symptoms: If DRBD was "cleanly shut down" (all in sync, both Secondary before disconnect, identical data generation uuids), and then one side was promoted *during* the next connection handshake, the role change could confuse the handshake. The Primary would get stuck in WFBitmapS, the Secondary wo

[PATCH 7/7] drbd: Remove an useless copy of kernel_setsockopt()

2014-10-29 Thread Philipp Reisner
Old backward-compat cruft Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h | 29 - 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index d2a7589

[PATCH 0/7] RFC DRBD updates for 3.19

2014-10-29 Thread Philipp Reisner
Hi, these are the proposed DRBD changes for 3.19. All minor stuff and fixes. I will repost it in one week with the appropriate CC: stable header set, and eventual feedback integrated. Thanks! Andreas Gruenbacher (2): drbd: Minor cleanups drbd: Only use drbd_msg_put_info() in drbd_nl.c Lar

[PATCH 4/7] drbd: fix resync throttling initialization

2014-10-29 Thread Philipp Reisner
From: Lars Ellenberg If for some reason DRBD resync was the only activity on a backend device, drbd_rs_c_min_rate_throttle() would mistakenly decide that it is still initialization time, and keep throttling the resync. This patch explicitly initializes ->rs_last_events to the current backend eve

[PATCH 1/7] drbd: Minor cleanups

2014-10-29 Thread Philipp Reisner
From: Andreas Gruenbacher . Update comments . drbd_set_{in,out_of}_sync(): Remove unused parameters . Move common code into adm_del_resource() . Redefine ERR_MINOR_EXISTS -> ERR_MINOR_OR_VOLUME_EXISTS Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd

[PATCH 5/5] mm: gup: kvm use get_user_pages_unlocked

2014-10-29 Thread Andrea Arcangeli
Use the more generic get_user_pages_unlocked which has the additional benefit of passing FAULT_FLAG_ALLOW_RETRY at the very first page fault (which allows the first page fault in an unmapped area to be always able to block indefinitely by being allowed to release the mmap_sem). Signed-off-by: Andr

Re: [PATCH block/for-linus] writeback: fix a subtle race condition in I_DIRTY clearing

2014-10-29 Thread Jan Kara
On Fri 24-10-14 15:38:21, Tejun Heo wrote: > After invoking ->dirty_inode(), __mark_inode_dirty() does smp_mb() and > tests inode->i_state locklessly to see whether it already has all the > necessary I_DIRTY bits set. The comment above the barrier doesn't > contain any useful information - memory

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-29 Thread Andrew Bresticker
On Wed, Oct 29, 2014 at 2:43 AM, Thierry Reding wrote: > On Tue, Oct 28, 2014 at 03:27:50PM -0700, Andrew Bresticker wrote: > [...] >> diff --git >> a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padctl.txt >> b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-pad

[PATCH 3/5] mm: gup: use get_user_pages_unlocked within get_user_pages_fast

2014-10-29 Thread Andrea Arcangeli
This allows the get_user_pages_fast slow path to release the mmap_sem before blocking. Signed-off-by: Andrea Arcangeli --- arch/mips/mm/gup.c| 8 +++- arch/powerpc/mm/gup.c | 6 ++ arch/s390/mm/gup.c| 6 ++ arch/sh/mm/gup.c | 6 ++ arch/sparc/mm/gup.c | 6 ++--

[PATCH 4/5] mm: gup: use get_user_pages_unlocked

2014-10-29 Thread Andrea Arcangeli
This allows those get_user_pages calls to pass FAULT_FLAG_ALLOW_RETRY to the page fault in order to release the mmap_sem during the I/O. Signed-off-by: Andrea Arcangeli --- drivers/iommu/amd_iommu_v2.c | 6 ++ drivers/media/pci/ivtv/ivtv-udma.c | 6 ++ drivers/scsi/st.c

[PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-29 Thread Andrea Arcangeli
Some caller (like KVM) may want to set the gup_flags like FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to take a more appropriate action if get_user_pages runs into a memory failure. Signed-off-by: Andrea Arcangeli --- include/linux/mm.h | 4 mm/gup.c | 44 +

[PATCH 0/5] get_user_pages_locked|unlocked v1

2014-10-29 Thread Andrea Arcangeli
This patchset standalone is an optimization leveraging the page fault FAULT_FLAG_ALLOW_RETRY flag which allows the page fault paths to drop the mmap_sem before I/O. For the userfaultfd patchset this patch is instead a dependency as we need that flag always set the first time any thread attempts a

Re: [RFC Patch] gpio: add GPIO hogging mechanism

2014-10-29 Thread Benoit Parrot
Pantelis, Thanks for the feedback. Pantelis Antoniou wrote on Wed [2014-Oct-29 10:53:44 +0200]: > Hi Benoit, > > > On Oct 21, 2014, at 23:09 , Benoit Parrot wrote: > > > > Based on Boris Brezillion work this is a reworked patch > > of his initial GPIO hogging mechanism. > > This patch provid

Re: [PATCH 2/6] sched/dl: fix yield task artificial overrun

2014-10-29 Thread Juri Lelli
Hi, On 27/10/14 01:41, Wanpeng Li wrote: > The yield semantic of deadline class is to reduce remaining runtime to > zero, and then update_curr_dl() will stop it. However, comsumed bandwidth > is reduced from the budget of yield task again even if it has already been > set to zero which leads to

RE: Cache Allocation Technology Design

2014-10-29 Thread Auld, Will
I maybe repeating what Peter has just said but for elements in the hierarchy where the mask is the same as its parents mask there is no need for a separate CLOS even in the case where there are tasks in the group. So we can inherit the CLOS of the parent until which time both the mask is differe

Re: [PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread Cong Wang
(Adding netdev@...) On Wed, Oct 29, 2014 at 9:16 AM, Peter Zijlstra wrote: > > Dave, this relies on bits currently in tip/sched/core, if you're ok I'll > merge it through that tree. > > --- > Subject: netdev: Fix sleeping inside wait event > From: Peter Zijlstra > Date: Wed Oct 29 17:04:56 CET 2

Re: [PATCH][STABLE] audit: correct AUDIT_GET_FEATURE return message type

2014-10-29 Thread Richard Guy Briggs
On 14/10/29, Greg KH wrote: > On Wed, Oct 29, 2014 at 09:35:06AM -0400, Richard Guy Briggs wrote: > > When an AUDIT_GET_FEATURE message is sent from userspace to the kernel, it > > should reply with a message tagged as an AUDIT_GET_FEATURE type with a > > struct > > audit_feature. The current rep

[PATCH v3 01/13] clk: tegra124: Remove old emc clock

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen This clock has never been able to do anything. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- v2: * Don't remove emc_mux as it's being used by the MC clock now --- drivers/clk/tegra/clk-tegra124.c | 1 - 1 file changed, 1 deletion(-) diff --git a/d

[PATCH v3 02/13] of: Document long-ram-code property in nvidia,tegra20-apbmisc

2014-10-29 Thread Tomeu Vizoso
Needed to properly decode the ram code register. Signed-off-by: Tomeu Vizoso --- v3: * Clarify wording as suggested by Mikko --- Documentation/devicetree/bindings/misc/nvidia,tegra20-apbmisc.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/nv

Re: [PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808

2014-10-29 Thread Javier Martinez Canillas
Hello Chris, On 10/29/2014 04:40 PM, Doug Anderson wrote: >> regulator-min-microvolt = <75>; >> regulator-max-microvolt = <130>; >> regulator-name = "vdd_arm"; >> +

Re: [PATCH RESEND 1/7] arm64: dts: Add APM X-Gene USB DTS node

2014-10-29 Thread Mark Salter
On Mon, 2014-10-27 at 12:28 -0700, Feng Kan wrote: > This parch adds the device tree nodes for APM X-Gnene USB host controller. > Since X-Gene SOC supports maximum 2 USB ports, 2 dts node are added. > > Signed-off-by: Bao Truong > Signed-off-by: Feng Kan > --- > arch/arm64/boot/dts/apm-storm.dt

[PATCH v3 08/13] ARM: tegra: Add EMC timings to Jetson TK1 device tree

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen This adds a new file, tegra124-jetson-tk1-emc.dtsi that contains valid timings for the EMC memory clock. The file is included to the main Jetson TK1 device tree. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- v2: * Fix the unit addresses of the timin

Re: [for-next][PATCH 0/4] ftrace: Add dynamic trampoline support

2014-10-29 Thread Jiri Kosina
On Mon, 27 Oct 2014, Steven Rostedt wrote: > This adds the allocation of dynamic trampolines. It still does not > allow for dynamic ftrace_ops to use them on CONFIG_PREEMPT systems. > That will come in 3.20, as I want to test out call_rcu_tasks() for > a bit first on my own boxes. > > git://git

[PATCH v3 13/13] clk: tegra: Set the EMC clock as the parent of the MC clock

2014-10-29 Thread Tomeu Vizoso
On Tegra124, as we now have a proper driver for the EMC. Signed-off-by: Tomeu Vizoso --- drivers/clk/tegra/clk-divider.c | 2 +- drivers/clk/tegra/clk-tegra124.c | 13 + 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/clk/tegra/clk-divider.c b/drivers/clk/te

[PATCH v3 11/13] clk: tegra: Add EMC clock driver

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen The driver is currently only tested on Tegra124 Jetson TK1, but should work with other Tegra124 boards, provided that correct EMC tables are provided through the device tree. Older chip models have differing timing change sequences, so they are not currently supported. Sign

[PATCH v3 12/13] memory: tegra: Add debugfs entry for getting and setting the EMC rate

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen Will be very useful when tuning memory scaling. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- drivers/memory/tegra/tegra124-emc.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/memory/tegra/tegra124-emc.

[PATCH v3 10/13] memory: tegra: Add EMC (external memory controller) driver

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen Implements functionality needed to change the rate of the memory bus clock. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- v2: * Use subsys_initcall(), so it gets probed after the MC driver and before the CAR driver --- drivers/memory/Kcon

[PATCH v3 06/13] of: Add Tegra124 EMC bindings

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen Add binding documentation for the nvidia,tegra124-emc device tree node. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- v2: * Specify the unit addresses for the timings and timing nodes --- .../bindings/memory-controllers/tegra-emc.txt | 118 +++

[PATCH v3 03/13] soc/tegra: Add ram code reader helper

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen Needed for the EMC and MC drivers to know what timings from the DT to use. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- drivers/soc/tegra/fuse/tegra-apbmisc.c | 19 +++ include/soc/tegra/fuse.h | 1 + 2 files changed, 20 i

[PATCH v3 09/13] memory: tegra: Add API needed by the EMC driver

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen The EMC driver needs to know the number of external memory devices and also needs to update the EMEM configuration based on the new rate of the memory bus. To know how to update the EMEM config, looks up the values of the burst regs in the DT, for a given timing. Signed-of

[PATCH v3 04/13] of: document new emc-timings subnode in nvidia,tegra124-car

2014-10-29 Thread Tomeu Vizoso
The EMC clock needs some extra information for changing its rate. Signed-off-by: Tomeu Vizoso --- .../bindings/clock/nvidia,tegra124-car.txt | 46 +- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/nvidia,tegra124

[PATCH v3 05/13] of: Document timings subnode of nvidia,tegra-mc

2014-10-29 Thread Tomeu Vizoso
The MC driver needs some timing-specific information to program the EMEM during a rate change of the EMC clock. Signed-off-by: Tomeu Vizoso --- .../memory-controllers/nvidia,tegra-mc.txt | 46 +- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/Document

[PATCH v3 07/13] ARM: tegra: Add EMC to Tegra124 device tree

2014-10-29 Thread Tomeu Vizoso
From: Mikko Perttunen This adds a node for the EMC memory controller. It is always enabled, but only provides read-only functionality without board-specific timing tables. Signed-off-by: Mikko Perttunen Signed-off-by: Tomeu Vizoso --- arch/arm/boot/dts/tegra124.dtsi | 7 +++ 1 file change

[PATCH v3 00/13] Tegra124 EMC (external memory controller) support

2014-10-29 Thread Tomeu Vizoso
Hello, in this v3 you can find these changes: * Have the EMC clock use the emc_lock when writing to the register it shares with the MC clock * Clarify the wording of the new property added to nvidia,tegra20-apbmisc, as suggested by Mikko * On Tegra124, have the EMC clock be the parent of the

Re: [GIT PULL] Fix for Integrity subsystem null pointer deref

2014-10-29 Thread Andy Lutomirski
On Oct 29, 2014 6:00 AM, "Mimi Zohar" wrote: > > On Tue, 2014-10-28 at 22:08 -0700, Andy Lutomirski wrote: > > On Tue, Oct 28, 2014 at 8:55 PM, James Morris wrote: > > > These changes fix a bug in xattr handling, where the evm and ima > > > inode_setxattr() functions do not check for empty xattrs

Re: [RFC Patch] gpio: add GPIO hogging mechanism

2014-10-29 Thread Benoit Parrot
Alexandre, Thanks for the feedback. Alexandre Courbot wrote on Wed [2014-Oct-29 16:09:59 +0900]: > Sorry for the delay in reviewing. Adding Jiri and Pantelis who might > want to extend over this patch and thus will likely have interesting > comments to make. > > On Wed, Oct 22, 2014 at 5:09 AM,

Re: [PATCH tip/core/rcu 4/7] rcu: Unify boost and kthread priorities

2014-10-29 Thread Paul E. McKenney
On Wed, Oct 29, 2014 at 12:01:46PM +0100, Peter Zijlstra wrote: > On Tue, Oct 28, 2014 at 03:22:59PM -0700, Paul E. McKenney wrote: > > From: Clark Williams > > > > Rename CONFIG_RCU_BOOST_PRIO to CONFIG_RCU_KTHREAD_PRIO and use this > > value for both the per-CPU kthreads (rcuc/N) and the rcu bo

[PATCH] netdev: Fix sleeping inside wait event

2014-10-29 Thread Peter Zijlstra
On Tue, Oct 28, 2014 at 10:25:41PM +0800, Fengguang Wu wrote: > [ 122.247299] [ cut here ] > [ 122.247328] WARNING: CPU: 0 PID: 61 at kernel/sched/core.c:7312 > __might_sleep+0x50/0x249() > [ 122.247334] do not call blocking ops when !TASK_RUNNING; state=2 set at > [] p

Re: [patch] iwlwifi: cleanup a mask shift in iwlagn_bt_traffic_is_sco()

2014-10-29 Thread Emmanuel Grumbach
On Wed, Oct 29, 2014 at 6:08 PM, Dan Carpenter wrote: > The shift operation is higher precedence so the code is wrong and it > sets of a static checker warning. But it doesn't affect real life > because BT_UART_MSG_FRAME3SCOESCO_POS is zero so the shift is a no-op. > > I have re-written it in nor

Re: [PATCH 00/13] HID: add support of Logitech touchpads and special devices

2014-10-29 Thread Jiri Kosina
On Wed, 29 Oct 2014, Benjamin Tissoires wrote: > No worries. I definitively understand. Being close to the merge window > is never a good time to send you patches and I am sure SuSE asks you a > lot also :) Indeed, sometimes the flow of inbound things is just unstoppable :) > > I am almost don

[PATCH v3 1/3] x86: process: Unify 32-bit and 64-bit copy_thread I/O bitmap handling

2014-10-29 Thread Josh Triplett
The 32-bit and 64-bit versions of copy_thread have functionally identical handling for copying the I/O bitmap, modulo differences in error handling. Clean up the error paths in both by moving the copy of the I/O bitmap to the end, to eliminate the need to free it if subsequent copy steps fail; mov

[patch] Bluetooth: 6lowpan: use after free in disconnect_devices()

2014-10-29 Thread Dan Carpenter
This was accidentally changed from list_for_each_entry_safe() to list_for_each_entry() so now it has a use after free bug. I've changed it back. Fixes: 90305829635d ('Bluetooth: 6lowpan: Converting rwlocks to use RCU') Signed-off-by: Dan Carpenter diff --git a/net/bluetooth/6lowpan.c b/net/blue

Re: [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration

2014-10-29 Thread Greg KH
On Tue, Oct 28, 2014 at 11:09:10PM -0700, Tristan Lelong wrote: > This patch removes tabs used to align variable names in declaration and > assignation. > It replaces them with exactly one space. Why? This seems like a totally unneeded change, sorry. greg k-h -- To unsubscribe from this list: s

[PATCH v3 3/3] x86: Support compiling out userspace I/O (iopl and ioperm)

2014-10-29 Thread Josh Triplett
On the vast majority of modern systems, no processes will use the userspsace I/O syscalls, iopl and ioperm. Add a new config option, CONFIG_X86_IOPORT, to support configuring them out of the kernel entirely. Most current systems do not run programs using these syscalls, so X86_IOPORT does not dep

[patch] iwlwifi: cleanup a mask shift in iwlagn_bt_traffic_is_sco()

2014-10-29 Thread Dan Carpenter
The shift operation is higher precedence so the code is wrong and it sets of a static checker warning. But it doesn't affect real life because BT_UART_MSG_FRAME3SCOESCO_POS is zero so the shift is a no-op. I have re-written it in normal style and with parenthesis as a cleanup and to silence the s

Re: [RFCv1] Media Token API needs - Was: Re: [alsa-devel] [PATCH v2 5/6] sound/usb: pcm changes to use media token api

2014-10-29 Thread Shuah Khan
On 10/28/2014 05:42 PM, Mauro Carvalho Chehab wrote: > Hi Shuah, > > I'm understanding that you're collecting comments to write a RFC with the > needs by the media token, right? > > I'm sending you my contributions to such text. See enclosed. > > I suggest to change the subject and submit this o

Re: [PATCH v2] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Greg Kroah-Hartman
On Wed, Oct 29, 2014 at 08:25:30AM +0100, Mikael Svantesson wrote: > Signed-off-by: Mikael Svantesson > --- > drivers/staging/skein/skein_api.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/skein/skein_api.c > b/drivers/staging/skein/skein_api.c > inde

Re: [PATCH 0/2] Qualcomm PM8941 power key driver

2014-10-29 Thread Ivan T. Ivanov
Hi Bjorn, On Fri, 2014-10-24 at 08:23 -0700, Bjorn Andersson wrote: > On Wed 08 Oct 02:50 PDT 2014, Ivan T. Ivanov wrote: > > > On Tue, 2014-10-07 at 11:46 -0700, Bjorn Andersson wrote: > > > On Tue 07 Oct 02:01 PDT 2014, Ivan T. Ivanov wrote: > > > > > > > Hi Bjorn, > > > > > > > > On Mon, 2

[PATCH 4/4] [media] solo6x10: don't turn off/on encoder interrupt in processing loop

2014-10-29 Thread Andrey Utkin
The used approach actually cannot prevent new encoder interrupt to appear, because interrupt handler can execute in different thread, and in current implementation there is still race condition regarding this. Also from practice the code with this change seems to work as stable as before. Signed-o

[PATCH 2/4] [media] solo6x10: free DMA allocation when releasing encoder

2014-10-29 Thread Andrey Utkin
Fixes this warning: [ 956.730136] [ cut here ] [ 956.730143] WARNING: CPU: 1 PID: 10134 at lib/dma-debug.c:963 dma_debug_device_change+0x191/0x1f0() [ 956.730146] pci :07:05.0: DMA-API: device driver has pending DMA allocations while released from device [count=8]

[PATCH 3/4] [media] solo6x10: bind start & stop of encoded frames processing thread to device (de)init

2014-10-29 Thread Andrey Utkin
Before, it was called from individual encoder (de)init procedures, which lead to spare threads running (which were actually lost, leaked). The current fix uses trivial approach, and the downside is that the processing thread is working always, even when there's no consumer. Signed-off-by: Andrey U

Re: [PATCH 1/1 net-next] cfg80211: fix set but not used warning in nl80211_channel_switch()

2014-10-29 Thread Johannes Berg
On Sat, 2014-10-25 at 17:57 +0200, Fabian Frederick wrote: > radar_detect_width is unused since commit 97dc94f1d933 > ("cfg80211: remove channel_switch combination check") Applied, thanks. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

[PATCH 1/4] [media] solo6x10: free vb2 buffers on stop_streaming

2014-10-29 Thread Andrey Utkin
This fixes warning from drivers/media/v4l2-core/videobuf2-core.c:2144 Signed-off-by: Andrey Utkin --- drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c b/drivers/media/pc

Re: [PATCH] USB: cdc-acm: only raise DTR on transitions from B0

2014-10-29 Thread Johan Hovold
On Wed, Oct 29, 2014 at 11:56:02PM +0800, Greg Kroah-Hartman wrote: > On Wed, Oct 29, 2014 at 04:30:40PM +0100, Johan Hovold wrote: > > Make sure to only raise DTR on transitions from B0 in set_termios. > > > > Also allow set_termios to be called from open with a termios_old of > > NULL. Note that

[PATCH] drivers: s390: net: ctcm: migrate variables to handle y2038 problem

2014-10-29 Thread Aya Mahfouz
This patch is concerned with migrating the time variables for the s390 network driver. The changes handle the y2038 problem where timespec will overflow in the year 2038. timespec64 and unsigned long long were used instead of timespec and unsigned long respectively in two files. All timespec variab

[PATCH v3 2/3] x86: tss: Eliminate fragile calculation of TSS segment limit

2014-10-29 Thread Josh Triplett
__set_tss_desc has a complex calculation of the TSS segment limit, duplicating the quirky details of the I/O bitmap array length, and requiring a complex comment to explain. Replace that calculation with a simpler one based on the offsetof the "stack" field that follows the array. That then remov

Re: Fwd: [PATCH] x86, MCE, AMD: save IA32_MCi_STATUS before machine_check_poll() resets it

2014-10-29 Thread Aravind Gopalakrishnan
On 10/22/2014 4:30 AM, Borislav Petkov wrote: Hi Aravind, question: what's the story with MC?_MISC[IntP], is that bit still there? Because I don't see it in my BKDGs here. Yep, It exists. Maybe you are referring to Fam15h M0h BKDG? I think the bit was introduced only from F15h M30h onwards.

Re: [RFC v2 4/4] backports: add kernl integration support to gentree.py

2014-10-29 Thread Luis R. Rodriguez
On Wed, Oct 29, 2014 at 04:36:59PM +0100, Stefan Assmann wrote: > On 29.10.2014 09:21, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > Signed-off-by: Luis R. Rodriguez > > --- > > backport/Kconfig | 54 > > backport/Kconfig.sources

Re: [PATCH v2 00/20] rtc: omap: fixes and power-off feature

2014-10-29 Thread Johan Hovold
On Wed, Oct 29, 2014 at 08:36:41AM -0700, Guenter Roeck wrote: > On Wed, Oct 29, 2014 at 02:35:26PM +0100, Johan Hovold wrote: > > On Wed, Oct 29, 2014 at 06:20:40AM -0700, Guenter Roeck wrote: > > > On 10/29/2014 05:34 AM, Johan Hovold wrote: > > > > And what about any power-off latencies? Should

Re: [PATCH v2] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Mikael Svantesson
On 2014-10-29 09:41, Greg Kroah-Hartman wrote: > On Tue, Oct 28, 2014 at 09:07:00PM +0100, Mikael Svantesson wrote: >> Signed-off-by: Mikael Svantesson >> --- >> drivers/staging/skein/skein_api.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/staging/skein/ske

Re: [PATCH] USB: cdc-acm: only raise DTR on transitions from B0

2014-10-29 Thread Greg Kroah-Hartman
On Wed, Oct 29, 2014 at 04:30:40PM +0100, Johan Hovold wrote: > Make sure to only raise DTR on transitions from B0 in set_termios. > > Also allow set_termios to be called from open with a termios_old of > NULL. Note that DTR will not be raised prematurely in this case. > > Signed-off-by: Johan Ho

Re: [PATCH tip/core/rcu 3/7] rcu: Avoid IPIing idle CPUs from synchronize_sched_expedited()

2014-10-29 Thread Paul E. McKenney
On Wed, Oct 29, 2014 at 11:59:54AM +0100, Peter Zijlstra wrote: > On Tue, Oct 28, 2014 at 03:22:58PM -0700, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > Currently, synchronize_sched_expedited() sends IPIs to all online CPUs, > > even those that are idle or executing in nohz_full=

e1000_netpoll(): disable_irq() triggers might_sleep() on linux-next

2014-10-29 Thread Sabrina Dubroca
_exit+0x56/0xe0 Preemption disabled at:[] printk_emit+0x31/0x33 CPU: 1 PID: 1 Comm: systemd Not tainted 3.18.0-rc2-next-20141029-dirty #222 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140617_173321-var-lib-archbuild-testing-x86_64-tobias 04/01/2014 81a82291 f

Re: [PATCH v2 00/20] rtc: omap: fixes and power-off feature

2014-10-29 Thread Johan Hovold
On Wed, Oct 29, 2014 at 08:25:02AM -0700, Guenter Roeck wrote: > On Wed, Oct 29, 2014 at 02:22:44PM +0100, Johan Hovold wrote: > > On Wed, Oct 29, 2014 at 01:10:20PM +, Russell King - ARM Linux wrote: > > > On Wed, Oct 29, 2014 at 01:34:18PM +0100, Johan Hovold wrote: > > > > On Tue, Oct 28, 20

Re: [PATCH v2 01/02] staging:lustre:lnet:selftest: fix sparse warnings

2014-10-29 Thread Greg KH
On Tue, Oct 28, 2014 at 09:50:18PM +0400, Anton Saraev wrote: > Fix sparse warnings: symbol X was not declared. Should it be static? > Some functions used only in files where they are declared. They can > be static. > > Signed-off-by: Anton Saraev > --- > drivers/staging/lustre/lnet/selftest/con

Re: [PATCH v2 0/2] ACPI/EC: Fix regressions on Samsung hardware.

2014-10-29 Thread Rafael J. Wysocki
On Wednesday, October 29, 2014 11:33:33 AM Lv Zheng wrote: > It is reported that the Samsung EC firmware behaves differently than Acer > EC firmware. And then previous 2 commits that fix Acer issues have broken > Samsung hardware. > > This patchset fixes the regressions. > > Lv Zheng (2): > Rev

Re: [PATCH][STABLE] audit: correct AUDIT_GET_FEATURE return message type

2014-10-29 Thread Greg KH
On Wed, Oct 29, 2014 at 09:35:06AM -0400, Richard Guy Briggs wrote: > When an AUDIT_GET_FEATURE message is sent from userspace to the kernel, it > should reply with a message tagged as an AUDIT_GET_FEATURE type with a struct > audit_feature. The current reply is a message tagged as an AUDIT_GET >

Re: linux-next: manual merge of the tiny tree with the tip tree

2014-10-29 Thread Josh Triplett
On Tue, Sep 23, 2014 at 10:36:03AM +0200, Ingo Molnar wrote: > * Josh Triplett wrote: > > I've dropped tiny/no-io from tiny/next; I'll poke at it further > > and resubmit for the x86 tree later, likely not for the next > > merge window at this point. > > > > Thanks for the feedback on process;

[PATCH 1/1] Documentation: image containing ucode needs to be uncompressed

2014-10-29 Thread Christian Hesse
While the regular initramfs is allowed to be compressed, the image containing microcode is not. Signed-off-by: Christian Hesse --- Documentation/x86/early-microcode.txt | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/x86/early-microcode.txt b/Documentati

Re: [patch v2] Documentation/SubmittingPatches: Reported-by tags and permission

2014-10-29 Thread Rob Landley
On 10/29/14 05:01, Dan Carpenter wrote: > The reported-by text says you have to ask for permission, but that > should only be if the bug was reported in private. These days the > standard is to always give reported-by credit or it's considered a bit > rude. > > Signed-off-by: Dan Carpenter > >

Re: [PATCH] staging: lustre: fix sparse warning for static declarations

2014-10-29 Thread Greg Kroah-Hartman
On Sat, Oct 25, 2014 at 07:09:34PM +, Junien Fridrick wrote: > This patch fixes the following sparse warnings : > > drivers/staging/lustre/lnet/lnet/router_proc.c:167:5: warning: symbol > 'proc_lnet_routes' was not declared. Should it be static? > drivers/staging/lustre/lnet/lnet/router_proc.

Re: [PATCH v2 02/02] staging:lustre:lnet:selftest: remove unused function

2014-10-29 Thread Greg KH
On Tue, Oct 28, 2014 at 09:50:19PM +0400, Anton Saraev wrote: > Function lnet_selftest_structure_assertion is never used and can > be removed. > > Signed-off-by: Anton Saraev > --- > drivers/staging/lustre/lnet/selftest/module.c | 11 --- > 1 file changed, 11 deletions(-) > > diff --git

Re: [PATCH v2] staging: skein: skein_api.c: removed space before ','

2014-10-29 Thread Greg Kroah-Hartman
On Tue, Oct 28, 2014 at 09:07:00PM +0100, Mikael Svantesson wrote: > Signed-off-by: Mikael Svantesson > --- > drivers/staging/skein/skein_api.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/skein/skein_api.c > b/drivers/staging/skein/skein_api.c > inde

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-29 Thread Paul E. McKenney
On Wed, Oct 29, 2014 at 03:16:23PM +, Alexander Gordeev wrote: > On Wed, Oct 29, 2014 at 07:34:39AM -0700, Paul E. McKenney wrote: > > On Wed, Oct 29, 2014 at 01:45:19PM +, Alexander Gordeev wrote: > > > On Wed, Oct 29, 2014 at 05:47:29AM -0700, Paul E. McKenney wrote: > > > > On Wed, Oct 2

Re: [PATCH 1/1] Octeon: Staging Driver: Remove coding warnings

2014-10-29 Thread Greg KH
On Sun, Oct 12, 2014 at 01:13:51PM +0530, Akshay Sarode wrote: > Checkpatch coding warnings of 'Missing a blank line after declaration' > > Signed-off-by: Akshay Sarode > --- > drivers/staging/octeon/ethernet-tx.c | 11 +++ > 1 file changed, 11 insertions(+) Someone else already did thi

[PATCH v2] cpufreq: Guard against not-yet-initialized policies in cpufreq_cpu_get()

2014-10-29 Thread Tomeu Vizoso
There's a substantial window of opportunity from the time the policy objects are created until they are initialized, causing this: WARNING: CPU: 1 PID: 64 at include/linux/kref.h:47 kobject_get+0x64/0x70() Modules linked in: CPU: 1 PID: 64 Comm: irq/77-tegra-ac Not tainted 3.18.0-rc1-next-2014102

Re: [PATCH] Staging: dgnc: fix macro coding style issue in digi.h

2014-10-29 Thread Greg KH
On Wed, Oct 29, 2014 at 02:12:38AM +0800, Cheng-Yi He wrote: > This is a patch to the digi.h file that fixes up the following error > found by the checkpatch tool. > ERROR: Macros with complex values should be enclosed in parentheses > > Signed-off-by: Cheng-Yi He > --- > drivers/staging/dgnc/di

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