Re: [PATCH 5/9] clocksource/drivers/exynos_mct: Convert init function to return error

2016-06-06 Thread Krzysztof Kozlowski
On 06/01/2016 10:34 AM, Daniel Lezcano wrote: > The init functions do not return any error. They behave as the following: > > - panic, thus leading to a kernel crash while another timer may work and >make the system boot up correctly > > or > > - print an error and let the caller unaware

Re: [RFC PATCH v2] sched: reflect sched_entity movement into task_group's utilization

2016-06-06 Thread Dietmar Eggemann
On 24/05/16 10:55, Vincent Guittot wrote: [...] > +/* Take into account the change of the utilization of a child task group */ > +static void update_tg_cfs_util(struct sched_entity *se, int blocked) > +{ > + int delta; > + struct cfs_rq *cfs_rq; > + long update_util_avg; > + long

[PATCH v6 4/9] perf config: Use new perf_config_set__init() to initialize config set

2016-06-06 Thread Taeung Song
Instead of perf_config(), This function initialize config set collecting all configs from config files (i.e. user config ~/.perfconfig and system config $(sysconfdir)/perfconfig). If there are the same config variable both user and system config file, user config has higher priority than system co

[RFC][PATCH v6 0/9] perf config: Reimplement perf_config() using perf_config_set__inter()

2016-06-06 Thread Taeung Song
Hello, :) This patchset is to reimplement perf_config() for efficient config management. Everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use 'struct perf_config_set config_se

[BUGFIX][PATCH v6 1/9] perf config: Fix the problem of abnormal termination at perf_parse_file()

2016-06-06 Thread Taeung Song
If a config file has wrong key-value pairs, perf process will be forcibly terminated by die() at perf_parse_file() called by perf_config() so terminal setting can be crushed because of unusual termination. For example, If user config file has a wrong value 'red;default' instead of a normal value

[PATCH v6 6/9] perf config: Use zfree() instead of free() at perf_config_set__delete()

2016-06-06 Thread Taeung Song
perf_config_set__delete() delete allocated the config set but the global variable 'config_set' is used all around. So purge and zfree by an address of the global variable , i.e. 'struct perf_config_set **' type instead of using local variable 'set' of which type is 'struct perf_config_set *'. Cc:

[PATCH v6 7/9] perf config: Reimplement perf_config() using perf_config_set__iter()

2016-06-06 Thread Taeung Song
Everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But we need to use the config set that already contains all config key-value pairs to avoid this repetitive work reading the config files in pe

[PATCH v6 8/9] perf config: Reset the config set at only 'config' sub-command

