Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-28 Thread Sudeep Holla
On 28/04/17 06:00, Viresh Kumar wrote: > On 27-04-17, 16:20, Rajendra Nayak wrote: >> >> On 04/27/2017 03:12 PM, Sudeep Holla wrote: >> [].. >> > At qualcomm, we have an external M3 core (running its own firmware) which > controls > a few voltage rails (including AVS on those).

[PATCH v3 9/9] staging: fsl-dpaa2/eth: Add maintainer for Ethernet driver

2017-04-28 Thread Ioana Radulescu
Signed-off-by: Ioana Radulescu --- v3: no changes v2: Remove "Freescale" from the driver name MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b38b42f96e6a..4368f67bb261 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v3 2/9] staging: fsl-dpaa2/eth: Add Ethernet driver overview document

2017-04-28 Thread Ioana Radulescu
Add a README file describing the driver architecture, components and I/O interface. Signed-off-by: Ioana Radulescu --- v3: no changes v2: no changes drivers/staging/fsl-dpaa2/ethernet/README | 186 ++ 1 file changed, 186 insertions(+)

[PATCH v3 0/9] staging: Introduce Freescale DPAA2 Ethernet driver

2017-04-28 Thread Ioana Radulescu
This patchset introduces the Ethernet driver for Freescale/NXP SoCs with DPAA2 (DataPath Acceleration Architecture v2). The driver manages network objects discovered on the fsl-mc bus. A description of the driver can be found in the associated README file. The patchset consists of: * A set of

[PATCH v3 7/9] staging: fsl-dpaa2/eth: Add trace points

2017-04-28 Thread Ioana Radulescu
Add trace events in significant places of the data path. Useful for debuggging. Signed-off-by: Ioana Radulescu --- v3: no changes v2: no changes drivers/staging/fsl-dpaa2/ethernet/Makefile| 3 + .../staging/fsl-dpaa2/ethernet/dpaa2-eth-trace.h | 185

[PATCH v3 8/9] staging: fsl-dpaa2/eth: Add TODO file

2017-04-28 Thread Ioana Radulescu
Add a list of TODO items for the Ethernet driver Signed-off-by: Ioana Radulescu --- v3: Add contact info v2: Add note drivers/staging/fsl-dpaa2/ethernet/TODO | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

Re: [PATCH 4/5] arm64: dts: r8a7795: salvator-x: enable VIN, CSI and ADV7482

2017-04-28 Thread Geert Uytterhoeven
On Fri, Apr 28, 2017 at 10:52 AM, Sergei Shtylyov wrote: > On 4/27/2017 9:26 PM, Kieran Bingham wrote: >> --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts >> +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts > > [...] >> >> @@ -387,6 +403,50 @@

Re: [PATCH] staging: fbtft: fix character limit, trailing ; warning, etc.

2017-04-28 Thread Greg KH
On Sun, Apr 23, 2017 at 03:21:31PM +0100, Eric Curtin wrote: > checkpatch spits out a warning about the 80 character line limit. Split > the parameters of these functions onto different lines. Put the ; with > the macro caller instead. Lined up parameters as there was another > CHECK warning about

Re: [PATCH 1/1] staging: fbtft: Fix Sparse warning in fb_watterott.c

2017-04-28 Thread Greg KH
On Fri, Apr 21, 2017 at 05:54:47PM +0200, Cezary Gapinski wrote: > Sparse reports the following in fb_watterott.c: > > warning: incorrect type in assignment (different base types) > expected unsigned short [unsigned] [short] [usertype] > got restricted __be16 [usertype] > > Use __be16 types

Re: [PATCH v5 02/10] pinctrl: generic: Add macros to unpack properties

2017-04-28 Thread Geert Uytterhoeven
On Fri, Apr 28, 2017 at 10:16 AM, Linus Walleij wrote: > On Thu, Apr 27, 2017 at 10:19 AM, Jacopo Mondi >> +#define PIN_CONF_UNPACK_PARAM(c) ((c) & 0xffUL) >> +#define PIN_CONF_UNPACK_ARGS(c) ((c) >> 8) > > But why. > > I have these two static inlines just below your new

Re: [PATCHv2 2/2] arm64: cpufeature: use static_branch_enable_cpuslocked()

2017-04-28 Thread Will Deacon
On Fri, Apr 28, 2017 at 11:02:30AM +0100, Mark Rutland wrote: > On Thu, Apr 27, 2017 at 07:01:04PM +0100, Will Deacon wrote: > > On Thu, Apr 27, 2017 at 06:44:37PM +0100, Mark Rutland wrote: > > > diff --git a/arch/arm64/kernel/cpu_errata.c > > > b/arch/arm64/kernel/cpu_errata.c > > > index

Re: [PATCH v2] arm64: Add ASM modifier for xN register operands

