Re: [GIT PULL 00/29] perf/core improvements and fixes

2016-02-03 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit 8eb22c984eb9eeaed47130f5679acd367af69678: > > Merge tag 'perf-core-for-mingo-3' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into

[tip:perf/urgent] perf tools: Fix thread lifetime related segfaut in intel_pt

2016-02-03 Thread tip-bot for Adrian Hunter
Commit-ID: 3a4acda1ecbd290973de08250d7dcdfaf5b2fe0f Gitweb: http://git.kernel.org/tip/3a4acda1ecbd290973de08250d7dcdfaf5b2fe0f Author: Adrian Hunter AuthorDate: Mon, 1 Feb 2016 03:21:04 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 2 Feb 2016 12:51:11 -0300 perf tools:

[tip:perf/urgent] perf probe: Search both .eh_frame and .debug_frame sections for probe location

2016-02-03 Thread tip-bot for Hemant Kumar
Commit-ID: 270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Gitweb: http://git.kernel.org/tip/270bde1e76f400d81f8d0ab68905a18ee17fa2e8 Author: Hemant Kumar AuthorDate: Tue, 2 Feb 2016 20:56:46 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 2 Feb 2016 13:30:16 -0300 perf probe:

[tip:perf/urgent] perf tools: tracepoint_error() can receive e= NULL, robustify it

2016-02-03 Thread tip-bot for Adrian Hunter
Commit-ID: ec183d22cc284a7a1e17f0341219d8ec8ca070cc Gitweb: http://git.kernel.org/tip/ec183d22cc284a7a1e17f0341219d8ec8ca070cc Author: Adrian Hunter AuthorDate: Tue, 26 Jan 2016 14:05:20 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 1 Feb 2016 11:51:15 -0300 perf tools:

Re: [GIT PULL 0/3] perf/urgent fixes

2016-02-03 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit 28fb8a5b6e233fc384fb27f9f91f811b40ba9cf8: > > Merge tag 'perf-urgent-for-mingo' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into

[PATCH] xattr handlers: plug a lock leak in simple_xattr_list

2016-02-03 Thread Andreas Gruenbacher
From: Mateusz Guzik The code could leak xattrs->lock on error. Problem introduced with 786534b92f3ce68f4 "tmpfs: listxattr should include POSIX ACL xattrs". Signed-off-by: Mateusz Guzik Signed-off-by: Andreas Gruenbacher Cc: # 4.4 --- fs/xattr.c | 6 +++--- 1 file changed, 3

[PATCH v2 4/4] Documentation: atmel-pmc: add DT bindings for fast startup

2016-02-03 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang --- Changes in v2: - change the property name and property description. .../devicetree/bindings/arm/atmel-pmc.txt | 63 1

[PATCH v2 3/4] ARM: at91: pm: configure PMC fast startup signals

2016-02-03 Thread Wenyou Yang
The fast startup signal is used as wake up sources for ULP1 mode. As soon as a fast startup signal is asserted, the embedded 12 MHz RC oscillator restarts automatically. This patch is to configure the fast startup signals, which signal is enabled to trigger the PMC to wake up the system from ULP1

[PATCH v2 2/4] ARM: at91: pm: add ULP1 mode support

2016-02-03 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator, so as to achieve the lowest power consumption with the system in retention mode and able to resume on the wake up events. As soon as the wake up

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-03 Thread Michal Hocko
On Thu 04-02-16 07:37:23, Michal Hocko wrote: > On Wed 03-02-16 11:59:01, Tejun Heo wrote: > > On Wed, Feb 03, 2016 at 05:48:52PM +0100, Michal Hocko wrote: > [...] > > > anything and add_timer_on also for WORK_CPU_UNBOUND is really required > > > then we should at least preserve WORK_CPU_UNBOUND

[PATCH v2 1/4] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-02-03 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang --- Changes in v2: None arch/arm/mach-at91/pm_suspend.S | 65 --- 1 file changed, 40

[PATCH v2 0/4] ARM: at91: pm: add ULP1 mode support

2016-02-03 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In order to achieve the lowest power consumption, in the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator. The fast startup signal is used as a wake up source for ULP1 mode. As soon as the wake up event

[PATCH] mm/slab: re-implement pfmemalloc support

2016-02-03 Thread Joonsoo Kim
Current implementation of pfmemalloc handling in SLAB has some problems. 1) pfmemalloc_active is set to true when there is just one or more pfmemalloc slabs in the system, but it is cleared when there is no pfmemalloc slab in one arbitrary kmem_cache. So, pfmemalloc_active could be wrongly

[PATCH v2 0/2] Set the Raspberry Pi Ethernet MAC address

2016-02-03 Thread Lubomir Rintel
Hi, an updated patch pair addressing the feedback. Originally submitted in [1]. Still not ready for merge as it needs the usb core [2] change and an U-Boot change [3] to work properly. [1] [PATCH 0/2] Set the Raspberry Pi Ethernet MAC address

