Re: [PATCH] ARM: exynos_defconfig: Disable big.LITTLE switcher

2016-05-30 Thread Krzysztof Kozlowski
On 04/28/2016 04:44 PM, Bartlomiej Zolnierkiewicz wrote: > Disable big.LITTLE switcher in order to allow automatic usage of > cpufreq-dt driver on Exynos542x/Exynos5800 SoCs based boards. > > This change should not cause any problems as arm_big_little[_dt] > driver (which is using big.LITTLE

Re: [PATCH] oom_reaper: don't call mmput_async() on uninitialized mm

2016-05-30 Thread Michal Hocko
On Fri 27-05-16 12:55:34, Andrew Morton wrote: > On Fri, 27 May 2016 10:10:59 +0200 Michal Hocko wrote: > > > On Fri 27-05-16 10:00:48, Arnd Bergmann wrote: > > > The change to the oom_reaper to hold a mutex inside __oom_reap_task() > > > accidentally started calling

Re: [PATCH 2/2] ARM: dts: Add async-bridge clock to MFC power domain for Exynos5420

2016-05-30 Thread Krzysztof Kozlowski
On 05/24/2016 07:41 PM, Javier Martinez Canillas wrote: > The MFC IP is also inter-connected by an Async-Bridge so the CLK_ACLK333 > has to be ungated during a power domain switch. Trying to do it when the > clock is gated will fail and lead to an imprecise external abort error > when the driver

Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-30 Thread Borislav Petkov
On Sun, May 29, 2016 at 12:08:29PM -0700, Andy Lutomirski wrote: > Sure, but how do I implement that? There's no "does this arch have > addr_limit in thread_info" general flag that I know of. What about get_fs()? Looks like all arches implement that and on sparc it is something called

Re: [PATCH 2/3] ARM: dts: sun5i: add spi2 on A10s Olinuxino Micro

2016-05-30 Thread Maxime Ripard
Hi, On Thu, May 26, 2016 at 07:25:23PM -, Michal Suchanek wrote: > spi2 is available on the UEXT connector > > Signed-off-by: Michal Suchanek > --- > arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

Re: [PATCH 1/3] ARM: dts: sun5i: a10s: add spi2 pins

2016-05-30 Thread Maxime Ripard
On Thu, May 26, 2016 at 07:25:22PM -, Michal Suchanek wrote: > Used on A10s Olinuxino. > > Signed-off-by: Michal Suchanek Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-05-30 Thread Andrey Ryabinin
On 05/28/2016 12:01 AM, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user in C in order to

Re: [RFC PATCH 3/4] mm/mmu_gather: Track page size with mmu gather and force flush if page size change

2016-05-30 Thread Hillf Danton
> diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h > index 2ac8fe202e9a..3ca36c111b47 100644 > --- a/include/asm-generic/tlb.h > +++ b/include/asm-generic/tlb.h > @@ -112,6 +112,7 @@ struct mmu_gather { >* that that we can adjust the range after the flush >*/ >

Re: [patch v2 net-next 12/13] net: hns: implement the miscellaneous operation by asl

2016-05-30 Thread Andy Shevchenko
On Mon, 2016-05-30 at 10:10 +0800, Kejian Yan wrote: > The miscellaneous operation is implemented in BIOS, the kernel can > call > _DSM method help to call the implementation in ACPI case. Here is a > patch > to do that. > > +static phy_interface_t hns_mac_get_phy_if_acpi(struct hns_mac_cb >

[PATCH v5 0/7] ARM/ASoC: OMAP3: Fix McBSP2/3 sidetone support

2016-05-30 Thread Peter Ujfalusi
Hi, Changes since v4: - Moved DTS patch as the first in the series - rebased on top of 4.7-rc1 Changes since v3: - Rebased on next-20160525 [1] to apply cleanly - Fixed subject line for patch5 - Added Mark's acked-by to the ASoC patches [1] "ASoC: omap-mcbsp: Enable/disable sidetone block auto

Re: [PATCH v3] gpu: drm: amd: amdkfd: Remove create_workqueue()

2016-05-30 Thread Oded Gabbay
On Sun, May 29, 2016 at 6:44 PM, Bhaktipriya Shridhar wrote: > alloc_workqueue replaces deprecated create_workqueue(). > > create_workqueue has been replaced with alloc_workqueue with max_active > as 0 since there is no need for throttling the number of active work items.

Re: [PATCH 3/5] spi: sunxi: expose maximum transfer size limit

2016-05-30 Thread Maxime Ripard
On Thu, May 26, 2016 at 07:25:24PM -, Michal Suchanek wrote: > The sun4i spi hardware can trasfer at most 63 bytes of data without DMA > support so report the limitation. Same on sun6i. Is it? Is there timeouts on the A31 and later SoCs? Maxime -- Maxime Ripard, Free Electrons Embedded

[PATCH] mm/memcontrol.c: add memory allocation result check

2016-05-30 Thread Wenwei Tao
From: Wenwei Tao The mem_cgroup_tree_per_node allocation might fail, check that before continue the memcg init. Since it is in the init phase, trigger the panic if that failure happens. Signed-off-by: Wenwei Tao --- mm/memcontrol.c | 1 + 1 file

[PATCH v1 14/14] ASoC: omap-mcpdm: Add support for pdmclk clock handling

2016-05-30 Thread Peter Ujfalusi
McPDM module receives it's functional clock from external source. This clock is the pdmclk provided by the twl6040 audio IC. If the clock is not available all register accesses to McPDM fails and the module is not operational. Signed-off-by: Peter Ujfalusi Acked-by: Rob

[PATCH v1 11/14] ASoC: omap: Kconfig: SND_OMAP_SOC_OMAP_ABE_TWL6040 to select CLK_TWL6040

2016-05-30 Thread Peter Ujfalusi
The pdmclk is needed for McPDM. It is generated by twl6040. Signed-off-by: Peter Ujfalusi --- sound/soc/omap/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig index 5520273724ae..347705c04db1 100644 ---

[PATCH v1 12/14] ASoC: omap-mcpdm: Move the WD enable write inside omap_mcpdm_open_streams()

2016-05-30 Thread Peter Ujfalusi
The DS4_WD_EN bit is only touched before calling omap_mcpdm_open_streams(). Move it inside of that function for simplicity. Signed-off-by: Peter Ujfalusi --- sound/soc/omap/omap-mcpdm.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH v1 13/14] ASoC: omap-mcpdm: Support for suspend resume

2016-05-30 Thread Peter Ujfalusi
Implement ASoC's suspend and resume callbacks. Since McPDM does not use pcm_trigger for start and stop of the stream due to strict sequencing needs with the twl6040, the callbacks will stop and restart the McPDM in case the board suspended during audio activity. Signed-off-by: Peter Ujfalusi

[PATCH v1 10/14] ARM: dts: omap4-duovero: Add pdmclk binding for audio

2016-05-30 Thread Peter Ujfalusi
The twl6040 codec is generating the pdmclk, which is used by the McPDM as functional clock. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/omap4-duovero.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4-duovero.dtsi

Re: [path v2 1/7] drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver

2016-05-30 Thread Daniel Vetter
On Sun, May 29, 2016 at 05:40:49PM +0800, Rongrong Zou wrote: > Add DRM master driver for Hisilicon Hibmc SoC which used for > Out-of-band management. Blow is the general hardware connection, > both the Hibmc and the host CPU are on the same mother board. > > +--+ +--+ > |

Re: [PATCH RFT] regulator: max8972: Fix setting ramp delay

2016-05-30 Thread Krzysztof Kozlowski
On 05/30/2016 10:52 AM, Axel Lin wrote: > 2016-05-30 16:48 GMT+08:00 Krzysztof Kozlowski : >> On 05/29/2016 01:16 PM, Axel Lin wrote: >>> Current code can set ramp delay to a wrong setting that the return value >>> from .set_voltage_time_sel is not enough for proper delay.

Re: [PATCH -v2 4/6] locking, arch: Update spin_unlock_wait()

2016-05-30 Thread Peter Zijlstra
On Fri, May 27, 2016 at 03:34:13PM -0400, Chris Metcalf wrote: > >Does TILE never speculate reads? Because in that case the control > >dependency already provides a full load->load,store barrier and you'd > >want smp_acquire__after_ctrl_dep() to be a barrier() instead of > >smp_rmb(). > > Yes,

Re: [PATCH v6 10/11] perf callchain: Support x86 target platform

2016-05-30 Thread Jiri Olsa
On Mon, May 30, 2016 at 05:11:35PM +0800, Hekuang wrote: > hi > > 在 2016/5/30 16:53, Jiri Olsa 写道: > > On Sat, May 28, 2016 at 11:59:59AM +, He Kuang wrote: > > > Support x86(32-bit) cross platform callchain unwind. > > > > > > Signed-off-by: He Kuang > > > --- > > >

Re: [PATCH 2/2] sched/fair: Skip detach and attach load avgs for new group task

2016-05-30 Thread Yuyang Du
Hi Vincent, On Fri, May 27, 2016 at 03:37:11PM +0200, Vincent Guittot wrote: > On 26 May 2016 at 21:44, Yuyang Du wrote: > > Hi Vincent, > > > > On Thu, May 26, 2016 at 01:50:56PM +0200, Vincent Guittot wrote: > >> On 26 May 2016 at 03:14, Yuyang Du

[PATCH] mmc: sdhci: use udelay instead of mdelay

2016-05-30 Thread Baranowska, BeataX
From: Chuanxiao Dong This patch will use udelay instead of mdelay when waiting for SDHCI hardware to be stable. udelay can help to reduce the waiting time when is in critical region which is protected by spinlock. With this patch, __sdhci_set_ios only take a few

Re: WMI driver no longer load after switching to generic UUID library

2016-05-30 Thread Andy Shevchenko
On Sun, 2016-05-29 at 13:22 -0700, Linus Torvalds wrote: > Andy? > > Looking at that commit, it does look like what wmi_parse_guid + > wmi_swap_bytes did was to implement a LE uuid. So the conversion looks > correct, but the fact that it breaks something obviously means that > there's something

Re: [PATCH] ARM: dts: exynos: Remove unneded always-on for regulators on Peach boards

2016-05-30 Thread Krzysztof Kozlowski
On 05/19/2016 11:52 PM, Javier Martinez Canillas wrote: > The regulator always-on property should only be used for regulators > that either can't be disabled or the drivers for the client devices > are not enabling the regulator and so being disabled due to unused. > > There are some max77802

Re: [PATCH] Fix annoyingly awkward typo in drm_edid_load.c

2016-05-30 Thread Daniel Vetter
On Mon, May 30, 2016 at 02:26:38AM -0400, Valdis Kletnieks wrote: > Fix egregious typo in comment. > > Signed-off-by: Valdis Kletnieks Applied to drm-misc, thanks. -Daniel > > --- a/drivers/gpu/drm/drm_edid_load.c 2016-04-20 17:54:27.208059935 -0400 > +++

Re: [PATCH] mmc: sdhci: use udelay instead of mdelay

2016-05-30 Thread Arnd Bergmann
On Monday, May 30, 2016 7:55:55 AM CEST Baranowska, BeataX wrote: > From: Chuanxiao Dong > > This patch will use udelay instead of mdelay when waiting for > SDHCI hardware to be stable. udelay can help to reduce the waiting > time when is in critical region which is

[PATCH] mmc: host: use pr_err for sdhci_dumpregs

2016-05-30 Thread Baranowska, BeataX
From: Chuanxiao Dong sdhci_dumpregs is used to dump registers when error happens. Thus it should use pr_err instead of pr_debug to show more information about the hardware. Signed-off-by: Chuanxiao Dong --- drivers/mmc/host/sdhci.c | 32

[PATCH RESEND 0/3] Support Mediatek Soc MT2701 disp pwm

2016-05-30 Thread Weiqing Kong
Sorry for sending many times, because of company permission settings, many people and groups can't receive these patches before. These series patches modify pwm-mtk-disp.c and dts/dtsi config to support MT2701 disp pwm. Weiqing Kong (3): dt-bindings: pwm: Add MediaTek display PWM bindings

[PATCH 2/3] pwm: Add MediaTek MT2701 display PWM driver support

2016-05-30 Thread Weiqing Kong
Use the mtk_pwm_data struction to define different registers and add MT2701 specific register operations, such as MT2701 doesn't have commit register, needs to disable double buffer before writing register, and needs to select manual mode and use PWM_PERIOD/PWM_HIGH_WIDTH. Signed-off-by: Weiqing

[PATCH 3/3] dts: Add disp bls dsti and dts config for MT2701

2016-05-30 Thread Weiqing Kong
Signed-off-by: Weiqing Kong --- arch/arm/boot/dts/mt2701-evb.dts | 29 + arch/arm/boot/dts/mt2701.dtsi| 9 + 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts

Re: DRM DMA Engine

2016-05-30 Thread Jose Abreu
Hi Daniel, Thanks for your answer. On 26-05-2016 09:06, Daniel Vetter wrote: > On Wed, May 25, 2016 at 04:46:15PM +0100, Jose Abreu wrote: >> Hi all, >> >> Currently I am trying to develop a DRM driver that will use >> Xilinx VDMA to transfer video data to a HDMI TX Phy and I am >> facing a

[PATCH 1/3] dt-bindings: pwm: Add MediaTek display PWM bindings

2016-05-30 Thread Weiqing Kong
Add MT2701 compatible string. Signed-off-by: Weiqing Kong --- Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt

Re: [patch V2 2/7] futex: Hash private futexes per process

2016-05-30 Thread Peter Zijlstra
On Fri, May 27, 2016 at 06:52:11PM +0200, Sebastian Andrzej Siewior wrote: > On 2016-05-19 14:21:48 [+0200], Peter Zijlstra wrote: > > > +static void futex_populate_hash(unsigned int hash_bits) > > > +{ > … > > > + raw_spin_lock(>futex_hash.lock); > > > + /* We might have raced with another task

Re: [RFC PATCH v2 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-30 Thread Naveen N. Rao
On 2016/05/24 03:45PM, Madhavan Srinivasan wrote: > > > On Thursday 19 May 2016 08:40 PM, Anju T wrote: > > Detour buffer contains instructions to create an in memory pt_regs. > > After the execution of prehandler a call is made for instruction emulation. > > The NIP is decided after the probed

Re: [PATCH v6 10/11] perf callchain: Support x86 target platform

2016-05-30 Thread Jiri Olsa
On Sat, May 28, 2016 at 11:59:59AM +, He Kuang wrote: > Support x86(32-bit) cross platform callchain unwind. > > Signed-off-by: He Kuang > --- > tools/perf/arch/Build | 1 + > tools/perf/arch/x86/util/unwind-libunwind.c| 7 --- >

Re: [PATCH] pv-qspinlock: Try to re-hash the lock after spurious_wakeup

2016-05-30 Thread xinhui
On 2016年05月28日 11:41, Waiman Long wrote: On 05/27/2016 06:32 AM, xinhui wrote: On 2016年05月27日 02:31, Waiman Long wrote: On 05/25/2016 02:09 AM, Pan Xinhui wrote: In pv_wait_head_or_lock, if there is a spurious_wakeup, and it fails to get the lock as there is lock stealing, then after a

Re: [PATCH v6 03/11] perf tools: Introducing struct unwind_libunwind_ops for local unwind

2016-05-30 Thread Jiri Olsa
On Sat, May 28, 2016 at 11:59:52AM +, He Kuang wrote: > Currently, libunwind operations are fixed, and they are chosen > according to the host architecture. This will lead a problem that if a > thread is run as x86_32 on x86_64 machine, perf will use libunwind > methods for x86_64 to parse the

Re: [PATCH] mm/memcontrol.c: add memory allocation result check

2016-05-30 Thread Michal Hocko
On Mon 30-05-16 16:45:51, Wenwei Tao wrote: > From: Wenwei Tao > > The mem_cgroup_tree_per_node allocation might fail, > check that before continue the memcg init. Since it > is in the init phase, trigger the panic if that failure > happens. We would blow up in the very

Re: [PATCH v6 10/11] perf callchain: Support x86 target platform

2016-05-30 Thread Hekuang
hi 在 2016/5/30 16:53, Jiri Olsa 写道: On Sat, May 28, 2016 at 11:59:59AM +, He Kuang wrote: Support x86(32-bit) cross platform callchain unwind. Signed-off-by: He Kuang --- tools/perf/arch/Build | 1 +

Re: [PATCH 2/5] random: make /dev/urandom scalable for silly userspace programs

2016-05-30 Thread Stephan Mueller
Am Montag, 30. Mai 2016, 01:39:22 schrieb Theodore Ts'o: Hi Theodore, > On a system with a 4 socket (NUMA) system where a large number of > application threads were all trying to read from /dev/urandom, this > can result in the system spending 80% of its time contending on the > global urandom

Re: lm-senser can't detect thermal on thermal_zone

2016-05-30 Thread Kuninori Morimoto
Hi Zhang Can you check this email ? > Thank you for your help > > > > non thermal-zon > > > sensor command: OK > > > read from /sys/class/thermal/thermal_zone0 : OK > > > > > > thermal-zon > > > sensor command: NG > > > read from /sys/class/thermal/thermal_zone0 : OK > >

[PATCH] Fix annoyingly awkward typo in drm_edid_load.c

2016-05-30 Thread Valdis Kletnieks
Fix egregious typo in comment. Signed-off-by: Valdis Kletnieks --- a/drivers/gpu/drm/drm_edid_load.c 2016-04-20 17:54:27.208059935 -0400 +++ b/drivers/gpu/drm/drm_edid_load.c 2016-05-30 02:15:43.747105384 -0400 @@ -271,7 +271,7 @@ * by commas, search

[PATCH V2 1/2] vhost_net: stop polling socket during rx processing

2016-05-30 Thread Jason Wang
We don't stop rx polling socket during rx processing, this will lead unnecessary wakeups from under layer net devices (E.g sock_def_readable() form tun). Rx will be slowed down in this way. This patch avoids this by stop polling socket during rx processing. A small drawback is that this introduces

[PATCH V2 0/2] vhost_net polling optimization

2016-05-30 Thread Jason Wang
Hi: This series tries to optimize vhost_net polling at two points: - Stop rx polling for reduicng the unnecessary wakeups during handle_rx(). - Conditonally enable tx polling for reducing the unnecessary traversing and spinlock touching. Test shows about 17% improvement on rx pps. Please

Re: [PATCH v2] sched: fix first task of a task group is attached twice

2016-05-30 Thread Vincent Guittot
On 27 May 2016 at 22:38, Dietmar Eggemann wrote: > On 27/05/16 18:16, Vincent Guittot wrote: >> On 27 May 2016 at 17:48, Dietmar Eggemann wrote: >>> On 25/05/16 16:01, Vincent Guittot wrote: The cfs_rq->avg.last_update_time is initialize

Re: [Qemu-ppc] [PATCH] powerpc/pseries: start rtasd before PCI probing

2016-05-30 Thread Greg Kurz
On Mon, 23 May 2016 10:28:28 +0200 Greg Kurz wrote: > A strange behaviour is observed when comparing PCI hotplug in QEMU, between > x86 and pseries. If you consider the following steps: > - start a VM > - add a PCI device via the QEMU monitor before the rtasd has

Re: [PATCH 13/15] mtd: nand: samsung: retrieve ECC requirements from extended ID

2016-05-30 Thread Boris Brezillon
Hi Valdis, On Sun, 29 May 2016 20:20:35 -0400 valdis.kletni...@vt.edu wrote: > On Fri, 27 May 2016 14:54:59 +0200, Boris Brezillon said: > > From: Hans de Goede > > > > On some nand controllers with hw-ecc the controller code wants to know > > the ecc strength and size and

Re: [lkp] [mm] 55834c5909: boot-slabinfo.num_objs +31.9% increasement

2016-05-30 Thread Ye Xiaolong
On Mon, May 30, 2016 at 09:53:25AM +0200, Dmitry Vyukov wrote: >On Mon, May 30, 2016 at 4:17 AM, kernel test robot > wrote: >> >> FYI, we noticed boot-slabinfo.num_objs +31.9% increasement due to commit: >> >> commit 55834c59098d0c5a97b0f3247e55832b67facdcf ("mm: kasan:

[PATCH v1 08/14] ARM: dts: omap4-sdp: Add pdmclk binding for audio

2016-05-30 Thread Peter Ujfalusi
The twl6040 codec is generating the pdmclk, which is used by the McPDM as functional clock. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/omap4-sdp.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4-sdp.dts

Re: [patch V2 2/7] futex: Hash private futexes per process

2016-05-30 Thread Peter Zijlstra
On Fri, May 27, 2016 at 07:10:01PM +0200, Sebastian Andrzej Siewior wrote: > On 2016-05-19 14:24:06 [+0200], Peter Zijlstra wrote: > > On Thu, May 05, 2016 at 08:44:04PM -, Thomas Gleixner wrote: > > > +static struct futex_hash_bucket *hash_futex(union futex_key *key) > > > +{ > > > +#ifdef

Re: [patch V2 3/7] futex: Add op for hash preallocation

2016-05-30 Thread Peter Zijlstra
On Fri, May 27, 2016 at 07:27:57PM +0200, Sebastian Andrzej Siewior wrote: > On 2016-05-19 14:25:58 [+0200], Peter Zijlstra wrote: > > On Thu, May 05, 2016 at 08:44:05PM -, Thomas Gleixner wrote: > > > +static int futex_preallocate_hash(unsigned int slots) > > > +{ > > > +#ifdef

Re: [PATCH 3/5] spi: sunxi: expose maximum transfer size limit

2016-05-30 Thread Michal Suchanek
Hello, On 30 May 2016 at 10:37, Maxime Ripard wrote: > On Thu, May 26, 2016 at 07:25:24PM -, Michal Suchanek wrote: >> The sun4i spi hardware can trasfer at most 63 bytes of data without DMA >> support so report the limitation. Same on sun6i. > > Is it? Is

[PATCH 11/17] powerpc: get rid of superfluous __GFP_REPEAT

2016-05-30 Thread Michal Hocko
From: Michal Hocko __GFP_REPEAT has a rather weak semantic but since it has been introduced around 2.6.12 it has been ignored for low order allocations. {pud,pmd}_alloc_one are allocating from {PGT,PUD}_CACHE initialized in pgtable_cache_init which doesn't have larger than

[PATCH 17/17] jbd2: get rid of superfluous __GFP_REPEAT

2016-05-30 Thread Michal Hocko
From: Michal Hocko jbd2_alloc is explicit about its allocation preferences wrt. the allocation size. Sub page allocations go to the slab allocator and larger are using either the page allocator or vmalloc. This is all good but the logic is unnecessarily complex. 1) as per Ted,

[PATCH 14/17] sh: get rid of superfluous __GFP_REPEAT

2016-05-30 Thread Michal Hocko
From: Michal Hocko __GFP_REPEAT has a rather weak semantic but since it has been introduced around 2.6.12 it has been ignored for low order allocations. PGALLOC_GFP uses __GFP_REPEAT but {pgd,pmd}_alloc allocate from {pgd,pmd}_cache but both caches are allocating up to

Re: [PATCH] mm/memcontrol.c: add memory allocation result check

2016-05-30 Thread Wenwei Tao
I think explicit BUG_ON may make the debug easier, since it can point out the wrong line. 2016-05-30 16:53 GMT+08:00 Michal Hocko : > On Mon 30-05-16 16:45:51, Wenwei Tao wrote: >> From: Wenwei Tao >> >> The mem_cgroup_tree_per_node allocation might fail,

Re: [PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-30 Thread Minchan Kim
On Mon, May 30, 2016 at 02:39:06PM +0900, Joonsoo Kim wrote: > On Fri, May 27, 2016 at 05:11:08PM +0900, Minchan Kim wrote: > > On Fri, May 27, 2016 at 03:08:39PM +0900, Joonsoo Kim wrote: > > > On Fri, May 27, 2016 at 02:14:32PM +0900, Minchan Kim wrote: > > > > On Thu, May 26, 2016 at 04:15:28PM

Re: [RFC PATCH 1/4] mm/hugetlb: Simplify hugetlb unmap

2016-05-30 Thread Hillf Danton
> @@ -3157,19 +3156,22 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, > struct vm_area_struct *vma, > tlb_start_vma(tlb, vma); > mmu_notifier_invalidate_range_start(mm, mmun_start, mmun_end); > address = start; > -again: > for (; address < end; address += sz) {

Build regressions/improvements in v4.7-rc1

2016-05-30 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.7-rc1[1] compared to v4.6[2]. Summarized: - build errors: +17/-7 - build warnings: +1165/-547 Note that there may be false regressions, as some logs are incomplete. Still, they're build errors/warnings. As I haven't

Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks

2016-05-30 Thread Gabriel Fernandez
On 27 May 2016 at 17:41, Rob Herring wrote: > On Fri, May 27, 2016 at 09:23:20AM +0200, loic pallardy wrote: >> >> >> On 05/26/2016 03:20 PM, Rob Herring wrote: >> >On Thu, May 26, 2016 at 8:05 AM, loic pallardy wrote: >> >> >> >> >> >>On 05/26/2016 02:46

Re: [RESEND PATCH 5/6] ASoC: cdn-dp: Add cdn DP codec driver

2016-05-30 Thread Jyri Sarha
On 05/30/16 10:26, Chris Zhong wrote: > Hi Mark & Vinod > > Thanks for your suggestion, I am going to use this HDMI codec driver. > But it seems no one use it, currently. > There is three users working on getting their code accepted in main line. I have been trying to get my tda998x patches

Re: [PATCH block/for-4.7-fixes] writeback: use higher precision calculation in domain_dirty_limits()

2016-05-30 Thread Jan Kara
On Fri 27-05-16 14:34:46, Tejun Heo wrote: > As vm.dirty_[background_]bytes can't be applied verbatim to multiple > cgroup writeback domains, they get converted to percentages in > domain_dirty_limits() and applied the same way as > vm.dirty_[background]ratio. However, if the specified bytes is

Re: [PATCH v9 7/7] MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers

2016-05-30 Thread Heikki Krogerus
Hi Baolu, On Mon, May 30, 2016 at 01:51:44PM +0800, Lu Baolu wrote: > Add a maintainer entry for Intel USB dual role mux drivers and > add myself as a maintainer. > > Signed-off-by: Lu Baolu > --- > MAINTAINERS | 10 ++ > 1 file changed, 10 insertions(+) > >

Re: [PATCH v3] Axi-usb: Add support for 64-bit addressing.

2016-05-30 Thread Arnd Bergmann
On Monday, May 30, 2016 5:46:21 AM CEST Nava kishore Manne wrote: > > > The Axi-usb 5.00 IP is a FPGA based one. This IP needs to support two H/w > designs one with 32 bit DMA addressing another one is 64 bit DMA addressing. > And also in the software point for view we don’t have any register to

Re: [PATCH v3 7/7] [wip] virtio-gpu: add page flip support

2016-05-30 Thread Daniel Vetter
On Fri, May 27, 2016 at 09:50:27AM +0200, Daniel Vetter wrote: > On Fri, May 27, 2016 at 09:46:03AM +0200, Gerd Hoffmann wrote: > > On Mi, 2016-05-25 at 18:37 +0200, Daniel Vetter wrote: > > > On Fri, Oct 2, 2015 at 1:58 PM, Gerd Hoffmann wrote: > > > > Signed-off-by: Gerd

Re: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code into smaller functions

2016-05-30 Thread Michal Hocko
On Fri 27-05-16 09:40:27, Tim Chen wrote: > On Tue, 2016-05-03 at 14:01 -0700, Tim Chen wrote: > > This patch prepares the code for being able to batch the anonymous > > pages > > to be swapped out.  It reorganizes shrink_page_list function with > > 2 new functions: handle_pgout and pg_finish. > >

Re: [PATCH RFT] regulator: max8972: Fix setting ramp delay

2016-05-30 Thread Krzysztof Kozlowski
On 05/29/2016 01:16 PM, Axel Lin wrote: > Current code can set ramp delay to a wrong setting that the return value > from .set_voltage_time_sel is not enough for proper delay. I don't understand what yo wanted to say here. What wrong setting is possible? Why do you mention set_voltage_time_sel()

[PATCH v1 06/14] ARM: dts: omap5-board-common: Add pdmclk binding for audio

2016-05-30 Thread Peter Ujfalusi
The twl6040 codec is generating the pdmclk, which is used by the McPDM as functional clock. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/omap5-board-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi

[PATCH v1 03/14] clk: twl6040: Rename the driver and use consistent names in the code

2016-05-30 Thread Peter Ujfalusi
The driver is to provide the functional clock to OMAP4/5 McPDM. The clock is named as pdmclk in the documentations so change the function names, structure names and variables to align with this. At the same time rename the driver from "twl6040-clk" to "twl6040-pdmclk". This can be done w/o

[PATCH v1 07/14] ARM: dts: omap4-panda-common: Add pdmclk binding for audio

2016-05-30 Thread Peter Ujfalusi
The twl6040 codec is generating the pdmclk, which is used by the McPDM as functional clock. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/omap4-panda-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi

[PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider

2016-05-30 Thread Peter Ujfalusi
In order ot be able to use the pdmclk clock via DT it need to be registered as of_clk_provide. Since the twl6040 clock driver does not have it's own DT node, use the parent's node for registering. Signed-off-by: Peter Ujfalusi --- drivers/clk/clk-twl6040.c | 3 ++- 1 file

Re: [PATCH] mutex: Report recursive ww_mutex locking early

2016-05-30 Thread Peter Zijlstra
On Mon, May 30, 2016 at 09:43:53AM +0200, Maarten Lankhorst wrote: > Op 26-05-16 om 22:08 schreef Chris Wilson: > > Recursive locking for ww_mutexes was originally conceived as an > > exception. However, it is heavily used by the DRM atomic modesetting > > code. Currently, the recursive deadlock

Re: [RFT][PATCH v2] regulator: max8973: Fix setting ramp delay

2016-05-30 Thread Krzysztof Kozlowski
On 05/30/2016 11:09 AM, Axel Lin wrote: > Current code for .set_ramp_delay() rounds down the value written to > register, while the implementation of .set_voltage_time_sel() works on > original constraints (not rounded down). > Fix the logic in .set_ramp_delay and also remove unused ret_val

Re: [Experimental PATCH] dell-smm-hwmon: Add support for disabling automatic BIOS fan control

2016-05-30 Thread Pali Rohár
On Friday 27 May 2016 14:11:11 Gabriele Mazzotta wrote: > On 22/05/2016 13:50, Pali Rohár wrote: > > This patch exports standard hwmon pwmX_enable sysfs attribute for enabling > > or disabling automatic fan control by BIOS. Standard value "1" is for > > disabling automatic BIOS fan control and

Re: [PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-30 Thread Minchan Kim
On Fri, May 27, 2016 at 11:16:41AM -0700, Shi, Yang wrote: > > > >If we goes this way, how to guarantee this race? > > Thanks for pointing out this. It sounds reasonable. However, this > should be only possible to happen on 32 bit since just 32 bit > version page_is_idle() calls

Re: [PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-30 Thread Minchan Kim
On Mon, May 23, 2016 at 10:16:08AM -0700, Yang Shi wrote: > Per the discussion with Joonsoo Kim [1], we need check the return value of > lookup_page_ext() for all call sites since it might return NULL in some cases, > although it is unlikely, i.e. memory hotplug. > > Tested with ltp with

[PATCH V2 2/2] vhost_net: conditionally enable tx polling

2016-05-30 Thread Jason Wang
We always poll tx for socket, this is sub optimal since: - it will be only used when we exceed the sndbuf of the socket. - since we use two independent polls for tx and vq, this will slightly increase the waitqueue traversing time and more important, vhost could not benefit from commit

Re: [PATCH v8 2/3] CMDQ: Mediatek CMDQ driver

2016-05-30 Thread CK Hu
Hi, HS: Some comments inline. On Mon, 2016-05-30 at 11:19 +0800, HS Liao wrote: > This patch is first version of Mediatek Command Queue(CMDQ) driver. The > CMDQ is used to help read/write registers with critical time limitation, > such as updating display configuration during the vblank. It

Re: [PATCH v2] net: alx: use custom skb allocator

2016-05-30 Thread Feng Tang
Hi Eric, On Thu, May 26, 2016 at 06:08:22AM -0700, Eric Dumazet wrote: > On Thu, 2016-05-26 at 16:41 +0800, Feng Tang wrote: > > On Wed, May 25, 2016 at 07:53:41PM -0400, David Miller wrote: > > > > > > > But now that we have at least two instances of this code we really > > > need to put a

Re: [PATCH] Revert "i2c: dev: switch from register_chrdev to cdev API"

2016-05-30 Thread Dan Carpenter
On Sat, May 28, 2016 at 06:04:58PM +0200, Wolfram Sang wrote: > > > These kinds of use after frees don't always cause a runtime problem. I > > found it using static analysis, but I bet you could detect it if you > > enabled kasan. The other option is to enable PAGE_POISONING? > > Thanks,

Re: [PATCH 3/6] mm, oom_adj: make sure processes sharing mm have same view of oom_score_adj

2016-05-30 Thread Michal Hocko
On Fri 27-05-16 19:18:21, Vladimir Davydov wrote: > On Fri, May 27, 2016 at 01:18:03PM +0200, Michal Hocko wrote: > ... > > @@ -1087,7 +1105,25 @@ static int __set_oom_adj(struct file *file, int > > oom_adj, bool legacy) > > unlock_task_sighand(task, ); > > err_put_task: > >

[PATCH 2/7] DT: phy.txt: Add mdio-integrated-mux property

2016-05-30 Thread Pramod Kumar
This property is used by integrated MDIO multiplexer which has bus selection and mdio transaction generation logic, integrated inside. Signed-off-by: Pramod Kumar --- Documentation/devicetree/bindings/net/mdio-mux.txt | 9 - 1 file changed, 8 insertions(+), 1

[PATCH 1/7] mdio:mux: Enhanced MDIO mux framework for integrated multiplexers

2016-05-30 Thread Pramod Kumar
An integrated multiplexer uses same address space for "muxed bus selection" and "generation of mdio transaction" hence its good to register parent bus from mux driver. Hence added a mechanism where mux driver could register a parent bus and pass it down to framework via mdio_mux_init api. Below

[PATCH 0/7] Add MDIO bus multiplexer support for iProc SoCs

2016-05-30 Thread Pramod Kumar
Broadcom iProc based SoCs use a MDIO bus multiplexer where child buses could be internal as well external to SoCs. These buses could supports MDIO transaction compatible to C-22/C-45. Broadcom MDIO bus mulitplexer is an integrated multiplexer where child bus selection and mdio transaction logic

[PATCH 5/7] net:mdio-mux: Add MDIO mux driver for iProc SoCs

2016-05-30 Thread Pramod Kumar
iProc based SoCs supports the integrated mdio multiplexer which has the bus selection as well as mdio transaction generation logic inside. This mutiplexer has child buses for PCIe, SATA, USB and ETH. These buses could be internal or external to SOC where PHYs are attached. These buses could use

[PATCH 4/7] DT:mdio-mux: Add mdio multiplexer driver node

2016-05-30 Thread Pramod Kumar
Add integrated MDIO multiplexer driver node which contains two mux PCIe bus and one ethernet bus along with phys lying on these bus. Signed-off-by: Pramod Kumar --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 12 arch/arm64/boot/dts/broadcom/ns2.dtsi|

[PATCH 7/7] phy: Add Northstar2 PCI Phy support

2016-05-30 Thread Pramod Kumar
Add PCI Phy support for Broadcom Northstar2 SoCs. This driver uses the interface from the iproc mdio mux driver to enable the devices respective phys. Signed-off-by: Jon Mason Signed-off-by: Pramod Kumar --- drivers/phy/Kconfig|

[PATCH 3/7] binding: mdio-mux: Add DT binding doc for Broadcom MDIO bus mutiplexer

2016-05-30 Thread Pramod Kumar
Add DT binding doc for Broadcom MDIO bus mutiplexer driver. Signed-off-by: Pramod Kumar --- .../bindings/net/brcm,mdio-mux-iproc.txt | 64 ++ 1 file changed, 64 insertions(+) create mode 100644

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-30 Thread Michal Hocko
On Fri 27-05-16 13:36:29, Johannes Weiner wrote: > On Mon, May 23, 2016 at 07:02:10PM +0300, Vladimir Davydov wrote: > > mem_cgroup_oom may be invoked multiple times while a process is handling > > a page fault, in which case current->memcg_in_oom will be overwritten > > leaking the previously

Re: Build regressions/improvements in v4.7-rc1

2016-05-30 Thread Geert Uytterhoeven
On Mon, May 30, 2016 at 9:28 AM, Geert Uytterhoeven wrote: > + /home/kisskb/slave/src/arch/powerpc/include/asm/nohash/64/pgalloc.h: > error: implicit declaration of function 'pte_fragment_fre' >

Re: [RESEND PATCH 5/6] ASoC: cdn-dp: Add cdn DP codec driver

2016-05-30 Thread Chris Zhong
Hi Mark & Vinod Thanks for your suggestion, I am going to use this HDMI codec driver. But it seems no one use it, currently. On 05/30/2016 11:33 AM, Vinod Koul wrote: On Fri, May 27, 2016 at 09:23:12PM +0100, Mark Brown wrote: On Fri, May 27, 2016 at 06:45:41PM +0800, Chris Zhong wrote:

Re: [PATCH] mutex: Report recursive ww_mutex locking early

2016-05-30 Thread Maarten Lankhorst
Op 26-05-16 om 22:08 schreef Chris Wilson: > Recursive locking for ww_mutexes was originally conceived as an > exception. However, it is heavily used by the DRM atomic modesetting > code. Currently, the recursive deadlock is checked after we have queued > up for a busy-spin and as we never release

[PATCH] vcodec: mediatek: Add g/s_selection support for V4L2 Encoder

2016-05-30 Thread Tiffany Lin
This patch add g/s_selection support for MT8173 Signed-off-by: Tiffany Lin --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 74 1 file changed, 74 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c

Re: [lkp] [mm] 55834c5909: boot-slabinfo.num_objs +31.9% increasement

2016-05-30 Thread Dmitry Vyukov
On Mon, May 30, 2016 at 4:17 AM, kernel test robot wrote: > > FYI, we noticed boot-slabinfo.num_objs +31.9% increasement due to commit: > > commit 55834c59098d0c5a97b0f3247e55832b67facdcf ("mm: kasan: initial memory > quarantine implementation") >

Re: [PATCH v2 3/3] ACPI / button: Send "open" state after boot/resume

2016-05-30 Thread Benjamin Tissoires
On Fri, May 27, 2016 at 9:16 AM, Lv Zheng wrote: > Linux userspace (systemd-logind) keeps on rechecking lid state when the > lid state is closed. If it failed to update the lid state to open after > boot/resume, the system suspending right after the boot/resume could be >

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-05-30 Thread Daniel Vetter
On Sun, May 29, 2016 at 05:38:39PM +0200, Noralf Trønnes wrote: > > Den 12.05.2016 20:25, skrev Noralf Trønnes: > >Provides helper functions for drivers that have a simple display > >pipeline. Plane, crtc and encoder are collapsed into one entity. > > > >Cc: jsa...@ti.com > >Signed-off-by: Noralf

Re: [patch v2 net-next 00/13] net: hns: add support of ACPI

2016-05-30 Thread Andy Shevchenko
On Mon, 2016-05-30 at 10:10 +0800, Kejian Yan wrote: > This series adds HNS support of acpi. The routine will call some ACPI > helper functions, like acpi_dev_found() and acpi_evaluate_dsm(), which > are not included in other cases. In order to make system compile > successfully in other cases

Re: [PATCH 3/3] ARM: dts: sun5i: Add spi2 alias on A10s Olinuxino

2016-05-30 Thread Maxime Ripard
On Thu, May 26, 2016 at 07:25:24PM -, Michal Suchanek wrote: > spi2 is available on the UEXT connector > > The bus is named spi2 in the A10s manual and Olinuxino manual so it is > pointless to alias it to something else like spi0. That's not how aliases work in the DT. It's about indexing

  1   2   3   4   5   6   7   8   9   10   >