2017-04-28 Thread Ard Biesheuvel
On 28 April 2017 at 10:53, Mark Rutland wrote: > On Fri, Apr 28, 2017 at 08:18:52AM +0100, Ard Biesheuvel wrote: >> On 27 April 2017 at 23:52, Matthias Kaehlcke wrote: >> > El Thu, Apr 27, 2017 at 12:02:56PM +0100 Mark Rutland ha dit: >> >> On Wed, Apr

[RFC PATCH 0/7] um: Fix printf usage and support quiet option

2017-04-28 Thread Masami Hiramatsu
Hello, This series fixes some boot time printf output to stderr by default, and support "quiet" option to suppress non- fatal error (or warning) messages in user-mode-linux. Also the last one allows user to pass "console=" option to kernel. Thank you, --- Masami Hiramatsu (7): um: Use

[RFC PATCH 3/7] um: Make non_fatal non-static for other files

2017-04-28 Thread Masami Hiramatsu
Move non_fatal() to util.c and make it global so that it can be used from other files. Signed-off-by: Masami Hiramatsu --- arch/um/include/shared/os.h |1 + arch/um/os-Linux/start_up.c |9 - arch/um/os-Linux/util.c |9 + 3 files changed, 10

Re: [PATCH] staging : rtl8188eu : remove void function return

2017-04-28 Thread Greg KH
On Fri, Apr 21, 2017 at 09:24:57AM +0530, surenderpolsani wrote: > kernel coding style doesn't allow the return statement > in void function. > > Signed-off-by: Surenderp Your "From" line does not match this line. And I need a "full" name here. thanks, greg k-h

Re: [PATCH] staging: rtl8192u: Improve readability and fix sparse warnings: cast from restricted __le16

2017-04-28 Thread Greg KH
On Sat, Apr 22, 2017 at 11:55:23PM +0100, Tuomo Rinne wrote: > This patch fixes following sparse warnings: > > drivers/staging/rtl8192u//r8192U_dm.c:2307:49: warning: cast from restricted > __le16 > drivers/staging/rtl8192u//r8192U_dm.c:2308:44: warning: cast from restricted > __le16 >

Re: [PATCH] staging: rtl8192u: Fix sparse warning

2017-04-28 Thread Greg Kroah-Hartman
On Sun, Apr 23, 2017 at 05:51:17PM -0300, Marcos Paulo de Souza wrote: > Fix the following sparse warning: > rtl8192u/ieee80211/ieee80211_rx.c:1489:45: warning: incorrect type in > assignment (different base types) > rtl8192u/ieee80211/ieee80211_rx.c:1489:45:expected restricted __le16 > >

Re: [PATCH v2] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-28 Thread Greg KH
On Sat, Apr 22, 2017 at 09:44:49AM +0300, Horia Geantă wrote: > When checking the response verb, the valid bit should be masked out, > since its value flips depending on what Response Register > (RR0 /RR1) it's been read from. > > Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for

[PATCH] staging: vt6656: use tabs instead of spaces

2017-04-28 Thread Juan Antonio Pedreira Martos
Fix a checkpatch error: CODE_INDENT (code indent should use tabs where possible). Signed-off-by: Juan Antonio Pedreira Martos --- drivers/staging/vt6656/rxtx.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

Re: rhashtable - Cap total number of entries to 2^31

2017-04-28 Thread Christian Borntraeger
On 04/28/2017 01:31 PM, Herbert Xu wrote: > On Fri, Apr 28, 2017 at 12:23:15PM +0200, Christian Borntraeger wrote: >> >> I can reproduce this boot failure on s390 bisected to >> commit 6d684e54690caef45cf14051ddeb7c71beeb681b >>rhashtable: Cap total number of entries to 2^31 >> in linux-next

Re: futex race condition

2017-04-28 Thread Sebastian Andrzej Siewior
On 2017-04-28 12:34:23 [+0300], Luchezar Belev wrote: > hello, > > Consider a situation where the "atomic check and suspend" actually > comes into action, that is, a call to futex_wait is canceled because > another thread managed to change the variable just before the > suspending. > Since the

Re: [PATCH v2] staging: speakup: fix wrong code indent

2017-04-28 Thread Greg Kroah-Hartman
On Fri, Apr 28, 2017 at 06:11:04PM +0900, Michael Mera wrote: > Greg Kroah-Hartman writes: > > > On Fri, Apr 28, 2017 at 05:46:07PM +0900, Michael Mera wrote: > >> Remove unnecessary multiline comment, fixes checkpatch messages: > >> ERROR: code indent should use tabs

[PATCH 1/2] of: fix uninitialized variable warning for overlay test

2017-04-28 Thread Arnd Bergmann
gcc warns that an empty device tree would cause undefined behavior: drivers/of/unittest.c: In function 'of_unittest': drivers/of/unittest.c:2199:25: warning: 'last_sibling' may be used uninitialized in this function [-Wmaybe-uninitialized] This adds an initialization of the variable to zero,

