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) { Wit

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 to 0 with the main effect that the 1st sched_enti

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, PAGE_P

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, &flags); > > err_put_task: > > put_tas

[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 Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt diff --

[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 deletion(-) diff --git a/Do

[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 c

[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 li

[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 C-

[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| 32 +

[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| 8 +++ drivers/phy/Makefile | 1 + driv

[PATCH 6/7] Binding:PHY: Binding doc for NS2 PCIe PHYs.

2016-05-30 Thread Pramod Kumar
Binding doc for NS2 PCIe PHYs. Signed-off-by: Jon Mason Signed-off-by: Pramod Kumar --- .../bindings/phy/brcm,mdio-mux-bus-pci.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/brcm,mdio-mux-bus-pci.txt diff --g

Re: [PATCH 4/6] mm, oom: skip over vforked tasks

2016-05-30 Thread Michal Hocko
On Fri 27-05-16 19:48:30, Vladimir Davydov wrote: > On Thu, May 26, 2016 at 02:40:13PM +0200, Michal Hocko wrote: [...] > > @@ -839,6 +841,13 @@ void oom_kill_process(struct oom_control *oc, struct > > task_struct *p, > > for_each_process(p) { > > if (!process_shares_mm(p, mm)) > >

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 take

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 mast

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 PM, Rob Herring wrote: >> >>> >> >>>On Th

Re: [PATCH v3] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-05-30 Thread Xing Zheng
Hi, Could any guys help me to review this patch? Thanks. On 2016年05月26日 21:02, Xing Zheng wrote: There are multi codec devices on the RK3399 platform, we can use this patch support and control these codecs. Signed-off-by: Xing Zheng --- Changes in v3: - rename DOC to rockchip,rk3399-max98357a

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' > [-Werror=implicit-function-declaration]/home/kisskb/slave/src/arch/powerpc/mm/pgtable.c: > At top

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: codec

[Question] Crash when cat /dev/kmem in arm/arm64 but not in x86

2016-05-30 Thread Kefeng Wang
Hi all, When cat /dev/kmem in arm/arm64, it will crash, this is caused by "from = 0" in copy_to_user(void __user *to, const void *from, unsigned long n), call trace shows below(eg, arm64) [9.913370] Unable to handle kernel NULL pointer dereference at virtual address [9.914391] p

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 started (for > example starting

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 thread_info

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 tr

[PATCH] mmc: core: fix the wrong error control

2016-05-30 Thread Jaehoon Chung
After applied "remove lots of IS_ERR_VALUE abuses", it shoold be misoperation. (commit 287980e49) If mmc_bus_test is successful, it returned the bus-witdh bit. The below log is error log [2.542260] mmc0: mmc_select_hs200 failed, error 3 [2.542275] mmc0: error 3 whilst initialising MMC card

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

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 having these as 0, 0 i

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 revi

[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 b/drivers/media/platform/mtk-vcodec/mt

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") > https://git.kernel.org/pub/scm/linux/kernel/git/t

[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 microseconds to be done. Signed-

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 mi

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 regu

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 > +++ b/drivers/gpu/drm/drm_edid_load.c 2016

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 protected by spinlock. > > Wi

[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 1 file changed, 16 inser

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 lo

Re: [RFC PATCH 2/4] mm: Change the interface for __tlb_remove_page

2016-05-30 Thread Hillf Danton
> diff --git a/mm/memory.c b/mm/memory.c > index 15322b73636b..a01db5bc756b 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -292,23 +292,24 @@ void tlb_finish_mmu(struct mmu_gather *tlb, unsigned > long start, unsigned long e > * handling the additional races in SMP caused by other CPUs ca

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 Description: PGP sign

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 a/arch/arm/boot/dts/sun5i-a10

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 > resulted. > Graphics driv

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 1/2] staging: slicoss: fix coding style spacing issues

2016-05-30 Thread Dan Carpenter
On Sun, May 29, 2016 at 08:31:06AM -0500, Jaime Arrocha wrote: > struct slic_cmdqueue { > struct slic_hostcmd *head; > struct slic_hostcmd *tail; > - int count; > - spinlock_t lock; > + int count; > + spinlock_t lock; > }; The original code

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(+) > > diff --git a/MAINTAINERS b/

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 f

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: initial memory >> quarantin

[PATCH v5 5/7] ASoC: omap-mcbsp: Rename omap_mcbsp_sysfs_remove() to omap_mcbsp_cleanup()

2016-05-30 Thread Peter Ujfalusi
The function will do more then removing the sysfs files in the future. Signed-off-by: Peter Ujfalusi Acked-by: Mark Brown --- sound/soc/omap/mcbsp.c | 2 +- sound/soc/omap/mcbsp.h | 2 +- sound/soc/omap/omap-mcbsp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v5 1/7] ARM: dts: omap3: Add clocks to McBSP nodes

2016-05-30 Thread Peter Ujfalusi
Add clock properties to the McBSP nodes. McBSP2 and 3 need to have ick also since the Sidetone block of these modules are operating using the McBSP interface clock. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/omap3.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch

[PATCH v5 6/7] ASoC: omap-mcbsp: sidetone: Use the new callback for iclk handling

2016-05-30 Thread Peter Ujfalusi
The McBSP sidetone (in OMAP3 McBSP2 and 3 module) is working with the module's interface clock. When the sidetone is enabled the iclk must not idle because it will result in choppy sidetone. Switch to use the new callback for handling the iclk allow/deny idle configuration. For this the driver need

[PATCH v5 2/7] ARM: OMAP3: hwmod data: Fix McBSP2/3 sidetone data

2016-05-30 Thread Peter Ujfalusi
The McBSPLP's sidetone main clock is the McBSPLP's ICLK, not FCLK as the sidetone only receives the ICLK from the main McBSP module. Since the McBSP and sidetone is using the very same clock from PRCM level the sidetone must not have the prcm section to check the clock status since the sidetone is

[PATCH v5 4/7] ARM: OMAP3: pdata-quirks: Add support for McBSP2/3 sidetone handling

2016-05-30 Thread Peter Ujfalusi
McBSP2/3 module's sidetone module operates using the module's ICLK clock. When the Sidetone is in use the interface clock of the module must not idle. To prevent the iclk idling the driver expects to have pdata callback to call. With this patch the callback is going to be set up for DT boot also.

[PATCH v5 7/7] ARM: OMAP2+: McBSP: Remove the old iclk allow/deny idle code

2016-05-30 Thread Peter Ujfalusi
The new pdata callback (force_ick_on) is now used by the driver and the old callback related code can be removed. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/mcbsp.c | 18 -- include/linux/platform_data/asoc-ti-mcbsp.h | 1 - 2 files changed, 19 deletio

[PATCH v5 3/7] ARM: OMAP3: McBSP: New callback for McBSP2/3 ICLK idle configuration

2016-05-30 Thread Peter Ujfalusi
McBSP2/3 module's sidetone module operates using the module's ICLK clock. When the Sidetone is in use the interface clock of the module must not idle. The new callback expects to receive the *clk of the module's ick and not the id number of the McBSP. This will allow us more cleanups and going to s

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 > *ma

[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 c

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 exce

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 the

Re: [RFC PATCH 0/2] scpi: Add SCPI framework to handle vendors variants

2016-05-30 Thread Neil Armstrong
On 05/27/2016 10:17 AM, Neil Armstrong wrote: > Hi, > On 05/26/2016 06:29 PM, Sudeep Holla wrote: >> Hi Neil, >> >> On 26/05/16 10:38, Neil Armstrong wrote: >>> Since the current SCPI implementation, based on [0]: >>> - is (at leat) JUNO specific >> >> Agreed. >> >>> - does not specify a strong "st

Re: [PATCH 2/5] spi: sun4i: fix FIFO limit

2016-05-30 Thread Maxime Ripard
Hi, On Thu, May 26, 2016 at 07:25:24PM -, Michal Suchanek wrote: > When testing SPI without DMA I noticed that filling the FIFO on the > spi controller causes timeout. > > Always leave room for one byte in the FIFO. > > Signed-off-by: Michal Suchanek Sending it to stable would be great (wi

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. > > WQ_MEM_RECLAIM has no

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 Linu

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 Hoffmann > > > > > > S

[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 pwm

[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 K

[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 index 082ca88..6d572f4 100644 -

[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 b/Documentation/devicetree/bindings/pwm/pwm-mtk-di

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(&mm->futex_hash.lock); > > > + /* We might have raced with another tas

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 diffi

[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 changed, 1 insertion(+) diff --git a/mm/memcont

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() h

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 Axel Lin
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. > > I don't understand what yo wanted to say here. What wrong setting

Re: [PATCH v6 08/11] perf tools: Show warnings for unsupported cross-platform unwind

2016-05-30 Thread Jiri Olsa
On Sat, May 28, 2016 at 11:59:57AM +, He Kuang wrote: > Currently, perf script uses host unwind methods to parse perf.data > callchain info regardless of the target architecture. So we get wrong > result without any warnings when unwinding callchains of x86(32-bit) > on x86(64-bit) machine. >

Re: [PATCH v6 04/11] perf tools: Move unwind__prepare_access from thread_new into thread__insert_map

2016-05-30 Thread Jiri Olsa
On Sat, May 28, 2016 at 11:59:53AM +, He Kuang wrote: > For determine the libunwind methods to use, we should get the > 32bit/64bit information from maps of a thread. When a thread is newly > created, the information is not prepared. This patch moves > unwind__prepare_access() into thread__inse

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: SNIP > diff --git a/tools/perf/util/unwind-libunwind-local.c > b/tools/perf/util/unwind-libunwind-local.c > index b391e3e..849fec1 100644 > --- a/tools/perf/util/unwind-libunwind-local.c > +++ b/tools/perf/util/unwind-libunwind-local.c >

Re: [PATCH v6 05/11] perf tools: Separate local/remote libunwind config

2016-05-30 Thread Jiri Olsa
On Sat, May 28, 2016 at 11:59:54AM +, He Kuang wrote: SNIP > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > index 6f9f566..3a304a3 100644 > --- a/tools/perf/config/Makefile > +++ b/tools/perf/config/Makefile > @@ -354,10 +354,24 @@ ifeq ($(ARCH),powerpc) > endif > >

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: SNIP > --- /dev/null > +++ b/tools/perf/arch/x86/util/unwind-libunwind_x86_32.c > @@ -0,0 +1,21 @@ > +#define REMOTE_UNWIND_LIBUNWIND > + > +#define LIBUNWIND__ARCH_REG_ID libunwind__x86_reg_id > + > +#include "unwind.h" > +#include "debug

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 i

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 --- > tools/perf/arch/x86

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 shor

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 same function so what is

[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 b/arch/arm/boot/dts/omap5-bo

[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 regressi

[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 b/arch/arm/boot/dts/omap4-pa

[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 changed, 2 insertions(+

[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 --- a/sound/soc/omap/Kconfig +++ b/soun

[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 a/sound/soc/omap/omap-mcpdm.c b/

[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 b/arch/arm/boot/dts/omap4-duovero.dtsi

[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 Herring --- .../devicetr

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 CONFIG_FUTEX_PR

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 there timeouts on the A31 and later

[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 b/arch/arm/boot/dts/omap4-sdp.dts index aae513265

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 CON

[PATCH v1 09/14] ARM: dts: omap4-var-som-om44: 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-var-som-om44.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4-var-som-om44.dtsi b/arch/arm/boot/dts/omap4-va

[PATCH v1 00/14] clk/mfd/ASoC/ARM: OMAP4/5: McPDM/twl6040 pdmclk support

2016-05-30 Thread Peter Ujfalusi
Hi, Changes since v1: - Added Rob's Acked-by to patch 5 and 14 - Check the return value of clk_prepare_enable() calls in the last patch this is something I wanted to do for a long time... First of all: sorry for the cross domain series. I did tested alone all the domain patches and they are not

[PATCH v1 01/14] clk: twl6040: Correct clk_ops

2016-05-30 Thread Peter Ujfalusi
Since the drover only supports prepare callbacks, the use of is_enabled is not correct, it should be handling is_prepared. Signed-off-by: Peter Ujfalusi --- drivers/clk/clk-twl6040.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/c

[PATCH v1 04/14] mfd: twl6040: The chip does not support bulk access

2016-05-30 Thread Peter Ujfalusi
Bulk access is not working with twl6040, we need to use single register access. Bulk access would happen when we try to sync the regcache after power on. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl6040.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/twl6040.c b/drivers/mf

  1   2   3   4   5   6   7   8   9   10   >