[PATCH v2 1/2] ARM: bcm2835: dt: Add the ethernet to the device trees

2016-02-03 Thread Lubomir Rintel
The hub and the ethernet in its port 1 are hardwired on the board. Compared to the adapters that can be plugged into the USB ports, this one has no serial EEPROM to store its MAC. Nevertheless, the Raspberry Pi has the MAC address for this adapter in its ROM, accessible from its firmware. U-Boot

[PATCH 2/2] net/smscx5xx: use the device tree for mac address

2016-02-03 Thread Lubomir Rintel
From: Arnd Bergmann This takes the MAC address for smsc75xx/smsc95xx USB network devices from a the device tree. This is required to get a usable persistent address on the popular beagleboard, whose hardware designers accidentally forgot that an ethernet device really requires an a MAC address

Re: [PATCH 2/2] ARM: bcm2835: dt: Add the ethernet to the device tree

2016-02-03 Thread Lubomir Rintel
On Thu, 2016-02-04 at 06:28 +, Peter Chen wrote: >   > > Lubomir Rintel writes: > > > > > diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts > > > b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts > > > index ef54050..32bbd2a 100644 > > > --- a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts > > > +++

Re: [PATCH v2 04/10] crypto/compress: add asynchronous compression support

2016-02-03 Thread Joonsoo Kim
2016-02-04 12:28 GMT+09:00 Herbert Xu : > On Thu, Feb 04, 2016 at 11:25:27AM +0800, Li, Weigang wrote: >> >> Please can you advise how to get the acomp patch accepted? > > Can you do a posting of these patches without scomp so we can > evaluate the effects? > Do you think not to merge scomp?

[PATCH v1 1/3] /proc/kpageflags: return KPF_BUDDY for "tail" buddy pages

2016-02-03 Thread Naoya Horiguchi
Currently /proc/kpageflags returns nothing for "tail" buddy pages, which is inconvenient when grasping how free pages are distributed. This patch sets KPF_BUDDY for such pages. With this patch: $ grep MemFree /proc/meminfo ; tools/vm/page-types -b buddy MemFree: 3134992 kB

[PATCH v1 2/3] /proc/kpageflags: return KPF_SLAB for slab tail pages

2016-02-03 Thread Naoya Horiguchi
Currently /proc/kpageflags returns just KPF_COMPOUND_TAIL for slab tail pages, which is inconvenient when grasping how slab pages are distributed (userspace always needs to check which kind of tail pages by itself). This patch sets KPF_SLAB for such pages. With this patch: $ grep Slab

[PATCH v1 3/3] tools/vm/page-types.c: support swap entry

2016-02-03 Thread Naoya Horiguchi
/proc/pid/pagemap (pte_to_pagemap_entry() internally) already reports about swap entry, so let's make the in-kernel utility aware of it. Signed-off-by: Naoya Horiguchi --- tools/vm/page-types.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git

Re: [RFC PATCH] alispinlock: acceleration from lock integration on multi-core platform

2016-02-03 Thread Ling Ma
> I have 2 major comments here. First of all, you should break up your patch > into smaller ones. Large patch like the one in the tar ball is hard to > review. Ok, we will do it. >Secondly, you are modifying over 1000 lines of code in mm/slab.c > with some modest increase in performance. That

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-03 Thread Krzysztof Kozlowski
On 04.02.2016 11:03, Laxman Dewangan wrote: > > On Thursday 04 February 2016 05:40 AM, Krzysztof Kozlowski wrote: >> On 03.02.2016 22:47, Laxman Dewangan wrote: >>> >>> Changes from V2: >>> - Taken care of missed sequence for removing the resource. >>> - Fix the crash when doing unbind by using

Re: [PATCH v6] i2c: mt8173: add 4GB mode support in i2c driver.

2016-02-03 Thread Yingjoe Chen
On Tue, 2016-02-02 at 01:19 +0800, Liguo Zhang wrote: > If 4GB mode is enable, we should add 4gb mode support in i2c driver. > Set 4GB mode register to support 4GB mode. > > Signed-off-by: Liguo Zhang > --- > change in v6: > Remove unnecessary init for reg_4g_mode. > change in v5: > Use

Re: [PATCH 4/5] mm, oom_reaper: report success/failure

2016-02-03 Thread Michal Hocko
On Wed 03-02-16 15:10:57, David Rientjes wrote: > On Wed, 3 Feb 2016, Michal Hocko wrote: > > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > > index 8e345126d73e..b87acdca2a41 100644 > > --- a/mm/oom_kill.c > > +++ b/mm/oom_kill.c > > @@ -420,6 +420,7 @@ static struct task_struct *oom_reaper_th;

Re: [PATCH] ARM: DRA7: hwmod: Fix OCP2SCP sysconfig