[PATCH 2/2] of: fix unittest build without CONFIG_OF_OVERLAY

2017-04-28 Thread Arnd Bergmann
We get a link error when the new tests are used by overlays are not: drivers/of/built-in.o: In function `unflatten_device_tree': (.init.text+0x967): undefined reference to `unittest_unflatten_overlay_base' This makes the #ifdef check match the symbols that lead to building the

[PATCH v3 3/9] staging: fsl-dpaa2/eth: Add APIs for DPNI objects

2017-04-28 Thread Ioana Radulescu
Add the command build/parse APIs for operating on DPNI objects through the DPAA2 Management Complex. Signed-off-by: Ioana Radulescu --- v3: no changes v2: update #include paths drivers/staging/Kconfig |2 + drivers/staging/Makefile

[PATCH v3 6/9] staging: fsl-dpaa2/eth: Add driver specific stats

2017-04-28 Thread Ioana Radulescu
Add custom statistics to be reported via ethtool -S. These include driver specific per-cpu statistics as well as queue and channel counters. Signed-off-by: Ioana Radulescu --- v3: no changes v2: no changes drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 42

[PATCH v3 5/9] staging: fsl-dpaa2/eth: Add ethtool support

2017-04-28 Thread Ioana Radulescu
Add support for several ethtool operations: show hardware statistics, get/set link settings, get hash configuration. Signed-off-by: Ioana Radulescu Signed-off-by: Bogdan Hamciuc --- v3: no changes v2: no changes

[RFC PATCH 5/7] um: Print out fatal error in stderr

2017-04-28 Thread Masami Hiramatsu
Print out fatal error in stderr as same as fatal() does. Signed-off-by: Masami Hiramatsu --- arch/um/kernel/physmem.c |8 arch/um/kernel/um_arch.c |2 +- arch/um/os-Linux/main.c |4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git

[RFC PATCH 4/7] um: Use non_fatal() for non-fatal information/warning messages

2017-04-28 Thread Masami Hiramatsu
Use non_fatal() for non-fatal information or warning messages instead of printf(). This also changes these messages output to stderr. Signed-off-by: Masami Hiramatsu --- arch/um/kernel/um_arch.c | 14 -- arch/um/kernel/umid.c|4 ++--

Re: [PATCH v2] arm64: Add ASM modifier for xN register operands

2017-04-28 Thread Mark Rutland
On Fri, Apr 28, 2017 at 11:20:21AM +0100, Ard Biesheuvel wrote: > On 28 April 2017 at 10:53, Mark Rutland wrote: > > On Fri, Apr 28, 2017 at 08:18:52AM +0100, Ard Biesheuvel wrote: > >> On 27 April 2017 at 23:52, Matthias Kaehlcke wrote: > >> > El Thu,

[PATCHv3 2/2] arm64: cpufeature: use static_branch_enable_cpuslocked()

2017-04-28 Thread Mark Rutland
Recently, the hotplug locking was conveted to use a percpu rwsem. Unlike the existing {get,put}_online_cpus() logic, this can't nest. Unfortunately, in arm64's secondary boot path we can end up nesting via static_branch_enable() in cpus_set_cap() when we detect an erratum. This leads to a stream

[PATCHv3 1/2] jump_label: Provide static_key_[enable|/slow_inc]_cpuslocked()

2017-04-28 Thread Mark Rutland
From: Sebastian Andrzej Siewior Provide static_key_[enable|slow_inc]_cpuslocked() variant that don't take cpu_hotplug_lock(). Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Mark Rutland Cc: Peter Zijlstra

[RFC PATCH 4/6] drm/i915: export i915 dmabuf_ops

2017-04-28 Thread Xiaoguang Chen
GVT-g will use i915's dmabuf_ops to implement its own dmabuf so exporting it. Signed-off-by: Xiaoguang Chen --- drivers/gpu/drm/i915/i915_drv.h| 2 ++ drivers/gpu/drm/i915/i915_gem_dmabuf.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 0/6] drm/i915/gvt: dma-buf support for GVT-g

2017-04-28 Thread Xiaoguang Chen
This patch set adds the dma-buf support for intel GVT-g. dma-buf is a uniform mechanism to share DMA buffers across different devices and sub-systems. dma-buf for intel GVT-g is mainly used to share the vgpu's framebuffer to other users or sub-systems so they can use the dma-buf to show the

[RFC PATCH 2/6] drm/i915/gvt: OpRegion support for GVT-g

2017-04-28 Thread Xiaoguang Chen
OpRegion is needed to support display related operation for intel vgpu. A vfio device region is added to intel vgpu to deliver the host OpRegion information to user space so user space can construct the OpRegion for vgpu. Signed-off-by: Bing Niu Signed-off-by: Xiaoguang Chen

[RFC PATCH 3/6] drm/i915/gvt: framebuffer decoder support for GVT-g

