Re: [PATCH] Revert "Staging: panel: usleep_range is preferred over udelay"

2016-01-25 Thread Sudip Mukherjee
On Mon, Jan 25, 2016 at 03:40:41PM +0300, Dan Carpenter wrote: > On Mon, Jan 25, 2016 at 03:13:21PM +0530, Sudip Mukherjee wrote: > > Apart from the mail which Ying Huang sent to me last week for another error > > (which actually turned out to be this one), i saw the first report by > > Ying Huang

Re: [PATCH] bus: vexpress-config: Add missing of_node_put

2016-01-25 Thread liviu . dudau
On Mon, Jan 25, 2016 at 01:24:44PM +0100, Julia Lawall wrote: > > > On Mon, 25 Jan 2016, liviu.du...@arm.com wrote: > > > On Fri, Jan 22, 2016 at 11:38:38PM +0530, Amitoj Kaur Chawla wrote: > > > for_each_compatible_node performs an of_node_get on each iteration, so > > > to break out of the loo

Re: [PATCH] Revert "Staging: panel: usleep_range is preferred over udelay"

2016-01-25 Thread Sudip Mukherjee
On Mon, Jan 25, 2016 at 04:47:26AM -0800, Joe Perches wrote: > On Mon, 2016-01-25 at 12:16 +0300, Dan Carpenter wrote: > > Ugh...  Checkpatch told us to introduce bugs...  :(  We almost certainly > > would have missed this bug in review, but it wasn't sent to the list so > > I guess we'll never kno

Re: [PATCH] mfd: Allow i2c modular drivers to build with I2C=m

2016-01-25 Thread Lee Jones
On Thu, 21 Jan 2016, Axel Lin wrote: > These drivers can be built as module, so make them depend on I2C rather > than I2C=y. > > Signed-off-by: Axel Lin > --- > drivers/mfd/Kconfig | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Applied, thanks. > diff --git a/drivers/m

Re: [PATCH v7 2/2] mfd: add documentation for ACT8945A DT bindings

2016-01-25 Thread Lee Jones
On Fri, 22 Jan 2016, Wenyou Yang wrote: > The Active-semi ACT8945A PMIC is a Multi-Function Device, it has > two subdevices: > - Regulator > - Charger > > This patch adds documentation for ACT8945A DT bindings. > > Signed-off-by: Wenyou Yang > Acked-by: Rob Herring Acked-by: Lee Jones > -

Re: [PATCH 1/2] regulator: ltc3589: make IRQ optional

2016-01-25 Thread Lothar Waßmann
Hi, On Mon, 25 Jan 2016 12:41:23 + Mark Brown wrote: > On Mon, Jan 25, 2016 at 01:37:31PM +0100, Lothar Waßmann wrote: > > On Fri, 22 Jan 2016 16:26:10 + Mark Brown wrote: > > > > You're not just making the interrupt optional, you are also implementing > > > polling support. That's reall

Re: [PATCH 1/3] printk: make preferred_console local static bool

2016-01-25 Thread Aleksey Makarov
On 25.01.2016 18:45, Joe Perches wrote: On Mon, 2016-01-25 at 17:45 +0600, Aleksey Makarov wrote: The variable preferred_console is used only inside register_console() and it's semantics is boolean. Make it clear. This loses the index of the preferred console. I'm not sure this is better.

[stable] upstream d913897abace8 -stable backport request

2016-01-25 Thread Sergey Senozhatsky
Hello, Please add upstream 'commit d913897abace8 ("zram: try vmalloc() after kmalloc()")' to stable releases. :commit d913897abace843bba20249f3190167f7895e9c3 :Author: Kyeongdon Kim : :zram: try vmalloc() after kmalloc() : :When we're using LZ4 multi compression streams for zram swa

Re: [PATCH v5 1/5] doc: bindings: Add document for mfd hi665x PMIC

2016-01-25 Thread Lee Jones
On Mon, 11 Jan 2016, Chen Feng wrote: > Add document for mfd driver hi655x pmic driver > > Signed-off-by: Chen Feng > Signed-off-by: Fei Wang > Signed-off-by: Xinwei Kong > --- > .../devicetree/bindings/mfd/hisilicon,hi655x.txt | 28 > ++ > 1 file changed, 28 insertions

Re: [PATCH] clk: tegra: clk-emc: Add missing of_node_put

2016-01-25 Thread Thierry Reding
On Sun, Jan 24, 2016 at 08:45:20PM +0530, Amitoj Kaur Chawla wrote: > for_each_child_of_node performs an of_node_get on each iteration, so > to break out of the loop an of_node_put is required. > > Found using Coccinelle. The semantic patch used for this is as follows: > > // > @@ > expression e

Re: [PATCH] Revert "Staging: panel: usleep_range is preferred over udelay"

2016-01-25 Thread Joe Perches
On Mon, 2016-01-25 at 18:21 +0530, Sudip Mukherjee wrote: > On Mon, Jan 25, 2016 at 04:47:26AM -0800, Joe Perches wrote: > > On Mon, 2016-01-25 at 12:16 +0300, Dan Carpenter wrote: > > > Ugh...  Checkpatch told us to introduce bugs...  :(  We almost certainly > > > would have missed this bug in rev

Re: valgrind: mmap ENOMEM

2016-01-25 Thread Mihai Donțu
On Mon, 25 Jan 2016 15:19:08 +0300 Konstantin Khlebnikov wrote: > On Mon, Jan 25, 2016 at 2:49 PM, Mihai Donțu wrote: > > Hi, > > > > I just moved to 4.5-rc1 and noticed this little gem while trying to > > debug an issue with skype: > > > > $ valgrind skype > > valgrind: mmap(0x60b000, 8192) f

[PATCH v6] kernel: add kcov code coverage

2016-01-25 Thread Dmitry Vyukov
kcov provides code coverage collection for coverage-guided fuzzing (randomized testing). Coverage-guided fuzzing is a testing technique that uses coverage feedback to determine new interesting inputs to a system. A notable user-space example is AFL (http://lcamtuf.coredump.cx/afl/). However, this t

Re: [stable] upstream d913897abace8 -stable backport request

2016-01-25 Thread Sergey Senozhatsky
On (01/25/16 21:50), Sergey Senozhatsky wrote: > Hello, > > Please add upstream 'commit d913897abace8 ("zram: try vmalloc() after > kmalloc()")' to stable releases. > [v3.15+] -ss > :commit d913897abace843bba20249f3190167f7895e9c3 > :Author: Kyeongdon Kim > : > :zram: try vmalloc(

Re: [stable] upstream 3d5fe03a3ea01 -stable backport request

2016-01-25 Thread Sergey Senozhatsky
On (01/25/16 21:46), Sergey Senozhatsky wrote: > > Hello, > > Please add upstream 'commit 3d5fe03a3ea01 ("zram/zcomp: use > GFP_NOIO to allocate streams")' to stable releases. > [v3.15+] -ss > > :commit 3d5fe03a3ea013060ebba2a811aeb0f23f56aefa > :Author: Sergey Senozhatsky > : > :

Re: [PATCH v6] kernel: add kcov code coverage

2016-01-25 Thread Dmitry Vyukov
On Mon, Jan 25, 2016 at 2:00 PM, Dmitry Vyukov wrote: > kcov provides code coverage collection for coverage-guided fuzzing > (randomized testing). Coverage-guided fuzzing is a testing technique > that uses coverage feedback to determine new interesting inputs to a > system. A notable user-space ex

Re: [tip:perf/urgent] perf: Fix perf_event_exit_task() race

2016-01-25 Thread Peter Zijlstra
--- Subject: perf: Fix orphan hole From: Peter Zijlstra Date: Fri Jan 22 22:13:41 CET 2016 We should set event->owner before we install the event, otherwise there is a hole where the target task can fork() and we'll not inherit the event because it thinks the event is orphaned. Signed-off-by:

Re: [PATCH v4 05/19] irqchip: add nps Internal and external irqchips

2016-01-25 Thread Vineet Gupta
Hi Marc, On Friday 18 December 2015 10:01 PM, Marc Zyngier wrote: > On 18/12/15 14:29, Noam Camus wrote: >>> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >>> Sent: Friday, December 18, 2015 1:21 PM >> I need this for my per CPU irqs such timer and IPI which do not come from some ex

[PATCH] perf: Fix race in perf_event_exit_task_context

2016-01-25 Thread Peter Zijlstra
Subject: perf: Fix race in perf_event_exit_task_context From: Peter Zijlstra Date: Mon Jan 25 13:03:18 CET 2016 There is a race between perf_event_exit_task_context() and orphans_remove_work() which results in a use-after-free. We mark ctx->task with TASK_TOMBSTONE to indicate a context is 'dea

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

2016-01-25 Thread Takashi Iwai
On Mon, 25 Jan 2016 12:41:50 +0100, Mark Brown wrote: > > On Mon, Jan 25, 2016 at 10:29:54AM +0100, Takashi Iwai wrote: > > Stephen Rothwell wrote: > > > > diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig > > > index 50693c867e71..ee5f36b9c787 100644 > > > --- a/sound/soc/codecs/K

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread John Crispin
On 25/01/2016 13:35, Mark Brown wrote: > On Mon, Jan 25, 2016 at 01:19:46PM +0100, John Crispin wrote: >> On 25/01/2016 13:11, Javier Martinez Canillas wrote: > >>> You don't have a .of_match table but according the DT bindings, the >>> compatible string "mediatek,mt6323-regulator" should be use

[PATCH RFC 02/11] clk: sunxi: factors: Make struct clk_factors_config table const

2016-01-25 Thread Chen-Yu Tsai
struct clk_factors_config contains shifts/widths for the factors of the factors clk. This is used to read out the factors from the register value. In no case is it written to, so make it const. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk-factors.c| 4 ++-- drivers/clk/sunxi/clk-fa

[PATCH RFC 03/11] clk: sunxi: factors: Add clk cleanup in sunxi_factors_register() error path

2016-01-25 Thread Chen-Yu Tsai
sunxi_factors_register() does not check for failures or cleanup after clk_register_composite() or other clk-related calls. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk-factors.c | 43 +++-- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git

Re: linux-4.4 bisected: kwin5 stuck on kde5 loading screen with radeon

2016-01-25 Thread Mario Kleiner
On 01/25/2016 05:15 AM, Michel Dänzer wrote: On 23.01.2016 00:18, Ville Syrjälä wrote: On Fri, Jan 22, 2016 at 12:06:00PM +0900, Michel Dänzer wrote: [ Trimming KDE folks from Cc ] On 21.01.2016 19:09, Daniel Vetter wrote: On Thu, Jan 21, 2016 at 05:36:46PM +0900, Michel Dänzer wrote: On

[PATCH RFC 01/11] clk: composite: Add unregister function

2016-01-25 Thread Chen-Yu Tsai
From: Maxime Ripard The composite clock didn't have any unregistration function, which forced us to use clk_unregister directly on it. While it was already not great from an API point of view, it also meant that we were leaking the clk_composite structure allocated in clk_register_composite. Ad

[PATCH RFC 04/11] clk: sunxi: factors: Add unregister function

2016-01-25 Thread Chen-Yu Tsai
sunxi's factors clk did not have an unregister function. This means multiple structs were leaked whenever a factors clk was unregistered. Add an unregister function for it. Also keep pointers to the mux and gate structs so they can be freed. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk

[PATCH RFC 07/11] clk: sunxi: factors: Support custom formulas

2016-01-25 Thread Chen-Yu Tsai
Some clocks cannot be modelled using the standard factors clk formula, such as clocks with special pre-dividers on one parent, or clocks with all power-of-two dividers. Add support for a custom .recalc callback for factors clk. Also pass the current parent index to the .get_factor and .recalc call

[PATCH RFC 09/11] clk: sunxi: rewrite sun6i-a31-ahb1-clk using factors clk with custom recalc

2016-01-25 Thread Chen-Yu Tsai
The factors clk implementation has been extended to support custom recalc callbacks to support clocks that use one factor for certain parents only, like a pre-divider. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk-sunxi.c | 291 -- 1 file changed,

[PATCH RFC 05/11] clk: sunxi: unmap registers in sunxi_factors_clk_setup if register call fails

2016-01-25 Thread Chen-Yu Tsai
sunxi_factors_clk_setup() does not unmap registers when sunxi_factors_register() fails. This patch adds proper error handling, and also an error message when sunxi_factors_register() fails. Also use the full DT node name in error messages, as the node name is often just "clk", which is useless. S

[PATCH RFC 11/11] clk: sunxi: rewrite sun8i-a23-mbus-clk using the simpler composite clk

2016-01-25 Thread Chen-Yu Tsai
sun8i-a23-mbus-clk used sunxi's factors clk, which is nice for very complicated clocks, but is not really needed here. Convert sun8i-a23-mbus-clk to use clk_composite, as it is a gate + mux + divider. This makes the code easier to understand. Signed-off-by: Chen-Yu Tsai --- This patch I'm not s

[PATCH RFC 06/11] clk: sunxi: factors: Consolidate get_factors parameters into a struct

2016-01-25 Thread Chen-Yu Tsai
The .get_factors callback of factors_clk has 6 parameters. To extend factors_clk in any way that requires adding parameters to .get_factors would make that list even longer, not to mention changing all the function declarations. Do this once now and consolidate all the parameters into a struct. Al

Re: [PATCH] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-25 Thread Srikar Dronamraju
> > One of Vlastimil's comments made me go dig back in to the uprobes > code's use of get_user_pages(). I decided to change both of them > to be "foreign" accesses. > > This also fixes the nommu breakage that Vlastimil noted last time. > > Srikar, I'd appreciate if you can have a look at the up

[PATCH RFC 10/11] clk: sunxi: rewrite sun6i-ar100 using factors clk

2016-01-25 Thread Chen-Yu Tsai
sun6i's AR100 clock is a classic factors clk case: AR100 = ((parent mux) >> p) / (m + 1) Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk-sun6i-ar100.c | 235 ++-- 1 file changed, 61 insertions(+), 174 deletions(-) diff --git a/drivers/clk/sunxi/clk-sun6i-a

[PATCH RFC 08/11] clk: sunxi: factors: Drop round_rate from clk ops

2016-01-25 Thread Chen-Yu Tsai
The common clock framework requires either determine_rate or round_rate to be implemented. We use determine_rate so we can pass the parent index to the get_factors callback. This cannot be done easily with round_rate, so just drop it. Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi/clk-factors

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread Javier Martinez Canillas
Hello John, On Mon, Jan 25, 2016 at 10:13 AM, John Crispin wrote: > > > On 25/01/2016 13:35, Mark Brown wrote: >> On Mon, Jan 25, 2016 at 01:19:46PM +0100, John Crispin wrote: >>> On 25/01/2016 13:11, Javier Martinez Canillas wrote: >> You don't have a .of_match table but according the DT bi

Re: [PATCH] Let AHCI dirver skip Lenovo SWRAID controller

2016-01-25 Thread One Thousand Gnomes
On Mon, 25 Jan 2016 03:11:40 + Ocean HY1 He wrote: > Lenovo SWRAID solution is based on Intel Non-RSTE RAID controller which > is called Lenovo SWRAID controller by set Lenovo dedicated PCI > SVID:SDID. > > Because AHCI driver now take control this Lenovo SWRAID controller for > MDRAID, Leno

[PATCH RFC 00/11] clk: sunxi: factors clk clean up and refactor

2016-01-25 Thread Chen-Yu Tsai
Hi everyone, This series cleans up and reworks parts of sunxi's factors clk. The goal is to support non-standard formulas for clock rate calculation, such as pre-dividers on some parents, or all power-of-2 dividers. One such clock is the AHB1 clock on A31/A31s. Patch 1 is Maxime's patch adding an

Re: [PATCH V4 02/16] soc: tegra: pmc: Add missing structure members to kernel-doc

2016-01-25 Thread Thierry Reding
On Fri, Dec 04, 2015 at 02:57:03PM +, Jon Hunter wrote: > Some members of the tegra_pmc structure are missing from the kernel-doc > comment for this structure. Add the missing members. > > Signed-off-by: Jon Hunter > --- > drivers/soc/tegra/pmc.c | 2 ++ > 1 file changed, 2 insertions(+) Ap

[PATCH] Remove extra spaces.

2016-01-25 Thread Dmitriy Baranov
Signed-off-by: Dmitriy Baranov --- drivers/i2c/busses/i2c-imx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index a2b132c..1ca7ef2 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2

Re: Dependency issue through subdir's

2016-01-25 Thread Michal Marek
On 2016-01-25 12:33, Kieran Bingham wrote: > This is functional on a make -j1 build, however at -j2 and above (from a > clean build), kbuild attempts to generate my file before > include/generated/timeconst.h resulting in the following error: > > --- 8< --- > GEN scripts/gdb/linux/constants.

Re: [PATCH V4 03/16] soc: tegra: pmc: Fix sparse warning for tegra_pmc_init_tsense_reset

2016-01-25 Thread Thierry Reding
On Fri, Dec 04, 2015 at 02:57:04PM +, Jon Hunter wrote: > Sparse reports the following warning for tegra_pmc_init_tsense_reset: > > drivers/soc/tegra/pmc.c:741:6: warning: symbol > 'tegra_pmc_init_tsense_reset' was not declared. Should it be static? > > This function is only used internally b

Re: linux-4.4 bisected: kwin5 stuck on kde5 loading screen with radeon

2016-01-25 Thread Ville Syrjälä
On Mon, Jan 25, 2016 at 02:16:45PM +0100, Mario Kleiner wrote: > > > On 01/25/2016 05:15 AM, Michel Dänzer wrote: > > On 23.01.2016 00:18, Ville Syrjälä wrote: > >> On Fri, Jan 22, 2016 at 12:06:00PM +0900, Michel Dänzer wrote: > >>> > >>> [ Trimming KDE folks from Cc ] > >>> > >>> On 21.01.2016

Re: [PATCH 1/3] printk: make preferred_console local static bool

2016-01-25 Thread Joe Perches
On Mon, 2016-01-25 at 18:51 +0600, Aleksey Makarov wrote: > > On 25.01.2016 18:45, Joe Perches wrote: > > On Mon, 2016-01-25 at 17:45 +0600, Aleksey Makarov wrote: > > > The variable preferred_console is used only inside register_console() > > > and it's semantics is boolean.  Make it clear. > >

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread Javier Martinez Canillas
On Mon, Jan 25, 2016 at 10:19 AM, Javier Martinez Canillas wrote: [snip] > > In fact, the kernel is currently not matching the compatible, it is > only matching because you provided a .of_compatible is provided in the > mfd_cell. > Sorry my English was a bit off in this paragraph... I tried to

Re: [PATCH V4 04/16] soc: tegra: pmc: Remove debugfs entry on probe failure

2016-01-25 Thread Thierry Reding
On Fri, Dec 04, 2015 at 02:57:05PM +, Jon Hunter wrote: > The debugfs entry for the PMC device will not be removed if the probe of > the device fails on registering the restart handler and so fix this so > that it is removed. > > Signed-off-by: Jon Hunter > --- > drivers/soc/tegra/pmc.c | 11

Re: [PATCH V4 07/16] soc: tegra: pmc: Remove non-existing power partitions for T210

2016-01-25 Thread Thierry Reding
On Fri, Dec 04, 2015 at 02:57:08PM +, Jon Hunter wrote: > The power partitions L2, HEG, CELP and C1NC do not exist for T210 but were > incorrectly documented in the TRM. These will be removed from the TRM and > so also remove their definitions for T210. > > Signed-off-by: Jon Hunter > --- >

Re: [PATCH 1/3] printk: make preferred_console local static bool

2016-01-25 Thread Aleksey Makarov
On 25.01.2016 19:23, Joe Perches wrote: On Mon, 2016-01-25 at 18:51 +0600, Aleksey Makarov wrote: On 25.01.2016 18:45, Joe Perches wrote: On Mon, 2016-01-25 at 17:45 +0600, Aleksey Makarov wrote: The variable preferred_console is used only inside register_console() and it's semantics is boo

Re: [PATCH 1/3] ARM: dts: sama5d4: cleanup - add blank lines between pinctrl nodes

2016-01-25 Thread Nicolas Ferre
Le 25/01/2016 12:18, Alexandre Belloni a écrit : > Hi, > > On 20/01/2016 at 13:35:35 +0100, Lothar Waßmann wrote : > > A commit message is mandatory even when small ;) > >> Signed-off-by: Lothar Waßmann > > I'm not sure the added blank lines add any clarity to the fille but I > won't object. M

Re: [PATCH 2/3] ARM: dts: sama5d4: add labels for watchdog and pinctrl nodes

2016-01-25 Thread Nicolas Ferre
Le 25/01/2016 12:19, Alexandre Belloni a écrit : > Hi, > > On 20/01/2016 at 13:35:36 +0100, Lothar Waßmann wrote : > > Ditto, this needs a commit message. > >> Signed-off-by: Lothar Waßmann > > Else, > > Acked-by: Alexandre Belloni I agree with this: Acked-by: Nicolas Ferre Thanks, bye.

Re: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default

2016-01-25 Thread Mel Gorman
On Mon, Jan 25, 2016 at 12:26:06PM +0100, Peter Zijlstra wrote: > On Mon, Jan 25, 2016 at 10:05:31AM +, Mel Gorman wrote: > > schedstats is very useful during debugging and performance tuning but it > > incurs overhead. As such, even though it can be disabled at build time, > > it is often enab

Re: [PATCH 3/3] ARM: dts: sama5d4: add support for Ka-Ro electronics TXA5 modules

2016-01-25 Thread Nicolas Ferre
Le 20/01/2016 13:35, Lothar Waßmann a écrit : > The TXA5-5010/-5011 are Computers On Module manufactured by > Ka-Ro electronics GmbH with the following characteristics: > ProcessorAtmel SAMA5D42, 528 MHz > RAM 256MB 32-bit DDR2 SDRAM > ROM 128MB NAND Flash (TXA5-5010)

Re: linux-4.4 bisected: kwin5 stuck on kde5 loading screen with radeon

2016-01-25 Thread Mario Kleiner
On 01/25/2016 02:23 PM, Ville Syrjälä wrote: On Mon, Jan 25, 2016 at 02:16:45PM +0100, Mario Kleiner wrote: On 01/25/2016 05:15 AM, Michel Dänzer wrote: On 23.01.2016 00:18, Ville Syrjälä wrote: On Fri, Jan 22, 2016 at 12:06:00PM +0900, Michel Dänzer wrote: [ Trimming KDE folks from Cc ]

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread John Crispin
On 25/01/2016 14:25, Javier Martinez Canillas wrote: > On Mon, Jan 25, 2016 at 10:19 AM, Javier Martinez Canillas > wrote: > > [snip] > >> >> In fact, the kernel is currently not matching the compatible, it is >> only matching because you provided a .of_compatible is provided in the >> mfd_cel

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

2016-01-25 Thread Takashi Iwai
On Mon, 25 Jan 2016 14:10:37 +0100, Takashi Iwai wrote: > > On Mon, 25 Jan 2016 12:41:50 +0100, > Mark Brown wrote: > > > > On Mon, Jan 25, 2016 at 10:29:54AM +0100, Takashi Iwai wrote: > > > Stephen Rothwell wrote: > > > > > > diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig > >

Re: [PATCH] ASoC: wm8974: configure pll and mclk divider automatically

2016-01-25 Thread Charles Keepax
On Mon, Jan 25, 2016 at 12:36:43PM +, Mans Rullgard wrote: > This adds a set_sysclk() DAI op so the card driver can set the > input clock frequency. If this is done, the pll and mclk divider > are configured to produce the required 256x fs clock when the > sample rate is set by hw_params(). >

Re: [PATCH] ARM: dts: rockchip: Assign RK3288 EDP_24M input centrally

2016-01-25 Thread Heiko Stübner
Am Montag, 25. Januar 2016, 12:19:26 schrieb Sjoerd Simons: > The EDP 24M clock can be fed either by an SoC internal fixed clock or > from an external IC. Change the default parent to the internal clock in > the main rk3288 dtsi, to ensure (by default) it gets setup with a > non-orphaned clock (har

Re: [PATCH v2 3/4] arm64: Enable the timer on Rockchip architecture

2016-01-25 Thread Heiko Stübner
Am Freitag, 25. September 2015, 10:14:57 schrieb Caesar Wang: > On the RK3368 SoC, support the APB timers for rockchip platform. > > Signed-off-by: Caesar Wang applied to my soc64 branch for 4.6 Heiko

Re: [PATCH 1/2] regulator: ltc3589: make IRQ optional

2016-01-25 Thread Mark Brown
On Mon, Jan 25, 2016 at 01:51:09PM +0100, Lothar Waßmann wrote: > On Mon, 25 Jan 2016 12:41:23 + Mark Brown wrote: > > The above, for example - make the interrupt optional. > This will make it impossible to notify the system about > overtemperature (and undervoltage). > I implemented polling

Re: [PATCH v6] kernel: add kcov code coverage

2016-01-25 Thread kbuild test robot
Hi Dmitry, [auto build test ERROR on v4.5-rc1] [also build test ERROR on next-20160125] [cannot apply to tip/x86/core kbuild/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Dmitry

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

2016-01-25 Thread Mark Brown
On Mon, Jan 25, 2016 at 02:45:55PM +0100, Takashi Iwai wrote: > Argh, a typo here. I forgot to refresh the patch, sorry. > Below is the revised one. This makes sense to me. Reviwed-by: Mark Brown though we will need to come up with an alternative solution for the affected architectures if an

Re: [PATCH v3 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-01-25 Thread Stefano Stabellini
On Sat, 23 Jan 2016, Shannon Zhao wrote: > From: Shannon Zhao > > Use page_to_xen_pfn in case of 64KB page. > > Signed-off-by: Shannon Zhao Please update the commit message, something like: "Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-25 Thread rkrc...@redhat.com
2016-01-25 09:49+0800, Yang Zhang: > On 2016/1/22 21:31, rkrc...@redhat.com wrote: >>2016-01-22 10:03+0800, Yang Zhang: >>>Not so complicated. We can reuse the wake up vector and check whether the >>>interrupt is multicast when one of destination vcpu handles it. >> >>I'm not sure what you mean now

Re: [RFC PATCH] dax, ext2, ext4, XFS: fix data corruption race

2016-01-25 Thread Jan Kara
On Mon 25-01-16 09:01:07, Dave Chinner wrote: > On Fri, Jan 22, 2016 at 04:06:11PM -0700, Ross Zwisler wrote: > > With the current DAX code the following race exists: > > > > Process 1 Process 2 > > - - > > > > __dax_fault() - read file f, index

Re: crypto: algif_hash: creating 0 sized array in hash_accept

2016-01-25 Thread Herbert Xu
On Mon, Jan 25, 2016 at 07:14:20AM -0500, Sasha Levin wrote: > Hi all, > > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel > I've hit: > > [ 828.386074] UBSAN: Undefined behaviour in crypto/algif_hash.c:185:7 > [ 828.386811] variable length array bound val

Re: [PATCH] Don't require SpcSpOpusInfo in Authenticode pkcs7 signatures

2016-01-25 Thread Herbert Xu
Dave Young wrote: > >> So anyway, we should not be checking this field for presence or any >> particular value: if the field exists, it should be at the right place, >> but aside from that, as long as the hash matches the field is good. >> >> Signed-off-by: Peter Jones > > Tested-by: Dave Young

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread Javier Martinez Canillas
Hello John, On Mon, Jan 25, 2016 at 10:46 AM, John Crispin wrote: > > > On 25/01/2016 14:25, Javier Martinez Canillas wrote: >> On Mon, Jan 25, 2016 at 10:19 AM, Javier Martinez Canillas >> wrote: >> >> [snip] >> >>> >>> In fact, the kernel is currently not matching the compatible, it is >>> onl

Re: [PATCH] gpu: host1x: bus: Add missing of_node_put

2016-01-25 Thread Thierry Reding
On Sun, Jan 24, 2016 at 10:02:10PM +0530, Amitoj Kaur Chawla wrote: > for_each_child_of_node performs an of_node_get on each iteration, so > to break out of the loop an of_node_put is required. > > Found using Coccinelle. The semantic patch used for this is as follows: > > // > @@ > expression e

Re: UBSAN: run-time undefined behavior sanity checker

2016-01-25 Thread Andrey Ryabinin
On 01/22/2016 08:00 PM, Dave Jones wrote: > On Fri, Jan 22, 2016 at 07:43:55PM +0300, Andrey Ryabinin wrote: > > On 01/22/2016 08:15 AM, Dave Jones wrote: > > > On Thu, Jan 21, 2016 at 08:57:17PM +, Linux Kernel wrote: > > > > Web: > https://git.kernel.org/torvalds/c/c6d308534aef6c9

net/sctp: out-of-bounds access in sctp_add_bind_addr

2016-01-25 Thread Dmitry Vyukov
Hello, I've git the following error report while running syzkaller fuzzer: == BUG: KASAN: slab-out-of-bounds in memcpy+0x1d/0x40 at addr 88006c6361e8 Read of size 28 by task syz-executor/12551

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-01-25 Thread John Crispin
On 25/01/2016 15:01, Javier Martinez Canillas wrote: > Hello John, > > On Mon, Jan 25, 2016 at 10:46 AM, John Crispin wrote: >> >> >> On 25/01/2016 14:25, Javier Martinez Canillas wrote: >>> On Mon, Jan 25, 2016 at 10:19 AM, Javier Martinez Canillas >>> wrote: >>> >>> [snip] >>> In f

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

2016-01-25 Thread Sudip Mukherjee
On Mon, Jan 25, 2016 at 02:45:55PM +0100, Takashi Iwai wrote: > On Mon, 25 Jan 2016 14:10:37 +0100, > Takashi Iwai wrote: > > > > On Mon, 25 Jan 2016 12:41:50 +0100, > > Mark Brown wrote: > > > > > > > Signed-off-by: Takashi Iwai > > --- > > sound/core/compress_offload.c | 11 +++ > >

Re: [PATCH 03/15] dmaengine: dw: rename masters to reflect actual topology

2016-01-25 Thread Andy Shevchenko
On Mon, 2016-01-25 at 12:24 +, Mark Brown wrote: > On Mon, Jan 25, 2016 at 10:35:02AM +0200, Andy Shevchenko wrote: > > On Sun, 2016-01-24 at 22:36 +, Mark Brown wrote: > > > > This is patch 3 of a series but I don't have anything else in the > > > series.  What is going on with the rest o

Re: [PATCH v3 7/8] clk: rockchip: fix usbphy-related clocks

2016-01-25 Thread Heiko Stübner
Kishon, Am Donnerstag, 19. November 2015, 22:22:28 schrieb Heiko Stuebner: > The otgphy clocks really only drive the phy blocks. These in turn > contain plls that then generate the 480m clocks the clock controller > uses to supply some other clocks like uart0, gpu or the video-codec. > > So fix t

Re: [PATCH 2/2] mm: filemap: Avoid unnecessary calls to lock_page when waiting for IO to complete during a read

2016-01-25 Thread Mel Gorman
On Mon, Jan 25, 2016 at 12:35:13PM +0100, Jan Kara wrote: > > Reviewed-by: Jan Kara > Thanks! > > --- > > mm/filemap.c | 49 + > > 1 file changed, 49 insertions(+) > > > > diff --git a/mm/filemap.c b/mm/filemap.c > > index aa38593d0cd5..235ee2b

Re: [PATCH] GPU-host1x: Use a signed return type for do_relocs()

2016-01-25 Thread Thierry Reding
On Sat, Dec 19, 2015 at 12:56:54PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 19 Dec 2015 12:48:31 +0100 > > The return type "unsigned int" was used by the do_relocs() function > despite of the aspect that it will eventually return a negative error code. > Improve this im

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-25 Thread Radim Krcmár
2016-01-25 12:26+, Wu, Feng: >> From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo >> It may be necessary because IRTE writes (128 bits) are not atomic. > > IRTE is updated atomically, I added the patch to support this. Please > refer to 344cb4e0b6f3a0dbef0643eacb4946338eb

Re: floppy: GPF in floppy_rb0_cb

2016-01-25 Thread Jiri Kosina
On Sun, 24 Jan 2016, Dmitry Vyukov wrote: > Hello, > > The following causes program causes multiple bugs and eventually machine > death: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > #include > #include > > #define N

Re: [PATCH v3 6/8] ARM: dts: rockchip: add clock-cells for usb phy nodes

2016-01-25 Thread Heiko Stübner
Am Donnerstag, 19. November 2015, 22:22:27 schrieb Heiko Stuebner: > Add the #clock-cells properties for the usbphy nodes as they > provide the pll-clocks now. > > Signed-off-by: Heiko Stuebner > Reviewed-by: Douglas Anderson applied to my dts32 branch for 4.6 with Mike's Review-tag from v1

[PATCH] mm/page-writeback: fix dirty_ratelimit calculation

2016-01-25 Thread Andrey Ryabinin
Calculation of dirty_ratelimit sometimes is not correct. E.g. initial values of dirty_ratelimit == INIT_BW and step == 0, lead to the following result: UBSAN: Undefined behaviour in ../mm/page-writeback.c:1286:7 shift exponent 25600 is too large for 64-bit type 'long unsigned int' The fix i

[PATCH 1/1] net: usb: cdc_ether.c: Make Cinterion module network interfaces show as wwanX.

2016-01-25 Thread John Ernberg
From: John Ernberg This is due to the module listing its interface as subclass 06, ethernet. usb-devices output: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1e2d ProdID=0055 Rev=00.00 S: Manufacturer=C

Re: [PATCH 2/3] ACPI: parse SPCR and enable matching console

2016-01-25 Thread Andy Shevchenko
On Mon, Jan 25, 2016 at 1:45 PM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requiremets' [1] mention SPCR > (Serial Port Console Redirection Table) [2] as a mandatory ACPI table > that specifies the configuration of serial console. > > Parse this table and check if any registered console match

Re: [PATCH v1] block: fix bio splitting on max sectors

2016-01-25 Thread Stefan Haberland
Am 23.01.2016 um 04:44 schrieb Jens Axboe: On 01/22/2016 05:05 PM, Ming Lei wrote: After commit e36f62042880(block: split bios to maxpossible length), bio can be splitted in the middle of a vector entry, then it is easy to split out one bio which size isn't aligned with block size, especially wh

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-25 Thread Jiri Kosina
On Sat, 23 Jan 2016, Michal Malý wrote: > I briefly considered leaving the switch up to the userspace and handling the > device in the kernel only once it's been switched. I am however uncertain how > to advertise this to the users. Writing a tiny app that would currently > handle > just one d

Re: [PATCH v4] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-01-25 Thread kbuild test robot
Hi Jiancheng, [auto build test ERROR on v4.5-rc1] [also build test ERROR on next-20160125] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jiancheng-Xue/mtd-spi-nor-add-hisilicon-spi-nor-flash

[PATCH v4 0/3] kallsyms base relative series

2016-01-25 Thread Ard Biesheuvel
This v4 of my kallsyms base relative implementation is now a 3 piece series, since it caused some problems due to the way absolute symbols are handled by the absolute per cpu code. As it turns out, that code was probably wrong in the sense that it caused non-relocated symbol addresses to be emitted

[PATCH v4 3/3] kallsyms: add support for relative offsets in kallsyms address table

2016-01-25 Thread Ard Biesheuvel
Similar to how relative extables are implemented, it is possible to emit the kallsyms table in such a way that it contains offsets relative to some anchor point in the kernel image rather than absolute addresses. On 64-bit architectures, it cuts the size of the kallsyms address table in half, sinc

[PATCH v4 2/3] kallsyms: don't overload absolute symbol type for percpu symbols

2016-01-25 Thread Ard Biesheuvel
Commit c6bda7c988a5 ("kallsyms: fix percpu vars on x86-64 with relocation") overloaded the 'A' (absolute) symbol type to signify that a symbol is not subject to dynamic relocation. However, the original A type does not imply that at all, and depending on the version of the toolchain, many A type sy

[PATCH v4 1/3] x86: kallsyms: disable absolute percpu symbols on !SMP

2016-01-25 Thread Ard Biesheuvel
scripts/kallsyms.c has a special --absolute-percpu command line option which deals with the zero based per cpu offsets that are used when building for SMP on x86_64. This means that the option should only be passed in that case, so add a check for CONFIG_SMP. Otherwise, per cpu variables are record

Re: [PATCH] mfd: lpss: Add PCI IDs for Intel Broxton B-Step platform

2016-01-25 Thread Lee Jones
On Fri, 15 Jan 2016, Qipeng Zha wrote: > From: Huiquan Zhong > > Add PCI IDs for Intel Broxton B-Step platform, which have same > LPSS devices with A-Step. > > Signed-off-by: Huiquan Zhong > Signed-off-by: Qipeng Zha > --- > drivers/mfd/intel-lpss-pci.c | 19 ++- > 1 file cha

Re: [PATCH 1/3] printk: make preferred_console local static bool

2016-01-25 Thread Andy Shevchenko
On Mon, Jan 25, 2016 at 1:45 PM, Aleksey Makarov wrote: > The variable preferred_console is used only inside register_console() > and it's semantics is boolean. Make it clear. However the patch looks okay it brings imbalance to understanding how exactly the preferred console is chosen. Even in c

Re: [RFC 00/26] perf tools: Introduce hists specific format entries

2016-01-25 Thread Namhyung Kim
Hi Jiri, On Mon, Jan 25, 2016 at 08:15:52AM +0100, Jiri Olsa wrote: > On Mon, Jan 18, 2016 at 10:23:58AM +0100, Jiri Olsa wrote: > > hi, > > currently we have global format sort and output > > lists. This rfc patchset introduces hists object > > based format entries to allow the hist object to > >

Re: [PATCH v5 5/6] mfd: dt-bindings: add device tree bindings for Hi3519 sysctrl

2016-01-25 Thread Lee Jones
On Tue, 12 Jan 2016, Arnd Bergmann wrote: > On Tuesday 12 January 2016 17:28:05 xuejiancheng wrote: > > > > > Not yet. > > Arnd Bergmann and Rob Herring all suggested adding a specific > > compatible string > > with the SOC name. This binding is just used for describing th

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-25 Thread Jarod Wilson
On Sun, Jan 24, 2016 at 10:42:22PM -0800, David Miller wrote: > From: Jarod Wilson > Date: Fri, 22 Jan 2016 14:11:22 -0500 > > > diff --git a/net/core/dev.c b/net/core/dev.c > > index 8cba3d8..1354c7b 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -4153,8 +4153,11 @@ ncls: > >

Re: [PATCH 3/3] serial: pl011: add acpi_match for amba-pl011.c

2016-01-25 Thread Andy Shevchenko
On Mon, Jan 25, 2016 at 1:45 PM, Aleksey Makarov wrote: > Add an implementation of acpi_match() to the pl011 driver. > It allows to check if the console matches one specified with > ACPI SPCR table. I don't know Rafael's opinion on this, but I would split it to extend ACPI header first with refer

[PATCH v2 2/2] usb:dwc3: pass arch data to xhci-hcd child

2016-01-25 Thread Thang Q. Nguyen
The xhci-hcd child node needs to inherit archdata attribute to use dma_ops functions and attributes. This patch enables the USB DWC3 driver to pass archdata attributes to its xhci-hcd child node. Signed-off-by: Thang Q. Nguyen --- Changes from v1: - None drivers/usb/dwc3/host.c | 1 + 1

[PATCH v2 1/2] usb:dwc3: Enable support for 64-bit system

2016-01-25 Thread Thang Q. Nguyen
Add 64-bit DMA operation support to the USB DWC3 driver. First attempt to set the coherent DMA mask for 64-bit DMA. If that failed, attempt again with 32-bit DMA. Signed-off-by: Thang Q. Nguyen --- Changes from v1: - Remove WARN_ON if dma_mask is NULL drivers/usb/dwc3/core.c | 15 ++

Re: [REGRESSION] gpio: pxa: change initcall level second attempt

2016-01-25 Thread Robert Jarzmik
und? Hi Marcel, I haven't seen that before on my devicetree boards, I will try this evening on top of next-20160125. Could you activate the debug logs in drivers/of/irq.c please, and send me privately your boot dmesg ? And I'd like to see your board .dts file and your .config also, to c

Re: [PATCH v5 3/5] mfd: hi655x: Add hi665x pmic driver

2016-01-25 Thread Lee Jones
On Mon, 11 Jan 2016, Chen Feng wrote: > Add pmic mfd driver to support hisilicon hi665x. PMIC MFD > Signed-off-by: Chen Feng > Signed-off-by: Fei Wang > Signed-off-by: Xinwei Kong > --- > drivers/mfd/Kconfig | 10 +++ > drivers/mfd/Makefile| 1 + > drivers/mfd/hi65

Re: [PATCH 3/3] serial: pl011: add acpi_match for amba-pl011.c

2016-01-25 Thread Andy Shevchenko
On Mon, Jan 25, 2016 at 4:21 PM, Andy Shevchenko wrote: > On Mon, Jan 25, 2016 at 1:45 PM, Aleksey Makarov > wrote: >> Add an implementation of acpi_match() to the pl011 driver. >> It allows to check if the console matches one specified with >> ACPI SPCR table. > > I don't know Rafael's opinion o

[RFC PATCH] PPC32: Fix build failure caused by missing dirty pte handlers

2016-01-25 Thread Pranith Kumar
In 4.5-rc1, I am getting a build failure as follows: mm/memory.c: In function ‘do_swap_page’: mm/memory.c:2573:9: error: implicit declaration of function ‘pte_mksoft_dirty’ [-Werror=implicit-function-declaration] pte = pte_mksoft_dirty(pte); The soft dirty pte handlers are declared only for PP

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