[PATCH v2 02/20] net-next: stmmac: add optional setup function

2017-03-14 Thread Corentin Labbe
Instead of ading more ifthen logic for adding a new mac_device_info setup function, it is easier to add a function pointer to the function needed. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +++- include/linux/stmmac.h| 3 +

[PATCH] media: mtk-jpeg: fix continuous log "Context is NULL"

2017-03-14 Thread Minghsiu Tsai
The symptom is continuous log "mtk-jpeg 18004000.jpegdec: Context is NULL" in kernel log. It is becauese the error handling in irq doesn't clear interrupt. The calling flow like as below when issue happen mtk_jpeg_device_run() mtk_jpeg_job_abort() v4l2_m2m_job_finish() -> m2m_dev->curr_ctx = NUL

[PATCH v2 14/20] ARM64: dts: sun50i-a64: Add dt node for the syscon control module

2017-03-14 Thread Corentin Labbe
This patch add the dt node for the syscon register present on the Allwinner A64. Only two register are present in this syscon and the only one useful is the one dedicated to EMAC clock. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 6 ++ 1 file changed, 6

[PATCH v2 11/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange PI One

2017-03-14 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the Orange PI One. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orange

[PATCH v2 19/20] ARM: sunxi: Enable dwmac-sun8i driver on sunxi_defconfig

2017-03-14 Thread Corentin Labbe
From: LABBE Corentin Enable the dwmac-sun8i driver in the sunxi default configuration Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 5cd5dd70..504e0

[PATCH v2 15/20] ARM64: dts: sun50i-a64: add dwmac-sun8i Ethernet driver

2017-03-14 Thread Corentin Labbe
The dwmac-sun8i is an Ethernet MAC that supports 10/100/1000 Mbit connections. It is very similar to the device found in the Allwinner H3, but lacks the internal 100 Mbit PHY and its associated control bits. This adds the necessary bits to the Allwinner A64 SoC .dtsi, but keeps it disabled at this

[PATCH v2 12/20] ARM: dts: sun8i: Enable dwmac-sun8i on the Orange Pi plus

2017-03-14 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the Orange PI plus. It uses an external PHY rtl8211e via RGMII. This patch create the needed regulator, emac and phy nodes. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 35 1 file changed, 35

Re: [PATCH v2 5/5] pinctrl: sunxi: Add A64 R_PIO controller support

2017-03-14 Thread Linus Walleij
On Wed, Mar 1, 2017 at 7:09 PM, Icenowy Zheng wrote: > The A64 has a R_PIO pin controller, similar to the one found on the H3 SoC. > Add support for the pins controlled by the R_PIO controller. > > Signed-off-by: Icenowy Zheng > Acked-by: Chen-Yu Tsai > --- > Changes in v2: Patch applied. You

Re: [PATCH v2 1/4] pinctrl: samsung: Fix the width of PINCFG_TYPE_DRV bitfields for Exynos5433

2017-03-14 Thread Krzysztof Kozlowski
On Tue, Mar 14, 2017 at 3:47 PM, Linus Walleij wrote: > On Fri, Feb 24, 2017 at 1:22 AM, Chanwoo Choi wrote: >> On 2016년 12월 30일 22:28, Linus Walleij wrote: >>> On Fri, Dec 30, 2016 at 5:14 AM, Andi Shyti wrote: > Probably. Send a patch fixing it up so I can apply it. > > There are now something

[PATCH v2 17/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 plus

2017-03-14 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the pine64 plus. It uses an external PHY rtl8211e via RGMII. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/

[PATCH v2 20/20] ARM: sunxi: Enable dwmac-sun8i driver on multi_v7_defconfig

2017-03-14 Thread Corentin Labbe
Enable the dwmac-sun8i driver in the multi_v7 default configuration Signed-off-by: Corentin Labbe --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 36c1b39..380919f 100644 -

[PATCH 3.12 01/60] md linear: fix a race between linear_add() and linear_congested()

2017-03-14 Thread Jiri Slaby
From: "col...@suse.de" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 03a9e24ef2aaa5f1f9837356aed79c860521407a upstream. Recently I receive a bug report that on Linux v3.0 based kerenl, hot add disk to a md linear device causes kernel crash

Re: [PATCH v8 4/6] perf tools: Add print support for namespace events

2017-03-14 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 08, 2017 at 02:11:59AM +0530, Hari Bathini escreveu: > +size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp) > +{ > + size_t ret = 0; > + struct perf_ns_link_info *ns_link_info; > + u32 nr_namespaces, idx; > + > + ns_link_info = event->namespaces.link

Re: perf: use-after-free in perf_release

2017-03-14 Thread Oleg Nesterov
On 03/14, Peter Zijlstra wrote: > > On Tue, Mar 14, 2017 at 03:03:02PM +0100, Oleg Nesterov wrote: > > On 03/14, Peter Zijlstra wrote: > > > > > > Yes, this looks buggy. But I cannot explain how that would result in the > > > observed use-after-free. > > > > Yes... > > > > Suppose that copy_process

[PATCH v2 05/20] net-next: stmmac: Add dwmac-sun8i

2017-03-14 Thread Corentin Labbe
The dwmac-sun8i is a heavy hacked version of stmmac hardware by allwinner. In fact the only common part is the descriptor management and the first register function. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/Kconfig| 11 + drivers/net/ethernet/stmicro/stmmac/

Re: [2/3] soc: samsung: Do not build ARMv7 PMU drivers on ARMv8

2017-03-14 Thread Alim Akhtar
On 03/14/2017 02:44 PM, Krzysztof Kozlowski wrote: > On Tue, Mar 14, 2017 at 10:40 AM, Alim Akhtar wrote: >> >> >> On 03/14/2017 01:32 PM, Krzysztof Kozlowski wrote: >>> On Tue, Mar 14, 2017 at 9:51 AM, Alim Akhtar >>> wrote: Hi Krzysztof, On 03/12/2017 03:08 AM, Krzysztof Kozlo

RE: [PATCH 1/1] Drivers: hv: vmbus: Don't leak channel ids

2017-03-14 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, March 14, 2017 5:49 AM > To: KY Srinivasan ; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; vkuzn...@redhat.com; jasow...@redhat.com; > leann.ogasaw..

Re: [PATCH] drm/radeon: Fix GPU lockups for the R7 M270

2017-03-14 Thread Alex Deucher
On Mon, Mar 13, 2017 at 10:42 PM, Umang Raghuvanshi wrote: > > > On 03/14/2017 01:00 AM, Alex Deucher wrote: > >> Does your kernel have this patch: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef736d394e85b1bf1fd65ba5e5257b85f6c82325 > > Yes, my kernel has this

Re: [PATCH v2 1/4] phy: exynos4: Remove duplicated defines of PHY register defines

2017-03-14 Thread Bartlomiej Zolnierkiewicz
On Saturday, March 11, 2017 08:25:31 PM Krzysztof Kozlowski wrote: > Phy drivers access PMU region through regmap provided by exynos-pmu > driver. However there is no need to duplicate defines for PMU > registers. Instead just use whatever is defined in exynos-regs-pmu.h. > > Additionally MIPI

Re: [3/3] arm64: exynos: Enable Exynos PMU and PM domains drivers

2017-03-14 Thread Alim Akhtar
On 03/12/2017 03:08 AM, Krzysztof Kozlowski wrote: > Enable EXYNOS_PM_DOMAINS because recently Exynos5433 got support for > Power Management domains. The Exynos5433 pinctrl driver requires > EXYNOS_PMU to get the syscon-regmap for PMU address space. > > Signed-off-by: Krzysztof Kozlowski > ---

Re: [PATCH v2 2/4] phy: exynos5: Remove duplicated defines of PHY register defines

2017-03-14 Thread Bartlomiej Zolnierkiewicz
On Saturday, March 11, 2017 08:25:32 PM Krzysztof Kozlowski wrote: > Phy drivers access PMU region through regmap provided by exynos-pmu > driver. However there is no need to duplicate defines for PMU > registers. Instead just use whatever is defined in exynos-regs-pmu.h. > > This reduces numbe

Re: [PATCH v2 3/4] phy: exynos-mipi-video: Use consistent method to address phy registers

2017-03-14 Thread Bartlomiej Zolnierkiewicz
On Saturday, March 11, 2017 08:25:33 PM Krzysztof Kozlowski wrote: > Exynos4 MIPI phy registers are defined with macro calculating the offset > for given phyN. Use the same method for Exynos5420 to be consistent. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Bartlomiej Zolnierkiewicz Be

Re: [PATCH 3/3] powernv:Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-14 Thread Nicholas Piggin
On Mon, 13 Mar 2017 11:31:28 +0530 "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > POWER9 platform can be configured to rebalance per-thread resources > within a core in order to improve SMT performance. Certain STOP > states can be configure to relinquish resources include some > h

Re: [PATCH net-next 1/3] vxlan: don't allow link-local IPv6 local/remote addresses without interface

2017-03-14 Thread Jiri Benc
On Fri, 10 Mar 2017 23:39:42 +0100, Matthias Schiffer wrote: > Signed-off-by: Matthias Schiffer Acked-by: Jiri Benc

Re: [PATCH v3 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-03-14 Thread Enric Balletbo i Serra
Hi Lee, On 14/03/17 14:59, Lee Jones wrote: > On Tue, 14 Feb 2017, Enric Balletbo i Serra wrote: > >> From: Stephen Barber >> >> If the EC supports RTC host commands, expose an RTC device. >> >> Signed-off-by: Stephen Barber >> Signed-off-by: Enric Balletbo i Serra >> Acked-by: Benson Leung >

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Eric Dumazet
On Tue, 2017-03-14 at 14:31 +0100, Dmitry Vyukov wrote: > Hello, > > I've got the following deadlock report while running syzkaller fuzzer > on net-next/92cd12c5ed432c5eebd2462d666772a8d8442c3b: > > > [ INFO: possible circular locking dependency detected ] > 4.10.0+ #29 Not tainted > ---

Re: [PATCH v2 3/5] dt-bindings: fix for Allwinner H5 pinctrl's compatible

2017-03-14 Thread Linus Walleij
On Wed, Mar 1, 2017 at 7:01 PM, Icenowy Zheng wrote: > The compatible for Allwinner H5 pin controller is wrong written as > allwinner,sun50i-h5-r-pinctrl, however, it's really a generic pinctrl > rather than a "r" one. > > Fix this compatible string. > > Signed-off-by: Icenowy Zheng Patch appli

Re: [PATCH v2] mfd: intel_soc_pmic_core: Remove unnecessary function

2017-03-14 Thread Lee Jones
On Tue, 21 Feb 2017, Andy Shevchenko wrote: > Since commit 845c877009cf ("i2c / ACPI: Assign IRQ for devices that have > GpioInt automatically") I2C core assigns interrupt line to I2C slave > devices with regarding to GpioInt() resources. > > There is no need to repeat this in the driver. > > Si

Re: [PATCH v5 1/4] PCI: imx6: Add code to support i.MX7D

2017-03-14 Thread Lee Jones
On Mon, 20 Feb 2017, Andrey Smirnov wrote: > Add various bits of code needed to support i.MX7D variant of the IP. > > Cc: yurov...@gmail.com > Cc: Lucas Stach > Cc: Bjorn Helgaas > Cc: Rob Herring > Cc: Mark Rutland > Cc: Lee Jones > Cc: Fabio Estevam > Cc: linux-arm-ker...@lists.infradead.

Re: [PATCH v5 4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver

2017-03-14 Thread Lee Jones
On Fri, 03 Mar 2017, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add compatible string as "mt6323-led" that will make > the OF core spawn child devices for the LED subnode > of that MT6323 MFD device. > > Signed-off-by: Sean Wang > --- > drivers/mfd/mt6397-core.c | 4 > 1 file ch

Re: [PATCH] fix pinctrl setup for i.IMX6

2017-03-14 Thread Linus Walleij
On Tue, Feb 28, 2017 at 7:00 AM, Mika Penttilä wrote: > Recent pulls for mainline pre 4.11 introduced pinctrl setup changes and moved > pinctrl-imx to > use generic helpers. > > Net effect was that hog group could not be resolved. I made it work for myself > with a two stage setup with create an

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-14 Thread Benjamin Gaignard
2017-03-13 22:09 GMT+01:00 Laura Abbott : > On 03/12/2017 12:05 PM, Daniel Vetter wrote: >> On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard >> wrote: >>> 2017-03-09 18:38 GMT+01:00 Laura Abbott : On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: > 2017-03-06 17:04 GMT+01:00 Daniel Vette

Re: [PATCH] genirq: Fix handle_nested_irq() for IRQF_SHARED

2017-03-14 Thread Tony Lindgren
* Thomas Gleixner [170314 01:40]: > On Mon, 13 Mar 2017, Tony Lindgren wrote: > > > Shared interrupts can be registered with handle_nested_irq(), but > > currently only one of the registered handlers gets called. > > > > The use of shared interrupts with handle_nested_irq() is probably rare, > >

Re: [RFC 1/2] fanotify: new event FAN_MODIFY_DIR

2017-03-14 Thread Filip Štědronský
Hi, On Tue, Mar 14, 2017 at 03:55:19PM +0200, Amir Goldstein wrote: > Please let me know if that is sufficient for your needs > or if you need me to prepare a version that delivers filename events > without filename info, therefore allowing to merge filename events. > > Sounds to me like if you g

Re: [PATCH v2 4/4] phy: exynos: Use one define for enable bit

2017-03-14 Thread Bartlomiej Zolnierkiewicz
Hi, On Saturday, March 11, 2017 08:25:34 PM Krzysztof Kozlowski wrote: > There is no need for separate defines for Exynos4 and Exynos5 phy enable > bit and MIPI phy reset bits. In both cases there are the same so > simplify it. > > This reduces number of defines and allows removal of one header

Re: [PATCHSET for-4.11] cgroup: implement cgroup v2 thread mode

2017-03-14 Thread Mike Galbraith
On Mon, 2017-03-13 at 15:26 -0400, Tejun Heo wrote: > Hello, Mike. > > Sorry about the long delay. > > On Mon, Feb 13, 2017 at 06:45:07AM +0100, Mike Galbraith wrote: > > > > So, as long as the depth stays reasonable (single digit or lower), > > > > what we try to do is keeping tree traversal ope

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Dmitry Vyukov
On Tue, Mar 14, 2017 at 3:41 PM, Eric Dumazet wrote: > On Tue, 2017-03-14 at 14:31 +0100, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following deadlock report while running syzkaller fuzzer >> on net-next/92cd12c5ed432c5eebd2462d666772a8d8442c3b: >> >> >> [ INFO: possible circular locking d

Re: [PATCH 1/2] Fix V8 device information issue

2017-03-14 Thread Paul Donohue
On Tue, Mar 14, 2017 at 10:34:12AM +0900, Masaki Ota wrote: > From: Masaki Ota > -Fix the issue that V8(E7=73 03 28) devices are not assined correct device > information bit from OTP. > -Specified correct OTP bit for the V8 device setting of Button pad, DualPoint > and Touchpad size. > -Deleted

[PATCH 2/3] kvm: arm/arm64: Take mmap_sem in kvm_arch_prepare_memory_region

2017-03-14 Thread Suzuki K Poulose
From: Marc Zyngier We don't hold the mmap_sem while searching for VMAs (via find_vma), in kvm_arch_prepare_memory_region, which can end up in expected failures. Fixes: commit 8eef91239e57 ("arm/arm64: KVM: map MMIO regions at creation time") Cc: Ard Biesheuvel Cc: Christoffer Dall Cc: Eric Aug

[PATCH 1/3] kvm: arm/arm64: Take mmap_sem in stage2_unmap_vm

2017-03-14 Thread Suzuki K Poulose
From: Marc Zyngier We don't hold the mmap_sem while searching for the VMAs when we try to unmap each memslot for a VM. Fix this properly to avoid unexpected results. Fixes: commit 957db105c997 ("arm/arm64: KVM: Introduce stage2_unmap_vm") Cc: sta...@vger.kernel.org # v3.19+ Cc: Christoffer Dall

[PATCH 3/3] kvm: arm/arm64: Fix locking for kvm_free_stage2_pgd

2017-03-14 Thread Suzuki K Poulose
In kvm_free_stage2_pgd() we don't hold the kvm->mmu_lock while calling unmap_stage2_range() on the entire memory range for the guest. This could cause problems with other callers (e.g, munmap on a memslot) trying to unmap a range. Fixes: commit d5d8184d35c9 ("KVM: ARM: Memory virtualization setup"

Re: [PATCH] fix pinctrl setup for i.IMX6

2017-03-14 Thread Gary Bisson
Hi Linus, On Tue, Mar 14, 2017 at 03:47:58PM +0100, Linus Walleij wrote: > On Tue, Feb 28, 2017 at 7:00 AM, Mika Penttilä > wrote: > > > Recent pulls for mainline pre 4.11 introduced pinctrl setup changes and > > moved pinctrl-imx to > > use generic helpers. > > > > Net effect was that hog grou

[PATCH 0/3] kvm: arm/arm64: Fixes for use after free problems

2017-03-14 Thread Suzuki K Poulose
This series contains potential fixes for problems reported by [0] & [1]. [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-March/492944.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-March/492943.html Marc Zyngier (2): kvm: arm/arm64: Take mmap_sem in stage2_u

[PATCH 0/3] Openrisc fixes for 4.11

2017-03-14 Thread Stafford Horne
Hello, These are a few compile error and warning fixes which were pointed out after the 4.11 code was merged. Most of these could be found at this kbuild failure here: https://lkml.org/lkml/2017/3/9/976 The rest I found with some local testing. Stafford Horne (3): openrisc: xchg: fix `comp

Re: [PATCH v3 1/3] mfd: wm831x: Add basic device tree binding

2017-03-14 Thread Lee Jones
On Mon, 06 Mar 2017, Charles Keepax wrote: > Add the basic ability to register the device through device tree, more > work is needed to get each individual sub-driver functioning correctly > but this is enough to get the device to probe from device tree. > > Signed-off-by: Charles Keepax > --- >

Re: [PATCH v5 4/6] dt-bindings: gpio: Add binding documentation for gpio-thunderx

2017-03-14 Thread Linus Walleij
On Wed, Mar 1, 2017 at 2:48 AM, David Daney wrote: > Signed-off-by: David Daney > Acked-by: Rob Herring This patch applied to the GPIO tree, really simplistic so why not merge it. Yours, Linus Walleij

[GIT PULL] generic TEE subsystem for v4.12

2017-03-14 Thread Jens Wiklander
Hi arm-soc maintainers, Please consider this pull request for v4.12 This pull request contains version 16 of the generic TEE driver. The TEE subsystem will contain drivers for various TEE implementations. A TEE (Trusted Execution Environment) is a trusted OS running in some secure environment, f

[PATCH 3/3] openrisc: Export symbols needed by modules

2017-03-14 Thread Stafford Horne
This was detected by allmodconfig, errors reported: ERROR: "empty_zero_page" [net/ceph/libceph.ko] undefined! ERROR: "__ucmpdi2" [lib/842/842_decompress.ko] undefined! ERROR: "empty_zero_page" [fs/nfs/objlayout/objlayoutdriver.ko] undefined! ERROR: "empty_zero_page" [fs/exofs/exofs.ko] undefin

Re: [PATCH net-next 2/3] vxlan: fix snooping for link-local IPv6 addresses

2017-03-14 Thread Jiri Benc
On Fri, 10 Mar 2017 23:39:43 +0100, Matthias Schiffer wrote: > --- a/drivers/net/vxlan.c > +++ b/drivers/net/vxlan.c > @@ -941,16 +941,24 @@ static int vxlan_fdb_dump(struct sk_buff *skb, struct > netlink_callback *cb, > */ > static bool vxlan_snoop(struct net_device *dev, >

Re: [RFC 2/2] fanotify: emit FAN_MODIFY_DIR on filesystem changes

2017-03-14 Thread Filip Štědronský
Hi, On Tue, Mar 14, 2017 at 01:18:01PM +0200, Amir Goldstein wrote: > I claim that fanotify filters event by mount not because it > was a requirement, but because it was an implementation challenge > to do otherwise. > > And I claim that what mount watchers are really interested in is > "all the c

Re: [tip:x86/urgent] x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y

2017-03-14 Thread Andrey Ryabinin
On 03/14/2017 05:09 PM, Alexander Potapenko wrote: > On Tue, Mar 14, 2017 at 12:03 AM, tip-bot for Andrey Ryabinin > wrote: >> Commit-ID: be3606ff739d1c1be36389f8737c577ad87e1f57 >> Gitweb: >> http://git.kernel.org/tip/be3606ff739d1c1be36389f8737c577ad87e1f57 >> Author: Andrey Ryabinin

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Dmitry Vyukov
On Tue, Mar 14, 2017 at 3:56 PM, Eric Dumazet wrote: > On Tue, Mar 14, 2017 at 7:46 AM, Dmitry Vyukov wrote: > >> I am confused. Lockdep has observed both of these stacks: >> >>CPU0CPU1 >> >> lock(&(&q->lock)->rlock); >>

Re: [PATCH v3 3/3] mfd: wm831x: Add device tree binding document

2017-03-14 Thread Lee Jones
On Mon, 06 Mar 2017, Charles Keepax wrote: > Add a device tree binding document for the wm831x series of PMICs. > Currently only support for the registering the device and the GPIOs are > actually implemented in the driver. > > Signed-off-by: Charles Keepax > --- > > Changes since v2: > - Fles

Re: [PATCH 01/13] perf, tools, stat: Factor out callback for collecting event values

2017-03-14 Thread Jiri Olsa
On Fri, Mar 10, 2017 at 01:24:34PM -0800, Andi Kleen wrote: SNIP > + > +struct aggr_data { > + u64 ena, run, val; > + int id; > + int nr; > + int cpu; > +}; > + > +static void aggr_cb(struct perf_evsel *counter, void *data, bool first) > +{ > + struct aggr_data *ad = data; > +

[PATCH 1/3] openrisc: xchg: fix `computed is not used` warning

2017-03-14 Thread Stafford Horne
When building allmodconfig this warning shows. fs/ocfs2/file.c: In function 'ocfs2_file_write_iter': ./arch/openrisc/include/asm/cmpxchg.h:81:3: warning: value computed is not used [-Wunused-value] ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), sizeof(*(ptr ^ Applying th

Re: [PATCH 2/2] Fix the issue that V8 Button pad Stick button does not work

2017-03-14 Thread Paul Donohue
On Tue, Mar 14, 2017 at 10:34:13AM +0900, Masaki Ota wrote: > From: Masaki Ota > - V8 Button pad Stick Right and Middle button don't work. > - Alps stick devices have physical buttons absolutely, so delete > "ALPS_BUTTONPAD" check Flag from Stick button process. > > Signed-off-by: Masaki Ota >

Re: [PATCH] iio: 104-quad-8: Fix off-by-one error when addressing flag register

2017-03-14 Thread William Breathitt Gray
On Mon, Mar 13, 2017 at 09:33:45PM +, Jonathan Cameron wrote: >On 13/03/17 13:33, William Breathitt Gray wrote: >> On Sat, Feb 11, 2017 at 09:37:35AM +, Jonathan Cameron wrote: >>> On 09/02/17 15:03, William Breathitt Gray wrote: The flag register is offset by 1 from the respective cha

Re: [PATCH v4 1/3] mmc: dt-bindings: update Mediatek MMC bindings

2017-03-14 Thread Ulf Hansson
[...] >> > > Please help to point out a bright way for this patch. > We are anxiously waiting for your response. Yong, I suggest you make resend of the series. This time make sure you send to DT maintainers as well. Kind regards Uffe

Re: [PATCH v2 4/4] phy: exynos: Use one define for enable bit

2017-03-14 Thread Krzysztof Kozlowski
On Tue, Mar 14, 2017 at 4:46 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Saturday, March 11, 2017 08:25:34 PM Krzysztof Kozlowski wrote: >> There is no need for separate defines for Exynos4 and Exynos5 phy enable >> bit and MIPI phy reset bits. In both cases there are the same so >> simpl

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Eric Dumazet
On Tue, Mar 14, 2017 at 7:46 AM, Dmitry Vyukov wrote: > I am confused. Lockdep has observed both of these stacks: > >CPU0CPU1 > > lock(&(&q->lock)->rlock); >lock(_xmit_ETHER#2); >

Re: [PATCH v2 2/4] phy: exynos5: Remove duplicated defines of PHY register defines

2017-03-14 Thread Krzysztof Kozlowski
On Tue, Mar 14, 2017 at 4:37 PM, Bartlomiej Zolnierkiewicz wrote: > On Saturday, March 11, 2017 08:25:32 PM Krzysztof Kozlowski wrote: >> Phy drivers access PMU region through regmap provided by exynos-pmu >> driver. However there is no need to duplicate defines for PMU >> registers. Instead ju

[PATCH 2/3] openrisc: fix issue handling 8 byte get_user calls

2017-03-14 Thread Stafford Horne
Was getting the following error with allmodconfig: ERROR: "__get_user_bad" [lib/test_user_copy.ko] undefined! This was simply a missing break statement, causing an unwanted fall through. Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion

Re: [PATCH 2/4] ARM: dts: dm8168-evm: add the external reference clock for SATA

2017-03-14 Thread Bartosz Golaszewski
2017-03-13 22:34 GMT+01:00 Tony Lindgren : > * Bartosz Golaszewski [170313 09:45]: >> This board has an external oscillator supplying the reference clock >> signal for SATA. Its rate is fixed at 100Mhz. Add a corresponding >> device tree node. > > Is this the 100MHz clock from PCIe? Just like on d

Re: [PATCH] pinctrl: rockchip: add irq_enable & irq_disable ops

2017-03-14 Thread Linus Walleij
On Thu, Mar 2, 2017 at 6:56 AM, Jeffy Chen wrote: > Currently we are trying to enable/disable the clk of irq's gpio bank when > unmask/mask irq. But the kernel's "lazy disable approach" will skip masking > irq when the irq chip doesn't support irq_disable ops. > > So we may hit this case: >

Re: [PATCH v5 5/6] gpio: Add gpio driver support for ThunderX and OCTEON-TX

2017-03-14 Thread Linus Walleij
On Wed, Mar 1, 2017 at 2:48 AM, David Daney wrote: > Cavium ThunderX and OCTEON-TX are arm64 based SoCs. Add driver for > the on-chip GPIO pins. > > Signed-off-by: David Daney I guess this can't be merged until the corresponding IRQ changes are merged. It can be applied in the irqchip tree or

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Paolo Abeni
On Tue, 2017-03-14 at 07:41 -0700, Eric Dumazet wrote: > On Tue, 2017-03-14 at 14:31 +0100, Dmitry Vyukov wrote: > > Hello, > > > > I've got the following deadlock report while running syzkaller fuzzer > > on net-next/92cd12c5ed432c5eebd2462d666772a8d8442c3b: > > > > > > [ INFO: possible circula

Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units

2017-03-14 Thread Lee Jones
On Mon, 13 Mar 2017, Andy Shevchenko wrote: > Crystal Cove and Whiskey Cove are two different PMICs which are > installed on Intel Atom SoC based platforms. > > Moreover there are two independent drivers that by some reason are > supposed (*) to get into one kernel module. > > Fix the mess by cl

Re: [PATCH 2/4] ARM: dts: dm8168-evm: add the external reference clock for SATA

2017-03-14 Thread Tony Lindgren
* Bartosz Golaszewski [170314 08:03]: > 2017-03-13 22:34 GMT+01:00 Tony Lindgren : > > * Bartosz Golaszewski [170313 09:45]: > >> This board has an external oscillator supplying the reference clock > >> signal for SATA. Its rate is fixed at 100Mhz. Add a corresponding > >> device tree node. > > >

[PATCH v5 2/3] soc/imx: Add GPCv2 power gating driver

2017-03-14 Thread Andrey Smirnov
Add code allowing for control of various power domains managed by GPCv2 IP block found in i.MX7 series of SoCs. Power domains covered by this patch are: - PCIE PHY - MIPI PHY - USB HSIC PHY - USB OTG1/2 PHY Support for any other power domain controlled by GPC is not present, and c

Re: perf: use-after-free in perf_release

2017-03-14 Thread Peter Zijlstra
On Tue, Mar 14, 2017 at 03:30:11PM +0100, Oleg Nesterov wrote: > But. perf_event_init_task() adds child_event to parent_event->child_list. > > If perf_event_release_kernel(parent_event) is called before copy_process() > does perf_event_free_task() which (in particular) removes it from child_list,

[PATCH v5 0/3] GPCv2 power gating driver

2017-03-14 Thread Andrey Smirnov
Shawn, This series is a split of the orginal GPCv2 driver patch. Let me know if there's more to be improved. Thanks, Andrey Smirnov Changes since v4 (see [v4]): - Single patch is split into multiple as per Shawn's reques - Incorporated various feedback from Shawn Changes sinc

[PATCH v5 1/3] ARM: imx: Add GPCv2 power gating driver bindings

2017-03-14 Thread Andrey Smirnov
Add DT bindings for power domain driver for GPCv2 IP block found in i.MX7 SoCs. Cc: yurov...@gmail.com Cc: Lucas Stach Cc: Rob Herring Cc: Mark Rutland Cc: Fabio Estevam Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Acked-by: Rob Herri

Re: [tip:x86/urgent] x86/kasan: Fix boot with KASAN=y and PROFILE_ANNOTATED_BRANCHES=y

2017-03-14 Thread Andrey Ryabinin
On 03/14/2017 05:59 PM, Andrey Ryabinin wrote: > On 03/14/2017 05:09 PM, Alexander Potapenko wrote: >> On Tue, Mar 14, 2017 at 12:03 AM, tip-bot for Andrey Ryabinin >> wrote: >>> Commit-ID: be3606ff739d1c1be36389f8737c577ad87e1f57 >>> Gitweb: >>> http://git.kernel.org/tip/be3606ff739d1c1be

Re: [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread James Bottomley
On Tue, 2017-03-14 at 12:29 +, Reshetova, Elena wrote: > > Elena Reshetova writes: > > > > > refcount_t type and corresponding API should be > > > used instead of atomic_t when the variable is used as > > > a reference counter. This allows to avoid accidental > > > refcounter overflows that m

Re: [RESEND PATCH v5 1/4] PCI: imx6: Add code to support i.MX7D

2017-03-14 Thread Lee Jones
On Mon, 20 Feb 2017, Andrey Smirnov wrote: > Add various bits of code needed to support i.MX7D variant of the IP. > > Cc: yurov...@gmail.com > Cc: Lucas Stach > Cc: Bjorn Helgaas > Cc: Rob Herring > Cc: Mark Rutland > Cc: Lee Jones > Cc: Fabio Estevam > Cc: linux-arm-ker...@lists.infradead.

[PATCH] cpu/hotplug: Serialize callback invocations proper

2017-03-14 Thread Sebastian Andrzej Siewior
The setup/remove_state/instance() functions in the hotplug core code are serialized against concurrent CPU hotplug, but unfortunately not serialized against themself. As a consequence a concurrent invocation of these function results in corruption of the callback machinery because two instances tr

Re: [PATCH] pinctrl: rockchip: add irq_enable & irq_disable ops

2017-03-14 Thread Heiko Stübner
Hi Linus, Am Dienstag, 14. März 2017, 16:03:48 CET schrieb Linus Walleij: > On Thu, Mar 2, 2017 at 6:56 AM, Jeffy Chen wrote: > > Currently we are trying to enable/disable the clk of irq's gpio bank when > > unmask/mask irq. But the kernel's "lazy disable approach" will skip > > masking > > irq

[PATCH v5 0/7] perf/sdt: Directly record SDT events with 'perf record'

2017-03-14 Thread Ravi Bangoria
All events from 'perf list', except SDT events, can be directly recorded with 'perf record'. But, the flow is little different for SDT events. Probe point for SDT event needs to be created using 'perf probe' before recording it using 'perf record'. As suggested by Ingo[1], it's better to make this

Re: [RFC 1/2] fanotify: new event FAN_MODIFY_DIR

2017-03-14 Thread Amir Goldstein
On Tue, Mar 14, 2017 at 3:46 PM, Filip Štědronský wrote: > Hi, > > On Tue, Mar 14, 2017 at 12:40:56PM +0200, Amir Goldstein wrote: >> An I am very happy that you used filehandles to keep track of objects >> in your example, because it fits my proposal really well. > > you can read more about the r

[PATCH v5 1/7] perf/sdt: Introduce util func is_sdt_event()

2017-03-14 Thread Ravi Bangoria
Factor out the SDT event name checking routine as is_sdt_event(). Signed-off-by: Ravi Bangoria --- tools/perf/util/parse-events.h | 20 tools/perf/util/probe-event.c | 9 + 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/parse-events

[PATCH v5 7/7] perf/sdt: List events fetched from uprobe_events

2017-03-14 Thread Ravi Bangoria
Perf was showing warning if user tries to record sdt event without creating a probepoint. Now we are allowing direct record on sdt events, remove this stale warning/hint. Signed-off-by: Ravi Bangoria --- tools/lib/api/fs/tracing_path.c | 17 - 1 file changed, 4 insertions(+), 13

Re: perf: use-after-free in perf_release

2017-03-14 Thread Peter Zijlstra
On Tue, Mar 14, 2017 at 04:02:41PM +0100, Peter Zijlstra wrote: > On Tue, Mar 14, 2017 at 03:30:11PM +0100, Oleg Nesterov wrote: > > > But. perf_event_init_task() adds child_event to parent_event->child_list. > > > > If perf_event_release_kernel(parent_event) is called before copy_process() > > d

[PATCH v5 4/7] perf/sdt: Allow recording of existing events

2017-03-14 Thread Ravi Bangoria
Add functionality to fetch matching events from uprobe_events. If no events are fourd from it, fetch matching events from probe-cache and add them in uprobe_events. If all events are already present in uprobe_events, reuse them. If few of them are present, add entries for missing events and record

[PATCH v5 5/7] perf/sdt: Warn when number of events recorded are not equal to cached events

2017-03-14 Thread Ravi Bangoria
If number of events found from probe-cache is not equal to number of existing events(fetched from uprobe_events), and somehow we decides to record only existing events, we warn user about the same. For ex, $ sudo ./perf probe sdt_libpthread:mutex_release Added new events: sdt_libpthrea

[PATCH v5 6/7] perf/sdt: List events fetched from uprobe_events

2017-03-14 Thread Ravi Bangoria
List those events which are fetched from uprobe_events as 'event addr@file' followed by hint on how these events can be deleted with 'perf probe -d' command. For example: $ sudo cat /sys/kernel/debug/tracing/uprobe_events p:sdt_libpthread/mutex_release /usr/lib64/libpthread-2.24.so:0x00

Re: [PATCH 02/12] gpio: twl4030: use devm_irq_alloc_descs()

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > This driver never frees the irq descriptors it allocates. Fix it by > using a resource managed variant of irq_alloc_descs(). > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

[PATCH v5 3/7] perf/sdt: Directly record SDT events with 'perf record'

2017-03-14 Thread Ravi Bangoria
From: Hemant Kumar Add basic support for directly recording SDT events which are present in the probe cache. Without this patch, we could probe into SDT events using 'perf probe' and 'perf record'. With this patch, we can probe the SDT events directly using 'perf record'. After invoking 'perf re

[PATCH v5 2/7] perf tool: Add option macro OPT_CALLBACK_ARG

2017-03-14 Thread Ravi Bangoria
Add an option macro that is the same as OPT_CALLBACK_OPTARG except that the argument is not optional. Signed-off-by: Ravi Bangoria --- tools/lib/subcmd/parse-options.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/lib/subcmd/parse-options.h b/tools/lib/subcmd/parse-options.h inde

Re: [PATCH 03/12] gpio: omap: use devm_irq_alloc_descs()

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > This driver never frees the allocated interrupt descriptors. Fix it by > using a resource managed variant of irq_alloc_descs(). > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

Re: net: deadlock between ip_expire/sch_direct_xmit

2017-03-14 Thread Eric Dumazet
On Tue, Mar 14, 2017 at 8:03 AM, Paolo Abeni wrote: > I'm wondering if we really need to keep the fragment queue lock held > while sending the icmp packet ? we hold a reference to the struct, so > it can't be deleted, and AFAICS after ipq_kill() nobody else could > access/modify that queue. > > T

Re: [PATCH] fix pinctrl setup for i.IMX6

2017-03-14 Thread Tony Lindgren
* Linus Walleij [170314 07:50]: > On Tue, Feb 28, 2017 at 7:00 AM, Mika Penttilä > wrote: > > > Recent pulls for mainline pre 4.11 introduced pinctrl setup changes and > > moved pinctrl-imx to > > use generic helpers. > > > > Net effect was that hog group could not be resolved. I made it work f

Re: [PATCH 04/12] gpio: pch: use resource management for irqs

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > Use device resource managed variants of irq_alloc_descs() and > request_irq() and remove the code manually freeing irq resources. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

Re: [PATCH 05/12] gpio: ml-ioh: use resource management for irqs

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > Use device resource managed variants of irq_alloc_descs() and > request_irq() and remove the code manually freeing irq resources. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

[PATCH v5 3/3] ARM: imx: select IMX7_PM_DOMAINS for SOC_IMX7D

2017-03-14 Thread Andrey Smirnov
Cc: yurov...@gmail.com Cc: Lucas Stach Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfi

Re: [PATCH 06/12] gpio: xlp: use resource management for irqs

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > Use the resource managed variant of irq_alloc_descs() and remove the > code manually freeing allocated interrupt descriptors. > > Signed-off-by: Bartosz Golaszewski Patch applied. Yours, Linus Walleij

Re: [PATCH 1/3] Staging: ks7010: ks_*: Use preferred 'u8' kernel type over 'uint8_t'

2017-03-14 Thread Shiva Kerdel
Hello Tobin, I missed the other files because they did not show up using the checkpatch script. Next time I will do a recursive search through the files before committing the changes to avoid this situation. Before I could replay on your message, I got notified of my patches already been merg

Re: [PATCH 08/12] gpio: davinci: use devm_irq_alloc_descs()

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > This driver never frees the interrupt descriptors it allocates. Fix > it by using the resource managed version of irq_alloc_descs(). > > Signed-off-by: Bartosz Golaszewski Patch applied with Keerty's ACK. Yours, Linus Walleij

Re: [PATCH 07/12] gpio: pxa: use devm_irq_alloc_descs()

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > This driver never frees the interrupt descriptors it allocates. Fix > it by using the resource managed version of irq_alloc_descs(). > > Signed-off-by: Bartosz Golaszewski Patch applied with Robert's ACK. Yours, Linus Walleij

Re: [PATCH 01/12] gpio: mockup: use devm_irq_alloc_descs()

2017-03-14 Thread Linus Walleij
On Sat, Mar 4, 2017 at 5:23 PM, Bartosz Golaszewski wrote: > Use the resource managed variant of irq_alloc_descs(). This allows us > to remove gpio_mockup_remove(). > > Signed-off-by: Bartosz Golaszewski Patch applied with Bamvor's review tag. Yours, Linus Walleij

Re: [PATCH v2 4/5] dt: bindings: add binding for Allwinner A64 R_PIO pinctrl

2017-03-14 Thread Linus Walleij
On Wed, Mar 1, 2017 at 7:01 PM, Icenowy Zheng wrote: > Allwinner A64 SoC has also a dedicated pin controller for Port L GPIOs, > which is called "Port Controller (CPUs-PORT)" in SoC User Manual. > > Add a binding for this pin controller, like the ones in A23/33 and H3. > > Signed-off-by: Icenowy

<    3   4   5   6   7   8   9   10   11   >