2017-04-28 Thread Xiaoguang Chen
decode frambuffer attributes of primary, cursor and sprite plane Signed-off-by: Xiaoguang Chen --- drivers/gpu/drm/i915/gvt/Makefile | 3 +- drivers/gpu/drm/i915/gvt/display.c| 2 +- drivers/gpu/drm/i915/gvt/display.h| 2 +

[RFC PATCH 1/6] drm/i915/gvt: extend the GVT-g architecture to support vfio device region

2017-04-28 Thread Xiaoguang Chen
Signed-off-by: Xiaoguang Chen --- drivers/gpu/drm/i915/gvt/kvmgt.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index 1ae0b40..3c6a02b 100644 ---

Re: [PATCH v2] arm64: Add ASM modifier for xN register operands

2017-04-28 Thread Mark Rutland
On Fri, Apr 28, 2017 at 08:18:52AM +0100, Ard Biesheuvel wrote: > On 27 April 2017 at 23:52, Matthias Kaehlcke wrote: > > El Thu, Apr 27, 2017 at 12:02:56PM +0100 Mark Rutland ha dit: > >> On Wed, Apr 26, 2017 at 02:46:16PM -0700, Matthias Kaehlcke wrote: > >> > - asm

[PATCH 4/5] arm64: dts: Add ipq8074 SoC and MTP board support

2017-04-28 Thread Varadarajan Narayanan
Add initial device tree support for the Qualcomm IPQ8074 SoC and HK01 evaluation board. Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan ---

[PATCH 1/5] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-04-28 Thread Varadarajan Narayanan
Add initial pinctrl driver to support pin configuration with pinctrl framework for ipq8074. Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Varadarajan Narayanan --- .../bindings/pinctrl/qcom,ipq8074-pinctrl.txt | 202

[PATCH 3/5] dt-bindings: qcom: Add IPQ8074 bindings

2017-04-28 Thread Varadarajan Narayanan
Signed-off-by: Varadarajan Narayanan --- Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.txt b/Documentation/devicetree/bindings/arm/qcom.txt index 028d16e..0ed4d39 100644 ---

[PATCH 0/5] Add minimal boot support for IPQ8074

2017-04-28 Thread Varadarajan Narayanan
The IPQ8074 is Qualcomm’s High-capacity 802.11ax SoC for Routers, Gateways and Access Points. This series adds minimal board boot support for ipq8074-hk01 board. Abhishek Sahu (2): clk: qcom: ipq8074: Add Global Clock Controller support arm64: defconfig: Enable QCOM IPQ8074 clock and pinctrl

Re: [PATCH v5] Staging: most: use __func__ instead of the function name