2016-06-06 Thread Taeung Song
When first calling perf_config(), the config set is initialized collecting both user and system config files (i.e. user config ~/.perfconfig and system config $(sysconfdir)/perfconfig) so config set contains not only user config but also system config key-value pairs. (User config has higher priori

[PATCH v6 9/9] perf config: Reimplement show_config() using perf_config()

2016-06-06 Thread Taeung Song
Old show_config() directly use config set so there are many duplicated code with perf_config_set__iter(). So reimplement show_config() using perf_config() that use perf_config_set__iter() with config set that already contains all configs. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Masami Hiramatsu Cc:

[BUGFIX][PATCH v6 3/9] perf config: Handle the error when config set is NULL at collect_config()

2016-06-06 Thread Taeung Song
collect_config() collect all config key-value pairs from config files and put each config info in config set. But if config set (i.e. 'set' variable at collect_config()) is NULL, this is wrong so handle it. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Alexander Shishkin Signed-off-b

[PATCH v6 5/9] perf config: Add global variable 'config_set'

2016-06-06 Thread Taeung Song
The config set is prepared by collecting all configs from config files (i.e. user config ~/.perfconfig and system config $(sysconfdir)/perfconfig) so the config set contains all config key-value pairs. We need to use it as global variable to share it. And in near future, the variable will be handl

[BUGFIX][PATCH v6 2/9] perf config: If collect_config() is failed, finally free a config set after it is done

2016-06-06 Thread Taeung Song
Because of die() at perf_parse_file() a config set was freed in collect_config(), if failed. But it is natural to free a config set after collect_config() is done when some problems happened. So, in case of failure, lastly free a config set at perf_config_set__new() instead of freeing the config s

[PATCH 3/3] ARC: [nsimosci] Enable ARC PGU on nSIM OSCI virtual platforms

2016-06-06 Thread Alexey Brodkin
With required ARC PGU updates that allow it to be used on simulation platforms we may finally utilize ARC PGU in nSIM OSCI virtual platforms with modern Linux kernels. Signed-off-by: Alexey Brodkin --- arch/arc/boot/dts/nsimosci.dts | 14 +++--- arch/arc/boot/dts/nsimosci_hs.

[PATCH 0/3] Make ARC PGU usable on sim platforms

2016-06-06 Thread Alexey Brodkin
Initially ARC PGU required real encoder/trnasmitter to exist. That was fine for real HW such as ARC SDP boards. But on some simulaiton platroms like ARC VDK or nSIM OSCI we have model of the same ARC PGU and ability to output video data in a virtual LCD. To make ARC PGU driver usable in those vir

[PATCH 2/3] ARCv2: [vdk] Enable ARC PGU on HS38 VDK

2016-06-06 Thread Alexey Brodkin
With required ARC PGU updates that allow it to be used on simulation platforms we may finally utilize ARC PGU in HS38 VDK with modern Linux kernels. Signed-off-by: Alexey Brodkin --- arch/arc/boot/dts/vdk_axs10x_mb.dtsi| 13 + arch/arc/boot/dts/vdk_hs38_smp.dts | 2 +- arch

[PATCH 1/3] drm/arcpgu: Make ARC PGU usable on simulation platforms

2016-06-06 Thread Alexey Brodkin
From: Ruud Derwig Initially ARC PGU required real encoder/trnasmitter to exist. That was fine for real HW such as ARC SDP boards. But on some simulaiton platroms like ARC VDK or nSIM OSCI we have model of the same ARC PGU and ability to output video data in a virtual LCD. To make ARC PGU driver

[PATCH v1 06/10] Staging: comedi: Prefer using the BIT macro issue in das16.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This patch Replace all occurences of (1< --- drivers/staging/comedi/drivers/das16.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16.c b/drivers/staging/comedi/drivers/das16.c index fd8e0b7..69133e3 100644

[PATCH v1 04/10] Staging: comedi:Fix a warning issues in me_daq.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the me_daq.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/me_daq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH v1 06/10] Staging: comedi: Prefer using the BIT macro issue in das16.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This patch Replace all occurences of (1< --- drivers/staging/comedi/drivers/das16.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/staging/comedi/drivers/das16.c b/drivers/staging/comedi/drivers/das16.c index fd8e0b7..69133e3 100644

[PATCH v1 01/10] Staging: comedi: Use unsigned int instead of unsigned issue in pcmuio.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the pcmuio.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/pcmuio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH v1 07/10] Staging: comedi: fix BIT macro issue in das6402.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This patch Replace all occurences of (1< --- drivers/staging/comedi/drivers/das6402.c | 74 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/drivers/staging/comedi/drivers/das6402.c b/drivers/staging/comedi/drivers/das6402.c index 1701294..0fdf5e0 1

[PATCH v1 08/10] Staging: comedi: Prefer unsigned int instead of unsigned in comedi_bond.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the comedi_bond.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/comedi_bond.c | 10 +- 1 file changed, 5 insertions(+)

[PATCH v1 09/10] Staging: comedi: Block comment issue fixed for das16m1.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the das16m1.c file that fixes up a WARNING: 'Block comments use a trailing */ on a separate line' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/das16m1.c | 168 --- 1 file chan

Re: [PATCH 0/4] mtd: nand: Add support for Evatronix NANDFLASH-CTRL

2016-06-06 Thread Kamlakant Patel
On Mon, Jun 6, 2016 at 11:17 AM, Ricard Wanderlof wrote: > > On Thu, 2 Jun 2016, Boris Brezillon wrote: > >> Hi Ricard, >> >> I was not in Cc of this series, so you're either developing an old >> kernel version, or you didn't check the MAINTAINERS file (or didn't run >> get_maintainer.pl on your s

[PATCH v1 10/10] Staging: comedi: Used unsigned int instead of unsigned issue in jr3_pci.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the jr3_pci.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/jr3_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

[PATCH v1 05/10] Staging: comedi: Fix comment issues in jr3_pci.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the jr3_pci.c file that fixes up a WARNING: 'Block comments use a trailing */ on a separate line' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/jr3_pci.c | 32 1 file chan

Re: [PATCH 2/3] clk: samsung: exynos5410: Add WDT, ACLK266 and SSS clocks

2016-06-06 Thread Sylwester Nawrocki
On 06/01/2016 11:45 AM, Krzysztof Kozlowski wrote: > Add clock hierarchy for Security SubSystem clock and watchdog. > > Signed-off-by: Krzysztof Kozlowski A applied patches: [PATCH 1/3] dt-bindings: clock: Add watchdog and SSS clock IDs to Exynos5410 [PATCH 2/3] clk: samsung: exynos5410: Add W

[PATCH v1 03/10] Staging: comedi: Indentation issue in mpc624.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the mpc624.c file that fixes up a WARNING: 'Statements should start on a tabstop' found by the checkpatch.pl tool. Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/mpc624.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[PATCH v1 02/10] Staging: comedi: fix bare use of unsigned issue in ni_65xx.c

2016-06-06 Thread Ravishankar Karkala Mallikarjunayya
This is a patch to the ni_65xx.c file that fixes up a WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool Signed-off-by: Ravishankar Karkala Mallikarjunayya --- drivers/staging/comedi/drivers/ni_65xx.c | 18 +- 1 file changed, 9 insertions(+),

Re: [PATCH v4 1/6] perf config: Use new perf_config_set__init() to initialize config set

2016-06-06 Thread Taeung Song
Hi, Arnaldo :) Did you have a nice weekend? I sent this mail for nothing else but to tell the reason of v6 to you. On 06/01/2016 01:52 AM, Taeung Song wrote: On 05/31/2016 10:43 PM, Arnaldo Carvalho de Melo wrote: Em Tue, May 31, 2016 at 10:13:43AM +0900, Taeung Song escreveu: Instead of pe

Re: [PATCH 0/4]nbd: fixes for nbd

2016-06-06 Thread Pranay Srivastava
This got rejected by mailing-list[due to HTML content] so resending it again. On Sat, Jun 4, 2016 at 10:25 AM, Pranay Srivastava wrote: > > > On Thursday, June 2, 2016, Pranay Kr. Srivastava wrote: >> This patch series fixes the following >> >> 1) fix might_sleep warning on socket shutdown: >>

Re: [PATCH 2/3] clk: samsung: exynos5410: Add WDT, ACLK266 and SSS clocks

2016-06-06 Thread Krzysztof Kozlowski
On 06/06/2016 01:02 PM, Sylwester Nawrocki wrote: > On 06/01/2016 11:45 AM, Krzysztof Kozlowski wrote: >> Add clock hierarchy for Security SubSystem clock and watchdog. >> >> Signed-off-by: Krzysztof Kozlowski > > A applied patches: > > [PATCH 1/3] dt-bindings: clock: Add watchdog and SSS clock

Re: [v2] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-06 Thread Michael Ellerman
On Fri, 2016-03-06 at 03:49:48 UTC, Boqun Feng wrote: > diff --git a/arch/powerpc/include/asm/spinlock.h > b/arch/powerpc/include/asm/spinlock.h > index 523673d7583c..2ed893662866 100644 > --- a/arch/powerpc/include/asm/spinlock.h > +++ b/arch/powerpc/include/asm/spinlock.h > @@ -64,6 +64,25 @@ st

Re: [RESEND PATCH 00/14] eeprom: at24: driver rework and at24cs/at24mac support

2016-06-06 Thread Wolfram Sang
Bartosz, the only thing you achieve by resending large series a week(!) after it had been originally posted is to create annoyance. You should know by now that I use patchwork which doesn't forget things... I appreciate the work you did; yet I alone can't compensate for the lack of reviewing on t

Re: [PATCH 5/9] clocksource/drivers/exynos_mct: Convert init function to return error

2016-06-06 Thread Daniel Lezcano
On 06/06/2016 12:51 PM, Krzysztof Kozlowski wrote: On 06/01/2016 10:34 AM, Daniel Lezcano wrote: The init functions do not return any error. They behave as the following: - panic, thus leading to a kernel crash while another timer may work and make the system boot up correctly or -

[PATCH 0/5] Input: alps - cleanup

2016-06-06 Thread Pali Rohár
This patch series cleanup usage of alps_model_data table. Pali Rohár (5): Input: alps - move ALPS_PROTO_V6 out of alps_model_data table Input: alps - move ALPS_PROTO_V4 out of alps_model_data table Input: alps - move ALPS_PROTO_V1 out of alps_model_data table Input: alps - warn about unsup

[PATCH 3/5] Input: alps - move ALPS_PROTO_V1 out of alps_model_data table

2016-06-06 Thread Pali Rohár
Like for other protocols create alps_v1_protocol_data and use it in alps_identify() function. Signed-off-by: Pali Rohár --- drivers/input/mouse/alps.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index 087

[PATCH 1/5] Input: alps - move ALPS_PROTO_V6 out of alps_model_data table

2016-06-06 Thread Pali Rohár
Like for other protocols create alps_v6_protocol_data and use it in alps_identify() function. Signed-off-by: Pali Rohár --- drivers/input/mouse/alps.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index 936f07

[PATCH 5/5] Input: alps - cleanup ALPS_PROTO_V2 detection

2016-06-06 Thread Pali Rohár
Table alps_model_data is now used only for ALPS_PROTO_V2, so add "v2" indentifier to all relevant functions/variables/structures. Sort all devices by signature and remove command_mode_resp which is not used anymore. Signed-off-by: Pali Rohár --- drivers/input/mouse/alps.c | 66

[PATCH 4/5] Input: alps - warn about unsupported ALPS V9 touchpad

2016-06-06 Thread Pali Rohár
Support for devices with ALPS_PROTO_V9 is not implemented yet but we can detect these alps touchpads and warn users about it. Signed-off-by: Pali Rohár --- drivers/input/mouse/alps.c |9 + drivers/input/mouse/alps.h |1 + 2 files changed, 10 insertions(+) diff --git a/drivers/in

[PATCH 2/5] Input: alps - move ALPS_PROTO_V4 out of alps_model_data table

2016-06-06 Thread Pali Rohár
Like for other protocols create alps_v4_protocol_data and use it in alps_identify() function. Signed-off-by: Pali Rohár --- drivers/input/mouse/alps.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index eb

kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch")

2016-06-06 Thread Catalin Marinas
Hi Christoph, I tried enabling kmemleak on 4.7-rc2 on an x86 host (macbook pro running Debian sid) and I get some kmemleak reports every few minutes coming from the block layer. Reverting commit 9082e87bfbf8 ("block: remove struct bio_batch") makes them go away: unreferenced object 0x88007785

Re: [PATCH v3 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-06-06 Thread Mark Rutland
On Mon, Jun 06, 2016 at 05:20:03PM +0800, Frank Wang wrote: > Signed-off-by: Frank Wang > --- > > Changes in v3: > - Added 'clocks' and 'clock-names' optional properties. > - Specified 'otg-port' and 'host-port' as the sub-node name. > > Changes in v2: > - Changed vbus_host optional property

Re: [PATCH 5/9] clocksource/drivers/exynos_mct: Convert init function to return error

2016-06-06 Thread Krzysztof Kozlowski
On 06/06/2016 01:23 PM, Daniel Lezcano wrote: > On 06/06/2016 12:51 PM, Krzysztof Kozlowski wrote: >> On 06/01/2016 10:34 AM, Daniel Lezcano wrote: >>> The init functions do not return any error. They behave as the >>> following: >>> >>> - panic, thus leading to a kernel crash while another timer

[PATCH 1/1][resend] usbnet: cdc_ether.c: use Samsung Galaxy Grand Prime VE as an USB modem

2016-06-06 Thread J. Mayer
From: Jocelyn Mayer Make cdc_ether able to use Samsung Galaxy Grand Prime VE (aka SM-G531F) smartphone as an USB Wifi / 4G network gateway. This patch has only been succesfully tested with Galaxy Grand Prime VE but according to libmtp headers, it should also work with most (or all) Samsung Andro

Re: [PATCH 0/5] Input: alps - cleanup

2016-06-06 Thread Hans de Goede
Hi, On 06-06-16 13:23, Pali Rohár wrote: This patch series cleanup usage of alps_model_data table. Pali Rohár (5): Input: alps - move ALPS_PROTO_V6 out of alps_model_data table Input: alps - move ALPS_PROTO_V4 out of alps_model_data table Input: alps - move ALPS_PROTO_V1 out of alps_model

[RFC PATCH 0/2] mm: give GFP_REPEAT a better semantic

2016-06-06 Thread Michal Hocko
Hi, this is a follow up for __GFP_REPEAT clean up merged into mmotm just recently [1]. The main motivation for the change is that the current implementation of __GFP_REPEAT is not very much useful. The documentation says: * __GFP_REPEAT: Try hard to allocate the memory, but the allocation attempt

[RFC PATCH 1/2] mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_HARD with more useful semantic

2016-06-06 Thread Michal Hocko
From: Michal Hocko __GFP_REPEAT was designed to allow retry-but-eventually-fail semantic to the page allocator. This has been true but only for allocations requests larger than PAGE_ALLOC_COSTLY_ORDER. It has been always ignored for smaller sizes. This is a bit unfortunate because there is no way

[RFC PATCH 2/2] xfs: map KM_MAYFAIL to __GFP_RETRY_HARD

2016-06-06 Thread Michal Hocko
From: Michal Hocko KM_MAYFAIL didn't have any suitable GFP_FOO counterpart until recently so it relied on the default page allocator behavior for the given set of flags. This means that small allocations actually never failed. Now that we have __GFP_RETRY_HARD flags which works independently on

Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-06-06 Thread Mark Brown
On Sun, Jun 05, 2016 at 01:27:11PM +0200, Michal Suchanek wrote: > On 2 June 2016 at 16:26, Mark Brown wrote: > > On Thu, Jun 02, 2016 at 02:14:26PM +0200, Michal Suchanek wrote: > >> And the code added in that patch will never run unless you > >> 1) use long spi transfers > >> 2) compile in/loa