2016-02-03 Thread Kishon Vijay Abraham I
Hi, On Thursday 04 February 2016 12:01 PM, Kishon Vijay Abraham I wrote: > OCP2SCP doesn't support smart idle wakeup according to > DRA72x_SR1.0_NDA_TRM_vL and DRA75x_DRA74x_SR1.1_NDA_TRM_vW. Ignore this patch. I'll re-send the patch with a public TRM link. Thanks Kishon > Remove

Re: [PATCH] usb: rework CONFIG_USB_COMMON logic

2016-02-03 Thread Peter Chen
On Wed, Feb 03, 2016 at 11:35:26PM +0100, Arnd Bergmann wrote: > The phy-am335x driver selects 'USB_COMMON', but all other drivers > use 'depends on' for that symbol, and it depends on USB || USB_GADGET > itself, which causes a Kconfig warning: > > warning: (AM335X_PHY_USB) selects USB_COMMON

Re: [PATCH V2 7/7] cpufreq: Remove cpufreq_governor_lock

2016-02-03 Thread Viresh Kumar
On 03-02-16, 19:32, Viresh Kumar wrote: > We used to drop policy->rwsem just before calling __cpufreq_governor() > in some cases earlier and so it was possible that __cpufreq_governor() > runs concurrently via separate threads. > > In order to guarantee valid state transitions for governors, >

Re: [PATCH 1/5] mm, oom: introduce oom reaper

2016-02-03 Thread Michal Hocko
On Wed 03-02-16 15:48:18, David Rientjes wrote: > On Wed, 3 Feb 2016, Michal Hocko wrote: > > > From: Michal Hocko > > > > This is based on the idea from Mel Gorman discussed during LSFMM 2015 and > > independently brought up by Oleg Nesterov. > > > > The OOM killer currently allows to kill

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-03 Thread Michal Hocko
On Wed 03-02-16 11:59:01, Tejun Heo wrote: > On Wed, Feb 03, 2016 at 05:48:52PM +0100, Michal Hocko wrote: [...] > > anything and add_timer_on also for WORK_CPU_UNBOUND is really required > > then we should at least preserve WORK_CPU_UNBOUND in dwork->cpu so that > > __queue_work can actually move

[PATCH] ARM: DRA7: hwmod: Fix OCP2SCP sysconfig

2016-02-03 Thread Kishon Vijay Abraham I
OCP2SCP doesn't support smart idle wakeup according to DRA72x_SR1.0_NDA_TRM_vL and DRA75x_DRA74x_SR1.1_NDA_TRM_vW. Remove SIDLE_SMART_WKUP from the list of supported SIDLE modes in hwmod data. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c |3 +-- 1 file

[PATCH v5] futex: Remove requirement for lock_page in get_futex_key

2016-02-03 Thread Davidlohr Bueso
From: Davidlohr Bueso From: Mel Gorman When dealing with key handling for shared futexes, we can drastically reduce the usage/need of the page lock. 1) For anonymous pages, the associated futex object is the mm_struct which does not require the page lock. 2) For inode based, keys, we can check

Re: [PATCH v2 07/22] media: v4l-core add enable/disable source common interfaces

2016-02-03 Thread kbuild test robot
Hi Shuah, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on next-20160203] [cannot apply to v4.5-rc2] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Shuah-Khan

