Re: [PATCH 3/3] spinlock_debug: panic on recursive lock spin_dump()

2016-02-01 Thread Sergey Senozhatsky
On (02/02/16 01:14), Sergey Senozhatsky wrote: > how about splitting ->owner_cpu 4 bytes as: > > | | > 1 byte spin bug recursion | 1 byte spin_dump recursion counter | 2 bytes > owner cpu > |

[PATCH] kernel/fork.c: use sizeof() instead of sizeof

2016-02-01 Thread Wei Tang
This patch fixes the checkpatch.pl warning to fork.c: WARNING: sizeof sig->rlim should be sizeof(sig->rlim) Signed-off-by: Wei Tang --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/fork.c b/kernel/fork.c index 2e391c7..30e04d2 100644 --- a/kernel/fork

Re: [PATCH] signal: use sizeof() instead of sizeof

2016-02-01 Thread Richard Weinberger
Hi! Am 02.02.2016 um 08:35 schrieb Wei Tang: > This patch fixes the checkpatch.pl warning to signal.c: > > WARNING: sizeof info should be sizeof(info) And why is this patch needed? What problem does it fix? Complex expressions should be within parents but in this case it is IMHO perfectly fine.

[PATCH 3/2] mm, vmstat: cancel pending work of the cpu_stat_off CPU

