Re: [PATCH] [media] vb2: move dma-buf unmap from __vb2_dqbuf() to vb2_buffer_done()

2016-08-16 Thread Sakari Ailus
Hi Javier, Javier Martinez Canillas wrote: > Hello Hans, > > Thanks a lot for your feedback. > > On 08/13/2016 09:47 AM, Hans Verkuil wrote: >> On 07/20/2016 08:22 PM, Javier Martinez Canillas wrote: >>> Currently the dma-buf is unmapped when the buffer is dequeued by userspace >>> but it's not

Re: [tip:x86/boot] x86/mm: Enable KASLR for physical mapping memory regions

2016-08-16 Thread Borislav Petkov
On Tue, Aug 16, 2016 at 12:49:52PM -0700, Kees Cook wrote: > Am I misreading this? No you're not. > Shouldn't it be: > >cont = container; > #ifdef CONFIG_RANDOMIZE_MEMORY >cont += PAGE_OFFSET - __PAGE_OFFSET_BASE; > #endif > > (otherwise cont is undefined in the

[PATCH 5/5] lkdtm: Add tests for struct list corruption

2016-08-16 Thread Kees Cook
When building under CONFIG_DEBUG_LIST, list addition and removal will be sanity-checked. This validates that the check is working as expected by setting up classic corruption attacks against list manipulations, available with the new lkdtm tests CORRUPT_LIST_ADD and CORRUPT_LIST_DEL.

[PATCH 1/5] list: Split list_add() debug checking into separate function

2016-08-16 Thread Kees Cook
Right now, __list_add() code is repeated either in list.h or in list_debug.c, but only the debug checks are the different part. This extracts the checking into a separate function and consolidates __list_add(). Additionally this __list_add_debug() will stop list manipulations if a corruption is

[PATCH 4/5] bug: Provide toggle for BUG on data corruption

2016-08-16 Thread Kees Cook
The kernel checks for several cases of data structure corruption under either normal runtime, or under various CONFIG_DEBUG_* settings. When corruption is detected, some systems may want to BUG() immediately instead of letting the corruption continue. Many of these manipulation primitives can be

[PATCH 2/5] rculist: Consolidate DEBUG_LIST for list_add_rcu()

2016-08-16 Thread Kees Cook
Consolidates the debug checking for list_add_rcu() into the new single debug function. Notably, this fixes the sanity check that was added in commit 17a801f4bfeb ("list_debug: WARN for adding something already in the list"). Before, it wasn't being checked for RCU lists. Signed-off-by: Kees Cook

Re: [PATCH] sh: Fix building j2_defconfig

2016-08-16 Thread Jason Cooper
Hi Rob, On Tue, Aug 16, 2016 at 04:15:22PM -0500, Rob Landley wrote: > On 08/16/2016 10:41 AM, Jason Cooper wrote: > > When targeting the j2, we need to retain '-m2'. Previously, the > > Makefile blew out -m2 on the next line via :=. > > > > Fix this by s/:=/+=/ when building for the J2. > > >

Re: [PATCH v1] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM

2016-08-16 Thread Sebastian Reichel
Hi Andy, On Tue, Aug 16, 2016 at 06:55:49PM +0800, Andy Yan wrote: > On 2016年08月12日 20:48, Krzysztof Kozlowski wrote: > > On 08/12/2016 12:01 PM, Andy Yan wrote: > > > commit 4fcd504edbf7 ("power: reset: add reboot mode driver") uses api from > > > syscon, and syscon uses ioremap/iounmap which

Re: [bisected] "sched: Allow per-cpu kernel threads to run on online && !active" causes warning

2016-08-16 Thread Heiko Carstens
On Tue, Aug 16, 2016 at 11:42:05AM -0400, Tejun Heo wrote: > Hello, Peter. > > On Tue, Aug 16, 2016 at 05:29:49PM +0200, Peter Zijlstra wrote: > > On Tue, Aug 16, 2016 at 11:20:27AM -0400, Tejun Heo wrote: > > > As long as the mapping doesn't change after the first onlining of the > > > CPU, the