Re: [PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-03 Thread Viresh Kumar
On 03-02-16, 21:40, Viresh Kumar wrote: > On 03-02-16, 15:54, Juri Lelli wrote: > > Ouch, I've just got this executing -f basic on Juno. :( > > It happens with the hotplug_1_by_1 test. > > > > > > [ 1086.531252] IRQ1 no longer affine to CPU1 > > [ 1086.531495] CPU1: shutdown > > [ 1086.538199]

Re: [PATCH] mm/slub: support left red zone

2016-02-03 Thread Joonsoo Kim
On Thu, Feb 04, 2016 at 03:15:50PM +0900, Joonsoo Kim wrote: > SLUB already has red zone debugging feature. But, it is only positioned > at the end of object(aka right red zone) so it cannot catch left oob. > Although current object's right red zone acts as left red zone of > previous object,

[PATCH v2 3/3] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous

2016-02-03 Thread Joonsoo Kim
There is a performance drop report due to hugepage allocation and in there half of cpu time are spent on pageblock_pfn_to_page() in compaction [1]. In that workload, compaction is triggered to make hugepage but most of pageblocks are un-available for compaction due to pageblock type and skip bit

[PATCH v2 2/3] mm/compaction: pass only pageblock aligned range to pageblock_pfn_to_page

2016-02-03 Thread Joonsoo Kim
pageblock_pfn_to_page() is used to check there is valid pfn and all pages in the pageblock is in a single zone. If there is a hole in the pageblock, passing arbitrary position to pageblock_pfn_to_page() could cause to skip whole pageblock scanning, instead of just skipping the hole page. For

[PATCH v2 1/3] mm/compaction: fix invalid free_pfn and compact_cached_free_pfn

2016-02-03 Thread Joonsoo Kim
free_pfn and compact_cached_free_pfn are the pointer that remember restart position of freepage scanner. When they are reset or invalid, we set them to zone_end_pfn because freepage scanner works in reverse direction. But, because zone range is defined as [zone_start_pfn, zone_end_pfn),

[PATCH] mm/slub: support left red zone

2016-02-03 Thread Joonsoo Kim
SLUB already has red zone debugging feature. But, it is only positioned at the end of object(aka right red zone) so it cannot catch left oob. Although current object's right red zone acts as left red zone of previous object, first object in a slab cannot take advantage of this effect. This patch

Re: [PATCH] mmc: dw_mmc-rockchip: remove dw_mci_rockchip_pmops

2016-02-03 Thread Jaehoon Chung
Hi, Shawn. On 02/03/2016 12:26 PM, Shawn Lin wrote: > dw_mci_rockchip_pmops just copy-paste what dw_mci_pltfm_pmops > have done. Let's remove it. Yep, it's possible to remove. I'm not sure but i want to know there is no plan to add the specific code of rockchip in suspend/resume. Could you

Re: [PATCH 1/2] mmc: dw_mmc: remove unused EVENT_XFER_ERROR

2016-02-03 Thread Jaehoon Chung
Hi, Shawn. On 02/03/2016 12:26 PM, Shawn Lin wrote: > EVENT_XFER_ERROR isn't been used now, so we can > remove it. If you are ok, after changing the commit message, I will apply this. Thanks! Best Regards, Jaehoon Chung > > Signed-off-by: Shawn Lin > --- > > include/linux/mmc/dw_mmc.h | 1

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

2016-02-03 Thread Jaehoon Chung
Hi, Shawn. On 02/02/2016 03:11 PM, Shawn Lin wrote: > This patch make num_slots to 1 if pdata->num_slot is not > defined. Meanwhile, we need to make sure num_slots should > not larger that the supported slots Thanks! I will apply this. Best Regards, Jaehoon Chung > > Signed-off-by: Shawn Lin

Re: [PATCH 04/14] clk: sunxi: add ahb1 clock for A83T

2016-02-03 Thread Vishnu Patekar
Hello Maxime, On Tue, Feb 2, 2016 at 9:17 PM, Maxime Ripard wrote: > Hi, > > On Sun, Jan 31, 2016 at 09:20:56AM +0800, Vishnu Patekar wrote: >> AHB1 on A83T is similar to ahb1 on A31, except parents are different. >> clock index 0b1x is PLL6. >> >> Signed-off-by: Vishnu Patekar > > If the

Re: [PATCH 2/4] mmc: dw_mmc: add setup_clk for init hook

2016-02-03 Thread Jaehoon Chung
Hi, Shawn. On 01/28/2016 10:31 AM, Shawn Lin wrote: > We add this new argument into init hook for > variant drivers to decide whether to do clock > related stuff inside the hook. > > Signed-off-by: Shawn Lin > --- > > drivers/mmc/host/dw_mmc-exynos.c | 4 ++-- >

Re: [PATCH] mm, hugetlb: don't require CMA for runtime gigantic pages

2016-02-03 Thread Joonsoo Kim
On Wed, Feb 03, 2016 at 06:50:11PM +0100, Vlastimil Babka wrote: > Commit 944d9fec8d7a ("hugetlb: add support for gigantic page allocation at > runtime") has added the runtime gigantic page allocation via > alloc_contig_range(), making this support available only when CONFIG_CMA is > enabled.

[PATCH 2/5] mm/slub: query dynamic DEBUG_PAGEALLOC setting

2016-02-03 Thread Joonsoo Kim
We can disable debug_pagealloc processing even if the code is complied with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query whether it is enabled or not in runtime. Signed-off-by: Joonsoo Kim --- mm/slub.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff

[PATCH 1/5] mm/vmalloc: query dynamic DEBUG_PAGEALLOC setting

2016-02-03 Thread Joonsoo Kim
We can disable debug_pagealloc processing even if the code is complied with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query whether it is enabled or not in runtime. Signed-off-by: Joonsoo Kim --- mm/vmalloc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 3/5] sound: query dynamic DEBUG_PAGEALLOC setting

2016-02-03 Thread Joonsoo Kim
We can disable debug_pagealloc processing even if the code is complied with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query whether it is enabled or not in runtime. Signed-off-by: Joonsoo Kim --- sound/drivers/pcsp/pcsp.c | 9 + 1 file changed, 5 insertions(+), 4

[PATCH 5/5] tile: query dynamic DEBUG_PAGEALLOC setting

2016-02-03 Thread Joonsoo Kim
We can disable debug_pagealloc processing even if the code is complied with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query whether it is enabled or not in runtime. Signed-off-by: Joonsoo Kim --- arch/tile/mm/init.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-)

[PATCH 4/5] powerpc: query dynamic DEBUG_PAGEALLOC setting