2016-02-01 Thread Mike Galbraith
Cancel pending work of the cpu_stat_off CPU. Signed-off-by: Mike Galbraith --- mm/vmstat.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1486,25 +1486,25 @@ static void vmstat_shepherd(struct work_ get_online_cpus();

[PATCH v2] mac80211: fix memory leak

2016-02-01 Thread Sudip Mukherjee
From: Sudip Mukherjee On error we jumped to the error label and returned the error code but we missed releasing sinfo. Fixes: 5fe74014172d ("mac80211: avoid excessive stack usage in sta_info") Reviewed-by: Julian Calaby Signed-off-by: Sudip Mukherjee --- v2: added Fixes tag, Reviewed-by and F

Re: [PATCH] dts/ls1021a: add the DTS for QSPI support

2016-02-01 Thread Shawn Guo
On Thu, Jan 28, 2016 at 04:33:26PM +0800, Yuan Yao wrote: > From: Yuan Yao > > Signed-off-by: Yuan Yao > --- > Add in v1: > Can merge, but the function depend on the patch: > https://patchwork.kernel.org/patch/8118251/ Please send me dts patch only after the driver part gets applied. > > mtd:

Re: [PATCH v6 20/22] usb: dwc2: host: Properly set even/odd frame

2016-02-01 Thread Kever Yang
Doug, On 01/29/2016 10:20 AM, Douglas Anderson wrote: When setting up ISO and INT transfers dwc2 needs to specify whether the transfer is for an even or an odd frame (or microframe if the controller is running in high speed mode). The controller appears to use this as a simple way to figure out

[PATCH] signal: use sizeof() instead of sizeof

2016-02-01 Thread Wei Tang
This patch fixes the checkpatch.pl warning to signal.c: WARNING: sizeof info should be sizeof(info) Signed-off-by: Wei Tang --- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/signal.c b/kernel/signal.c index f3f1f7a..13b267a 100644 --- a/kernel/signal

Re: [PATCH 1/5] all: s390: move wrapper infrastructure to generic headers

2016-02-01 Thread Heiko Carstens
On Mon, Feb 01, 2016 at 02:42:51PM +0300, Yury Norov wrote: > Hi Heiko, > > I tried this idea, and I don't like what happened. > - Wrappers around safe syscalls does exist. We can remove it by >overcomplicating __SC_COMPAT_CAST, but I don't like it. > - We still need to declare numerous list

Re: [PATCH 14/14] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-02-01 Thread Chen-Yu Tsai
On Sun, Jan 31, 2016 at 9:21 AM, Vishnu Patekar wrote: > This patch adds support for Sinovoip BPI-M3 A83T based board. > > It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, > mic, AP6212 Wifi, etc on it. > It is paired with AXP813 PMIC which is almost same as AXP818. > > Signed-off-

[PATCH] thermal: devfreq_cooling: remove impossible condition

2016-02-01 Thread Sudip Mukherjee
state is an unsigned long and can never be less than 0. Signed-off-by: Sudip Mukherjee --- drivers/thermal/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index 01f0015..81631b1 100644 --

Re: [PATCH 13/14] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-02-01 Thread Chen-Yu Tsai
Hi, On Sun, Jan 31, 2016 at 9:21 AM, Vishnu Patekar wrote: > This enables mmc0. > > Signed-off-by: Vishnu Patekar > Tested-by: LABBE Corentin > --- > .../boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts| 20 > > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/

Re: [PATCH v2 2/4] power: reset: add reboot mode driver

2016-02-01 Thread Andy Yan
Hi Moritz: On 2016年01月27日 18:53, Moritz Fischer wrote: Hi Andy, On Tue, Jan 12, 2016 at 12:31 PM, Andy Yan wrote: This driver parse the reboot commands like "reboot loader" and "reboot recovery" to get a boot mode described in the device tree , then call the write interfae to store the boot m

[PATCH] component: remove impossible condition

2016-02-01 Thread Sudip Mukherjee
We will be evaluating this condition only if match->num == match->alloc and that means we have already dereferenced match which implies match can not be NULL at this point. Moreover we have done a NULL check on match just before this. Signed-off-by: Sudip Mukherjee --- drivers/base/component.c |

Re: [PATCH v5 5/6] reset: mediatek: Add MT2701 reset controller dt-binding file

2016-02-01 Thread James Liao
Hi Philipp, On Mon, 2016-02-01 at 09:56 +0100, Philipp Zabel wrote: > Am Mittwoch, den 27.01.2016, 15:21 +0800 schrieb James Liao: > > From: Shunli Wang > > > > Dt-binding file about reset controller is used to provide > > kinds of definition, which is referenced by dts file and > > IC-specified

[PATCH] lock/semaphore: Avoid a deadlock within __up()

2016-02-01 Thread Byungchul Park
Since I faced a infinite recursive printk() bug, I've tried to propose patches the title of which is "lib/spinlock_debug.c: prevent a recursive cycle in the debug code". But I noticed the root problem cannot be fixed by that, through some discussion thanks to Sergey and Peter. So I focused on preve

[PATCH] ath10k: remove impossible code

2016-02-01 Thread Sudip Mukherjee
From: Sudip Mukherjee len has been initialized with a value of 0 and buf_len with 4096. There is no way that this condition (len > buf_len) can be true now. Signed-off-by: Sudip Mukherjee --- drivers/net/wireless/ath/ath10k/debug.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-01 Thread Dave Chinner
On Mon, Feb 01, 2016 at 05:02:12PM -0700, Ross Zwisler wrote: > Relying on the bh->b_bdev returned by get_block() is correct, yea? IMO, yes. Cheers, Dave. -- Dave Chinner da...@fromorbit.com

[PATCH] drivers: soc: samsung: Enable COMPILE_TEST

2016-02-01 Thread Krzysztof Kozlowski
Get some build coverage of Exynos SROM controller and PMU drivers. The PMU driver depends on asm/cputype.h so its compilation is limited to ARM architectures. Signed-off-by: Krzysztof Kozlowski --- The SROM driver was compile-tested on x86, x86_64, ppc64, arm, arm64 and mips. The PMU driver on a

Re: [PATCH v6 18/22] usb: dwc2: host: Schedule periodic right away if it's time

2016-02-01 Thread Kever Yang
Doug, On 02/02/2016 08:36 AM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 8:36 PM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 7:32 PM, Kever Yang wrote: Doug, On 02/01/2016 06:09 AM, Doug Anderson wrote: Kever, On Sun, Jan 31, 2016 at 1:36 AM, Kever Yang wrote: Doug,

Re: [PATCH 0/4] ARM: dts: imx53: update Ka-Ro electronics TX53 module support

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 02:09:18PM +0100, Lothar Waßmann wrote: > ARM: dts: imx53: fix LVDS data-mapping and data-width > ARM: dts: imx53: add display timing for NL12880BC20 > ARM: dts: imx53-tx53: set correct mclk frequency Applied these 3, thanks.

Re: [PATCH v4 1/4] soc: mediatek: Refine scpsys to support multiple platform

2016-02-01 Thread James Liao
Hi Matthias, On Sun, 2016-01-31 at 12:51 +0100, Matthias Brugger wrote: > > On 20/01/16 07:08, James Liao wrote: > > Refine scpsys driver common code to support multiple SoC / platform. > > > > Signed-off-by: James Liao > > --- > > drivers/soc/mediatek/mtk-scpsys.c | 418 > > +

Re: [PATCH wq/for-4.5-fixes] workqueue: skip flush dependency checks for legacy workqueues

2016-02-01 Thread Archit Taneja
On 01/29/2016 04:29 PM, Tejun Heo wrote: fca839c00a12 ("workqueue: warn if memory reclaim tries to flush !WQ_MEM_RECLAIM workqueue") implemented flush dependency warning which triggers if a PF_MEMALLOC task or WQ_MEM_RECLAIM workqueue tries to flush a !WQ_MEM_RECLAIM workquee. This assumes tha

Re: [PATCH 1/4] ARM: dts: imx53: add ethernet PHY supply regulator

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 02:09:19PM +0100, Lothar Waßmann wrote: > Signed-off-by: Lothar Waßmann > --- > arch/arm/boot/dts/imx53-tx53.dtsi | 40 > ++- > 1 file changed, 31 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/boot/dts/imx53-tx53.dtsi > b/ar

Re: [lkp] [kallsyms] bf2d2b07db: kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] general protection fault: 0000 [#1] PREEMPT PREEMPT KASANKASAN

2016-02-01 Thread Ard Biesheuvel
On 2 February 2016 at 04:48, Guenter Roeck wrote: > On 02/01/2016 04:20 PM, Andrew Morton wrote: >> >> On Thu, 28 Jan 2016 09:12:15 +0800 kernel test robot >> wrote: >> >>> FYI, we noticed the below changes on >>> >>> https://git.linaro.org/people/ard.biesheuvel/linux-arm arm64-kaslr-v4a >>> comm

Re: [RFC 3/3] CMDQ: Mediatek CMDQ driver

2016-02-01 Thread Horng-Shyang Liao
On Mon, 2016-02-01 at 18:22 +0800, Daniel Kurtz wrote: > On Mon, Feb 1, 2016 at 2:20 PM, Horng-Shyang Liao > wrote: > > On Mon, 2016-02-01 at 12:15 +0800, Daniel Kurtz wrote: > >> On Mon, Feb 1, 2016 at 10:04 AM, Horng-Shyang Liao > >> wrote: > >> > > >> > On Fri, 2016-01-29 at 21:15 +0800, Dan

[PATCH] ocfs2: fix build warning

2016-02-01 Thread Sudip Mukherjee
We were getting build warning about: /fs/ocfs2/file.c: In function ‘ocfs2_file_write_iter’: fs/ocfs2/file.c:2198:1: warning: label ‘relock’ defined but not used The previous commit has cleaned up the code for direct io and removed the jump instruction to relock, but missed removing the label which

Re: [PATCH v2] locktorture: Fix NULL pointer when torture_type is invalid

2016-02-01 Thread Paul E. McKenney
On Mon, Feb 01, 2016 at 11:28:07AM +0800, Kefeng Wang wrote: > > > On 2016/2/1 11:02, Davidlohr Bueso wrote: > > On Mon, 01 Feb 2016, Kefeng Wang wrote: > > > >> Hi Davidlohr, > >> > [...] > >> > >> Yes, it works, but what you are doing is to revert commit > >> a36a99618b1adb2d6ca0b7e08e3a656a0

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-01 Thread Dan Williams
On Mon, Feb 1, 2016 at 10:06 PM, Jared Hulbert wrote: > On Mon, Feb 1, 2016 at 1:47 PM, Dave Chinner wrote: >> On Mon, Feb 01, 2016 at 03:51:47PM +0100, Jan Kara wrote: >>> On Sat 30-01-16 00:28:33, Matthew Wilcox wrote: >>> > On Fri, Jan 29, 2016 at 11:28:15AM -0700, Ross Zwisler wrote: >>> > >

Re: [PATCH 10/14] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-02-01 Thread Chen-Yu Tsai
On Sun, Jan 31, 2016 at 9:21 AM, Vishnu Patekar wrote: > This adds A83T PRCM related clocks, clock resets. > > As a83t apb0 gates clock support is added earlier, this enables it. > Apart from apb0 gates, other added clocks are compatible with > earlier sun8i socs. > > Signed-off-by: Vishnu Patekar

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-01 Thread Paul E. McKenney
On Tue, Feb 02, 2016 at 01:19:04PM +0800, Boqun Feng wrote: > Hi Paul, > > On Mon, Feb 01, 2016 at 07:54:58PM -0800, Paul E. McKenney wrote: > > On Mon, Feb 01, 2016 at 01:56:22PM +, Will Deacon wrote: > > > On Fri, Jan 29, 2016 at 02:22:53AM -0800, Paul E. McKenney wrote: > > > > On Fri, Jan

Re: [PATCH 4/6] ARM: dts: imx6: change TX6 module names due to new HW revision

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 01:57:04PM +0100, Lothar Waßmann wrote: > The second last digit of the Ka-Ro electronics TX-module names denotes > the HW revision of the module. HW rev 1 and 3 of the TX6 modules can > use the same DTB. Change this digit to 'x' to indicate that the DTB > file can be used fo

Re: [PATCH 09/14] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-02-01 Thread Chen-Yu Tsai
On Sun, Jan 31, 2016 at 9:21 AM, Vishnu Patekar wrote: > A83T mmc is compatible with earliers sunxi socs. > This adds mmc0, mmc1, and mmc2 controller nodes for A83T. > > Signed-off-by: Vishnu Patekar > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 57 > +++ > 1 f

Re: [RFC PATCH 11/19] cpufreq: assert policy->rwsem is held in __cpufreq_governor

2016-02-01 Thread Viresh Kumar
On 01-02-16, 22:00, Rafael J. Wysocki wrote: > I'm not sure what you mean by "the sysfs lock" here? The policy rwsem > or something else? He perhaps referred to the s_active.lock that we see in traces. -- viresh

Re: [RFC PATCH 11/19] cpufreq: assert policy->rwsem is held in __cpufreq_governor

2016-02-01 Thread Viresh Kumar
On 01-02-16, 12:24, Saravana Kannan wrote: > On 02/01/2016 02:22 AM, Rafael J. Wysocki wrote: > I'm not sure whose idea you are referring to. Viresh's (I don't think I saw > his proposal) or mine. http://git.linaro.org/people/viresh.kumar/linux.git/commit/57714d5b1778f2f610bcc5c74d85b29ba1cc1995

Re: [PATCH 3/6] ARM: dts: imx6qdl-tx6: add ENET_OUT clock to fec node

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 01:57:03PM +0100, Lothar Waßmann wrote: > ENET_OUT is used as reference clock for the ethernet PHY on the Ka-Ro > TX6 modules. Specify this clock in DTB to let it be managed correctly > by the driver. > > Signed-off-by: Lothar Waßmann Applied, thanks.

Re: [PATCH 2/6] ARM: dts: imx6: use correct mclk frequency for audio codec

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 01:57:02PM +0100, Lothar Waßmann wrote: > The reference clock for the SGTL5000 is generated by a 26MHz crystal > oscillator on the Ka-Ro electronics STK5 eval kits. Use the correct > frequency setting in DTB. > > Signed-off-by: Lothar Waßmann Applied, thanks. > --- > ar

[PATCH] usb: xhci: fix build warning

2016-02-01 Thread Sudip Mukherjee
We were getting build warning about: drivers/usb/host/xhci.c: In function ‘xhci_add_ep_to_interval_table’: drivers/usb/host/xhci.c:2499:2: warning: enumeration value ‘USB_SPEED_SUPER_PLUS’ not handled in switch Fix it by adding SuperSpeedPlus USB3.1 devices as the behaviour is same as wit

Re: [PATCH] vmpressure: Fix subtree pressure detection

2016-02-01 Thread Andrew Morton
On Fri, 29 Jan 2016 11:37:49 +0300 Vladimir Davydov wrote: > On Thu, Jan 28, 2016 at 08:24:30PM +0100, Vlastimil Babka wrote: > > On 28.1.2016 16:55, Michal Hocko wrote: > > > On Wed 27-01-16 19:28:57, Vladimir Davydov wrote: > > >> When vmpressure is called for the entire subtree under pressure

Re: [PATCH] pinctrl: sunxi: Add H3 R_PIO controller support

2016-02-01 Thread Chen-Yu Tsai
On Mon, Feb 1, 2016 at 6:12 PM, Krzysztof Adamski wrote: > H3 has additional PIO controller similar to what we can find on A23. > It's a 12 pin port, described in H3 Datasheet rev 1.1, pages 345-350. > > Signed-off-by: Krzysztof Adamski > --- > .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt |

Re: [PATCH 1/6] dma: enable mxs-dma for imx6ul

2016-02-01 Thread Shawn Guo
On Mon, Jan 25, 2016 at 05:40:43PM +0530, Vinod Koul wrote: > On Wed, Jan 20, 2016 at 01:57:01PM +0100, Lothar Waßmann wrote: > > The mxs-dma unit is also available on i.MX6UL. Make it possible to > > select it in Kconfig. > > It should be dmaengine:xxx > > With that > > Acked-by: Vinod Koul I

Re: [PATCH] ARM: dts: imx28-tx28: use correct mclk frequency

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 01:30:15PM +0100, Lothar Waßmann wrote: > The reference clock for the SGTL5000 is generated by a 26MHz crystal > oscillator on the Ka-Ro electronics STK5 eval kits. Use the correct > frequency setting in DTB. > > Signed-off-by: Lothar Waßmann Applied, thanks.

Re: [PATCH v2] err.h: allow IS_ERR_VALUE to handle properly more types

2016-02-01 Thread Andrew Morton
On Thu, 28 Jan 2016 09:27:28 +0100 Andrzej Hajda wrote: > Current implementation of IS_ERR_VALUE works correctly only with > following types: > - unsigned long, > - short, int, long. > Other types are handled incorrectly either on 32-bit either on 64-bit > either on both architectures. > The patc

[PATCH 1/1] xen-netfront: uninitialized fields in xenvif_rx_action

2016-02-01 Thread Dongli Zhang
While npo.copy and npo.meta are initialized in xenvif_rx_action, fields such as npo.meta_prod are directly used later in xenvif_gop_skb without being initialized first. Although the output of xenvif_rx_action is based on the difference between new npo->meta_prod and old npo->meta_prod, it is better

Re: [PATCH] ARM: dts: imx51: add support for Ka-Ro electronics TX51 modules

2016-02-01 Thread Shawn Guo
On Wed, Jan 20, 2016 at 01:23:39PM +0100, Lothar Waßmann wrote: > The TX51-8xxx module series is a System On Module manufactured by > Ka-Ro electronics GmbH with the following characteristics: > ProcessorFreescale i.MX515 > up to 800 MHz (commercial) > up t

[PATCH v2] mmc: dw_mmc: fix num_slots setting

2016-02-01 Thread Shawn Lin
This patch make num_slots to 1 if pdata->num_slot is not defined. Meanwhile, we need to make sure num_slots should not larger that the supported slots Signed-off-by: Shawn Lin --- Changes in v2: - remove default num-slots setting from dw_mci_parse_dt drivers/mmc/host/dw_mmc.c | 23 ++-

Re: [PATCH V2 16/16] cpufreq: dt: No need to allocate resources anymore

2016-02-01 Thread Viresh Kumar
On 28-01-16, 13:50, Viresh Kumar wrote: > OPP layer manages it now and cpufreq-dt driver doesn't need it. But, we > still need to check for availability of resources for deferred probing. > > Signed-off-by: Viresh Kumar Got updated due to 11/16 .. -8<

Re: [PATCH V2 15/16] cpufreq: dt: drop references to DT node

2016-02-01 Thread Viresh Kumar
On 28-01-16, 13:50, Viresh Kumar wrote: > We don't need to get reference to DT node now, lets drop it. > > Signed-off-by: Viresh Kumar > Reviewed-by: Stephen Boyd And because of changes in 11/16, this got updated as well: -8<- From: Viresh Kumar

Re: [PATCH v3 2/2] phy: Add a driver for the ATH79 USB phy

2016-02-01 Thread Kishon Vijay Abraham I
Hi, On Friday 29 January 2016 01:22 AM, Alban Bedel wrote: > The ATH79 USB phy is very simple, it only have a reset. On some SoC a > second reset is used to force the phy in suspend mode regardless of the > USB controller status. > > Signed-off-by: Alban Bedel > --- > Changelog: > v2: * Rebased

Re: [PATCH V2 11/16] cpufreq: dt: Pass regulator name to the OPP core

2016-02-01 Thread Viresh Kumar
On 01-02-16, 18:34, Stephen Boyd wrote: > On 01/28, Viresh Kumar wrote: > > + cpu_reg = regulator_get_optional(dev, reg); > > + ret = PTR_ERR_OR_ZERO(cpu_reg); > > + if (!ret) { > > + regulator_put(cpu_reg); > > What's the point of creating a regulator just to find the name? > It s

[PATCH kernel-tests] kbuild: don't CC the list for BUILD DONE notifications

2016-02-01 Thread Fengguang Wu
[linux-review:Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC-paired-page-power-loss-issue/20160202-104450] 2078d3920abf1d89be7eaf087100b4482dd532dc BUILD DONE To: Bean Huo Cc: peterpand...@micron.com, zszubboc...@micron.com, linux-kernel@vger.kernel.org, linux-...@lists.infradead.org, bean.

Re: [PATCH 2/2] dax: fix bdev NULL pointer dereferences

2016-02-01 Thread Jared Hulbert
On Mon, Feb 1, 2016 at 1:47 PM, Dave Chinner wrote: > On Mon, Feb 01, 2016 at 03:51:47PM +0100, Jan Kara wrote: >> On Sat 30-01-16 00:28:33, Matthew Wilcox wrote: >> > On Fri, Jan 29, 2016 at 11:28:15AM -0700, Ross Zwisler wrote: >> > > I guess I need to go off and understand if we can have DAX ma

[PATCH] drm/gma500: remove helper function

2016-02-01 Thread Sudip Mukherjee
We were getting build warning about: drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:2: warning: initialization from incompatible pointer type The callback to dpms was pointing to a helper function which had a return type of void, whereas the callback should point to a function which has a r

Re: [PATCH v4 1/9] lib/string: introduce match_string() helper

2016-02-01 Thread Andrew Morton
On Thu, 28 Jan 2016 15:14:17 +0200 Andy Shevchenko wrote: > >From time to time we have to match a string in an array. Make a simple helper > for that purpose. > > ... > > --- a/include/linux/string.h > +++ b/include/linux/string.h > @@ -131,6 +131,8 @@ extern void argv_free(char **argv); > ext

Re: [PATCH] mmc: dw_mmc: fix num_slots setting

2016-02-01 Thread Shawn Lin
Hi Jaehoon, On 2016/2/2 12:42, Jaehoon Chung wrote: Hi, Shawn. On 01/22/2016 04:43 PM, Shawn Lin wrote: This patch make num_slots to 1 if pdata->num_slot is not defined. Meanwhile, we need to make sure num_slots should not larger that the supported slots Signed-off-by: Shawn Lin --- drive

Re: [PATCH v4 3/9] pinctrl: convert to use match_string() helper

2016-02-01 Thread Andrew Morton
On Thu, 28 Jan 2016 15:14:19 +0200 Andy Shevchenko wrote: > The new helper returns index of the mathing string in an array. We would use > it > here. > > --- a/drivers/pinctrl/pinmux.c > +++ b/drivers/pinctrl/pinmux.c > @@ -334,7 +334,6 @@ int pinmux_map_to_setting(struct pinctrl_map const *ma

Re: [Bug 111541] Race between cat /proc/kallsyms and rmmod

2016-02-01 Thread Rusty Russell
Rusty Russell writes: > And there are other places with the same issue. This is a more > complex, but I think worth it (actually two patches, rolled into one > for testing): And this one actually works... diff --git a/include/linux/module.h b/include/linux/module.h index 4560d8f1545d..2bb0c3085

Re: [PATCH LINUX 0/6] Second part of xuartps fixes

2016-02-01 Thread Sören Brinkmann
ping? Any comments? Thanks, Sören On Mon, 2016-01-11 at 17:41:35 -0800, Soren Brinkmann wrote: > Hi, > > this is the second part of fixes for xuartps that evolved from this > series: https://lkml.org/lkml/2015/12/26/26. > > This series, obviously, depends on the patches mentione

Re: [PATCH] kexec: unmap reserved pages for each error-return way

2016-02-01 Thread Andrew Morton
On Thu, 28 Jan 2016 11:57:22 +0300 Dmitry Safonov wrote: > On 01/28/2016 09:29 AM, Minfei Huang wrote: > > On 01/27/16 at 02:48pm, Dmitry Safonov wrote: > >> For allocation of kimage failure or kexec_prepare or load segments > >> errors there is no need to keep crashkernel memory mapped. > >> It

[PATCH V5] netfilter: h323: avoid potential attack

2016-02-01 Thread Zhouyi Zhou
I think hackers chould build a malicious h323 packet to overflow the pointer p which will panic during the memcpy(addr, p, len) For example, he may fabricate a very large taddr->ipAddress.ip. In order to avoid this, I add a valid memory reference check in get_h2x5_addr functions. As suggested by

Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset

2016-02-01 Thread Ross Green
I have not tried a bisect yet, but I can confirm 4.4 and 4.4.1 work. 4.5-rc1 and 4.5-rc2 don't work. It appears the tx to device times out and then just goes into reset of the device to try and recover. A tx to device seems not to work. although somehow firmware has been loaded to the device. So s

Re: [RFC PATCH] mm: CONFIG_NR_ZONES_EXTENDED

2016-02-01 Thread Andrew Morton
On Wed, 27 Jan 2016 22:19:14 -0800 Dan Williams wrote: > ZONE_DEVICE (merged in 4.3) and ZONE_CMA (proposed) are examples of new > mm zones that are bumping up against the current maximum limit of 4 > zones, i.e. 2 bits in page->flags. When adding a zone this equation > still needs to be satisi

[linux-review:Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC-paired-page-power-loss-issue/20160202-104450] 2078d3920abf1d89be7eaf087100b4482dd532dc BUILD DONE

2016-02-01 Thread kbuild test robot
https://github.com/0day-ci/linux Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC-paired-page-power-loss-issue/20160202-104450 2078d3920abf1d89be7eaf087100b4482dd532dc drivers:mtd:ubi: Kconfig Makefile drivers/mtd/mtdpart.c:213:26: error: implicit declaration of function 'PART' [-Werror=impli

Re: [PATCH v1 1/8] kasan: Change the behavior of kmalloc_large_oob_right test

2016-02-01 Thread Andrew Morton
On Wed, 27 Jan 2016 19:25:06 +0100 Alexander Potapenko wrote: > depending on which allocator (SLAB or SLUB) is being used > > ... > > --- a/lib/test_kasan.c > +++ b/lib/test_kasan.c > @@ -68,7 +68,22 @@ static noinline void __init kmalloc_node_oob_right(void) > static noinline void __init kmal

Re: BUG caused by "Use new drm_fb_helper functions" series

2016-02-01 Thread Archit Taneja
Hi Peter, On 02/02/2016 02:07 AM, Peter Hurley wrote: Hi Archit, Just booting 4.4-rc5+, I got this splat [1] At first glance, this appears to be a simple fix. Thanks for sharing this. However, I'm concerned that fbcon functions, which may be called with interrupts disabled, are now hooked

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-01 Thread Boqun Feng
Hi Paul, On Mon, Feb 01, 2016 at 07:54:58PM -0800, Paul E. McKenney wrote: > On Mon, Feb 01, 2016 at 01:56:22PM +, Will Deacon wrote: > > On Fri, Jan 29, 2016 at 02:22:53AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 29, 2016 at 09:59:59AM +, Will Deacon wrote: > > > > On Thu, Jan 28,

Re: linux-next: manual merge of the btrfs-kdave tree with Linus' tree

2016-02-01 Thread Chandan Rajendra
On Tuesday 02 Feb 2016 10:22:16 Stephen Rothwell wrote: > Hi David, > > Today's linux-next merge of the btrfs-kdave tree got a conflict in: > > fs/btrfs/file.c > > between commit: > > 5955102c9984 ("wrappers for ->i_mutex access") > > from Linus' tree and commit: > > 9703fefe0b13 ("Btrf

Re: [PATCH v4 1/3] mailbox: Add support for APM X-Gene platform mailbox driver

2016-02-01 Thread Jassi Brar
On Tue, Feb 2, 2016 at 1:08 AM, Duc Dang wrote: > Hi Jassi, > > On Fri, Jan 15, 2016 at 6:57 PM, Duc Dang wrote: >> X-Gene mailbox controller provides 8 mailbox channels, with >> each channel has a dedicated interrupt line. > > Did you have a chance to look into this version 4 of my mail-box patc

Re: PCI device driver broken between 4.2 and 4.3

2016-02-01 Thread Олег Мороз
it looks much better with pci=routeirq [ 100.896723] *Before pci_enable_device IRQ 20* [ 100.896735] *After pci_enable_device IRQ 20* [ 100.896745] *Before pci_enable_device IRQ 21* [ 100.896752] *After pci_enable_device IRQ 21* On Monday 01 of February 2016 15:08:23 Bjorn Helgaas wrote:

Re: [Bug 111541] Race between cat /proc/kallsyms and rmmod

2016-02-01 Thread Rusty Russell
Peter Zijlstra writes: > Adding lkml to Cc so that there is an actual email record of this. > > (I could for example not reply to Masami's later entries). > > On Mon, Feb 01, 2016 at 12:02:01PM +1030, Rusty Russell wrote: >> > https://bugzilla.kernel.org/show_bug.cgi?id=111541 > >> Unfortunately,

Re: [PATCH] autofs: show pipe inode in mount options

2016-02-01 Thread Ian Kent
On Tue, 2016-01-26 at 11:55 +0800, Ian Kent wrote: > On Mon, 2016-01-25 at 15:48 -0800, Andrew Morton wrote: > > On Tue, 26 Jan 2016 10:19:07 +1100 Stephen Rothwell < > > s...@canb.auug.org.au> wrote: > > > > > Hi Ian, > > > > > > On Sat, 23 Jan 2016 08:30:17 +0800 Ian Kent > > > wrote: > > > >

Re: [PATCH] mmc: dw_mmc: fix num_slots setting

2016-02-01 Thread Jaehoon Chung
Hi, Shawn. On 01/22/2016 04:43 PM, Shawn Lin wrote: > This patch make num_slots to 1 if pdata->num_slot is not > defined. Meanwhile, we need to make sure num_slots should > not larger that the supported slots > > Signed-off-by: Shawn Lin > --- > > drivers/mmc/host/dw_mmc.c | 16 +--

Re: linux-4.5-rc1 TI pandboard-es wifi wlcore locks and reset

2016-02-01 Thread Sebastian Reichel
Hi, On Mon, Feb 01, 2016 at 11:38:38PM +1100, Ross Green wrote: > On Mon, Jan 25, 2016 at 11:47 PM, Ross Green wrote: > > Just tried the new kernel release on faithful pandaboard es with the > > new 4.5-rc1 release. > > > > There is a problem with the wifi modules once the modules are loaded. > >

[PATCH char-misc-next 0/8] Enable Virtio Over PCIe (VOP) driver

2016-02-01 Thread Sudeep Dutt
This patch series moves virtio functionality from the MIC host/card driver into a separate hardware independent Virtio Over PCIe (VOP) driver. Apart from being moved into a separate driver the functionality is essentially unchanged. This refactoring allows this hardware independent logic to be shar

[PATCH char-misc-next 1/8] misc: mic: Remove MIC X100 host virtio functionality

2016-02-01 Thread Sudeep Dutt
This patch deletes the virtio functionality from the MIC X100 host driver. A subsequent patch will re-enable this functionality by consolidating the hardware independent logic in a new Virtio over PCIe (VOP) driver. Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/hos

[PATCH char-misc-next 3/8] misc: mic: MIC VOP Bus

2016-02-01 Thread Sudeep Dutt
The Virtio Over PCIe (VOP) bus abstracts the low level hardware details like interrupts and mapping remote memory so that the same VOP driver can work without changes with different MIC host or card drivers as long as the hardware bus operations are implemented. The VOP driver registers itself on t

[PATCH char-misc-next 2/8] misc: mic: Remove MIC X100 card virtio functionality

2016-02-01 Thread Sudeep Dutt
This patch deletes the virtio functionality from the MIC X100 card driver. A subsequent patch will re-enable this functionality by consolidating the hardware independent logic in a new Virtio over PCIe (VOP) driver. Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/car

[PATCH char-misc-next 8/8] misc: mic: MIC host and card driver changes to enable VOP

2016-02-01 Thread Sudeep Dutt
This patch modifies the MIC host and card drivers to start using the VOP driver. The MIC host and card drivers now implement the VOP bus operations and register a VOP device on the VOP bus. MIC driver stack documentation is also updated to include the new VOP driver. Reviewed-by: Ashutosh Dixit S

[PATCH char-misc-next 6/8] misc: mic: Enable VOP card side functionality

2016-02-01 Thread Sudeep Dutt
From: Ashutosh Dixit This patch moves virtio functionality from the MIC card driver into a separate hardware independent Virtio Over PCIe (VOP) driver. This functionality was introduced in commit 2141c7c5ee67 ("Intel MIC Card Driver Changes for Virtio Devices.") in drivers/misc/mic/card/mic_virti

[PATCH char-misc-next 5/8] misc: mic: Enable VOP host side functionality

2016-02-01 Thread Sudeep Dutt
This patch moves virtio functionality from the MIC host driver into a separate hardware independent Virtio Over PCIe (VOP) driver. This functionality was introduced in commit f69bcbf3b4c4 ("Intel MIC Host Driver Changes for Virtio Devices.") in drivers/misc/mic/host/mic_virtio.c. Apart from being m

[PATCH char-misc-next 7/8] misc: mic: Enable VOP debugfs and driver build

2016-02-01 Thread Sudeep Dutt
This patch moves the virtio specific debugfs hooks previously in mic_debugfs.c in the MIC host driver into the VOP driver. The Kconfig/Makefile is also updated to allow building the VOP driver. Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/Kconfig | 20 +

[PATCH resend] [dm]fix NULL pointer when create dm device

2016-02-01 Thread DingXiang
In some conditions(such as umount fs failed),origin path or origin bdev or both of the two is same as cow's.If this happens, origin dev will be freed when get cow dev in function "dm_get_device" , then "s->origin->dev" which used by "dm_exception_store_set_chunk_size" will be a NULL pointer. He

[PATCH char-misc-next 4/8] misc: mic: Add data structures for the VOP driver

2016-02-01 Thread Sudeep Dutt
This patch adds VOP driver data structures used in subsequent patches. These data structures are refactored from similar data structures used in the virtio parts of previous MIC host and card drivers. Signed-off-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/vop/vop_main.h |

Re: [PATCH] netfilter: nft_ct: define nft_ct_get_eval_counter() only when needed

2016-02-01 Thread Florian Westphal
Eric Biggers wrote: > This eliminates an "unused function" compiler warning when > CONFIG_NF_CONNTRACK_LABELS is not defined. > > Signed-off-by: Eric Biggers The nft_ct_get_eval_counter call should've been unconditional. The #endif placement is wrong: https://git.kernel.org/cgit/linux/kernel/g

RE: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

2016-02-01 Thread beanhuo
> Hi Bean, > > [auto build test WARNING on v4.5-rc2] This version 2.0 patches are based on 4.2-rc7. > [also build test WARNING on next-20160201] [if your patch is applied to the > wrong git tree, please drop us a note to help improving the system]

linux-next: Tree for Feb 2

2016-02-01 Thread Stephen Rothwell
Hi all, Changes since 20160201: The btrfs-kdave gained a conflict against Linus' tree and a build failure so I used the version from next-20160201. The rcu tree lost its build failure. The gpio tree still had its build failure so I used the version from next-20160128. The aio tree still

Re: [PATCH/RFC] VFS: Improve fairness when locking the per-superblock s_anon list

2016-02-01 Thread NeilBrown
On Tue, Feb 02 2016, J. Bruce Fields wrote: > On Fri, Jan 29, 2016 at 11:17:43AM +1100, NeilBrown wrote: >> bit-spin-locks, as used for dcache hash chains, are not fair. >> This is not a problem for the dcache hash table as different CPUs are >> likely to access different entries in the hash table

Re: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

2016-02-01 Thread kbuild test robot
Hi Bean, [auto build test WARNING on v4.5-rc2] [also build test WARNING on next-20160201] [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/Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC

Re: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile

2016-02-01 Thread kbuild test robot
Hi Bean, [auto build test WARNING on v4.5-rc2] [also build test WARNING on next-20160201] [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/Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2016-02-01 Thread Paul E. McKenney
On Mon, Feb 01, 2016 at 01:56:22PM +, Will Deacon wrote: > On Fri, Jan 29, 2016 at 02:22:53AM -0800, Paul E. McKenney wrote: > > On Fri, Jan 29, 2016 at 09:59:59AM +, Will Deacon wrote: > > > On Thu, Jan 28, 2016 at 02:31:31PM -0800, Paul E. McKenney wrote: > > > > [ . . . ] > > > > > > F

Re: [lkp] [kallsyms] bf2d2b07db: kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] general protection fault: 0000 [#1] PREEMPT PREEMPT KASANKASAN

2016-02-01 Thread Guenter Roeck
On 02/01/2016 04:20 PM, Andrew Morton wrote: On Thu, 28 Jan 2016 09:12:15 +0800 kernel test robot wrote: FYI, we noticed the below changes on https://git.linaro.org/people/ard.biesheuvel/linux-arm arm64-kaslr-v4a commit bf2d2b07db19001ae0bd55826025b0ba47fae0c2 ("kallsyms: add support for rel

[PATCH v5 2/8] clk: rockchip: rk3036: fix and add node id for emac clock

2016-02-01 Thread Caesar Wang
From: zhengxing In the emac driver, we need to refer HCLK_MAC since there are only 3PLLs (APLL/GPLL/DPLL) on the rk3036, most clock are under the GPLL, and it is unable to provide the accurate rate for mac_ref which need to 50MHz probability, we should let it under the DPLL and are able to set th

[PATCH v5 6/8] ASoC: rt5616: trivial: fix the typo

2016-02-01 Thread Caesar Wang
This patch fixes the trivial typo. Run "scripts/checkpatch.pl -f --subjective xxx" The enable more subjective tests. Signed-off-by: Caesar Wang Cc: alsa-de...@alsa-project.org Cc: Mark Brown Cc: Bard Liao --- Changes in v5: -Cc releated alsa experts. Changes in v4: - Add this patch incl

[PATCH v5 7/8] ASoC: rt5616: add the mclk for the codec driver

2016-02-01 Thread Caesar Wang
This patch adds the code to enable the clock to the CODEC driver if it needs the clock enabled. In some case, We need to claim the clock which is driving the codec so that when we enable clock gating, we continue to clock the codec when needed. We can enable and disable the clock source if mclk p

[PATCH v5 5/8] ASoC: rt5616: add mclk property for rt5616 document

2016-02-01 Thread Caesar Wang
This patch adds the mclk property for the CODEC driver, since sometimes the CODEC driver needs the clock enabled. The system clock of ALC5616 can be selected from MCLK, That also makes the codec the master clock provider. Signed-off-by: Caesar Wang Acked-by: Rob Herring Cc: alsa-de...@alsa-pr

[PATCH] arch/x86/kernel/cpu: Convert printk(KERN_ ...) to pr_(...)

2016-02-01 Thread Chen Yucong
- Use the more current logging style pr_(...) instead of the old printk(KERN_ ...). - Convert pr_warning() to pr_warn(). Signed-off-by: Chen Yucong --- arch/x86/kernel/cpu/amd.c | 23 +++ arch/x86/kernel/cpu/bugs_64.c | 2 +- arch/x86/kernel/cpu/

[PATCH v5 4/8] ARM: dts: rockchip: add mclk for rt5616 on kylin board

2016-02-01 Thread Caesar Wang
The I2S block that provide the output clock as the mclk for rt5616, That will be the master clock input. Signed-off-by: Caesar Wang --- Changes in v5: None Changes in v4: - AS the previous discussed by them, add the mclk for codec. (https://patchwork.kernel.org/patch/8041001/) arch/arm/boot

[PATCH v5 8/8] ARM: dts: rockchip: support the spi for rk3036

2016-02-01 Thread Caesar Wang
This patch adds the needed spi node for rk3036 dts. We have to use the 4 bus emmc to work if someone want to support the spi devices, since the pins are re-used by emmc data[5-8] and spi. In some caseswe need to support the spi devices, that will waste the emmc performance. Moment, the kylin/evb

[PATCH] clk: rockchip: free memory for error handle

2016-02-01 Thread Shawn Lin
Add free memeory if rockchip_clk_register_branch failed. Fixes: a245fecbb806 ("clk: rockchip: add basic infrastructure...") Signed-off-by: Shawn Lin --- drivers/clk/rockchip/clk.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/c

[PATCH v5 1/8] ARM: dts: rockchip: add hdmi/vop device node for rk3036

2016-02-01 Thread Caesar Wang
This patch adds the needed display info for rk3036 SOCs. The rk3036 support two overlay plane and one hwc plane, it supports IOMMU, and its IOMMU same as rk3288's. Meanwhile, add the inno hdmi for HDMI display. Signed-off-by: Caesar Wang --- Changes in v5: None Changes in v4: - solve the laste

  1   2   3   4   5   6   7   8   9   10   >