[PATCH v6 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-16 Thread Lin Huang
On new rockchip platform(rk3399 etc), there have dcf controller to do ddr frequency scaling, and this controller will implement in arm-trust-firmware. We add a special clock-type to handle that. Signed-off-by: Lin Huang --- Changes in v6: - none Changes in v5: - delete

[PATCH v6 0/8] rk3399 support ddr frequency scaling

2016-08-16 Thread Lin Huang
rk3399 platform have dfi controller can monitor ddr load, and dcf controller to handle ddr register so we can get the right ddr frequency and make ddr controller happy work(which will implement in bl31). So we do ddr frequency scaling with following flow: kernel

[PATCH v6 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-08-16 Thread Lin Huang
Signed-off-by: Lin Huang --- Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v6 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-16 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang --- Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None

Re: [PATCH v10 5/5] usb: dwc3: add rockchip specific glue layer

2016-08-16 Thread William.wu
Dear Balbi, On 2016/8/16 18:43, Felipe Balbi wrote: Hi, "William.wu" writes: William Wu writes: Add rockchip specific glue layer to support USB3 Peripheral mode and Host mode on rockchip platforms (e.g. rk3399). The DesignWare USB3

Re: [PATCH] kbuild: do not add srctree to sysroot relative includes

2016-08-16 Thread Michal Marek
On 2016-08-16 13:40, Lars Persson wrote: > We need to filter out also -I=/path to allow sysroot relative > include paths in the makefiles of external modules. > > Signed-off-by: Lars Persson > --- > scripts/Kbuild.include | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v2] Added perf functionality to mmdc driver

2016-08-16 Thread Peter Zijlstra
On Mon, Aug 15, 2016 at 05:50:50PM +0100, Mark Rutland wrote: > For the Nth time, I'm going to say that really, we should have the core check > this (or expose helpers to do so). It's somewhat ridiculous that evry driver > has to blacklist everything it doesn't support, rather than whitelisting

Re: [PATCH v3 0/3] i2c: designware: improve performance for transfers

2016-08-16 Thread Wolfram Sang
> Looks like I forgot to CC Wolfram. CC'ing now on this cover letter, let > me know if you also need the individual patches. As long as the i2c-list is on cc, they will show up in patchwork and then I'll have the patches. All fine here. signature.asc Description: PGP signature

Re: [PATCH] um: Fix definition typo of ARCH_IRQ_ENABLED

2016-08-16 Thread Richard Weinberger
Daniel, On 16.08.2016 14:07, Daniel Wagner wrote: > From: Daniel Wagner > > 3e9389573574 ("um: Use asm-generic/irqflags.h") introduced a typo. > > Signed-off-by: Daniel Wagner > --- > Hi Richard, > > I just saw that the original patch

Re: [PATCH] iio: mxs-lradc: fix a possible NULL dereference

2016-08-16 Thread Ksenija Stanojević
Hi Corentin, On Tue, Aug 16, 2016 at 2:10 PM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > For fixing this problem, we use of_device_get_match_data(), this will > simplify the code a little by using a

Re: [PATCH v2 0/2] cpufreq / sched: Rework of cpufreq_update_util() arguments

2016-08-16 Thread Peter Zijlstra
On Fri, Aug 12, 2016 at 02:01:29AM +0200, Rafael J. Wysocki wrote: > Hi, > > There were some comments on the "cpufreq / sched: cpufreq_update_util() flags > and iowait boosting" series I sent some time ago and I wanted to address them, > but for this purpose I had to combine patches [1-2,4/7]

Re: [PATCH 5/7] arm64: dts: exynos: Add dts files for Samsung Exynos5433 64bit SoC

2016-08-16 Thread Chanwoo Choi
Hi Sylwester, On 2016년 08월 16일 19:50, Sylwester Nawrocki wrote: > Hi Chanwoo, > > On 08/16/2016 08:35 AM, Chanwoo Choi wrote: >> This patch adds new Exynos5433 dtsi to support 64-bit Exynos5433 SoC based on >> Octa-core CPUs (quad Cortex-A57 and quad Cortex-A53). And Exynos5433 supports >> PSCI

Re: [PATCH v2 0/4] pwm: Add Amlogic Meson SoC PWM Controller

2016-08-16 Thread Kevin Hilman
On Wed, Aug 3, 2016 at 7:25 PM, Kevin Hilman wrote: > Hi Thierry, > > On Sun, Jul 10, 2016 at 2:27 AM, Neil Armstrong > wrote: >> Add support for the PWM controller found in Amlogic Meson SoCs. >> This controller provides a dual PWM output with 4

[PATCH v2 0/1] pwm: sun4i: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
Hello Change since v1: - Use of_device_get_match_data() LABBE Corentin (1): pwm: sun4i: fix a possible NULL dereference drivers/pwm/pwm-sun4i.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.3

[PATCH] gpu: ipu-v3: fix a possible NULL dereference

2016-08-16 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Signed-off-by: LABBE Corentin

[RFC 04/17] clk: samsung: Allocate a clock controller in context

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and store it in context so it will be passed later for creating clocks. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk.c | 4 drivers/clk/samsung/clk.h | 1 + 2 files changed, 5 insertions(+) diff --git

[RFC 05/17] clk: fixed-rate: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-fixed-rate.c | 28 ++-- drivers/clk/samsung/clk.c| 2 +- include/linux/clk-provider.h | 10 -- 3 files

[RFC 14/17] clk: samsung: clkout: samsung: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos-clkout.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-clkout.c

[RFC 17/17] Revert "i2c: s3c2410: fix ABBA deadlock by keeping clock prepared"

2016-08-16 Thread Krzysztof Kozlowski
This reverts commit 34e81ad5f0b60007c95995eb7803da7e00c6c611. Signed-off-by: Krzysztof Kozlowski Conflicts: drivers/i2c/busses/i2c-s3c2410.c --- drivers/i2c/busses/i2c-s3c2410.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-)