2016-02-03 Thread Joonsoo Kim
We can disable debug_pagealloc processing even if the code is complied with CONFIG_DEBUG_PAGEALLOC. This patch changes the code to query whether it is enabled or not in runtime. Signed-off-by: Joonsoo Kim --- arch/powerpc/kernel/traps.c | 5 ++--- arch/powerpc/mm/hash_utils_64.c | 40

[PATCH 0/5] follow-up "Optimize CONFIG_DEBUG_PAGEALLOC"

2016-02-03 Thread Joonsoo Kim
As CONFIG_DEBUG_PAGEALLOC can be enabled/disabled via kernel parameters we can optimize some cases by checking the enablement state. This is follow-up work for Christian's Optimize CONFIG_DEBUG_PAGEALLOC. https://lkml.org/lkml/2016/1/27/194 I can't test patches for sound, power and tile, so

Re: [PATCH] psmouse: added BYD touchpad driver

2016-02-03 Thread Richard Pospesel
Rebased patch against 98ee377144935857d8ad5d7d70cdab1da4ede32e: --- diff --git a/drivers/input/mouse/byd.c b/drivers/input/mouse/byd.c index 9425e0f..f213a08 100644 --- a/drivers/input/mouse/byd.c +++ b/drivers/input/mouse/byd.c @@ -2,93 +2,276 @@ * BYD TouchPad PS/2 mouse driver * *

Re: [PATCH V2 0/7] cpufreq: governors: Fix ABBA lockups

2016-02-03 Thread Viresh Kumar
On 04-02-16, 00:50, Rafael J. Wysocki wrote: > On Thu, Feb 4, 2016 at 12:31 AM, Shilpa Bhat wrote: > > Sorry for the delayed report. But I see the below backtrace on Power8 box. > > It > > has 4 chips with 128 cpus. Honestly, I wasn't expecting you to test this stuff, but I really appreciate

RE: [PATCH V2 5/5] Microblaze: Modifying microblaze PCI subsytem to support generic Xilinx AXI PCIe Host Bridge IP driver

2016-02-03 Thread Bharat Kumar Gogada
> Subject: Re: [PATCH V2 5/5] Microblaze: Modifying microblaze PCI subsytem > to support generic Xilinx AXI PCIe Host Bridge IP driver > > [+cc Ben for real this time] > > On Wed, Feb 03, 2016 at 10:32:07AM -0600, Bjorn Helgaas wrote: > > [+cc Ben, pcibios_get_phb_of_node() question] > > > > On

Re: [PATCH] clk: Deprecate CLK_IS_ROOT

2016-02-03 Thread Michael Turquette
Quoting Stephen Boyd (2016-02-02 17:42:13) > We don't use CLK_IS_ROOT but in a few places in the common clk > framework core. Let's replace those checks with a check for the > number of parents a clk has instead of the flag, freeing up one > flag for something else. We don't remove the flag yet so

RE: [PATCH RESEND] tcp_estats: ebpf hacks

2016-02-03 Thread Martin Lau
Please ignore. It is a mistake... From: Martin KaFai Lau [ka...@fb.com] Sent: Wednesday, February 03, 2016 9:39 PM To: linux-kernel@vger.kernel.org Cc: Ingo Molnar; Masami Hiramatsu; Steven Rostedt; Alexei Starovoitov; Josef Bacik; Kernel Team Subject:

Re: [PATCH 0/11] cpufreq: governor: ondemand/conservative data structures rework

