[PATCH] cifs: check hash calculating succeeded

2016-06-08 Thread Luis de Bethencourt
calc_lanman_hash() could return -ENOMEM or other errors, we should check that everything went fine before using the calculated key. Signed-off-by: Luis de Bethencourt --- fs/cifs/sess.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index a42e99c..538d9b5 1

Re: [PATCH 05/10] mm: remove LRU balancing effect of temporary page isolation

2016-06-08 Thread Johannes Weiner
On Wed, Jun 08, 2016 at 04:39:44PM +0900, Minchan Kim wrote: > On Mon, Jun 06, 2016 at 03:48:31PM -0400, Johannes Weiner wrote: > > @@ -832,9 +854,9 @@ static void __pagevec_lru_add_fn(struct page *page, > > struct lruvec *lruvec, > > * Add the passed pages to the LRU, then drop the caller's ref

Re: [PATCH] ARM: Keystone: Introduce Kconfig option to compile in typical Keystone features

2016-06-08 Thread Arnd Bergmann
On Wednesday, June 8, 2016 2:47:48 AM CEST Tony Lindgren wrote: > > * Arnd Bergmann [160607 01:11]: > > A lot of these options are typical for all ARMv7 machines: AEABI, I2C, NEON, > > PM, REGULATOR and VFP are things that we probably want to default to enabled > > whenever we build a MULTI_V7 ke

Re: [PATCH 0/10 -v3] Handle oom bypass more gracefully

2016-06-08 Thread Michal Hocko
On Wed 08-06-16 23:55:24, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Wed 08-06-16 06:49:24, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > OK, so you are arming the timer for each mark_oom_victim regardless > > > > of the oom context. This means that you have replaced one potential > >

[RFC v3 0/5] MT2701 DRM support

2016-06-08 Thread YT Shen
This is MT2701 DRM support RFC v3, based on 4.7-rc1. Most codes are the same, except some register changed. For example: - DISP_OVL address offset changed, color format definition changed. - DISP_RDMA fifo size changed. - DISP_COLOR offset changed. We add a new component DISP_BLS, and the conn

[RFC v3 3/5] drm/mediatek: add shadow register support

2016-06-08 Thread YT Shen
We need to acquire mutex before using the resources, and need to release it after finished. So we don't need to write registers in the blanking period. Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 75 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp.

[RFC v3 2/5] drm/mediatek: add *driver_data for different hardware settings

2016-06-08 Thread YT Shen
There are some hardware settings changed, between MT8173 & MT2701: DISP_OVL address offset changed, color format definition changed. DISP_RDMA fifo size changed. DISP_COLOR offset changed. And add prefix for mtk_ddp_main & mtk_ddp_ext & mutex_mod. Signed-off-by: YT Shen --- drivers/gpu/drm/media

[RFC v3 1/5] drm/mediatek: rename macros, add chip prefix

2016-06-08 Thread YT Shen
Add MT8173 prefix for hardware related macros. Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 60 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp

Re: [PATCH 07/10] mm: base LRU balancing on an explicit cost model

2016-06-08 Thread Johannes Weiner
On Wed, Jun 08, 2016 at 05:14:21PM +0900, Minchan Kim wrote: > On Mon, Jun 06, 2016 at 03:48:33PM -0400, Johannes Weiner wrote: > > @@ -249,15 +249,10 @@ void rotate_reclaimable_page(struct page *page) > > } > > } > > > > -static void update_page_reclaim_stat(struct lruvec *lruvec, > > -

[RFC v3 5/5] arm: dts: mt2701: Add display subsystem related nodes for MT2701

2016-06-08 Thread YT Shen
This patch adds the device nodes for the DISP function blocks for MT2701 Signed-off-by: YT Shen --- arch/arm/boot/dts/mt2701.dtsi | 106 + 1 file changed, 106 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index

[RFC v3 4/5] drm/mediatek: add support for Mediatek SoC MT2701

2016-06-08 Thread YT Shen
This patch add support for the Mediatek MT2701 DISP subsystem. There is only one OVL engine in MT2701. Signed-off-by: YT Shen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |6 drivers/gpu/drm/mediatek/mtk_disp_rdma.c|6 drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 42 +

Re: [PATCH 1/1] mm/swap.c: flush lru_add pvecs on compound page arrival

2016-06-08 Thread Michal Hocko
On Wed 08-06-16 08:31:21, Dave Hansen wrote: > On 06/08/2016 07:35 AM, Lukasz Odzioba wrote: > > diff --git a/mm/swap.c b/mm/swap.c > > index 9591614..3fe4f18 100644 > > --- a/mm/swap.c > > +++ b/mm/swap.c > > @@ -391,9 +391,8 @@ static void __lru_cache_add(struct page *page) > > struct pagevec

Re: [PATCH RFC net-next] netvsc: get rid of completion timeouts

2016-06-08 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > I'm hitting 5 second timeout in rndis_filter_set_rss_param() while setting > RSS parameters for the device. When this happens we end up returning > -ETIMEDOUT from the function and rndis_filter_device_add() falls back to > setting > > net_device->max_chn = 1; >

Re: [PATCH] Add .set_antenna callback in ath6kl driver to remove wireless core warns

2016-06-08 Thread Ben Greear
On 06/08/2016 08:56 AM, Prasun Maiti wrote: Please help me how to test this one?? It will be great to me if you help me. I do not have time or interest, sorry. You basically need access to firmware source to do any useful development on this driver in my opinion, and I do not have access to th

Re: Files leak from nfsd in 4.7.1-rc1 (and more?)

2016-06-08 Thread Oleg Drokin
On Jun 8, 2016, at 6:58 AM, Jeff Layton wrote: > A simple way to confirm that might be to convert all of the read locks > on the st_rwsem to write locks. That will serialize all of the open > operations and should prevent that particular race from occurring. > > If that works, we'd probably want

Re: [PATCH 3/8] mfd: tps65218: Use mfd_add_devices instead of of_platform_populate

2016-06-08 Thread Keerthy
On Wednesday 08 June 2016 09:20 PM, Lee Jones wrote: On Wed, 11 May 2016, Keerthy wrote: mfd_add_devices enables parsing device tree nodes without compatibles for child nodes. Replace of_platform_populate with mfd_add_devices. Signed-off-by: Keerthy --- drivers/mfd/tps65218.c | 10 +++

Re: [PATCH v3 2/2] mfd: lp873x: Add lp873x PMIC support

2016-06-08 Thread Lee Jones
On Fri, 13 May 2016, Keerthy wrote: > The LP873X chip is a power management IC for Portable Navigation Systems > and Tablet Computing devices. It contains the following components: > > - Regulators. > - Configurable General Purpose Output Signals(GPO). > > PMIC interacts with the m

Re: [PATCH v3 1/2] Documentation: mfd: LP873X: Add information for the mfd and regulator drivers

2016-06-08 Thread Keerthy
On Wednesday 08 June 2016 09:21 PM, Lee Jones wrote: On Fri, 13 May 2016, Keerthy wrote: Add information for the mfd and regulator drivers. Acked-by: Rob Herring Signed-off-by: Keerthy --- Changes in v3: * Changed the example node lable to pmic from lp8733. Documentation/devicetree

Re: [PATCH 0/2] qcom: add l2 cache perf events driver

2016-06-08 Thread Mark Rutland
On Wed, Jun 08, 2016 at 11:21:16AM -0400, Neil Leeder wrote: > > > On 6/6/2016 05:04 AM, Mark Rutland wrote: > > On Fri, Jun 03, 2016 at 05:03:30PM -0400, Neil Leeder wrote: > >> This adds a new dynamic PMU to the Perf Events framework to program > >> and control the L2 cache PMUs in some Qualcom

Re: [PATCH 3/5] lkdtm: add function for testing .rodata section

2016-06-08 Thread Laura Abbott
On 06/08/2016 08:46 AM, Kees Cook wrote: On Tue, Jun 7, 2016 at 6:02 PM, Laura Abbott wrote: On 06/07/2016 02:57 PM, Kees Cook wrote: This adds a function that lives in the .rodata section. The section flags are corrected using objcopy since there is no way with gcc to declare section flags i

Re: [PATCH 07/10] mm: base LRU balancing on an explicit cost model

2016-06-08 Thread Johannes Weiner
On Wed, Jun 08, 2016 at 02:51:37PM +0200, Michal Hocko wrote: > On Mon 06-06-16 15:48:33, Johannes Weiner wrote: > > Rename struct zone_reclaim_stat to struct lru_cost, and move from two > > separate value ratios for the LRU lists to a relative LRU cost metric > > with a shared denominator. > > I

Re: [PATCH v3 2/2] mfd: lp873x: Add lp873x PMIC support

2016-06-08 Thread Keerthy
On Wednesday 08 June 2016 09:41 PM, Lee Jones wrote: On Fri, 13 May 2016, Keerthy wrote: The LP873X chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components: - Regulators. - Configurable General Purpose

[PATCH] md: use a mutex to protect a global list

2016-06-08 Thread Cong Wang
We saw a list corruption in the list all_detected_devices: WARNING: CPU: 16 PID: 226 at lib/list_debug.c:29 __list_add+0x3c/0xa9() list_add corruption. next->prev should be prev (880859d58320), but was 880859ce74c0. (next=81abfdb0). Modules linked in: ahci libahci libata sd_mod

Re: Using DT overlays for adding virtual hardware

2016-06-08 Thread Mark Rutland
On Wed, Jun 08, 2016 at 06:57:37PM +0300, Pantelis Antoniou wrote: > Hi Mark, > > > On Jun 8, 2016, at 18:17 , Mark Rutland wrote: > > > > On Wed, Jun 08, 2016 at 04:16:32PM +0200, Jan Kiszka wrote: > >> Hi all, > >> > >> already started the discussion off-list with Pantelis, but it's better >

Re: [PATCH v3] mailbox: pcc: Support HW-Reduced Communication Subspace type 2

2016-06-08 Thread Hoan Tran
Hi Ashwin, On Wed, Jun 8, 2016 at 5:18 AM, Ashwin Chaugule wrote: > + Prashanth (Can you please have a look as well?) > > On 31 May 2016 at 15:35, Hoan Tran wrote: >> Hi Ashwin, > > Hi, > > Sorry about the delay. I'm in the middle of switching jobs and > locations, so its been a bit crazy lately

Re: [tip:perf/core] perf/x86/intel: Use Intel family macros for core perf events

2016-06-08 Thread Ingo Molnar
* Vince Weaver wrote: > eventually you can get them to send /proc/cpuinfo so you can try to find > out what processor they really have, and in that case you can get > the family/model numbers in plain decimal, and you can easily look up > if things are supported in the various files. If only i

[PATCH] nvmem: fix nvmem_cell_read() return type for !CONFIG_NVMEM

2016-06-08 Thread Brian Norris
With CONFIG_NVMEM, nvmem_cell_read() returns void *. With !CONFIG_NVMEM it returns char *. Let's make that consistent. Also drop the incorrect/inconsistent comment about char * above the nvmem_cell_read() definition. drivers/thermal/mtk_thermal.c is already working around this by casting to (u32 *

Re: Re: [PATCH] staging: slicoss: replacement of goto statements

2016-06-08 Thread Jaime Arrocha
On Wed, 08 Jun 2016 10:49:47 -0500 Greg KH wrote > On Wed, Jun 08, 2016 at 08:46:06AM -0500, Jaime Arrocha wrote: > > From: Jaime Arrocha > > > > Replaced deprecated goto statements. > > Since when is 'goto' deprecated? > > Were you able to test these changes? >

[PATCH] scripts/gdb: Perform path expansion to lx-symbol's arguments

2016-06-08 Thread Nikolay Borisov
Python doesn't do automatic expansion of paths. In case one passes path of the from ~/foo/bar the gdb scripts won't automatically expand that and as a result the symbols files won't be loaded. Fix this by explicitly expanding all paths which begin with "~" Signed-off-by: Nikolay Borisov --- scri

Re: [PATCH v2 5/6] dt-bindings: add Sharp LQ123P1JX31 panel binding

2016-06-08 Thread Doug Anderson
Yakir, On Wed, Jun 8, 2016 at 4:52 AM, Yakir Yang wrote: > The Sharp LQ123P1JX31 is an 12.3" 2400x1600 TFT-LCD panel > connected using eDP interfaces. > > Signed-off-by: Yakir Yang > --- > Changes in v2: > - Add dt-bindings of Sharp LQ123P1JX31 panel in v2 > > .../devicetree/bindings/display/pa

Re: Using DT overlays for adding virtual hardware

2016-06-08 Thread Pantelis Antoniou
Hi Mark, > On Jun 8, 2016, at 19:23 , Mark Rutland wrote: > > On Wed, Jun 08, 2016 at 06:57:37PM +0300, Pantelis Antoniou wrote: >> Hi Mark, >> >>> On Jun 8, 2016, at 18:17 , Mark Rutland wrote: >>> >>> On Wed, Jun 08, 2016 at 04:16:32PM +0200, Jan Kiszka wrote: Hi all, alread

Re: 274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 05:28:53PM +0200, Grigori Goronzy wrote: > Are you sure it is using accelerated decoding? CPU load should be just 1-2%. Ha, good point. So with mplayer vo=vdpau, CPU load was at something over 12%. Doing: $ mpv --vo=vdpau --hwdec=vdpau $file (+) Video --vid=1 (*) (h264)

Re: [PATCH 1/1] mm/swap.c: flush lru_add pvecs on compound page arrival

2016-06-08 Thread Dave Hansen
On 06/08/2016 09:06 AM, Michal Hocko wrote: >> > Do we have any statistics that tell us how many pages are sitting the >> > lru pvecs? Although this helps the problem overall, don't we still have >> > a problem with memory being held in such an opaque place? > Is it really worth bothering when we

[PATCH v2 00/13] regulator: pwm: various improvements

2016-06-08 Thread Boris Brezillon
Hello, This patch series series aims at adding two important features to the pwm-regulator driver. The first one is the support for 'smooth handover' between the bootloader and the kernel. This is mainly solving problems we have when the PWM is controlling a critical regulator (like the one power

Re: [tip:perf/core] perf/x86/intel: Use Intel family macros for core perf events

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 06:25:29PM +0200, Ingo Molnar wrote: > model string: IvyBridge_X > > ... or something like that. The string could even be auto-generated from the > list > in intel-family.h? Yap, that sounds cool too. And then we should issue that too during boot: [0.542398] sm

[PATCH v2 01/13] pwm: Add new helpers to create/manipulate PWM states

2016-06-08 Thread Boris Brezillon
The pwm_prepare_new_state() helper prepares a new state object containing the current PWM state except for the polarity and period fields which are set to the reference values. This is particurly useful for PWM users who want to apply a new duty-cycle expressed relatively to the reference period wi

[PATCH v2 09/13] regulator: pwm: Switch to the atomic PWM API

2016-06-08 Thread Boris Brezillon
Use the atomic API wherever appropriate and get rid of pwm_apply_args() call (the reference period and polarity are now explicitly set when calling pwm_apply_state()). We also make use of the pwm_set_relative_duty_cycle() helper to ease relative to absolute duty_cycle conversion. Note that change

[PATCH v2 10/13] regulator: pwm: Properly initialize the ->state field

2016-06-08 Thread Boris Brezillon
The ->state field is currently initialized to 0, thus referencing the voltage selector at index 0, which might not reflect the current voltage value. If possible, retrieve the current voltage selector from the PWM state, else return -EINVAL. Signed-off-by: Boris Brezillon Tested-by: Brian Norris

Re: [PATCH v2 6/6] drm/panel: simple: Add support for Sharp LQ123P1JX31 2400x1600 panel

2016-06-08 Thread Doug Anderson
Yakir, On Wed, Jun 8, 2016 at 4:52 AM, Yakir Yang wrote: > The Sharp LQ123P1JX31 is an 12.3", 2400x1600 TFT-LCD panel connected > using eDP interfaces. > > Signed-off-by: Yakir Yang > --- > Changes in v2: > - Add detail timing of Sharp LQ123P1JX31 panel in v2 > > drivers/gpu/drm/panel/panel-sim

[PATCH v2 13/13] regulator: pwm: Document pwm-dutycycle-unit and pwm-dutycycle-range

2016-06-08 Thread Boris Brezillon
Document the pwm-dutycycle-unit and pwm-dutycycle-range properties. Signed-off-by: Boris Brezillon Acked-by: Brian Norris --- .../devicetree/bindings/regulator/pwm-regulator.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/regulato

[PATCH v2 12/13] regulator: pwm: Support extra continuous mode cases

2016-06-08 Thread Boris Brezillon
The continuous mode allows one to declare a PWM regulator without having to declare the voltage <-> dutycycle association table. It works fine as long as your voltage(dutycycle) function is linear, but also has the following constraints: - dutycycle for min_uV = 0% - dutycycle for max_uV = 100% -

[PATCH v2 11/13] regulator: pwm: Retrieve correct voltage

2016-06-08 Thread Boris Brezillon
The continuous PWM voltage regulator is caching the voltage value in the ->volt_uV field. While most of the time this value should reflect the real voltage, sometime it can be sightly different if the PWM device rounded the set_duty_cycle request. Moreover, this value is not valid until someone has

[PATCH v2 02/13] pwm: rockchip: Fix period and duty_cycle approximation

2016-06-08 Thread Boris Brezillon
The current implementation always round down the duty and period values, while it would be better to round them to the closest integer. These changes are needed in preparation of atomic update support to prevent a period/duty cycle drift when executing several time the 'pwm_get_state() / modify /

[PATCH v2 05/13] pwm: rockchip: Add support for atomic update

2016-06-08 Thread Boris Brezillon
Implement the ->apply() function to add support for atomic update. Signed-off-by: Boris Brezillon Tested-by: Heiko Stuebner Reviewed-by: Brian Norris Tested-by: Brian Norris --- drivers/pwm/pwm-rockchip.c | 84 -- 1 file changed, 43 insertions(+), 4

[PATCH v2 06/13] pwm: sti: Add support for hardware readout

2016-06-08 Thread Boris Brezillon
Implement ->get_state() to provide support for initial state retrieval. Signed-off-by: Boris Brezillon --- drivers/pwm/pwm-sti.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/pwm/pwm-sti.c b/drivers/pwm/pwm-sti.c index 92abbd5..6300d3e 100644

[PATCH v2 07/13] pwm: sti: Avoid glitches on already running PWMs

2016-06-08 Thread Boris Brezillon
The current logic will disable the PWM clk even if a PWM was left enabled by the bootloader (because it's controlling a critical device like a regulator for example). Keep the PWM clk enabled if at least one PWM is enabled to avoid any glitches. Signed-off-by: Boris Brezillon --- drivers/pwm/pwm

[PATCH] config: Add android config fragments

2016-06-08 Thread Rob Herring
Copy the config fragments from the AOSP common kernel tree. It is becoming possible to run mainline kernels with Android, but the kernel defconfigs don't work as-is and debugging missing config options is a pain. Adding the config fragments into the kernel tree, makes configuring a mainline kernel

Re: Using DT overlays for adding virtual hardware

2016-06-08 Thread Jan Kiszka
On 2016-06-08 18:31, Pantelis Antoniou wrote: > Hi Mark, > >> On Jun 8, 2016, at 19:23 , Mark Rutland wrote: >> >> On Wed, Jun 08, 2016 at 06:57:37PM +0300, Pantelis Antoniou wrote: >>> Hi Mark, >>> On Jun 8, 2016, at 18:17 , Mark Rutland wrote: On Wed, Jun 08, 2016 at 04:16:32PM

[PATCH v2 04/13] pwm: rockchip: Avoid glitches on already running PWMs

2016-06-08 Thread Boris Brezillon
The current logic will disable the PWM clk even if the PWM was left enabled by the bootloader (because it's controlling a critical device like a regulator for example). Keep the PWM clk enabled if the PWM is enabled to avoid any glitches. Signed-off-by: Boris Brezillon Reviewed-by: Brian Norris

[PATCH v2 03/13] pwm: rockchip: Add support for hardware readout

2016-06-08 Thread Boris Brezillon
Implement the ->get_state() function to expose initial state. Signed-off-by: Boris Brezillon Reviewed-by: Brian Norris Tested-by: Brian Norris --- drivers/pwm/pwm-rockchip.c | 67 ++ 1 file changed, 67 insertions(+) diff --git a/drivers/pwm/pwm-rock

Re: [PATCH] nvmem: fix nvmem_cell_read() return type for !CONFIG_NVMEM

2016-06-08 Thread Brian Norris
On Wed, Jun 08, 2016 at 09:26:46AM -0700, Brian Norris wrote: > With CONFIG_NVMEM, nvmem_cell_read() returns void *. With !CONFIG_NVMEM > it returns char *. Let's make that consistent. Also drop the > incorrect/inconsistent comment about char * above the nvmem_cell_read() > definition. > > drivers

[PATCH v2 08/13] regulator: pwm: Adjust PWM config at probe time

2016-06-08 Thread Boris Brezillon
The PWM attached to a PWM regulator device might have been previously configured by the bootloader. Make sure the bootloader and linux config are in sync, and adjust the PWM config if that's not the case. Signed-off-by: Boris Brezillon Acked-by: Mark Brown Acked-by: Brian Norris Tested-by: Bria

[PATCH 4/8] ARM: dts: at91: at91-foxg20: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Cc: Sergio Tanzilli Cc: Douglas Gilbert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-foxg20.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/at91-foxg

[PATCH 5/8] ARM: dts: at91: ge863-pro3: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Cc: Fabio Porcedda Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/ge863-pro3.dtsi | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/ge863-pro3.dtsi b/arch/arm/boo

[PATCH 1/8] ARM: dts: at91: animeo_ip: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/animeo_ip.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/animeo_ip.dts b/arch/arm/boot/dts/animeo_ip.dts index

[PATCH 8/8] ARM: dts: at91: calao: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-qil_a9260.dts| 9 - arch/arm/boot/dts/tny_a9260_common.dtsi | 9 - arch/arm/boot/dts/tny_a9263.dts | 9 -

[PATCH 7/8] ARM: dts: at91: pm9g45: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/pm9g45.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/pm9g45.dts b/arch/arm/boot/dts/pm9g45.dts index 66afcff6

[PATCH 2/8] ARM: dts: at91: at91-ariag25: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Cc: Sergio Tanzilli Cc: Douglas Gilbert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-ariag25.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/at91-ari

[PATCH 3/8] ARM: dts: at91: at91-cosino: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Cc: Rodolfo Giometti Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-cosino.dtsi | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/at91-cosino.dtsi b/arch/arm

Re: 274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-06-08 Thread Alex Deucher
On Wed, Jun 8, 2016 at 12:32 PM, Borislav Petkov wrote: > On Wed, Jun 08, 2016 at 05:28:53PM +0200, Grigori Goronzy wrote: >> Are you sure it is using accelerated decoding? CPU load should be just 1-2%. > > Ha, good point. So with mplayer vo=vdpau, CPU load was at something over 12%. > > Doing: >

[PATCH 6/8] ARM: dts: at91: mpa1600: remove leftovers clock definition

2016-06-08 Thread Alexandre Belloni
The clocks group properties and the clock@0 node have been obsolete for two years, remove them. Cc: Joachim Eastwood Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/mpa1600.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/boot/dts/mpa1600.dts b/arch/arm/boot/dts/m

Re: [PATCH] serial_core: Change UART PM state to OFF on failure

2016-06-08 Thread Peter Hurley
Hi Pramod, On 05/06/2016 02:46 AM, Pramod Gurav wrote: > uart_change_pm is used to turn on the UART controller resources and > change UART's PM status. On failure to allocate pages the controller > be left in ON state. This will change the state to OFF on failure. > > Signed-off-by: Pramod Gurav

Re: [PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-06-08 Thread Robin Murphy
On 08/06/16 16:44, Rob Herring wrote: On Wed, Jun 1, 2016 at 1:06 AM, Kefeng Wang wrote: The of_iommu_init() is called multiple times by arch code, make it postcore_initcall_sync, then we can drop relevant calls fully. Note, the IOMMUs should have a chance to perform some basic initialisation

Re: 274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 12:44:12PM -0400, Alex Deucher wrote: > If the ring and IB tests pass on resume, you should be good to go. Yap, they do. I pasted that output earlier but here it is again: [ 64.745988] [drm] ring test on 0 succeeded in 1 usecs [ 64.920633] [drm] ring test on 5 succeede

Re: [PATCH 1/8] ARM: dts: at91: animeo_ip: remove leftovers clock definition

2016-06-08 Thread Nicolas Ferre
Le 08/06/2016 18:41, Alexandre Belloni a écrit : > The clocks group properties and the clock@0 node have been obsolete for two > years, remove them. > > Signed-off-by: Alexandre Belloni On the whole series: Acked-by: Nicolas Ferre > --- > arch/arm/boot/dts/animeo_ip.dts | 9 - > 1 fil

[PATCH] ARM: multi_v5_defconfig: enable Atmel platforms

2016-06-08 Thread Alexandre Belloni
Enable ARMv5 platforms in multi_v5 Signed-off-by: Alexandre Belloni --- arch/arm/configs/multi_v5_defconfig | 54 - 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v5_defconfig b/arch/arm/configs/multi_v5_defconfig index 4

[PATCH v6 00/11] powerpc/powernv/cpuidle: Add support for POWER ISA v3 idle states

2016-06-08 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction.

[PATCH v6 09/11] cpuidle/powernv: Use CPUIDLE_STATE_MAX instead of MAX_POWERNV_IDLE_STATES

2016-06-08 Thread Shreyas B. Prabhu
Use cpuidle's CPUIDLE_STATE_MAX macro instead of powernv specific MAX_POWERNV_IDLE_STATES. Cc: Rafael J. Wysocki Cc: Daniel Lezcano Cc: linux...@vger.kernel.org Suggested-by: Daniel Lezcano Signed-off-by: Shreyas B. Prabhu --- - No changes after v5 Changes in v5 = - New in v5

[PATCH v6 05/11] powerpc/powernv: Make pnv_powersave_common more generic

2016-06-08 Thread Shreyas B. Prabhu
pnv_powersave_common does common steps needed before entering idle state and eventually changes MSR to MSR_IDLE and does rfid to pnv_enter_arch207_idle_mode. Move the updation of HSTATE_HWTHREAD_STATE to pnv_powersave_common from pnv_enter_arch207_idle_mode and make it more generic by passing the

[PATCH v6 11/11] powerpc/powernv: Use deepest stop state when cpu is offlined

2016-06-08 Thread Shreyas B. Prabhu
If hardware supports stop state, use the deepest stop state when the cpu is offlined. Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- - No changes since v1 arch/powerpc/platforms/powernv/idle.c| 15 +-- arch/powerpc/platforms/powernv/powernv.h | 1 + arch/

[PATCH v6 04/11] powerpc/powernv: Rename reusable idle functions to hardware agnostic names

2016-06-08 Thread Shreyas B. Prabhu
Functions like power7_wakeup_loss, power7_wakeup_noloss, power7_wakeup_tb_loss are used by POWER7 and POWER8 hardware. They can also be used by POWER9. Hence rename these functions hardware agnostic names. Suggested-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- - No changes since v

[PATCH v6 03/11] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-06-08 Thread Shreyas B. Prabhu
idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next patch for POWER9. Rename the file to a non-hardware specific name. Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- - No changes since v3 Changes in v3: == - Instead of moving few common functi

[PATCH v6 02/11] powerpc/kvm: make hypervisor state restore a function

2016-06-08 Thread Shreyas B. Prabhu
In the current code, when the thread wakes up in reset vector, some of the state restore code and check for whether a thread needs to branch to kvm is duplicated. Reorder the code such that this duplication is avoided. At a higher level this is what the change looks like- Before this patch - powe

[PATCH v6 01/11] powerpc/powernv: Use PNV_THREAD_WINKLE macro while requesting for winkle

2016-06-08 Thread Shreyas B. Prabhu
Signed-off-by: Shreyas B. Prabhu --- -No changes since v4 Changes in v4 = - New in v4 arch/powerpc/kernel/idle_power7.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/idle_power7.S b/arch/powerpc/kernel/idle_power7.S index 470ceeb..705c867 1

[PATCH v6 10/11] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-06-08 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. b) new per thread SPR named PSSCR is added which controls the behavior of stop instruction. Supported idle states and value to be written to PSSCR register to enter any idle stat

[PATCH v6 07/11] powerpc/powernv: set power_save func after the idle states are initialized

2016-06-08 Thread Shreyas B. Prabhu
pnv_init_idle_states discovers supported idle states from the device tree and does the required initialization. Set power_save function pointer only after this initialization is done Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- - No changes since v1 arch/powerpc/platform

[PATCH v6 08/11] powerpc/powernv: Add platform support for stop instruction

2016-06-08 Thread Shreyas B. Prabhu
POWER ISA v3 defines a new idle processor core mechanism. In summary, a) new instruction named stop is added. This instruction replaces instructions like nap, sleep, rvwinkle. b) new per thread SPR named Processor Stop Status and Control Register (PSSCR) is added which controls th

[PATCH v6 06/11] powerpc/powernv: abstraction for saving SPRs before entering deep idle states

2016-06-08 Thread Shreyas B. Prabhu
Create a function for saving SPRs before entering deep idle states. This function can be reused for POWER9 deep idle states. Reviewed-by: Gautham R. Shenoy Signed-off-by: Shreyas B. Prabhu --- - No changes since v3 Changes in v3: = - Newly added in v3 arch/powerpc/kernel/idle_po

Re: [PATCH] hwmon: (tmp401) Add support for TI TMP461

2016-06-08 Thread Andrew F. Davis
On 06/03/2016 11:41 PM, Guenter Roeck wrote: > On 05/31/2016 09:27 AM, Andrew F. Davis wrote: >> Signed-off-by: Andrew F. Davis >> --- >> Documentation/hwmon/tmp401 | 18 +-- >> drivers/hwmon/Kconfig | 2 +- >> drivers/hwmon/tmp401.c | 81 >> ++

[PATCH v2 1/1] hwmon: (tmp401) Add support for TI TMP461

2016-06-08 Thread Andrew F. Davis
Signed-off-by: Andrew F. Davis --- Changes from v1: - Dropped n-factor correction until a generic solution is developed - Removed double empty line Documentation/hwmon/tmp401 | 14 -- drivers/hwmon/Kconfig | 2 +- drivers/hwmon/tmp401.c | 35 +-

Re: [PATCH v5 08/11] powerpc/powernv: Add platform support for stop instruction

2016-06-08 Thread Shreyas B Prabhu
Hi Ben, Sorry for the delayed response. On 06/06/2016 03:58 AM, Benjamin Herrenschmidt wrote: > On Thu, 2016-06-02 at 07:38 -0500, Shreyas B. Prabhu wrote: >> @@ -61,8 +72,13 @@ save_sprs_to_stack: >> * Note all register i.e per-core, per-subcore or per-thread is saved >> * here

Re: [PATCH] serial: earlycon: stop abusing console::index

2016-06-08 Thread Peter Hurley
On 06/03/2016 08:19 AM, Mark Rutland wrote: > Commit cda64e6824026575 ("serial: earlycon: Fixup earlycon console name > and index") added code to decompose an earlycon driver name into a > string prefix and numeric suffix, and place this into console::name and > console::index, such that we'd get a

[PATCH] lib/iommu-helper: skip to next segment

2016-06-08 Thread Sebastian Ott
When a large enough area in the iommu bitmap is found but would span a boundary we continue the search starting from the next bit position. For large allocations this can lead to several useless invocations of bitmap_find_next_zero_area() and iommu_is_span_boundary(). Continue the search from the

Re: Re: [PATCH] staging: slicoss: replacement of goto statements

2016-06-08 Thread Greg KH
On Wed, Jun 08, 2016 at 11:28:11AM -0500, Jaime Arrocha wrote: > > On Wed, 08 Jun 2016 10:49:47 -0500 Greg KH > wrote > > > On Wed, Jun 08, 2016 at 08:46:06AM -0500, Jaime Arrocha wrote: > > > From: Jaime Arrocha > > > > > > Replaced deprecated goto statements. > > > >

Re: [PATCH 17/23] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-06-08 Thread Yury Norov
On Wed, Jun 08, 2016 at 09:34:09AM +0800, zhouchengming wrote: > On 2016/5/24 8:04, Yury Norov wrote: > >Here new aarch32 ptrace syscall handler is introsuced to avoid run-time > >detection of the task type. > > > >Signed-off-by: Yury Norov [...] > Hello, I found ilp32 will use sys_ptrace, not co

Re: [RFC PATCH] regulator: introduce boot protection flag

2016-06-08 Thread Mark Brown
On Mon, May 09, 2016 at 03:05:08PM +0800, WEN Pingbo wrote: > In some platforms, critical shared regulator is initialized in > bootloader. But during kernel booting, the driver probing order and > conflicting operations from other regulator consumers, may set the > regulator in a undefined state,

[PATCH net-next v2] netvsc: get rid of completion timeouts

2016-06-08 Thread Vitaly Kuznetsov
I'm hitting 5 second timeout in rndis_filter_set_rss_param() while setting RSS parameters for the device. When this happens we end up returning -ETIMEDOUT from the function and rndis_filter_device_add() falls back to setting net_device->max_chn = 1; net_device->num_chn = 1;

Re: [PATCH 1/3] PM / Runtime: Add notifiers for device runtime PM events

2016-06-08 Thread Rafael J. Wysocki
On Wed, Jun 8, 2016 at 12:25 PM, Marek Szyprowski wrote: > From: Krzysztof Kozlowski > > Allow drivers registering for certain runtime PM events of other > devices. Some drivers in power domain are more or less coupled. When one > driver is suspending (thus leading to power domain being also turn

Re: [PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-08 Thread Naveen N. Rao
On 2016/06/07 03:56PM, Alexei Starovoitov wrote: > On Tue, Jun 07, 2016 at 07:02:23PM +0530, Naveen N. Rao wrote: > > PPC64 eBPF JIT compiler. > > > > Enable with: > > echo 1 > /proc/sys/net/core/bpf_jit_enable > > or > > echo 2 > /proc/sys/net/core/bpf_jit_enable > > > > ... to see the generated

Re: [PATCH] serial: earlycon: stop abusing console::index

2016-06-08 Thread Mark Rutland
On Wed, Jun 08, 2016 at 10:06:22AM -0700, Peter Hurley wrote: > On 06/03/2016 08:19 AM, Mark Rutland wrote: > > Commit cda64e6824026575 ("serial: earlycon: Fixup earlycon console name > > and index") added code to decompose an earlycon driver name into a > > string prefix and numeric suffix, and pl

[PATCH] ARM: exynos_defconfig add CONFIG_EXYNOS_IOMMU in not set mode

2016-06-08 Thread Shuah Khan
Add CONFIG_EXYNOS_IOMMU in not set mode to make it easier to enable it. Signed-off-by: Shuah Khan --- arch/arm/configs/exynos_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index daf9762..16c2957 100644 --- a/a

Re: [RFC][PATCH 2/5] hi655x-pmic: Make hi655x pmic logic probe child nodes in the dt

2016-06-08 Thread John Stultz
On Wed, Jun 8, 2016 at 7:31 AM, Lee Jones wrote: > > Please use full buffer width. Wrapping at 50 chars is not necessary. But then how would you be able to review patches on your phone?! :) >> --- a/drivers/mfd/hi655x-pmic.c >> +++ b/drivers/mfd/hi655x-pmic.c >> @@ -39,6 +39,11 @@ static const

Re: Files leak from nfsd in 4.7.1-rc1 (and more?)

2016-06-08 Thread Jeff Layton
On Wed, 2016-06-08 at 12:10 -0400, Oleg Drokin wrote: > On Jun 8, 2016, at 6:58 AM, Jeff Layton wrote: > > > A simple way to confirm that might be to convert all of the read locks > > on the st_rwsem to write locks. That will serialize all of the open > > operations and should prevent that particu

Re: [RFC][PATCH 0/5] Functional dependencies between devices

2016-06-08 Thread Rafael J. Wysocki
On Wed, Jun 8, 2016 at 2:15 PM, Mark Brown wrote: > On Thu, Jan 14, 2016 at 02:52:11AM +0100, Rafael J. Wysocki wrote: > >> What follows is my prototype implementation of this. It took some time >> to develop (much more than I was hoping for), but here it goes at last. > > Might be worth posting

[PATCH 5/7] f2fs: introduce force_lfs mount option

2016-06-08 Thread Jaegeuk Kim
This mount option is to enable original log-structured filesystem forcefully. So, there should be no random writes for main area. Especially, this supports host-managed SMR device. Signed-off-by: Jaegeuk Kim --- Documentation/filesystems/f2fs.txt | 3 +++ fs/f2fs/data.c |

[PATCH 2/3] x86, siginfo: add build-time checks in siginfo compat code

2016-06-08 Thread Dave Hansen
From: Dave Hansen There were at least 3 features added to the __SI_FAULT area of the siginfo struct that did not make it to the compat siginfo: 1. The si_addr_lsb used in SIGBUS's sent for machine checks 2. The upper/lower bounds for MPX SIGSEGV faults 3. The protection

[PATCH 1/7] f2fs: set mapping error for EIO

2016-06-08 Thread Jaegeuk Kim
If EIO occurred, we need to set all the mapping to avoid any further IOs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c9d6fe2..30dc448 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -

[PATCH 6/7] f2fs: fix deadlock in add_link failure

2016-06-08 Thread Jaegeuk Kim
mkdirsync_dirty_inode - init_inode_metadata - lock_page(node) - make_empty_dir - filemap_fdatawrite() - do_writepages - lock_page(data) - write_page(

[PATCH 0/3] [v2] x86: compat_siginfo fixes and build-time tests

2016-06-08 Thread Dave Hansen
Changes from v1: * lots of style fixups to the MPX selftests. No Functional changes. --- We have not been updating the x86 compat_siginfo when updating the generic one. These patches fix the issue, and then add a bunch of build-time checks to try to avoid this happening again in the future

[PATCH 7/7] f2fs: don't need to flush unlinked dentry pages

2016-06-08 Thread Jaegeuk Kim
We don't need to flush any dentry pages used by unlinked directory. They will be truncated by f2fs_evict_inode. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 4179c7b..e67

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