[RFC 10/17] clk: composite: Switch to new clock controller API

2016-08-16 Thread Krzysztof Kozlowski
Allocate a clock controller and use new clk_register_with_ctrl() API. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-composite.c | 8 +--- include/linux/clk-provider.h | 6 -- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] time,virt: resync steal time when guest & host lose sync

2016-08-16 Thread Rik van Riel
On Tue, 2016-08-16 at 14:54 +0800, Wanpeng Li wrote: > 2016-08-16 10:11 GMT+08:00 Rik van Riel : > > On Tue, 2016-08-16 at 09:31 +0800, Wanpeng Li wrote: > > > 2016-08-15 23:00 GMT+08:00 Rik van Riel : > > > > On Mon, 2016-08-15 at 16:53 +0800, Wanpeng Li wrote: >

[RESEND PATCH] [media] vb2: Fix vb2_core_dqbuf() kernel-doc

2016-08-16 Thread Javier Martinez Canillas
The kernel-doc has the wrong function name and also the pindex parameter is missing in the documentation. Signed-off-by: Javier Martinez Canillas --- This patch was posted some weeks ago but I noticed that wasn't picked by patchwork, so I'm resend it.

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Oleg Nesterov
On 08/16, Oleg Nesterov wrote: > > On 08/15, Brenden Blanco wrote: > > > > Hi folks, > > > > I think I have come across a memory leak in uprobes, which is fairly easy to > > reproduce. > > At first glance this looks as a problem in memcg, add CC's... > > put_page(old_page) looks properly balanced,

Re: [PATCH] net: sched: fix handling of singleton qdiscs with qdisc_hash

2016-08-16 Thread Jiri Kosina
On Tue, 16 Aug 2016, Jiri Kosina wrote: > From: Jiri Kosina > > qdisc_match_from_root() is now iterating over per-netdevice qdisc > hashtable instead of going through a linked-list of qdiscs (independently > on the actual underlying netdev), which used to be the case before

RFC: callchain showing same entry as hist_entry

2016-08-16 Thread Arnaldo Carvalho de Melo
Hi Namhyung, Jiri, please take a look at the patch below, and Ack if possible, it is a problem introduced in: cfaa154b2335 ("perf tools: Get rid of obsolete hist_entry__sort_list") That is not equivalent to the code that was there and results in having the same entry as the first

Re: [PATCH v2] Added perf functionality to mmdc driver

2016-08-16 Thread Mark Rutland
On Tue, Aug 16, 2016 at 02:40:43PM +, Zhengyu Shen wrote: > > > Added cpumask and migration handling support to driver > > > Validated event during event_init > > > Added code to properly stop counters > > > Used perf_invalid_context instead of perf_sw_context > > > Added hrtimer to

[PATCH v2 2/2] remoteproc: core: Rework obtaining a rproc from a DT phandle

2016-08-16 Thread Lee Jones
In this patch we; - Use a subsystem generic phandle to obtain an rproc - We have to support TI's bespoke version for the time being - Convert wkup_m3_ipc driver to new API - Rename the call to be more like other, similar OF calls - Move feature-not-enabled inline stub to the headers -

