[PATCH v2 4/8] imx-drm: ipu-dc: Wait for DC_FC_1 / DP_SF_END interrupt

2014-04-14 Thread Philipp Zabel
Wait for the DC Frame Complete or DP Sync Flow End interrupts before disabling DC channels. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Moved disable_irq() out of dc_irq_handler() --- drivers/staging/imx-drm/ipu-v3/ipu-dc.c | 71 +++--

[PATCH v2 2/8] imx-drm: ipu-common: Add helpers to check for a busy IDMAC channel and to busywait for an interrupt

2014-04-14 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/ipu-v3/ipu-common.c | 22 ++ drivers/staging/imx-drm/ipu-v3/ipu-prv.h| 3 +++ 2 files changed, 25 insertions(+) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-common.c

[PATCH v2 1/8] imx-drm: ipu-common: add ipu_map_irq to request non-IDMAC interrupts

2014-04-14 Thread Philipp Zabel
This allows to request the DC related interrupts. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/ipu-v3/imx-ipu-v3.h | 1 + drivers/staging/imx-drm/ipu-v3/ipu-common.c | 19 +-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git

[PATCH v2 0/8] Reorder i.MX IPU display enable/disable sequence

2014-04-14 Thread Philipp Zabel
Repeatedly enabling and disabling the display currently can lead to a state in which the IPU doesn't produce a valid signal anymore because we disable IPU submodules before they can finish their interaction. This series reorders the enable/disable sequence so that we first wait for the DC/DP to

[PATCH v2 3/8] imx-drm: ipu-dmfc: Wait for FIFOs to run empty before disabling

2014-04-14 Thread Philipp Zabel
Disabling the DMFC module while there is still data in the FIFOs could cause the new frame before end of frame error state when the DMFC is enabled again. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/staging/imx-drm/ipu-v3/ipu-dmfc.c | 25 +++-- 1 file

[PATCH v2 7/8] imx-drm: ipuv3-crtc: Change display enable/disable order

2014-04-14 Thread Philipp Zabel
Now that ipu_dc_disable_channel correctly waits for the channel to finish, we can reorder the enable/disable order to first stop the DC and DI and only then disable the IDMAC. Enabling is done the other way around: IDMAC first, then DC, then DI. This avoids an issue where sometimes the channel

RE: [PATCH] drm/radeon: memory leak on bo reservation failure.

2014-04-14 Thread Deucher, Alexander
-Original Message- From: Quentin Casasnovas [mailto:quentin.casasno...@oracle.com] Sent: Tuesday, March 18, 2014 12:17 PM To: David Airlie Cc: linux-kernel@vger.kernel.org; Quentin Casasnovas; sta...@vger.kernel.org; Koenig, Christian; Deucher, Alexander Subject: [PATCH] drm/radeon:

[PATCHv2 11/11] backlight: pwm_bl: retrieve configured pwm period

2014-04-14 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period from platform_data. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/video/backlight/pwm_bl.c | 8 +--- 1 file changed, 5 insertions(+),

[PATCHv2 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-omap2/board-omap3beagle.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index

Re: [PATCH] block/blk-core.c: print readable string instead of values.

2014-04-14 Thread Muthukumar R
FYI, bi_rw tracks more than WRITE or READ... On Sat, Apr 12, 2014 at 12:22 AM, Jianyu Zhan nasa4...@gmail.com wrote: Print the r/w direction string instead of internal values. Signed-off-by: Jianyu Zhan nasa4...@gmail.com --- block/blk-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCHv2 09/11] ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-pxa/hx4700.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 0788a1f171fe..c66ad4edc5e3 100644 ---

[PATCHv2 08/11] ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-shmobile/board-armadillo800eva.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c

[PATCHv2 10/11] leds: leds-pwm: retrieve configured pwm period

2014-04-14 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/leds/leds-pwm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCHv2 05/11] ARM: pxa: hx4700: initialize all the struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct platform_pwm_backlight_data as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-pxa/hx4700.c | 9 - 1 file changed, 8 insertions(+), 1

Re: [PATCH RESEND 04/11] signals: rename rm_from_queue_full() to flush_sigqueue_mask()

2014-04-14 Thread Andrew Morton
On Mon, 14 Apr 2014 17:19:59 +0200 Oleg Nesterov o...@redhat.com wrote: rm_from_queue_full looks ugly and misleading, especially now that rm_from_queue() has gone away. Rename it to flush_sigqueue_mask(), this matches flush_sigqueue() we already have. Also remove the obsolete comment which

[PATCHv2 01/11] pwm: add period and polarity to struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Adds a period and a polarity member to struct pwm_lookup so that when performing a lookup using the lookup table instead of device tree, we are able to set the period and the polarity accordingly like what is done in of_pwm_xlate_with_flags. The period and polarity can be set unconditionally as

[PATCHv2 06/11] pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
Now that PWM_LOOKUP is not used anymore, modify it to initialize all the members of struct pwm_lookup. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/pwm.txt | 3 ++- include/linux/pwm.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff

[PATCHv2 00/11] improve PWM lookup support without device tree

2014-04-14 Thread Alexandre Belloni
Hi, A patch set as suggested by Thierry to make lookup with the lookup table instead of device tree behave more like when using device tree. The first patch adds a period and a polarity member to the lookup table and use those to set period and polarity. Patch 2, 4 and 5 are making use of those

[PATCHv2 04/11] ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct led_pwm as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-omap2/board-omap3beagle.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-)

[PATCHv2 03/11] pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data

2014-04-14 Thread Alexandre Belloni
The struct tpu_pwm_platform_data is not used anymore and the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pwm/pwm-renesas-tpu.c | 19 +++

[PATCHv2 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
Initializing all the struct pwm_lookup members allows to get rid of the struct tpu_pwm_platform_data as the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-shmobile/board-armadillo800eva.c | 20

[Patch v5 0/6] Quaternion support

2014-04-14 Thread Srinivas Pandruvada
v5: Only change is for aligning function paramaters as suggested by Joe Perches Srinivas Pandruvada (6): devres: introduce API devm_kmemdup IIO: core: Introduce read_raw_multi IIO: core: Modify scan element type IIO: core: Add quaternion modifier iio: hid-sensors: Added device rotation

[Patch v5 5/6] iio: hid-sensors: Added device rotation support

2014-04-14 Thread Srinivas Pandruvada
Added usage id processing for device rotation. This uses IIO interfaces for triggered buffer to present data to user mode.This uses HID sensor framework for registering callback events from the sensor hub. Data is exported to user space in the form of quaternion rotation format. Signed-off-by:

Re: [PATCH 2/2] pda_power: Unregister USB notifier in pda_power_remove()

2014-04-14 Thread Mathias Krause
On 14 April 2014 23:35, Felipe Balbi ba...@ti.com wrote: On Sun, Mar 30, 2014 at 03:34:15PM +0200, Mathias Krause wrote: If we've registered a notifier in pda_power_probe() we must deregister it in pda_power_remove() to not let it work on stale data like, e.g., the charger timer. Cc: Felipe

[Patch v5 6/6] iio: Added ABI description for quaternion

2014-04-14 Thread Srinivas Pandruvada
Added documentation for reading quaternion components for 3D rotations. Signed-off-by: Srinivas Pandruvada srinivas.pandruv...@linux.intel.com --- Documentation/ABI/testing/sysfs-bus-iio | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio

[Patch v5 4/6] IIO: core: Add quaternion modifier

2014-04-14 Thread Srinivas Pandruvada
Added quaternion in the list of supported modifiers. Signed-off-by: Srinivas Pandruvada srinivas.pandruv...@linux.intel.com --- drivers/iio/industrialio-core.c | 1 + include/linux/iio/types.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/iio/industrialio-core.c

Re: [PATCH RESEND 07/11] signals: jffs2: fix the wrong usage of disallow_signal()

2014-04-14 Thread Andrew Morton
hm, 6, 7, 8 and 9 hit my inbox via the you-me route but I didn't get the second copy of those 4 via the vger-me route. And several in the series remain lost https://lkml.org/lkml/2014/4/14/ received 4,5,6,7,8,9,10,11 but seems to be missing 0,1,2,3. Something is screwed up somewhere. -- To

[PATCH cgroup/for-3.16] cgroup: add documentation about unified hierarchy

2014-04-14 Thread Tejun Heo
Hello, Unified hierarchy is finally out for review [1][2]. This patch adds the documentation which describes the design and rationales. If you can think of more people to cc, please go ahead. If you have any comments and/or questions, please don't hesitate. Thanks. [1]

[Patch v5 2/6] IIO: core: Introduce read_raw_multi

2014-04-14 Thread Srinivas Pandruvada
This callback is introduced to overcome some limitations of existing read_raw callback. The functionality of both existing read_raw and read_raw_multi is similar, both are used to request values from the device. The current read_raw callback allows only two return values. The new read_raw_multi

Re: [PATCH 2/2] pda_power: Unregister USB notifier in pda_power_remove()

2014-04-14 Thread Felipe Balbi
On Tue, Apr 15, 2014 at 12:07:13AM +0200, Mathias Krause wrote: On 14 April 2014 23:35, Felipe Balbi ba...@ti.com wrote: On Sun, Mar 30, 2014 at 03:34:15PM +0200, Mathias Krause wrote: If we've registered a notifier in pda_power_probe() we must deregister it in pda_power_remove() to not let

[PATCH] drm/radeon: fix VCE fence command

2014-04-14 Thread Christoph Jaeger
Due to a type mismatch that causes an implicit type conversion, the upper 32 bits of the GPU address have been zeroed out when adding to the command buffer. Picked up by Coverity - CID 1198624. Signed-off-by: Christoph Jaeger christophjae...@linux.com --- drivers/gpu/drm/radeon/radeon_vce.c | 2

Re: [PATCH v2 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-04-14 Thread Iyappan Subramanian
Hi David, Thanks for the review comments. Please find my responses inline. Thanks, Iyappan On Sat, Apr 12, 2014 at 1:55 PM, David Miller da...@davemloft.net wrote: From: Iyappan Subramanian isubraman...@apm.com Date: Fri, 11 Apr 2014 20:06:24 -0700 This patch adds network driver for APM

Re: [PATCH 2/2] pda_power: Unregister USB notifier in pda_power_remove()

2014-04-14 Thread Mathias Krause
On 15 April 2014 00:08, Felipe Balbi ba...@ti.com wrote: On Tue, Apr 15, 2014 at 12:07:13AM +0200, Mathias Krause wrote: On 14 April 2014 23:35, Felipe Balbi ba...@ti.com wrote: On Sun, Mar 30, 2014 at 03:34:15PM +0200, Mathias Krause wrote: If we've registered a notifier in

[Patch v5 3/6] IIO: core: Modify scan element type

2014-04-14 Thread Srinivas Pandruvada
The current scan element type uses the following format: [be|le]:[s|u]bits/storagebits[shift]. To specify multiple elements in this type, added a repeat value. So new format is: [be|le]:[s|u]bits/storagebits{X[repeat]}[shift]. Here X is specifying how may times, real/storage bits are

Re: [PATCH v2 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver

2014-04-14 Thread Iyappan Subramanian
Hi Florian, Thanks for the review comments. Please find my responses inline. On Sat, Apr 12, 2014 at 11:55 AM, Florian Fainelli f.faine...@gmail.com wrote: 2014-04-11 20:06 GMT-07:00 Iyappan Subramanian isubraman...@apm.com: This patch adds documentation for APM X-Gene SoC ethernet DTS

RE: [PATCH] drm/radeon: fix VCE fence command

2014-04-14 Thread Deucher, Alexander
-Original Message- From: Christoph Jaeger [mailto:christophjae...@linux.com] Sent: Monday, April 14, 2014 6:10 PM To: Deucher, Alexander; Koenig, Christian; airl...@linux.ie Cc: dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org; Christoph Jaeger Subject: [PATCH]

[Patch v5 1/6] devres: introduce API devm_kmemdup

2014-04-14 Thread Srinivas Pandruvada
Introduce devm_kmemdup, which uses resource managed kmalloc. There are several request from maintainers to add this instead of using kmemdup. Signed-off-by: Srinivas Pandruvada srinivas.pandruv...@linux.intel.com --- Documentation/driver-model/devres.txt | 1 + drivers/base/devres.c

Re: [PATCH v2 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver

2014-04-14 Thread Iyappan Subramanian
Hi Ben, Thanks for the review comments. Please find my responses inline. Thanks, Iyappan On Mon, Apr 14, 2014 at 6:06 AM, Ben Dooks ben.do...@codethink.co.uk wrote: On 12/04/14 04:06, Iyappan Subramanian wrote: This patch adds documentation for APM X-Gene SoC ethernet DTS binding.

Re: [Patch v5 2/6] IIO: core: Introduce read_raw_multi

2014-04-14 Thread Peter Meerwald
This callback is introduced to overcome some limitations of existing read_raw callback. The functionality of both existing read_raw and read_raw_multi is similar, both are used to request values from the device. The current read_raw callback allows only two return values. The new

Re: [PATCH v2 0/8] Reorder i.MX IPU display enable/disable sequence

2014-04-14 Thread Russell King - ARM Linux
On Mon, Apr 14, 2014 at 11:53:15PM +0200, Philipp Zabel wrote: Repeatedly enabling and disabling the display currently can lead to a state in which the IPU doesn't produce a valid signal anymore because we disable IPU submodules before they can finish their interaction. Yes, this appears to

Re: [patch 2/2] lib/string.c: strlcpy() might read too far

2014-04-14 Thread Dave Jones
On Wed, Apr 02, 2014 at 11:47:31AM +0300, Dan Carpenter wrote: Imagine you have a user controlled variable at the end of a struct which is allocated at the end of a page. The strlen() could read beyond the mapped memory and cause an oops. Probably there are two reasons why we have

[PATCH] mmc: sdhci-pci: Remove useless check for slots == 0

2014-04-14 Thread Bjorn Helgaas
Remove the check for slots == 0 because it can never be 0 here. Found by Coverity (CID 744269). Signed-off-by: Bjorn Helgaas bhelg...@google.com --- drivers/mmc/host/sdhci-pci.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c

Re: [PATCHSET cgroup/for-3.16] cgroup: implement cgroup.populated

2014-04-14 Thread Greg KH
On Mon, Apr 14, 2014 at 05:31:00PM -0400, Tejun Heo wrote: On Wed, Apr 09, 2014 at 11:07:29AM -0400, Tejun Heo wrote: This patchset is on top of cgroup: implement unified hierarchy patchset[1] and availalbe in the following git branch.

[PATCH] xen/pci: Remove unused dev_err() string

2014-04-14 Thread Bjorn Helgaas
We previously verified that action is either BUS_NOTIFY_ADD_DEVICE or BUS_NOTIFY_DEL_DEVICE, so there's no need for the default ? case. Found by Coverity (CID 146520). Signed-off-by: Bjorn Helgaas bhelg...@google.com --- drivers/xen/pci.c |3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH] block/blk-core.c: print readable string instead of values.

2014-04-14 Thread Joe Perches
On Mon, 2014-04-14 at 15:00 -0700, Muthukumar R wrote: FYI, bi_rw tracks more than WRITE or READ... On Sat, Apr 12, 2014 at 12:22 AM, Jianyu Zhan nasa4...@gmail.com wrote: Print the r/w direction string instead of internal values. [] diff --git a/block/blk-core.c b/block/blk-core.c [] @@

Re: [patch 2/4] mm: Dont forget to set softdirty on file mapped fault

2014-04-14 Thread Andrew Morton
On Mon, 24 Mar 2014 16:28:40 +0400 Cyrill Gorcunov gorcu...@openvz.org wrote: Otherwise we may not notice that pte was softdirty. --- linux-2.6.git.orig/mm/memory.c +++ linux-2.6.git/mm/memory.c @@ -3422,7 +3422,7 @@ static int __do_fault(struct mm_struct * if (flags

[PATCH] mtd: nand: omap: fix compile warning on ‘erased_sector_bitflips’

2014-04-14 Thread Christian Engelmayer
Commit 2c9f2365 (mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch4 in omap_calculate_ecc_bch) introduced minor compile warning ‘erased_sector_bitflips’ defined but not used [-Wunused-function] when compiling without CONFIG_MTD_NAND_OMAP_BCH. Move function erased_sector_bitflips() into

Re: [patch 2/4] mm: Dont forget to set softdirty on file mapped fault

2014-04-14 Thread Cyrill Gorcunov
On Mon, Apr 14, 2014 at 03:27:58PM -0700, Andrew Morton wrote: This will need to be redone for current kernels, please. New patch, new title, new changelog, retest. Sure, will resend once done. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [Patch v5 3/6] IIO: core: Modify scan element type

2014-04-14 Thread Peter Meerwald
The current scan element type uses the following format: [be|le]:[s|u]bits/storagebits[shift]. To specify multiple elements in this type, added a repeat value. So new format is: [be|le]:[s|u]bits/storagebits{X[repeat]}[shift]. Here X is specifying how may times, real/storage bits are

[PATCH 1/1] remove duplicate definition

2014-04-14 Thread Pranith Kumar
Signed-off-by: Pranith Kumar bobby.pr...@gmail.com --- include/linux/compiler-intel.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/compiler-intel.h b/include/linux/compiler-intel.h index 5529c52..ba147a1 100644 --- a/include/linux/compiler-intel.h +++

Re: [PATCH v9 1/2] ARM: avoid tracers in soft_restart

2014-04-14 Thread Sebastian Capella
Hi Will, On 14 April 2014 03:53, Will Deacon will.dea...@arm.com wrote: On Tue, Mar 18, 2014 at 09:40:57PM +, Sebastian Capella wrote: Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable with

Re: [patch 2/4] mm: Dont forget to set softdirty on file mapped fault

2014-04-14 Thread Cyrill Gorcunov
On Tue, Apr 15, 2014 at 02:33:09AM +0400, Cyrill Gorcunov wrote: On Mon, Apr 14, 2014 at 03:27:58PM -0700, Andrew Morton wrote: This will need to be redone for current kernels, please. New patch, new title, new changelog, retest. Sure, will resend once done. Andrew, sorry, I'm a bit

Re: [PATCH] Add initcall_blacklist kernel parameter [v4]

2014-04-14 Thread Andi Kleen
Let's not leak all those blacklist entries when we're finished? It's difficult, because you cannot free bootmem after bootmem is finished. For the rare debug case some leaking should be acceptable. -Andi -- a...@linux.intel.com -- Speaking for myself only. -- To unsubscribe from this list:

Re: [patch 2/4] mm: Dont forget to set softdirty on file mapped fault

2014-04-14 Thread Andrew Morton
On Tue, 15 Apr 2014 02:38:21 +0400 Cyrill Gorcunov gorcu...@gmail.com wrote: On Tue, Apr 15, 2014 at 02:33:09AM +0400, Cyrill Gorcunov wrote: On Mon, Apr 14, 2014 at 03:27:58PM -0700, Andrew Morton wrote: This will need to be redone for current kernels, please. New patch, new title,

Re: [PATCH] sched/core: fix formatting issues in sched_can_stop_tick()

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 08:38:38PM +0200, Peter Zijlstra wrote: On Mon, Apr 14, 2014 at 09:47:41PM +0530, Viresh Kumar wrote: sched_can_stop_tick() was using 7 spaces instead of 8 spaces or a 'tab' at the beginning of each line. Which doesn't align with the Coding Guidelines. Also it

Re: [RFC PATCH 0/2] managed token devres interfaces

2014-04-14 Thread Shuah Khan
On 04/10/2014 08:39 AM, Mauro Carvalho Chehab wrote: Em Thu, 10 Apr 2014 12:46:53 +0100 One Thousand Gnomes gno...@lxorguk.ukuu.org.uk escreveu: For example, some devices provide standard USB Audio Class, handled by snd-usb-audio for the audio stream, while the video stream is handled via a

Re: [BUG] A panic caused by null pointer dereference aftering updating to

2014-04-14 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Mon, 14 Apr 2014 14:23:24 -0700 I was trying to cook a not too invasive patch. Changing ip_local_out() means changing dst_output() / nf_hook() and hundred of call sites. Unless I misunderstood you ? You could make ip_local_out(skb) be

Re: [PATCH v2] mm: convert some level-less printks to pr_*

2014-04-14 Thread Andrew Morton
On Thu, 27 Mar 2014 10:54:19 -0700 Mitchel Humpherys mitch...@codeaurora.org wrote: printk is meant to be used with an associated log level. There are some instances of printk scattered around the mm code where the log level is missing. Add a log level and adhere to suggestions by

Re: [PATCHv2 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members

2014-04-14 Thread Simon Horman
On Mon, Apr 14, 2014 at 11:59:44PM +0200, Alexandre Belloni wrote: Initializing all the struct pwm_lookup members allows to get rid of the struct tpu_pwm_platform_data as the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni

Re: [GIT PULL v2] nohz: Move nohz kick out of scheduler IPI

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 01:22:17PM +0200, Ingo Molnar wrote: * Frederic Weisbecker fweis...@gmail.com wrote: On Thu, Apr 03, 2014 at 06:17:10PM +0200, Frederic Weisbecker wrote: Ingo, Thomas, Please pull the timers/nohz-ipi-for-tip-v3 branch that can be found at:

Re: [PATCH] seccomp: Release fp pointer when leaving from seccomp_attach_filter().

2014-04-14 Thread Masami Ichikawa
On Tue, Apr 15, 2014 at 2:08 AM, Kees Cook keesc...@chromium.org wrote: On Mon, Apr 14, 2014 at 9:18 AM, Alexei Starovoitov a...@plumgrid.com wrote: On Mon, Apr 14, 2014 at 9:02 AM, Masami Ichikawa masami...@gmail.com wrote: kmemleak reported some memory leak as below. grrr. yes. sorry.

Re: [PATCH 24/38] tick-sched: don't check tick_nohz_full_cpu() in __tick_nohz_task_switch()

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 09:53:46PM +0530, Viresh Kumar wrote: __tick_nohz_task_switch() calls tick_nohz_full_kick(), which is already checking tick_nohz_full_cpu() and so we don't need to repeat the same check here. Remove it. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org Ack.

Re: [PATCH 28/38] tick-sched: remove parameters to {__}tick_nohz_task_switch() routines

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 09:53:50PM +0530, Viresh Kumar wrote: tick_nohz_task_switch() and __tick_nohz_task_switch() routines get task_struct passed to them (always for the 'current' task), but they never use it. Remove it. Signed-off-by: Viresh Kumar viresh.ku...@linaro.org Ack. -- To

[PATCH V3] workqueue: fix double unlock bug

2014-04-14 Thread Daeseok Youn
Use default pwq when alloc_unbound_pwq() is failed. And remove if condition for whether pwq is same as wq-dfl_pwq when wq_calc_node_cpumask() returns false and just use goto use_dfl_pwq Signed-off-by: Daeseok Youn daeseok.y...@gmail.com --- V2: replace if condition with goto as Lai's comment.

[GIT PULL] KVM fixes for 3.15-rc1

2014-04-14 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM fixes: - Fix for guest triggerable BUG_ON (CVE-2014-0155) - CR4.SMAP support - Spurious WARN_ON() fix Feng Wu (5): KVM: Remove SMAP bit from

Re: [PATCH 29/38] tick-sched: remove wrapper around __tick_nohz_task_switch()

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 09:53:51PM +0530, Viresh Kumar wrote: __tick_nohz_task_switch() was called only from tick_nohz_task_switch() and there is nothing much in tick_nohz_task_switch() as well. IOW, we don't need unnecessary wrapper over __tick_nohz_task_switch() to be there. Merge all code

Re: Pull request ?

2014-04-14 Thread Alexandre Belloni
On 14/04/2014 at 21:56:45 +0100, Jonathan Cameron wrote : Yeah, I was asking about the fixes, the fixes-togreg branch ;) Ah. Dozy me. Went to Greg a day or so ago. Up to him when/if he picks it up and sends on to Linus. Greg is pretty fast though so probably fairly soon if there are

Re: [PATCH 30/38] tick-sched: move nohz_full_buf[] inside tick_nohz_init()

2014-04-14 Thread Frederic Weisbecker
On Mon, Apr 14, 2014 at 09:53:52PM +0530, Viresh Kumar wrote: nohz_full_buf[] is used at only one place, i.e. inside tick_nohz_init(). Make it a local variable. Can move it out in case it is used in some other routines in future. OTOH nohz_full_buf can have a big size and moving it to a

Re: [PATCH] seccomp: fix memory leak on filter attach

2014-04-14 Thread Masami Ichikawa
On Tue, Apr 15, 2014 at 2:11 AM, Kees Cook keesc...@chromium.org wrote: This sets the correct error code when final filter memory is unavailable, and frees the raw filter no matter what. unreferenced object 0x8800d6ea4000 (size 512): comm sshd, pid 278, jiffies 4294898315 (age 46.653s)

Re: [PATCH 00/38] tick cleanups and bugfixes

2014-04-14 Thread Thomas Gleixner
On Mon, 14 Apr 2014, Viresh Kumar wrote: Hi Thomas, These are separate cleanups from the timers/hrtimers ones I did. I was waiting for the merge window to close in order to send these and by the time it happened, I got a long pending list. These are mostly cleanups, reorders for better

Re: [PATCH v2 0/3] tracing: syscall_*regfunc() fixes

2014-04-14 Thread Frederic Weisbecker
On Sun, Apr 13, 2014 at 08:58:28PM +0200, Oleg Nesterov wrote: On 04/11, Oleg Nesterov wrote: On 04/11, Steven Rostedt wrote: Are you going to send a new series? Yes, will do. I will split 1/2, and I need to update the changelog in 2/2. Please see the patches. Frederic! I am

Re: BUG: spinlock trylock failure on UP, i.MX28 3.12.15-rt25

2014-04-14 Thread Stanislav Meduna
On 14.04.2014 21:24, Stanislav Meduna wrote: hunting another problem with AUART acting weirdly I got okay, the AUART thing was some device tree snafu, but I have seen the BUG a few times (but not readily reproducible). This thread looks remotely similar https://lkml.org/lkml/2013/9/27/534 -

Re: [PATCHv2] pci: changed foo* bar to foo *bar

2014-04-14 Thread Bjorn Helgaas
On Fri, Apr 11, 2014 at 01:01:53AM -0400, Ryan Desfosses wrote: change made to resolve following checkpatch message: drivers/pci/pci.c:109: ERROR: foo* bar should be foo *bar branch: Linux 3.14-rc8 Signed-off-by: Ryan Desfosses r...@desfo.org Applied to pci/misc, thanks! ---

Re: [PATCHv2] pci: added or removed a space to resolve checkpatch message

2014-04-14 Thread Bjorn Helgaas
On Fri, Apr 11, 2014 at 01:47:20AM -0400, Ryan Desfosses wrote: changes made to resolve following messages: WARNING: please, no spaces at the start of a line ERROR: space prohibited after that '!' (ctx:BxW) ERROR: space required before the open parenthesis '(' Signed-off-by: Ryan

Re: [PATCH] Configure FSL eSPI CSBEF, CSAFT, and whether to send all received data to user

2014-04-14 Thread Mark Brown
On Mon, Apr 14, 2014 at 02:38:53PM -0700, Insop Song wrote: On Mon, Apr 14, 2014 at 09:51:51PM +0100, Mark Brown wrote: Please also be sure to CC the mailing list on patches, the sourceforge list has been unused for quite some time now. We use scripts/get_maintainer.pl to get the mailing

Re: [PATCH] access: moved trailing statements and added spaces after ','

2014-04-14 Thread Bjorn Helgaas
On Sat, Apr 12, 2014 at 03:56:27AM -0400, Ryan Desfosses wrote: changes made to resolve following checkpatch messages: ERROR: space required after that ',' (ctx:VxV) ERROR: trailing statements should be on next line branch: 3.14 Signed-off-by: Ryan Desfosses r...@desfo.org Applied to

BUG: using __this_cpu_write() in preemptible [00000000] code: systemd-udevd/497

2014-04-14 Thread Luis Henriques
(Cc'ing both lis3lv02d and ACPI maintainers) Since commit 188a81409ff7de1c5aae947a96356ddd8ff4aaa3 (percpu: add preemption checks to __this_cpu ops) I've been seeing the following: [ 10.485588] hp_accel: hardware type HPB64xx found [ 10.485772] BUG: using __this_cpu_write() in preemptible

[PATCH 2/3] mm,vmacache: add debug data

2014-04-14 Thread Davidlohr Bueso
Introduce a CONFIG_DEBUG_VM_VMACACHE option to enable counting the cache hit rate -- exported in /proc/vmstat. Any updates to the caching scheme needs this kind of data, thus it can save some work re-implementing the counting all the time. Signed-off-by: Davidlohr Bueso davidl...@hp.com ---

[PATCH 0/3] mm: vmacache updates

2014-04-14 Thread Davidlohr Bueso
Two additions really. The first patch adds some needed debugging info. The second one includes an optimization suggested by Oleg. I preferred waiting until 3.15 for these, giving the code a chance to settle a bit. Thanks! Davidlohr Bueso (3): mm: fix CONFIG_DEBUG_VM_RB description

[PATCH 1/3] mm: fix CONFIG_DEBUG_VM_RB description

2014-04-14 Thread Davidlohr Bueso
This appears to be a copy/paste error. Update the description to reflect extra rbtree debug and checks for the config option instead of duplicating CONFIG_DEBUG_VM. Signed-off-by: Davidlohr Bueso davidl...@hp.com --- lib/Kconfig.debug | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH v2 1/3] tracing: fix syscall_*regfunc() vs copy_process() race

2014-04-14 Thread Frederic Weisbecker
On Sun, Apr 13, 2014 at 08:58:54PM +0200, Oleg Nesterov wrote: syscall_regfunc() and syscall_unregfunc() should set/clear TIF_SYSCALL_TRACEPOINT system-wide, but do_each_thread() can race with copy_process() and miss the new child which was not added to the process/thread lists yet. Change

[PATCH 3/3] mm,vmacache: optimize overflow system-wide flushing

2014-04-14 Thread Davidlohr Bueso
For single threaded workloads, we can avoid flushing and iterating through the entire list of tasks, making the whole function a lot faster, requiring only a single atomic read for the mm_users. Suggested-by: Oleg Nesterov o...@redhat.com Signed-off-by: Davidlohr Bueso davidl...@hp.com ---

[PATCH] acpi: try to trust cpu_index from x86_cpu_to_apicid

2014-04-14 Thread Baoquan He
In smp with multi cpus, when enter into kdump kernel with only 1 cpu, a warning message is printed out: acpi LNXCPU:0a: BIOS reported wrong ACPI id 0 for the processor In this case kdump kernel use the same ACPI tables as 1st kernel, means lapic information is got from MADT. The acpi_id related

Re: [PATCH] Configure FSL eSPI CSBEF, CSAFT, and whether to send all received data to user

2014-04-14 Thread Insop Song
On Tue, Apr 15, 2014 at 12:49:49AM +0100, Mark Brown wrote: On Mon, Apr 14, 2014 at 02:38:53PM -0700, Insop Song wrote: On Mon, Apr 14, 2014 at 09:51:51PM +0100, Mark Brown wrote: Please also be sure to CC the mailing list on patches, the sourceforge list has been unused for quite some

Re: [PATCH 3/3] mm,vmacache: optimize overflow system-wide flushing

2014-04-14 Thread Davidlohr Bueso
Stupid script... Cc'ing Oleg. On Mon, 2014-04-14 at 16:57 -0700, Davidlohr Bueso wrote: For single threaded workloads, we can avoid flushing and iterating through the entire list of tasks, making the whole function a lot faster, requiring only a single atomic read for the mm_users.

Re: [PATCH] Configure FSL eSPI CSBEF, CSAFT, and whether to send all received data to user

2014-04-14 Thread Insop Song
On Tue, Apr 15, 2014 at 12:49:49AM +0100, Mark Brown wrote: On Mon, Apr 14, 2014 at 02:38:53PM -0700, Insop Song wrote: On Mon, Apr 14, 2014 at 09:51:51PM +0100, Mark Brown wrote: Please also be sure to CC the mailing list on patches, the sourceforge list has been unused for quite some

Re: [PATCH] pci: moved EXPORT_SYMBOL so that it immediately followed its function/variable

2014-04-14 Thread Bjorn Helgaas
On Mon, Apr 07, 2014 at 06:01:23PM -0400, Ryan Desfosses wrote: change made to resolve following checkpatch message: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/aariable branch: Linux 3.14 Signed-off-by: Ryan Desfosses r...@desfo.org ---

Re: [PATCH] PCI: Add Patsburg (X79) to Intel PCH root port ACS quirk

2014-04-14 Thread Bjorn Helgaas
On Mon, Mar 31, 2014 at 12:21:38PM -0600, Alex Williamson wrote: Intel has updated Red Hat bz1037684 to note that X79 PCH root ports also provide isolation and the same ACS quirks apply. Some sources indicate additional device IDs for X79, but this patch includes only the ones specifically

Re: [BUG] A panic caused by null pointer dereference aftering updating to

2014-04-14 Thread Eric Dumazet
On Mon, 2014-04-14 at 18:51 -0400, David Miller wrote: From: Eric Dumazet eric.duma...@gmail.com Date: Mon, 14 Apr 2014 14:23:24 -0700 I was trying to cook a not too invasive patch. Changing ip_local_out() means changing dst_output() / nf_hook() and hundred of call sites. Unless

Re: 回复: [PATCH] arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM

2014-04-14 Thread Chen Gang
We got no-reply almost a week, so we can assume can put the code into asm/io.h as static inline function. I will/should send patch v2 for it. Thanks. On 04/08/2014 12:54 PM, Chen Gang wrote: On 04/08/2014 11:20 AM, 管雪涛 wrote: I'd like to put the code into asm/io.h, and make it static.

Re: [PATCH 1/1] drivers/pci/pcie/portdrv_pci.c: coding style fixes

2014-04-14 Thread Bjorn Helgaas
On Sun, Apr 13, 2014 at 09:49:34AM +0200, Fabian Frederick wrote: Move __initdata before equal sign printk(KERN_WARNING converted to pr_warn Cc: Andrew Morton a...@linux-foundation.org Cc: linux-...@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be ---

[Regression?] qemu-system-arm flooding sd_write_data: not in Receiving-Data state

2014-04-14 Thread John Stultz
(Forgive the duplicate, I forgot to cc lkml) I was testing v3.15-rc1 in my qemu-system-arm environment and noticed a flood of the following messages: sd_write_data: not in Receiving-Data state After looking around in the kernel and not finding such a message, I realized this was actually a

[PATCH v2] arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM

2014-04-14 Thread Chen Gang
unicore32 supports STRICT_DEVMEM, so it needs devmem_is_allowed(), like some of other architectures have done (e.g. arm, powerpc, x86 ...). The related error with allmodconfig: CC drivers/char/mem.o drivers/char/mem.c: In function ‘range_is_allowed’: drivers/char/mem.c:69: error:

Re: [PATCH 7/8] arm64: mm: Implement 4 levels of translation tables

2014-04-14 Thread Jungseok Lee
On Tuesday, April 15, 2014 12:14 AM, Steve Capper wrote: On Mon, Apr 14, 2014 at 04:41:07PM +0900, Jungseok Lee wrote: This patch implements 4 levels of translation tables since 3 levels of page tables with 4KB pages cannot support 40-bit physical address space described in [1] due to the

Re: [PATCH] mtd: nand: omap: fix compile warning on ‘erased_sector_bitflips’

2014-04-14 Thread Jingoo Han
On Tuesday, April 15, 2014 7:32 AM, Christian Engelmayer wrote: Commit 2c9f2365 (mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch4 in omap_calculate_ecc_bch) introduced minor compile warning ‘erased_sector_bitflips’ defined but not used [-Wunused-function] when compiling

Re: [PATCH 2/8] arm/arm64: KVM: Fix line length exceeding 80 characters

2014-04-14 Thread Jungseok Lee
On Tuesday, April 15, 2014 1:19 AM, Marc Zyngier wrote: On 14/04/14 08:40, Jungseok Lee wrote: This patch deals with checkpatch complaint as fixing line length exceeding 80 characters. WARNING: line over 80 characters Signed-off-by: Jungseok Lee jays@samsung.com Reviewed-by:

Re: [PATCH v2] arch:unicore32:mm: add devmem_is_allowed() to support STRICT_DEVMEM

2014-04-14 Thread Chen Gang
Oh, sorry, it is my careless, it even can not pass compiling, I will/should send patch v3. Thanks. On 04/15/2014 08:28 AM, Chen Gang wrote: unicore32 supports STRICT_DEVMEM, so it needs devmem_is_allowed(), like some of other architectures have done (e.g. arm, powerpc, x86 ...). The

Re: [PATCH] ipv4: Add option to get TCP_FASTOPEN to getsockopt()

2014-04-14 Thread Neal Cardwell
On Mon, Apr 14, 2014 at 1:39 PM, Kenjiro Nakayama nakayamakenj...@gmail.com wrote: TCP_FASTOPEN option can be set via setsockopt(), but the value cannot be gotten via getsockopt(). This patch adds the option to getsockopt(). Sighned-off-by: Kenjiro Nakayama nakayamakenj...@gmail.com

Re: [PATCH v2 2/3] Fix coding style problem (cast with space) in drivers/staging/crystalhd/crystalhd_lnx.c

2014-04-14 Thread Jingoo Han
On Tuesday, April 15, 2014 1:38 AM, Pascal COMBES wrote: Le 13/04/2014 23:36, Paul Bolle a écrit : On Sun, 2014-04-13 at 21:13 +0200, Pascal COMBES wrote: From: Pascal COMBES pas...@orange.fr Fix coding style problem in drivers/staging/crystalhd/crystalhd_lnx.c: No space needed before

Re: [PATCH 8/8] arm64: KVM: Implement 4 levels of translation tables for HYP and stage2

2014-04-14 Thread Jungseok Lee
On Tuesday, April 15, 2014 1:12 AM, Marc Zyngier wrote: On 14/04/14 08:41, Jungseok Lee wrote: This patch adds 4 levels of translation tables implementation for both HYP and stage2. A combination of 4KB + 4 levels host and 4KB + 4 levels guest can run on ARMv8 architecture as introducing

  1   2   3   4   5   6   7   8   9   10   >