2016-02-03 Thread Viresh Kumar
On 04-02-16, 00:12, Rafael J. Wysocki wrote: > Hi, > > A few days ago I looked at the common code used by the ondemand and > conservative > governors because of the deadlock issue that Viresh has addressed recently > (http://marc.info/?l=linux-pm=145450832814058=4) and it occurred to me > that

[PATCH RESEND] tcp_estats: ebpf hacks

2016-02-03 Thread Martin KaFai Lau
Signed-off-by: Martin KaFai Lau --- kernel/trace/bpf_trace.c | 20 ++ samples/Makefile | 2 +- samples/bpf/Makefile | 11 +- samples/bpf/bpf_helpers.h| 4 + samples/bpf/bpf_load.c | 44 +++-- samples/bpf/tcp_trace.h | 51 +

Re: [PATCH v4 09/43] usb: gadget: composite: handle function bind

2016-02-03 Thread kbuild test robot
Hi Robert, [auto build test WARNING on usb/usb-testing] [also build test WARNING on v4.5-rc2 next-20160203] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Robert-Baldyga/usb-gadget-composite

Re: [PATCH 3/11] cpufreq: governor: Use common global_dbs_data pointer

2016-02-03 Thread Viresh Kumar
On 04-02-16, 02:25, Rafael J. Wysocki wrote: > You are talking about something like this now: > > if (condition) > goto label; > > return 0; > > label: > do stuff > > I'm sorry, but I fail to see how this is easier to read than > > if (!condition) > return 0; >

Re: [PATCH 3/11] cpufreq: governor: Use common global_dbs_data pointer

2016-02-03 Thread Viresh Kumar
On 04-02-16, 00:22, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If the ondemand and conservative governors cannot use per-policy > tunables (CPUFREQ_HAVE_GOVERNOR_PER_POLICY is not set in the cpufreq > driver), all policy objects point to the same single dbs_data object. >

Re: N900 sleep mode (in 4.5-rc0, if that matters)

2016-02-03 Thread Tony Lindgren
* Tony Lindgren [160201 14:12]: > * Pavel Machek [160201 13:18]: > > > > No, sorry, that was with 4.4. As you hit "PM regression with commit > > 5de85b9d57ab PM runtime re-init in v4.5-rc1", I thought I'd avoid > > v4.5-rc. > > OK > > > (I assume I have to insmod and rmmod, right? Because

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-03 Thread Guenter Roeck
On 02/03/2016 03:00 PM, Fu Wei wrote: On 4 February 2016 at 02:45, Timur Tabi wrote: Fu Wei wrote: As you know I have made the pre-timeout support patch, If people like it, i am happy to go on upstream it separately. If we want to use pre-timeout here, user only can use get_pretimeout and

Re: [PATCH] staging: wilc1000: Move Macro definition

2016-02-03 Thread Gujulan Elango, Hari Prasath (H.)
On Wed, Feb 03, 2016 at 03:19:50PM -0800, gre...@linuxfoundation.org wrote: > On Mon, Jan 18, 2016 at 01:42:35PM +, Gujulan Elango, Hari Prasath (H.) > wrote: > > From: Hari Prasath Gujulan Elango > > > > This patch move's a macro defined in the middle of a structure > > definition to make

Re: [PATCHv2] staging: android: ion: use the manged version of DMA memory allocation

2016-02-03 Thread Gujulan Elango, Hari Prasath (H.)
On Wed, Feb 03, 2016 at 10:11:04AM -0800, Laura Abbott wrote: > On 02/03/2016 04:03 AM, Robin Murphy wrote: > >On 03/02/16 06:49, Gujulan Elango, Hari Prasath (H.) wrote: > >>From: Hari Prasath Gujulan Elango > >> > >>Use the managed version of the dma_alloc_coherent() i.e. the >

Re: [PATCH v4 06/43] usb: gadget: composite: introduce new descriptors format

2016-02-03 Thread kbuild test robot
Hi Robert, [auto build test WARNING on usb/usb-testing] [also build test WARNING on v4.5-rc2 next-20160203] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Robert-Baldyga/usb-gadget-composite

Re: [PATCH 2/11] cpufreq: governor: Use common mutex for dbs_data protection

2016-02-03 Thread Viresh Kumar
On 04-02-16, 00:16, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Every governor relying on the common code in cpufreq_governor.c > has to provide its own mutex in struct common_dbs_data. However, > those mutexes are never used at the same time Why do you think so? I thought they can

Re: [PATCH] drm/msm/dsi: fix definition of msm_dsi_pll_28nm_8960_init()

2016-02-03 Thread Archit Taneja
On 02/03/2016 07:55 PM, Luis Henriques wrote: This fixes the following build failure: drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm.o: In function `msm_dsi_pll_28nm_8960_init': dsi_pll_28nm.c:(.text+0x1198): multiple definition of `msm_dsi_pll_28nm_8960_init'

Re: [PATCH 1/11] cpufreq: Clean up default and fallback governor setup

2016-02-03 Thread Viresh Kumar
On 04-02-16, 00:14, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The preprocessor magic used for setting the default cpufreq governor > (and for using the performance governor as a fallback one for that > matter) is really nasty, so replace it with __weak functions and > overrides. >

Re: [Y2038] [PATCH 00/10] Remove CURRENT_TIME and CURRENT_TIME_SEC - PART 1

2016-02-03 Thread Deepa Dinamani
>> These will be the changes to the above function: >> 1. Function will return the type y2038 safe timespec64 in [2]. >> 2. Function will use y2038 safe 64 bit functions in [2]. >> 3. Function will be extended to perform range checks in [3]. > > I guess [2] and [3] are really independent of one

Re: [Update][PATCH 3/3] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-03 Thread Viresh Kumar
On 03-02-16, 02:16, Rafael J. Wysocki wrote: > Index: linux-pm/drivers/cpufreq/cpufreq_governor.c > -void gov_add_timers(struct cpufreq_policy *policy, unsigned int delay) > +void gov_set_update_util(struct cpu_common_dbs_info *shared, > + unsigned int delay_us) > { > +

linux-api scope (Re: [PATCH v2 11/22] media: dvb-frontend invoke enable/disable_source handlers)

2016-02-03 Thread Andy Lutomirski
[cc list heavily trimmed] On Wed, Feb 3, 2016 at 8:03 PM, Shuah Khan wrote: > Change dvb frontend to check if tuner is free when > device opened in RW mode. Call to enable_source > handler either returns with an active pipeline to > tuner or error if tuner is busy. Tuner is released > when

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

2016-02-03 Thread Vishnu Patekar
Hello Wens, On Tue, Feb 2, 2016 at 3:37 PM, Chen-Yu Tsai wrote: > > On Sun, Jan 31, 2016 at 9:21 AM, Vishnu Patekar > wrote: > > This patch adds support for Sinovoip BPI-M3 A83T based board. > > > > It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, > > mic, AP6212 Wifi, etc on

Re: [RFC] perf: fix building for ARCv1

2016-02-03 Thread Vineet Gupta
+CC Noam On Wednesday 03 February 2016 09:50 PM, Alexey Brodkin wrote: >> I agree with the current solution to add -atomic to for arc700 builds. >> > Although making that default for arc700 tools will be better but that will >> > not fix >> > things before next release of tools etc. >> > >> >

[PATCH v2 00/22] Sharing media resources across ALSA and au0828 drivers

2016-02-03 Thread Shuah Khan
This patch series updates ALSA driver, and au0828 core driver to use Managed Media controller API and Media Controller API to share media resource (tuner). This Patch v2 series is based on linux_media master. This work addresses Mauro and Takashi's comments. Composite or S-Video connector is the

[PATCH v2 01/22] uapi/media.h: Declare interface types for ALSA

2016-02-03 Thread Shuah Khan
Declare the interface types to be used on alsa for the new G_TOPOLOGY ioctl. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 16 include/uapi/linux/media.h | 22 ++ 2 files changed, 38 insertions(+) diff --git a/drivers/media/media-entity.c

[PATCH v2 03/22] media: Media Controller register/unregister entity_notify API

2016-02-03 Thread Shuah Khan
Add new interfaces to register and unregister entity_notify hook to media device. These interfaces allow drivers to add hooks to take appropriate actions when new entities get added to a shared media device. For example, au0828 bridge driver registers an entity_notify hook to create links as

[PATCH v2 04/22] media: Media Controller enable/disable source handler API

2016-02-03 Thread Shuah Khan
Add new fields to struct media_device to add enable_source, and disable_source handlers, and source_priv to stash driver private data that is used to run these handlers. The enable_source handler finds source entity for the passed in entity and checks if it is available. When link is found, it

[PATCH v2 08/22] media: Move au8522_media_pads enum to au8522.h from au8522_priv.h

2016-02-03 Thread Shuah Khan
Move the au8522_media_pads enum to au8522.h from au8522_priv.h to export them. This will allow au0828-core to use these defines instead of hard-coding them them. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 7 +++ drivers/media/dvb-frontends/au8522_priv.h | 8

[PATCH v2 09/22] media: au8522 change to create MC pad for ALSA Audio Out

2016-02-03 Thread Shuah Khan
Add new pad for ALSA Audio Out to au8522_media_pads. Signed-off-by: Shuah Khan --- drivers/media/dvb-frontends/au8522.h | 1 + drivers/media/dvb-frontends/au8522_decoder.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/dvb-frontends/au8522.h

[PATCH v2 07/22] media: v4l-core add enable/disable source common interfaces

2016-02-03 Thread Shuah Khan
Add a new interfaces to be used by v4l-core to invoke enable source and disable_source handlers in the media_device. The enable_source helper function invokes the enable_source handler to find media source entity connected to the entity and check is it is available or busy. If source is available,

[PATCH v2 10/22] media: Change v4l-core to check if source is free

2016-02-03 Thread Shuah Khan
Change s_input, s_fmt, s_tuner, s_frequency, querystd, s_hw_freq_seek, and vb2_core_streamon interfaces that alter the tuner configuration to check if it is free, by calling v4l_enable_media_source(). If source isn't free, return -EBUSY. v4l_disable_media_source() is called from v4l2_fh_exit() to

[PATCH v2 06/22] media: Media Controller non-locking __media_entity_pipeline_start/stop()

2016-02-03 Thread Shuah Khan
Add non-locking __media_entity_pipeline_start/stop() interfaces to be called from code paths that hold the graph_mutex. For this change, the media_entity_pipeline_start() routine is renamed to __media_entity_pipeline_start() minus the graph_mutex lock and unlock. media_entity_pipeline_start() now

[PATCH v2 12/22] media: au0828 video remove au0828_enable_analog_tuner()

2016-02-03 Thread Shuah Khan
Remove au0828_enable_analog_tuner() as it is no longer needed because v4l2-core implements common interfaces to check for media source availability. In addition, queue_setup() no longer needs the tuner availability check since v4l2-core does it. Signed-off-by: Shuah Khan ---

[PATCH v2 11/22] media: dvb-frontend invoke enable/disable_source handlers

2016-02-03 Thread Shuah Khan
Change dvb frontend to check if tuner is free when device opened in RW mode. Call to enable_source handler either returns with an active pipeline to tuner or error if tuner is busy. Tuner is released when frontend is released calling the disable_source handler. Signed-off-by: Shuah Khan ---

[PATCH v2 13/22] media: au0828 video change to use v4l_enable_media_source()

2016-02-03 Thread Shuah Khan
Change au0828 to check if tuner is free or not before changing tuner configuration. vidioc_g_tuner(), and au0828_v4l2_close() now call v4l-core interface v4l_enable_media_source() before changing tuner configuration. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-video.c | 14

[PATCH v2 17/22] media: au0828 disable tuner to demod link

2016-02-03 Thread Shuah Khan
Change au0828_create_media_graph() to find and disable tuner and demod link. This helps avoid an additional disable step when tuner is requested by video or audio. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 20 +++- 1 file changed, 19 insertions(+), 1

[PATCH v2 19/22] media: au0828-core register entity_notify hook

2016-02-03 Thread Shuah Khan
Register entity_notify async hook to create links between existing bridge driver entities and a newly added non-bridge driver entities. For example, this handler creates link between V4L decoder entity and ALSA mixer entity. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c |

[PATCH v2 14/22] media: au0828 change to use Managed Media Controller API

2016-02-03 Thread Shuah Khan
Change au0828 to use Managed Media Controller API to share media device and coordinate creating/deleting the shared media device with the snd-usb-audio driver. The shared media device is created as device resource of the parent usb device of the two drivers. Signed-off-by: Shuah Khan ---

[PATCH v2 18/22] media: au0828 Use au8522_media_pads enum for pad defines

2016-02-03 Thread Shuah Khan
Change au0828-core to use au8522_media_pads enum defines instead of hard-coding the pad values. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/au0828/au0828-core.c

[PATCH v2 15/22] media: au0828 handle media_init and media_register window

2016-02-03 Thread Shuah Khan
Media device initialization and registration steps are split. There is a window between media device init and media device register during usb probe. au0828 bridge driver and snd-usb-audio could try to initialize the media device, if they simply checked, whether the device has been registered.

[PATCH v2 21/22] sound/usb: Use Media Controller API to share media resources

2016-02-03 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB and V4L2 drivers on a AU0828 media device. Media Controller specific initialization is done after sound card is registered. ALSA creates Media interface and entity function graph nodes for Control, Mixer, PCM

[PATCH v2 20/22] media: au0828 add enable, disable source handlers

2016-02-03 Thread Shuah Khan
Add enable_source and disable_source handlers. The enable source handler is called from v4l2-core, dvb-core, and ALSA drivers to check if the shared media source is free. The disable source handler is called to release the shared media source. Signed-off-by: Shuah Khan ---

[PATCH v2 16/22] media: au0828 create tuner to decoder link in disabled state

2016-02-03 Thread Shuah Khan
Create tuner to demod pad link in disabled state to avoid disable step when tuner resource is requested by dvb. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/au0828/au0828-core.c

[PATCH v2 22/22] media: Ensure media device unregister is done only once

2016-02-03 Thread Shuah Khan
media_device_unregister() checks if the media device is registered or not as the first step. However, the MEDIA_FLAG_REGISTERED bit doesn't get cleared until the end leaving a large window for two drivers to attempt media device unregister. The above leads to general protection faults when device

[PATCH v2 05/22] media: Media Controller export non locking __media_entity_setup_link()

2016-02-03 Thread Shuah Khan
Export __media_entity_setup_link() to be used from code paths that hold the graph_mutex. Signed-off-by: Shuah Khan --- drivers/media/media-entity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 6179543..9b4d712 100644 ---

[PATCH v2 02/22] media: Add ALSA Media Controller function entities

2016-02-03 Thread Shuah Khan
Add ALSA Media Controller capture, playback, and mixer function entity defines. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index ee020e8..7d50480 100644 ---

Re: [PATCH v2] arm64: defconfig: Enable samsung MFD and related configs

2016-02-03 Thread Alim Akhtar
On 11/06/2015 10:07 PM, Catalin Marinas wrote: On Fri, Nov 06, 2015 at 02:47:12PM +0900, Krzysztof Kozlowski wrote: 2015-11-06 14:27 GMT+09:00 Alim Akhtar : Exynos7 based espresso board uses S2MPS15, a multifunction device. This patch enables S2MPS1X regulator, pmic-clk and rtc drivers

Re: [PATCH v2 04/10] crypto/compress: add asynchronous compression support

2016-02-03 Thread Li, Weigang
On 2/4/2016 11:29 AM, Herbert Xu wrote: On Thu, Feb 04, 2016 at 11:28:50AM +0800, Herbert Xu wrote: On Thu, Feb 04, 2016 at 11:25:27AM +0800, Li, Weigang wrote: Please can you advise how to get the acomp patch accepted? Can you do a posting of these patches without scomp so we can evaluate

linux-next: Tree for Feb 4

2016-02-03 Thread Stephen Rothwell
Hi all, Changes since 20160203: The gpio tree still had its build failure so I used the version from next-20160128. The aio tree still had a build failure so I used the version from next-20160111. The akpm-current tree lost its build failures. Non-merge commits (relative to Linus' tree): 2245

  1   2   3   4   5   6   7   8   9   10   >