[PATCH v3] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-06 Thread Michael Ellerman
From: Boqun Feng There is an ordering issue with spin_unlock_wait() on powerpc, because the spin_lock primitive is an ACQUIRE and an ACQUIRE is only ordering the load part of the operation with memory operations following it. Therefore the following event sequence can happen: CPU 1

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread Mark Rutland
On Mon, Jun 06, 2016 at 11:09:07AM +0200, Arnd Bergmann wrote: > On Monday, June 6, 2016 9:56:27 AM CEST Mark Rutland wrote: > > [adding devicetree] > > > > On Sun, Jun 05, 2016 at 11:20:29PM -0400, Bill Mills wrote: > > > Keystone2 can do DMA coherency but only if: > > > 1) DDR3A DMA buffers are

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread Russell King - ARM Linux
On Mon, Jun 06, 2016 at 09:56:27AM +0100, Mark Rutland wrote: > I very much do not like this. As I previously mentioned [1], > dma-coherent has de-facto semantics today. This series deliberately > changes that, and inverts the relationship between DT and kernel (as the > describption in the DT woul

[PATCH v5 5/5] thermal: rockchip: add the set_trips function

2016-06-06 Thread Caesar Wang
Whenever the current temperature is updated, the trip points immediately below and above the current temperature are found. A sensor driver callback `set_trips' is then called with the temperatures. Lastly, The sensor will trigger the hardware high temperature interrupts to increase the sampleing r

[PATCH v5 2/5] thermal: of: implement .set_trips for device tree thermal zones

2016-06-06 Thread Caesar Wang
From: Sascha Hauer This patch implements .set_trips for device tree thermal zones. As the hardware-tracked trip points is supported by thermal core patch[0]. patch[0] "thermal: Add support for hardware-tracked trip points". Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui

[PATCH v5 3/5] thermal: streamline get_trend callbacks

2016-06-06 Thread Caesar Wang
From: Sascha Hauer The .get_trend callback in struct thermal_zone_device_ops has the prototype: int (*get_trend) (struct thermal_zone_device *, int, enum thermal_trend *); whereas the .get_trend callback in struct thermal_zone_of_device_ops has: int (*get

[PATCH v5 4/5] thermal: bang-bang governor: act on lower trip boundary

2016-06-06 Thread Caesar Wang
From: Sascha Hauer With interrupt driven thermal zones we pass the lower and upper temperature on which shall be acted, so in the governor we have to act on the exact lower temperature to be consistent. Otherwise an interrupt maybe generated on the exact lower temperature, but the bang bang gover

[PATCH v5 0/5] Thermal: Support for hardware-tracked trip points

2016-06-06 Thread Caesar Wang
-next-20160606-02546-g534926d (wxt@nb) --- There are five pathes in this series. thermal: Add support for hardware-tracked trip point thermal: of: implement .set_trips for device tree thermal zones thermal: streamline get_trend callbacks thermal: bang-bang governor: act on lower trip boundary th

[PATCH v5 1/5] thermal: Add support for hardware-tracked trip points

2016-06-06 Thread Caesar Wang
From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. Whenever the current temperature is updated, the trip points immediately below and above the current temperature are found

[PATCH V5 3/9] irqdomain: Don't set type when mapping an IRQ

2016-06-06 Thread Jon Hunter
Some IRQ chips, such as GPIO controllers or secondary level interrupt controllers, may require require additional runtime power management control to ensure they are accessible. For such IRQ chips, it makes sense to enable the IRQ chip when interrupts are requested and disabled them again once all

[PATCH V5 4/9] genirq: Add runtime power management support for IRQ chips

2016-06-06 Thread Jon Hunter
Some IRQ chips may be located in a power domain outside of the CPU subsystem and hence will require device specific runtime power management. In order to support such IRQ chips, add a pointer for a device structure to the irq_chip structure, and if this pointer is populated by the IRQ chip driver a

[PATCH V5 5/9] irqchip/gic: Isolate early GIC initialisation code

2016-06-06 Thread Jon Hunter
To re-use the code that initialises the GIC (found in __gic_init_bases()), from within a platform driver, it is necessary to move the code from the __init section so that it is always present and not removed. Unfortunately, it is not possible to simply drop the __init from the function declaration

[PATCH V5 0/9] Add support for Tegra210 AGIC

2016-06-06 Thread Jon Hunter
The Tegra210 has a 2nd level interrupt controller located in a separate power domain to the main GIC interrupt controller and hence requires runtime-pm support. Add a platform driver for the GICs that require runtime-pm and make the necessary changes to the genirq and irqdomain core to support IRQ

[PATCH V5 7/9] irqchip/gic: Prepare for adding platform driver

2016-06-06 Thread Jon Hunter
To support GICs that require runtime power management, it is necessary to add a platform driver, so that the probing of the chip can be deferred if resources, such as a power-domain, is not yet available. To prepare for adding a platform driver: 1. Drop the __init section from the gic_dist_config

[PATCH V5 1/9] irqdomain: Fix handling of type settings for existing mappings

2016-06-06 Thread Jon Hunter
When mapping an IRQ, it is possible that a mapping for the IRQ already exists. If mapping does exist then there are the following issues with regard to the handling of the IRQ type settings ... 1. If the domain is part of a hierarchy, then: a. We do not check that the type settings for the exist

[PATCH V5 8/9] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-06-06 Thread Jon Hunter
The Tegra AGIC interrupt controller is compatible with the ARM GIC-400 interrupt controller. Add the compatible string and clock information for the AGIC to the GIC device-tree binding documentation. Signed-off-by: Jon Hunter Acked-by: Rob Herring --- Documentation/devicetree/bindings/interrupt

[PATCH V5 6/9] irqchip/gic: Add helper function for chip initialisation

2016-06-06 Thread Jon Hunter
For GICs that require runtime power-management it is necessary to populate the 'parent_device' member of the irqchip structure. In preparation for supporting such GICs, move the code that initialises the irqchip structure for a GIC into its own function called gic_init_chip() where the parent devic

[PATCH V5 9/9] irqchip/gic: Add platform driver for non-root GICs that require RPM

2016-06-06 Thread Jon Hunter
Add a platform driver to support non-root GICs that require runtime power-management. Currently, only non-root GICs are supported because the functions, smp_cross_call() and set_handle_irq(), that need to be called for a root controller are located in the __init section and so cannot be called by t

[PATCH V5 2/9] genirq: Look-up trigger type if not specified by caller

2016-06-06 Thread Jon Hunter
For some devices the IRQ trigger type for a device is read from firmware, such as device-tree. The IRQ trigger type is typically read when the mapping for IRQ is created, which is before the IRQ is requested. Hence, the IRQ trigger type is programmed when mapping the IRQ and not when requesting the

Re: [PATCH v3] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-06 Thread Peter Zijlstra
On Mon, Jun 06, 2016 at 09:42:20PM +1000, Michael Ellerman wrote: > +static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) > +{ > + arch_spinlock_t lock_val; > + > + smp_mb(); > + > + /* > + * Atomically load and store back the lock value (unchanged). This > + * ensu

[PATCH V3 2/2] thermal: max77620: Add thermal driver for reporting junction temp

2016-06-06 Thread Laxman Dewangan
Maxim Semiconductor Max77620 supports alarm interrupts when its die temperature crosses 120C and 140C. These threshold temperatures are not configurable. Add thermal driver to register PMIC die temperature as thermal zone sensor and capture the die temperature warning interrupts to notifying the c

[PATCH V3 1/2] thermal: max77620: Add DT binding doc for thermal driver

2016-06-06 Thread Laxman Dewangan
Maxim Semiconductor MAX77620 supports alarm interrupts when its die temperature crosses 120C and 140C. These threshold temperatures are not configurable. Add DT binding document to details out the DT property related to MAX77620 thermal functionality. Signed-off-by: Laxman Dewangan --- .../bind

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread Mark Rutland
On Mon, Jun 06, 2016 at 12:43:21PM +0100, Russell King - ARM Linux wrote: > On Mon, Jun 06, 2016 at 09:56:27AM +0100, Mark Rutland wrote: > > I very much do not like this. As I previously mentioned [1], > > dma-coherent has de-facto semantics today. This series deliberately > > changes that, and in

Re: [PATCH] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-06 Thread Tomi Valkeinen
Hi, On 06/06/16 13:44, Lothar Waßmann wrote: > 'brightness' is usually an index into a table of duty_cycle values, > where the value at index 0 may well be non-zero > (tegra30-apalis-eval.dts and tegra30-colibri-eval-v3.dts are real-life > examples). > Thus brightness == 0 does not necessarily mea

Re: [PATCH][RT] netpoll: Always take poll_lock when doing polling

2016-06-06 Thread Clark Williams
On Sun, 5 Jun 2016 08:16:58 -0700 Alison Chaiken wrote: > Steven Rostedt suggests in reference to "[PATCH][RT] netpoll: Always > take poll_lock when doing polling" > >> [ Alison, can you try this patch ] > > Sebastian follows up: > >Alison, did you try it? > > Sorry for not responding soone

[PATCH] MAINTAINERS: Add me as reviewer of ALPS PS/2 touchpad driver

2016-06-06 Thread Pali Rohár
Signed-off-by: Pali Rohár --- MAINTAINERS |4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ed1229e..057c626 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -595,6 +595,10 @@ S: Odd Fixes L: linux-al...@vger.kernel.org F: arch/alpha/ +ALPS PS/2 T

[PATCH] watchdog: max77620: Add support for watchdog timer

2016-06-06 Thread Laxman Dewangan
Maxim PMIC MAX77620 is Power management IC which have multiple sub blocks like regulators (DCDC/LDOs), GPIO, RTC, Clock, Watchdog timer etc. Add the driver for watchdog timer under watchdog framework. The driver implements the watchdog callbacks to start, stop, ping and set timeout for watchodg fr

[PATCH 0/3] Write dump into container's filesystem for pipe_type core_pattern

2016-06-06 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. For example, when we set following core_pattern: # echo "|/my_dump_pipe %s %c

[PATCH 3/3] Write dump into container's filesystem for pipe_type core_pattern

2016-06-06 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. For example, when we set following core_pattern: # echo "|/my_dump_pipe %s %c

[PATCH 2/3] Make dump_pipe thread possilbe to select the rootfs

2016-06-06 Thread Zhao Lei
To make the dump_pipe thread run in container's filesystem, we need to make it possible to select its fs_root from fork. Then the dump_pipe thread will exec user_defined pipe program in container's fs_root, and the problem will also write dumpdata into the same fs_root. Signed-off-by: Zhao Lei -

Re: [PATCH V3 8/9] cpufreq: Keep policy->freq_table sorted in ascending order

2016-06-06 Thread Rafael J. Wysocki
On Monday, June 06, 2016 09:22:31 AM Viresh Kumar wrote: > On 03-06-16, 16:48, Steve Muckle wrote: > > On Fri, Jun 03, 2016 at 07:05:14PM +0530, Viresh Kumar wrote: > > ... > > > @@ -468,20 +469,15 @@ unsigned int acpi_cpufreq_fast_switch(struct > > > cpufreq_policy *policy, > > > struct acpi_cp

[PATCH 1/3] Save dump_root into pid_namespace

2016-06-06 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. Reason of above different is: In pipe_mode dump_pattern setting, the process wh

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

2016-06-06 Thread Pramod Gurav
On 6 May 2016 at 15:16, 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 > --- > dr

Re: [RFC PATCH 2/3] sched/fair: Sync se with root cfs_rq

2016-06-06 Thread Vincent Guittot
Hi Dietmar, On 1 June 2016 at 21:39, Dietmar Eggemann wrote: > Since task utilization is accrued only on the root cfs_rq, there are a > couple of places where the se has to be synced with the root cfs_rq: > > (1) The root cfs_rq has to be updated in attach_entity_load_avg() for > an se repres

Re: [PATCH v3] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-06 Thread Michael Ellerman
On Mon, 2016-06-06 at 13:56 +0200, Peter Zijlstra wrote: > On Mon, Jun 06, 2016 at 09:42:20PM +1000, Michael Ellerman wrote: > > +static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) > > +{ > > + arch_spinlock_t lock_val; > > + > > + smp_mb(); > > + > > + /* > > +* Atomically l

Re: [RFC v2 1/4] ARM: mm: add early page table attribute modification ability

2016-06-06 Thread Russell King - ARM Linux
On Sun, Jun 05, 2016 at 11:20:26PM -0400, Bill Mills wrote: > Allow early-init to specify modifications to be made to the boot time page > table. Any modifications specified will be done with MMU off at the same > time that any Phy<->Virt fixup is done. I think this is rather over-engineered - do

Re: [PATCH 2/2] IB/sysfs: fix memory leak

2016-06-06 Thread Leon Romanovsky
On Mon, Jun 06, 2016 at 09:34:54AM +0300, Leon Romanovsky wrote: > On Sun, Jun 05, 2016 at 09:13:56PM +0100, Sudip Mukherjee wrote: > > If the allocation of hsag fails we were just returning but stats was > > not released. > > > > Signed-off-by: Sudip Mukherjee > > Thanks, > Reviewed-by: Leon Ro

Re: [RFC v2 4/4] ARM: keystone: dma-coherent with safe fallback

2016-06-06 Thread William Mills
On 06/06/2016 07:59 AM, Mark Rutland wrote: > On Mon, Jun 06, 2016 at 12:43:21PM +0100, Russell King - ARM Linux wrote: >> On Mon, Jun 06, 2016 at 09:56:27AM +0100, Mark Rutland wrote: >>> I very much do not like this. As I previously mentioned [1], >>> dma-coherent has de-facto semantics today.

Re: [PATCH 09/12] net: mediatek: increase watchdog_timeo

2016-06-06 Thread Andrew Lunn
> Hi Andrew, > > it is waiting for the watchdog to trigger :-) TBH the 1s seems to be too > short to for the dma ring length to be flushed and i had to pick some > value and 5 is used most places. > > it really depends on the amount of packets in the queue, their length > and the mac setting. the

Re: [RFC PATCH] drm: msm: Add ASoC generic hdmi audio codec support.

2016-06-06 Thread Jyri Sarha
On 06/03/16 16:56, Srinivas Kandagatla wrote: > This patch adds support to generic audio codec via > ASoC hdmi-codec infrastucture which is merged recently. > I know nothing about msm HW, but from the hdmi-codec point of view this looks like a correct usage. However, the hdmi-codec could probably

[GIT PULL 0/8] ARM: exynos: Early stuff for v4.8

2016-06-06 Thread Krzysztof Kozlowski
Dear all, This time I am sending a very early pull request because: 1. I already have a lot of stuff. 2. There are some conflicts, including annoying re-indent one (see below). 3. I am going for holidays soon. After this weekend, my availability will be reduced. There is no specific order o

[GIT PULL 1/8] ARM: exynos: Mach/soc changes for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc-4.8 for you to fetch changes up to da81593a5a0d93fcc

[GIT PULL 2/8] arm64: exynos: Mach/soc changes for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-soc64-4.8 for you to fetch changes up to 3b3428e384b7aff

[GIT PULL 7/8] ARM: dts: exynos: Topic branch with Odroid XU for v4.8

2016-06-06 Thread Krzysztof Kozlowski
Hi, This topic branch pulls external clk dependency (provided by Sylwester Nawrocki). Expected annoying conflict with DT changes here (please see the email 0/8). Best regards, Krzysztof The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 0

[GIT PULL 8/8] ARM: defconfig: exynos: Defconfig for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-defconfig-4.8 for you to fetch changes up to 4b388071a22

[GIT PULL 4/8] ARM: exynos: Topic branch with driver changes for v4.8

2016-06-06 Thread Krzysztof Kozlowski
Hi, A topic branch for MultiFormat Codec driver. This pulls in an external dependency from media tree (Sylwester Nawrocki). Below you will find two pull-request-changelogs Best regards, Krzysztof Samsung tree only changes: #

[PATCH v2] Drivers: hv: get rid of timeout in vmbus_open()

2016-06-06 Thread Vitaly Kuznetsov
vmbus_teardown_gpadl() can result in infinite wait when it is called on 5 second timeout in vmbus_open(). The issue is caused by the fact that gpadl teardown operation won't ever succeed for an opened channel and the timeout isn't always enough. As a guest, we can always trust the host to respond t

[GIT PULL 3/8] ARM: exynos: Drivers for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-drivers-4.8 for you to fetch changes up to 9479f7cc91879

[GIT PULL 5/8] ARM: dts: exynos: DTS for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt-4.8 for you to fetch changes up to cb0df00040d593e3f5

[GIT PULL 6/8] arm64: dts: exynos: DTS for v4.8

2016-06-06 Thread Krzysztof Kozlowski
The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-dt64-4.8 for you to fetch changes up to 8b77005c40376816

<    3   4   5   6   7   8   9   10   11   12   >