2017-04-28 Thread Greg KH
On Wed, Apr 26, 2017 at 04:16:58PM -0700, Chandra Annamaneni wrote: > > Change video.c to use %s, __func__ instead of function names. > Warnings flagged by checkpatch.pl > > Signed-off-by: Chandra Annamaneni This patch does not apply to my staging-next branch at all :(

Re: [Intel-gfx] [RFC PATCH 5/6] drm/i915/gvt: dmabuf support for GVT-g

2017-04-28 Thread Chris Wilson
On Fri, Apr 28, 2017 at 05:35:29PM +0800, Xiaoguang Chen wrote: > dmabuf for GVT-g can be exported to users who can use the dmabuf to show > the desktop of vm which use intel vgpu. > > Currently we provide query and create new dmabuf operations. > > Users of dmabuf can cache some created dmabufs

Re: [BUG] cannot mount nfs, bisected to 0db10944a76ba ("nfs: Convert to separately allocated bdi")

2017-04-28 Thread Jan Kara
Hello, thanks for report. I'm heading out now but I'll have a look next week. From a quick look it seems like some problem with uniqueness of bdi names as generated by NFS bdi. Honza On Fri 28-04-17 11:56:24, Corentin Labbe wrote:

Re: [PATCH v5 01/10] pinctrl: generic: Add bi-directional and output-enable

2017-04-28 Thread Geert Uytterhoeven
Hi Linus, On Fri, Apr 28, 2017 at 10:32 AM, Linus Walleij wrote: > On Thu, Apr 27, 2017 at 4:56 PM, Andy Shevchenko > wrote: >> On Thu, Apr 27, 2017 at 11:19 AM, Jacopo Mondi >> wrote: >>> Add bi-directional and

Re: [PATCH] MAINTAINERS: bfq: Add Paolo as maintainer for the BFQ I/O scheduler

2017-04-28 Thread Paolo Valente
> Il giorno 28 apr 2017, alle ore 12:10, Ulf Hansson > ha scritto: > > Seems like this was forgotten in the bfq-series from Paolo. Let's do it now > so people don't miss out involving Paolo for any future changes or when > reporting bugs. > > Signed-off-by: Ulf Hansson

[PATCH] ceph: fix memory leak in __ceph_setxattr()

2017-04-28 Thread Luis Henriques
The ceph_inode_xattr needs to be released when removing an xattr. Easily reproducible running the 'generic/020' test from xfstests or simply by doing: attr -s attr0 -V 0 /mnt/test && attr -r attr0 /mnt/test While there, also fix the error path. Here's the kmemleak splat: unreferenced object

[PATCH] drivers: staging: lustre: lustre: llite: file.c - fixed sparse warning about different fmode_t type

2017-04-28 Thread Andrea della Porta
Fixed the following sparse warning: CHECK drivers/staging/lustre/lustre/llite//file.c drivers/staging/lustre/lustre/llite//file.c:441:24: warning: incorrect type in assignment (different base types) drivers/staging/lustre/lustre/llite//file.c:441:24:expected restricted fmode_t

Re: rhashtable - Cap total number of entries to 2^31

2017-04-28 Thread Christian Borntraeger
On 04/28/2017 12:21 AM, Florian Fainelli wrote: > On 04/27/2017 02:16 PM, Florian Fainelli wrote: >> Hi Herbert, >> >> On 04/26/2017 10:44 PM, Herbert Xu wrote: >>> On Tue, Apr 25, 2017 at 10:48:22AM -0400, David Miller wrote: From: Florian Westphal Date: Tue, 25 Apr

[RFC PATCH 2/7] um: Use non_fatal() in check_coredump_limit

2017-04-28 Thread Masami Hiramatsu
Use non_fatal() instead of printf in check_coredump_limit(). Signed-off-by: Masami Hiramatsu --- arch/um/os-Linux/start_up.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index

[PATCH] ARM: qcom_defconfig: Enable IPQ4019 clock and pinctrl

2017-04-28 Thread Abhishek Sahu
These configs are required for booting kernel in QCOM IPQ4019 boards. Signed-off-by: Abhishek Sahu --- arch/arm/configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index

[RFC PATCH 6/7] um: Suppress non-fatal messages when quiet

2017-04-28 Thread Masami Hiramatsu
Suppress non-fatal boot messages when "quiet" kernel parameter is given. Signed-off-by: Masami Hiramatsu --- arch/um/os-Linux/util.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index

Re: [PATCH v2] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-28 Thread Horia Geantă
On 4/28/2017 1:32 PM, Greg KH wrote: > On Sat, Apr 22, 2017 at 09:44:49AM +0300, Horia Geantă wrote: >> When checking the response verb, the valid bit should be masked out, >> since its value flips depending on what Response Register >> (RR0 /RR1) it's been read from. >> >> Fixes: 321eecb06bfb

[PATCHv3 0/2] arm64: fix hotplug rwsem boot fallout

2017-04-28 Thread Mark Rutland
Hi, These patches fix a boot issue seen on some arm64 platforms as a result of the hotplug rwsem rework. Thomas, would you be able to take these into the tip smp/hotplug branch? Will has acked the arm64 part, and is happy for this to go via tip [1]. I've tested this atop of the tip smp/hotplug

Re: [PATCH v4 2/2] of: Add unit tests for applying overlays

2017-04-28 Thread Geert Uytterhoeven
Hi Frank, On Wed, Apr 26, 2017 at 2:09 AM, wrote: > From: Frank Rowand > > Existing overlay unit tests examine individual pieces of the overlay > code. The new tests target the entire process of applying an overlay. > > Signed-off-by: Frank

[PATCH 2/2] perf stat: balance opening/closing of events

2017-04-28 Thread Mark Rutland
While perf-stat has its own create_perf_stat_counter() helper to open events, dependent on target configuration, it uses perf_evlist__close() to close events. The common perf_evlist__{open,close}() helpers don't consider the target configuration, and always evsel->cpus even where

[PATCH 1/2] perf evsel: add per{cpu,thread} close helpers

2017-04-28 Thread Mark Rutland
We have perf_evsel__open_per_{cpu,thread}() helpers for opening events, but we have no corresponding helpers for closing events. This results in callers having to duplicate logic to determine the number of cpus and threads when closing an event, and makes it harder than necessary to determine

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-28 Thread Huang, Ying
Minchan Kim writes: > On Fri, Apr 28, 2017 at 04:05:26PM +0800, Huang, Ying wrote: >> Minchan Kim writes: >> >> > On Fri, Apr 28, 2017 at 09:09:53AM +0800, Huang, Ying wrote: >> >> Minchan Kim writes: >> >> >> >> > On Wed, Apr 26,

[PATCH 0/2] perf stat: fix segfault when closing events

2017-04-28 Thread Mark Rutland
Hi, These patches fix a segfault seen in some cases when perf stat is exiting. We don't balance opening/closing of events in all cases, and go out-of-bounds when we close events. Full details in the patch 2 commit message. Thanks, Mark. Mark Rutland (2): perf evsel: add per{cpu,thread} close

Re: Network cooling device and how to control NIC speed on thermal condition

2017-04-28 Thread Andrew Lunn
> I collect SoC temp every a few secs. Meantime, I use ethtool -s ethX > speed to manipulate link speed and to see how it impacts SoC > temp. My 4 PHYs and switch are integrated into SoC and I always > change link speed for all PHYs , no traffic on the link for this test. > Starting with 1Gb/s

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2017-04-28 Thread Petr Mladek
On Fri 2017-04-28 11:02:26, Peter Zijlstra wrote: > On Thu, Apr 27, 2017 at 03:38:19PM +0200, Petr Mladek wrote: > > Also we need to look for alternatives. There is a chance > > to create crashdump and get the ftrace messages from it. > > Also this might be scenario when we might need to suggest >

[PATCH v2 0/2] Introduce crtc->mode_valid() callback

2017-04-28 Thread Jose Abreu
This patchset introduces a new callback for crtc, called mode_valid() that is responsible to limit the number of probbed modes. Just like connector->mode_valid(), this new callback is called at mode probbing stage so that we can validate the mode. This is specially useful because arcpgu crtc is

[PATCH v2 2/2] drm: arcpgu: Use crtc->mode_valid() callback

2017-04-28 Thread Jose Abreu
Now that we have a callback to check if crtc supports a given mode we can use it in arcpgu so that we restrict the number of probbed modes to the ones we can actually display. This is specially useful because arcpgu crtc is responsible to set a clock value in the commit() stage but unfortunatelly

[PATCH v2 1/2] drm: Introduce crtc->mode_valid() callback

2017-04-28 Thread Jose Abreu
Some crtc's may have restrictions in the mode they can display. In this patch a new callback (crtc->mode_valid()) is introduced that is called at the same stage of connector->mode_valid() callback. This shall be implemented if the crtc has some sort of restriction so that we don't probe modes

RE: [PATCH v5 10/10] arm: dts: genmai: Add ethernet pin group

2017-04-28 Thread Chris Brandt
On Friday, April 28, 2017, Linus Walleij wrote: > > Add pin configuration subnode for ETHER ethernet controller. > > > > Signed-off-by: Jacopo Mondi > (...) > > + pins_bidir { > > + pinmux = ;/* P3_3 = > ET_MDIO

Re: [PATCH 00/14] sched/topology fixes

2017-04-28 Thread Peter Zijlstra
On Fri, Apr 28, 2017 at 03:19:58PM +0200, Peter Zijlstra wrote: > Hi, > > These patches are based upon the hard work of Lauro. He put in the time and > effort to understand and debug the code. > > So while I didn't take many of his actual patches; I want to thank him for > doing the work.

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2017-04-28 Thread Peter Zijlstra
On Fri, Apr 28, 2017 at 03:44:23PM +0200, Petr Mladek wrote: > On Fri 2017-04-28 11:02:26, Peter Zijlstra wrote: > > On Thu, Apr 27, 2017 at 03:38:19PM +0200, Petr Mladek wrote: > > > Also we need to look for alternatives. There is a chance > > > to create crashdump and get the ftrace messages

[PATCH] MAINTAINERS: Add myself as reviewer for Exynos

2017-04-28 Thread Shuah Khan
Adding myself as a reviewer for Exynos in the interest of keeping an eye on the Exynos platform and help keep it stable. Signed-off-by: Shuah Khan --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 38d3e4e..e361341 100644

[PATCH v5 0/1] Add support for pinctrl/gpio on Armada 37xx

2017-04-28 Thread Gregory CLEMENT
Hi, This fifth version contain only one patch all the other ones have been applied on the pinctrl or the mvebu trees. For the record, this series adds support for the pin and gpio controllers present on the Armada 37xx SoCs. Each Armada 37xx SoC comes with 2 pin controllers: one on the south

Re: [PATCH 2/2] arm64: pmu: Wire-up L2 cache events for ARMv8 PMUv3

2017-04-28 Thread Will Deacon
On Fri, Apr 28, 2017 at 03:15:01PM +0100, Catalin Marinas wrote: > On Thu, Apr 27, 2017 at 06:36:42PM +0100, Will Deacon wrote: > > On Tue, Apr 25, 2017 at 10:13:51AM -0700, Florian Fainelli wrote: > > > On 04/25/2017 05:44 AM, Will Deacon wrote: > > > > On Thu, Apr 20, 2017 at 12:05:46PM -0700,

Re: [PATCH v5 1/4] printk/nmi: generic solution for safe printk in NMI

2017-04-28 Thread Steven Rostedt
On Fri, 28 Apr 2017 14:57:25 +0200 Petr Mladek wrote: > Of course, if the problem is reproducible, the easiest solution > is to use bigger main log buffer, for example boot with > log_buf_len=32M. Of course that may not be enough. Especially when I have a machine with 240

[PATCH] staging: ks7010: remove line continuations in quoted strings

2017-04-28 Thread Ilia Sergachev
Checkpatch emits WARNING: Avoid line continuations in quoted strings. Remove line continuations - split strings using quotes. Signed-off-by: Ilia Sergachev --- drivers/staging/ks7010/ks_hostif.c | 20 ++-- 1 file changed, 14 insertions(+), 6

[RFC PATCH] trace/perf: cure locking issue in perf_event_open() error path

2017-04-28 Thread Sebastian Siewior
As trinity figured out, there is a recursive get_online_cpus() in perf_event_open()'s error path: | Call Trace: | dump_stack+0x86/0xce | __lock_acquire+0x2520/0x2cd0 | lock_acquire+0x27c/0x2f0 | get_online_cpus+0x3d/0x80 | static_key_slow_dec+0x5a/0x70 | sw_perf_event_destroy+0x8e/0x100 |

[PATCH v8 00/15] Replace PCI pool by DMA pool API

2017-04-28 Thread Romain Perier
by the dma pool API and remove the defines. Changes in v8: - Rebased series onto next-20170428 Changes in v7: - Rebased series onto next-20170416 - Added Acked-by, Tested-by and Reviwed-by tags Changes in v6: - Fixed an issue reported by kbuild test robot about changes in DAC960 - Removed patches

[PATCH v8 07/15] wireless: ipw2200: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/net/wireless/intel/ipw2x00/ipw2200.c |

[PATCH v8 01/15] block: DAC960: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin

Re: [PATCH net-next 17/18] net: dsa: mv88e6xxx: support the VTU Page bit

2017-04-28 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> +if (val & GLOBAL_VTU_VID_PAGE) >> +entry->vid |= 0x1000; > > I'm undecided myself, so i will just bring it up for discussion. > > Maybe it would be more readable to say: > > entry->vid += 4096; > > ??? VID values

[PATCH v8 12/15] scsi: mpt3sas: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/mpt3sas/mpt3sas_base.c | 73

[PATCH v8 14/15] scsi: pmcraid: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Acked-by: Peter Senna Tschudin Tested-by: Peter Senna Tschudin

[PATCH v8 15/15] PCI: Remove PCI pool macro functions

2017-04-28 Thread Romain Perier
Now that all the drivers use dma pool API, we can remove the macro functions for PCI pool. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- include/linux/pci.h | 9 - 1 file changed, 9 deletions(-) diff --git

[PATCH v8 11/15] scsi: megaraid: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin Acked-by: Sumit Saxena

Re: [PATCH] ipv6: ensure message length for raw socket is at least sizeof(ipv6hdr)

2017-04-28 Thread Alexander Potapenko
On Wed, Apr 26, 2017 at 3:00 PM, Alexander Potapenko wrote: > On Wed, Apr 26, 2017 at 10:54 AM, Alexander Potapenko > wrote: >> On Tue, Apr 25, 2017 at 7:55 PM, David Miller wrote: >>> From: Alexander Potapenko >>>

Re: [PATCH v3] usb: dwc3: add disable u2mac linestate check quirk

2017-04-28 Thread Rob Herring
On Wed, Apr 19, 2017 at 08:11:38PM +0800, William Wu wrote: > This patch adds a quirk to disable USB 2.0 MAC linestate check > during HS transmit. Refer the dwc3 databook, we can use it for > some special platforms if the linestate not reflect the expected > line state(J) during transmission. > >

Re: [PATCH v2] arm64: perf: Use only exclude_kernel attribute when kernel is running in HYP

2017-04-28 Thread Jayachandran C
On Thu, Apr 27, 2017 at 06:37:59PM +0100, Will Deacon wrote: > On Wed, Apr 26, 2017 at 01:41:42PM +, Jayachandran C wrote: > > On Wed, Apr 26, 2017 at 11:10:21AM +0100, Will Deacon wrote: > > > On Wed, Apr 26, 2017 at 07:22:46AM +, Pinski, Andrew wrote: > > > > On 4/25/2017 11:53 PM,

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-04-28 Thread Michal Hocko
On Fri 28-04-17 11:17:34, Laurent Dufour wrote: > On 28/04/2017 09:31, Michal Hocko wrote: > > [CC Johannes and Vladimir - the patch is > > http://lkml.kernel.org/r/1493130472-22843-2-git-send-email-lduf...@linux.vnet.ibm.com] > > > > On Fri 28-04-17 08:07:55, Michal Hocko wrote: > >> On Thu

Re: [PATCH v2 1/9] dt-bindings: display: sun4i: Add component endpoint ID numbering scheme

2017-04-28 Thread Rob Herring
On Fri, Apr 21, 2017 at 04:38:49PM +0800, Chen-Yu Tsai wrote: > The Allwinner display pipeline contains many hardware components, some > of which can consume data from one of multiple upstream components. > The numbering scheme of these components must be encoded into the device > tree so the

RE: [PATCH] iov_iter: don't revert if csum error

2017-04-28 Thread David Laight
From: Sabrina Dubroca > Sent: 28 April 2017 14:17 ... > > if (__skb_checksum_complete(skb)) > > - goto csum_error; > > + goto fault; > > With this patch, skb_copy_and_csum_datagram_msg() will return -EFAULT > for an incorrect checksum, that doesn't

Re: [PATCH] ceph: fix memory leak in __ceph_setxattr()

2017-04-28 Thread Yan, Zheng
> On 28 Apr 2017, at 18:14, Luis Henriques wrote: > > The ceph_inode_xattr needs to be released when removing an xattr. Easily > reproducible running the 'generic/020' test from xfstests or simply by > doing: > > attr -s attr0 -V 0 /mnt/test && attr -r attr0 /mnt/test >

[PATCH v5 1/1] pinctrl: armada-37xx: Add irqchip support

2017-04-28 Thread Gregory CLEMENT
The Armada 37xx SoCs can handle interrupt through GPIO. However it can only manage the edge ones. The way the interrupt are managed is classical so we can use the generic interrupt chip model. The only unusual "feature" is that many interrupts are connected to the parent interrupt controller.

Re: [PATCH 2/2] arm64: pmu: Wire-up L2 cache events for ARMv8 PMUv3

2017-04-28 Thread Catalin Marinas
On Thu, Apr 27, 2017 at 06:36:42PM +0100, Will Deacon wrote: > On Tue, Apr 25, 2017 at 10:13:51AM -0700, Florian Fainelli wrote: > > On 04/25/2017 05:44 AM, Will Deacon wrote: > > > On Thu, Apr 20, 2017 at 12:05:46PM -0700, Florian Fainelli wrote: > > >> The ARMv8 PMUv3 cache map did not include

Re: [patch] Re: x86-tip tsc/tick gripage

2017-04-28 Thread Mike Galbraith
On Fri, 2017-04-28 at 10:45 +0200, Mike Galbraith wrote: > Bah, nevermind. I forgot to restore command line. Well how 'bout that, it's not only old multi-socket boxen. I just reproduced on my i4790 desktop box. Boot virgin tip to init 3 with nowatchdog on command line, let box idle... [

[PATCH v3] sched/fair: update scale invariance of PELT

2017-04-28 Thread Vincent Guittot
The current implementation of load tracking invariance scales the contribution with current frequency and uarch performance (only for utilization) of the CPU. One main result of this formula is that the figures are capped by current capacity of CPU. Another one is that the load_avg is not

Re: [PATCH] staging: ks7010: remove line continuations in quoted strings

2017-04-28 Thread Dan Carpenter
On Fri, Apr 28, 2017 at 04:19:28PM +0200, Ilia Sergachev wrote: > Checkpatch emits WARNING: Avoid line continuations in quoted strings. > > Remove line continuations - split strings using quotes. > > Signed-off-by: Ilia Sergachev > --- >

[PATCH v8 10/15] scsi: lpfc: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. It also updates some comments, accordingly. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin ---

[PATCH v8 13/15] scsi: mvsas: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin --- drivers/scsi/mvsas/mv_init.c | 6 +++---

[PATCH v8 09/15] scsi: csiostor: Replace PCI pool old API

2017-04-28 Thread Romain Perier
The PCI pool API is deprecated. This commit replaces the PCI pool old API by the appropriate function with the DMA pool API. It also updates the name of some variables and the content of comments, accordingly. Signed-off-by: Romain Perier Reviewed-by: Peter Senna

Re: [PATCH] tpm: print tpm error code in hex for TPM2.0 devices

2017-04-28 Thread Jarkko Sakkinen
On Wed, Apr 26, 2017 at 03:39:54PM -0700, Jerry Snitselaar wrote: > For easier decoding, output the error code returned > from the tpm device in hex when the device is TPM2.0. > > Cc: Jarkko Sakkinen > Cc: Peter Huewe > Cc: Marcel Selhorst

RE: [PATCH v5 01/10] pinctrl: generic: Add bi-directional and output-enable

2017-04-28 Thread Chris Brandt
On Friday, April 28, 2017, Linus Walleij wrote: > > For me it looks like you are trying to alias open-drain + bias or > > alike. Don't actually see the benefit of it. > > Andy is bringing up a valid point. And I remember asking about this before. > > What does "bi-directional" really mean,

Re: [PATCH] usb: musb: musb_host: Introduce postponed URB giveback

2017-04-28 Thread Matwey V. Kornilov
which i 2017-04-28 14:58 GMT+03:00 Bin Liu : > On Fri, Apr 28, 2017 at 10:04:30AM +0300, Matwey V. Kornilov wrote: >> 2017-04-27 20:13 GMT+03:00 Bin Liu : >> > On Thu, Apr 27, 2017 at 07:26:31PM +0300, Matwey V. Kornilov wrote: >> >> 2017-04-27 18:35 GMT+03:00 Bin Liu

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