[PATCH v2 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-16 Thread Lee Jones
- of_rproc_by_index(): look-up and obtain a reference to a rproc using the DT phandle "rprocs" and a index. - of_rproc_by_name(): lookup and obtain a reference to a rproc using the DT phandle "rprocs" and "rproc-names". Signed-off-by: Ludovic Barre

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Michal Hocko
On Tue 16-08-16 16:25:12, Oleg Nesterov wrote: > On 08/16, Oleg Nesterov wrote: > > > > On 08/15, Brenden Blanco wrote: > > > > > > Hi folks, > > > > > > I think I have come across a memory leak in uprobes, which is fairly easy > > > to > > > reproduce. > > > > At first glance this looks as a

Re: [PATCH] arm: module-plts: improve algorithm for counting PLTs

2016-08-16 Thread Ard Biesheuvel
(+ Dave) Hello Jongsung, On 16 August 2016 at 14:55, Jongsung Kim wrote: > Current count_plts() uses O(n^2) algorithm for counting distinct > PLTs. It's good and fast enough when handling relatively small > number of relocs. But the time for counting grows so fast by its >

[PULL] vhost: fixes for 4.8

2016-08-16 Thread Michael S. Tsirkin
The following changes since commit 3b2fbb3f06efe5bd2dfdce2a1db703e23c1a78af: virtio/s390: deprecate old transport (2016-08-09 13:42:41 +0300) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to

[PATCH 3/2+1] remoteproc: core: Move of_get_rproc() helper to header

2016-08-16 Thread Lee Jones
remoteproc: core: Move of_get_rproc() helper to header Since of_get_rproc() has been made a simple helper, we can move it to the remoteproc.h and make it a 'static inline'. Suggested-by: Suman Anna Signed-off-by: Lee Jones diff --git

Re: [PATCH 0/8] Remove deprecated workqueue interface users

2016-08-16 Thread Tejun Heo
Hello, Sebastian. On Tue, Aug 16, 2016 at 02:23:21AM +0200, Sebastian Reichel wrote: > At least the charger monitoring is timing critical: Many charger > chips must be monitored (e.g. for over-temp. events). I think > all of them have a self-protection, or a watchdog, so they would > actually

Re: [PATCH v6 04/11] mm, compaction: don't recheck watermarks after COMPACT_SUCCESS

2016-08-16 Thread Joonsoo Kim
On Wed, Aug 10, 2016 at 11:12:19AM +0200, Vlastimil Babka wrote: > Joonsoo has reminded me that in a later patch changing watermark checks > throughout compaction I forgot to update checks in try_to_compact_pages() and > compactd_do_work(). Closer inspection however shows that they are redundant

Re: [PATCH v2] Documentation: clk: update file names containing referenced structures

2016-08-16 Thread Andi Shyti
Hi Geert, > Commit 'b09d6d991' removes include/linux/clk-private.h and > re-arranges the clock related structures contained in it in > different files. The documentation has not been updated > accordingly, thus it wasn't anymore consistent. > > Place the structures referenced by

Re: [PATCH] usb: dwc3: gadget: don't rely on jiffies while holding spinlock

2016-08-16 Thread Felipe Balbi
Hi, Nicolas Saenz Julienne writes: > __dwc3_gadget_wakeup() is called while holding a spinlock, then depends on > jiffies in order to timeout while polling the USB core for a link state > update. In the case the wakeup failed, the timeout will never happen and > will

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-16 Thread Michal Hocko
On Mon 15-08-16 12:25:10, Robert Foss wrote: > > > On 2016-08-15 09:42 AM, Michal Hocko wrote: [...] > > The use case is to speed up monitoring of > > memory consumption in environments where RSS isn't precise. > > > > For example Chrome tends to many processes which have hundreds of VMAs > >

Re: [PATCH v2 3/6] mm/page_owner: move page_owner specific function to page_owner.c

2016-08-16 Thread Vlastimil Babka
On 08/16/2016 04:51 AM, js1...@gmail.com wrote: From: Joonsoo Kim There is no reason that page_owner specific function resides on vmstat.c. Reviewed-by: Sergey Senozhatsky Signed-off-by: Joonsoo Kim Acked-by:

Re: [PATCH 2/3] befs: improve documentation in datastream.c

2016-08-16 Thread Salah Triki
On Sat, Aug 13, 2016 at 06:11:20PM +0100, Luis de Bethencourt wrote: > Convert function descriptions to kernel-doc style. > > Signed-off-by: Luis de Bethencourt > --- > fs/befs/datastream.c | 193 > ++- > 1 file changed,

[PATCH v10 9/9] arm: dts: mt2701: Use real clock for UARTs

2016-08-16 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Change-Id: Icd44282b859a344b86eccdf4840e9ffb7cee7ec5 Signed-off-by: Erin Lo ---

[PATCH v10 5/9] clk: mediatek: Add MT2701 clock support

2016-08-16 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo

Re: [PATCH] UBIFS: fix assertion in layout_in_gaps()

2016-08-16 Thread Vincent Stehlé
On Sun, Aug 14, 2016 at 11:00:33AM +0200, Richard Weinberger wrote: .. > Good catch! Did you hit this assertion or was it found by review? > I bet the latter since it is here since ever and given the wrongness > it is unlikely to trigger. Dear Richard, It was found with a static checker and

[PATCH v10 8/9] arm: dts: mt2701: Add clock controller device nodes

2016-08-16 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao

Re: [PATCH] drivers/iio/light/Kconfig: SENSORS_BH1780 cleanup

2016-08-16 Thread Greg KH
On Tue, Aug 16, 2016 at 08:27:53AM +0200, Valentin Rothberg wrote: > Commit 7ef9153d9af5 ("misc: delete bh1780 driver") has removed the > Kconfig option SENSORS_BH1780. Remove the last reference on this > option. > > Signed-off-by: Valentin Rothberg > --- > I found

Re: [PATCH 0/4] arm64: marvell: add support for the PIC and PMU

2016-08-16 Thread Jason Cooper
Hi Thomas, On Fri, Aug 05, 2016 at 04:55:17PM +0200, Thomas Petazzoni wrote: > Hello, > > This small patch series intends to add support for the PMU of the > Cortex-A72 cores found in the Marvell Armada 7K/8K SoCs. > > However, the interrupt of the PMU is not directly connected to the > GIC,

[PATCH v2] pwm: samsung: fix to use lowest div for large enough modulation bits

2016-08-16 Thread Seung-Woo Kim
>From pwm_samsung_calc_tin(), there is routine to find the lowest divider possible to generate lower frequency than requested one. But it is always possible to generate requested frequency with large enough modulation bits except s3c24xx, so this patch fixes to use lowest div for the case. This

[PATCH] reset: prepare to deprecate _optional APIs

2016-08-16 Thread Masahiro Yamada
When the reset control sub-system was initially supported, there were no stubs, so none of reset consumers could be built without CONFIG_RESET_CONTROLLER defined. The motivation for this was to prevent the misconfigured kernel from being generated. Then, commit b424080a9e08 ("reset: Add optional

Re: Why do we need reset_control_get_optional() ?

2016-08-16 Thread Masahiro Yamada
Hi Philipp, Arnd. 2016-08-09 1:39 GMT+09:00 Philipp Zabel : > Am Freitag, den 05.08.2016, 17:50 +0200 schrieb Arnd Bergmann: >> On Thursday, July 28, 2016 1:00:49 PM CEST Philipp Zabel wrote: >> > Am Donnerstag, den 28.07.2016, 19:52 +0900 schrieb Masahiro Yamada: >> >>

Re: [PREEMPT-RT] [patch 4 14/22] timer: Switch to a non cascading wheel

2016-08-16 Thread Eric Dumazet
On Tue, Aug 16, 2016 at 5:46 AM, Richard Cochran wrote: > Jouni, > > If I understand the test correctly, then the slightly different kernel > timer behavior is ok, but the test isn't quite right. Let explain > what I mean. > > First off, reading test_ap_wps.py, the

Re: uprobes: memory leak in enable/disable loop

2016-08-16 Thread Oleg Nesterov
On 08/16, Oleg Nesterov wrote: > > On 08/16, Oleg Nesterov wrote: > > > > On 08/15, Brenden Blanco wrote: > > > > > > Hi folks, > > > > > > I think I have come across a memory leak in uprobes, which is fairly easy > > > to > > > reproduce. > > > > At first glance this looks as a problem in memcg,

Re: Is kernel-FD-auto-close exactly equal to explicit-FD-close?

2016-08-16 Thread Ajay Garg
Just discovered that calling "exit(1)" calls "fcloseall()". But as I notice, the opened-serial-port (via "open()" call) is also closed at binary exit. So, is the serial-port closed by hidden "fcloseall()" call, or by the kernel? Moreover, is this equivalent to calling explicit "close()" call on

[PATCH v11 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-08-16 Thread William Wu
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respectively. Signed-off-by: William Wu Acked-by: Rob Herring --- Changes

[PATCH] net: ipconfig: Fix more use after free

2016-08-16 Thread Thierry Reding
s still required. Move the call to ic_close_devs() to the very end of the function. Signed-off-by: Thierry Reding <tred...@nvidia.com> --- This applies on top of next-20160816. net/ipv4/ipconfig.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/net/ipv4/ipconfig.c

[PATCH v11 1/5] usb: dwc3: of-simple: add compatible for rockchip rk3399

2016-08-16 Thread William Wu
Rockchip platform merely enable usb3 clocks and populate its children. So we can use this generic glue layer to support Rockchip dwc3. Signed-off-by: William Wu --- Changes in v11: - add compatible in dwc3-of-simple.c, and remove dwc3-rockchip.c (balbi) Changes in

[PATCH v11 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-08-16 Thread William Wu
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Signed-off-by: William Wu Acked-by: Rob Herring --- Changes

[PATCH v11 3/5] usb: dwc3: make usb2 phy utmi interface configurable

2016-08-16 Thread William Wu
Support to configure the UTMI+ PHY with an 8- or 16-bit interface via DT. The UTMI+ PHY interface is a hardware capability, and it's platform dependent. Normally, the PHYIF can be configured during coreconsultant. But for some specific USB cores(e.g. rk3399 SoC DWC3), the default PHYIF

[PATCH v11 0/5] support rockchip dwc3 driver

2016-08-16 Thread William Wu
This series add support for rockchip DWC3 driver, and add additional optional properties for specific platforms (e.g., rockchip rk3399 platform). The DesignWare USB3 integrated in rockchip SoCs is a configurable IP Core which can be instantiated as Dual-Role Device (DRD), Host Only (XHCI) and

[PATCH v11 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-08-16 Thread William Wu
This patch adds the devicetree documentation required for Rockchip USB3.0 core wrapper consisting of USB3.0 IP from Synopsys. It supports DRD mode, and could operate in device mode (SS, HS, FS) and host mode (SS, HS, FS, LS). Signed-off-by: William Wu Acked-by: Rob

Re: RFC: callchain showing same entry as hist_entry

2016-08-16 Thread Jiri Olsa
On Tue, Aug 16, 2016 at 11:36:28AM -0300, Arnaldo Carvalho de Melo wrote: > Hi Namhyung, Jiri, > > please take a look at the patch below, and Ack if possible, it > is a problem introduced in: > > cfaa154b2335 ("perf tools: Get rid of obsolete hist_entry__sort_list") > > That is not

Re: RFC: callchain showing same entry as hist_entry

2016-08-16 Thread Namhyung Kim
Hi Arnaldo, On Tue, Aug 16, 2016 at 11:36:28AM -0300, Arnaldo Carvalho de Melo wrote: > Hi Namhyung, Jiri, > > please take a look at the patch below, and Ack if possible, it > is a problem introduced in: > > cfaa154b2335 ("perf tools: Get rid of obsolete hist_entry__sort_list") > >

Re: [PATCH] block: Fix secure erase

2016-08-16 Thread Christoph Hellwig
On Tue, Aug 16, 2016 at 10:20:25AM +0300, Adrian Hunter wrote: > On 15/08/16 21:14, Christoph Hellwig wrote: > > On Mon, Aug 15, 2016 at 11:43:12AM -0500, Shaun Tancheff wrote: > >> Hmm ... Since REQ_SECURE implied REQ_DISCARD doesn't this > >> mean that we should include REQ_OP_SECURE_ERASE

Re: [PATCH v6 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-16 Thread Chanwoo Choi
Hi Lin, I add the additional comment. On 2016년 08월 17일 09:31, Chanwoo Choi wrote: > Hi Lin, > > I add one minor comment. > > After fixing it, looks good to me. > Acked-by: Chanwoo Choi > > On 2016년 08월 17일 07:36, Lin Huang wrote: >> This patch adds the documentation

[BISECTED REGRESSION] v4.8-rc: DT/OCTEON driver probing broken

2016-08-16 Thread Aaro Koskinen
Hi, Commit 44a7185c2ae6 ("of/platform: Add common method to populate default bus") added new arch_initcall of_platform_default_populate_init() that will be called before device_initcall octeon_publish_devices(). Now the of_platform_bus_probe() called in octeon_publish_devices() is apparently

[lkp] [net/netpolicy] 19e7d15d66: EIP: [] netpolicy_unregister+0x23a/0x28a SS:ESP 0068:ceb19d94

2016-08-16 Thread kernel test robot
FYI, we noticed the following commit: https://github.com/0day-ci/linux kan-liang-intel-com/net-introduce-NET-policy/20160805-034810 commit 19e7d15d66de8b17e3f2706b786fdc36932bbdbb ("net/netpolicy: limit the total record number") in testcase: boot on test machine: 2 threads qemu-system-i386

Re: [PATCH v3] MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski

2016-08-16 Thread Kukjin Kim
Krzysztof Kozlowski wrote: > Change my email address to kernel.org account instead of Samsung one. > > Add Bartlomiej Zolnierkiewicz as a co-maintainer of Maxim and Samsung > PMIC drivers. These are used on many of our boards along with Exynos > SoCs and Samsung R Institute Poland can still take

linux-next: build warnings after merge of the kbuild tree

2016-08-16 Thread Stephen Rothwell
Hi Michal, After merging the kbuild tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings: WARNING: 25 bad relocations c0cf2570 R_PPC64_ADDR64__crc___arch_hweight16 c0cf2578 R_PPC64_ADDR64__crc___arch_hweight32 c0cf2580 R_PPC64_ADDR64

RE: [PATCH 0/5] ACPI / sysfs: Cleanup sysfs table handling code

2016-08-16 Thread Zheng, Lv
Hi, > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH 0/5] ACPI / sysfs: Cleanup sysfs table handling code > > On Tue, Aug 16, 2016 at 10:52 AM, Lv Zheng wrote: > > There are issues in sysfs table handling code:

Re: [PATCH v2] sched/cputime: Resync steal time when guest & host lose sync

2016-08-16 Thread Rik van Riel
On Wed, 2016-08-17 at 09:16 +0800, Wanpeng Li wrote: >  > @@ -694,6 +699,12 @@ static cputime_t get_vtime_delta(struct > task_struct *tsk) >   unsigned long now = READ_ONCE(jiffies); >   cputime_t delta, other; >   > + /* > +  * The interval returned by account_other_time() is NOT

Re: [PATCH 0/2] be2iscsi: Logging neatening

2016-08-16 Thread Bart Van Assche
On 08/14/16 10:29, Joe Perches wrote: > On Sun, 2016-08-14 at 17:09 +, Bart Van Assche wrote: >> My primary concern is how to enable and disable log messages from user >> space. Many drivers define their own logging macros and export a bitmask >> that allows to enable and disable logging

Re: [PATCH 3.16 102/305] xfs: xfs_iflush_cluster fails to abort on error

2016-08-16 Thread Dave Chinner
On Tue, Aug 16, 2016 at 08:45:02PM +0100, Ben Hutchings wrote: > On Sun, 2016-08-14 at 09:36 +1000, Dave Chinner wrote: > > On Sat, Aug 13, 2016 at 06:42:51PM +0100, Ben Hutchings wrote: > > > > > > 3.16.37-rc1 review patch.  If anyone has any objections, please let me > > > know. > > > > > >

Re: [PATCH v3] sched/cputime: Resync steal time when guest & host lose sync

2016-08-16 Thread Rik van Riel
On Wed, 2016-08-17 at 10:05 +0800, Wanpeng Li wrote: > This patch fix the regression by limiting the account_other_time() > from  > get_vtime_delta() to avoid underflow, and let other three call sites > (account_other_time() and steal_account_process_time()) account > however  > much steal time

[PATCH v3] sched/cputime: Resync steal time when guest & host lose sync

2016-08-16 Thread Wanpeng Li
From: Wanpeng Li Commit: 57430218317e ("sched/cputime: Count actually elapsed irq & softirq time") ... triggered a regression: | An i5 laptop, 4 pCPUs, 4vCPUs for one full dynticks guest, there are four | cpu hog processes(for loop) running in the guest, I

[PATCH 54/80] staging: lustre: llite: set dir LOV xattr length variable

2016-08-16 Thread James Simmons
From: Hongchao Zhang the LOV xattr of directory could be either lov_user_md_v1 (size is 32) or lov_user_md_v3 (size is 48), then the actual size of the LOV xattr should be return. Signed-off-by: Hongchao Zhang Intel-bug-id:

[PATCH 46/80] staging: lustre: llite: Change readdir BRW metrics

2016-08-16 Thread James Simmons
From: Jinshan Xiong To simplify the code, change the metrics from bytes to pages. Signed-off-by: Andreas Dilger Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5034 Reviewed-on:

[PATCH 56/80] staging: lustre: clio: Reduce memory overhead of per-page allocation

2016-08-16 Thread James Simmons
From: Jinshan Xiong A page in clio used to occupy 584 bytes, which will use size-1024 slab cache. This patch reduces the per-page overhead to 512 bytes so it can use size-512 instead. Signed-off-by: Jinshan Xiong Intel-bug-id:

[PATCH 55/80] staging: lustre: mdt: add mbo_ prefix to members of struct mdt_body

2016-08-16 Thread James Simmons
From: John L. Hammond Rename each member of struct mdt_body, adding the prefix mbo_. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/10202 Reviewed-by: Bob Glossman

[PATCH 45/80] staging: lustre: llite: Fix the deadlock in balance_dirty_pages()

2016-08-16 Thread James Simmons
From: Jinshan Xiong If the page is already dirtied in ll_write_end() and kernel tries to call balance_dirty_pages() to write back dirty pages in the same thread, this is deadlock case if the page is already held by clio. This can also fix the issue of LU-4873.

[PATCH 61/80] staging: lustre: obdclass: compile issues with variable not being initialized

2016-08-16 Thread James Simmons
One of the versions of gcc I have refuses to build obd_mount.c due to index not be initialized in function lmd_make_exclusion before it is used. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4629 Reviewed-on:

[PATCH 47/80] staging: lustre: uapi: reduce scope of lustre_idl.h

2016-08-16 Thread James Simmons
From: John L. Hammond Move the definition of OBD_OCD_VERSION() and similar macros from lustre_idl.h to lustre_ver.h. These macros are primarily used in comparisons to LUSTRE_VERSION_CODE which is defined in lustre_ver.h and so should be defined there as well. Move a few

[PATCH 28/80] staging: lustre: lmv: access lum_stripe_offset as little endian

2016-08-16 Thread James Simmons
From: John L. Hammond By the time that a struct lmv_user_md reaches lmv_placement_policy() it has already been converted to little endian. Therefore use the appropriate macros around accesses to this this field. This issue was found by rewriting the definition of struct

[PATCH 33/80] staging: lustre: lmv: cleanup req in lmv_getattr_name()

2016-08-16 Thread James Simmons
From: John L. Hammond In lmv_getattr_name() don't return a freed request in the error path. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4826 Reviewed-on: http://review.whamcloud.com/9863 Reviewed-by:

[PATCH 37/80] staging: lustre: ldlm: flock completion fixes.

2016-08-16 Thread James Simmons
From: Vitaly Fertman Move checks for FAILED, DESTROYED flags under ldlm spinlock, destroy flock atomically with the check it is not destroyed yet. Do not put the granted flock into the resource if this is UNLOCK, TEST, or DEADLOCK'ed flock. Later a regression for

[PATCH 30/80] staging: lustre: lmv: Ensure lmv_intent_lookup cleans up reqp

2016-08-16 Thread James Simmons
From: Nathaniel Clark Ensure there aren't invalid pointers hanging around after ptlrpc_req_finished is called. Signed-off-by: Nathaniel Clark Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4826 Reviewed-on:

[PATCH 25/80] staging: lustre: const correct FID/OSTID/... helpers

2016-08-16 Thread James Simmons
From: John L. Hammond Add a const qualifier wherever possible to the pointer parameters of the inline helper functions in lustre_idl.h and lustre_fid.h. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675

[PATCH 31/80] staging: lustre: llite: avoid a deadlock in page write

2016-08-16 Thread James Simmons
From: Jinshan Xiong For a partial page write, it will have to issue a READ RPC firstly to get a full uptodate page. If another page is already locked by this thread it can easily cause deadlock. Signed-off-by: Jinshan Xiong Intel-bug-id:

[PATCH 39/80] staging: lustre: llite: add error handler in inode prepare phase

2016-08-16 Thread James Simmons
From: wang di Add error handler during inode inialization, so inode will become bad inode if something bad happens during inode prepare phase, otherwise the striped directory will not get its layout and being mis-regarded as normal directory. Signed-off-by: wang di

[PATCH 29/80] staging: lustre: lmv: lookup remote migrating object in LMV

2016-08-16 Thread James Simmons
From: wang di If remote object is being found in a migrating directory, it should continue to lookup the object in remote MDT, instead of return. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4805 Reviewed-on:

[PATCH 03/80] staging: lustre: llite: style cleanup for llite_internal.h

2016-08-16 Thread James Simmons
From: wang di Group function prototypes together related to dir.c. Move ll_release_page to be with function declarations. Signed-off-by: wang di Reviewed-on: http://review.whamcloud.com/7043 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531

[PATCH] staging: lustre: fix bare use of 'unsigned'

2016-08-16 Thread Anson Jacob
fix checkpatch.pl warning Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Anson Jacob --- drivers/staging/lustre/lustre/include/cl_object.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] cpufreq-SCPI: Delete unnecessary assignment for the field "owner"

2016-08-16 Thread Rafael J. Wysocki
On Tuesday, August 16, 2016 10:38:02 PM SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 16 Aug 2016 22:30:17 +0200 > > The field "owner" is set by the core. > Thus delete an unneeded initialisation. > > Generated by:

Re: Problem with atomic accesses in pstore on some ARM CPUs

2016-08-16 Thread Kees Cook
On Tue, Aug 16, 2016 at 1:26 PM, Guenter Roeck wrote: > On Tue, Aug 16, 2016 at 10:35 AM, Colin Cross wrote: >> On Mon, Aug 15, 2016 at 3:15 PM, Mark Rutland wrote: >>> On Tue, Aug 16, 2016 at 08:02:53AM -0700, Guenter Roeck wrote:

<    1   2   3   4   5   6   7   8   9   10   >