[PATCH v7 2/3] media: change au0828 to use Media Device Allocator API

2016-12-06 Thread Shuah Khan
Change au0828 to use Media Device Allocator API to allocate media device with the parent usb struct device as the key, so it can be shared with the snd_usb_audio driver. Signed-off-by: Shuah Khan --- No changes since v6 drivers/media/usb/au0828/au0828-core.c | 12 drivers/media/usb

[PATCH v3 1/2] clk: uniphier: add CPU-gear change (cpufreq) support

2016-12-06 Thread Masahiro Yamada
Core support code for CPU frequency changes, which will be used by the generic cpufreq driver. The register view is different from the generic clk-mux; it has a separate status register, and an update bit to load the register setting. Signed-off-by: Masahiro Yamada --- Changes in v3: - Do not

[PATCH v3 2/2] clk: uniphier: add cpufreq data for LD11, LD20 SoCs

2016-12-06 Thread Masahiro Yamada
Add more data to 64bit SoCs for the cpufreq support. Signed-off-by: Masahiro Yamada --- Changes in v3: - Do not use anonymous union Changes in v2: - Drop clock data of 32 bit SoCs. Add 64 bit SoC data for now. drivers/clk/uniphier/clk-uniphier-sys.c | 32

Re: [PATCH] clk: uniphier: Fix build with gcc-4.4.

2016-12-06 Thread Masahiro Yamada
Hi Stephen, 2016-12-07 8:16 GMT+09:00 Stephen Boyd : > On 12/03, Masahiro Yamada wrote: >> Hi Vinson, >> >> 2016-12-03 9:37 GMT+09:00 Vinson Lee : >> > gcc-4.4 has issues with anonymous unions in initializers. >> > >> > CC drivers/clk/uniphier/clk-uniphier-sys.o >> > drivers/clk/uniphier/c

[PATCH] device-dax: fix private mapping restriction, permit read-only

2016-12-06 Thread Dan Williams
Hugh notes in response to commit 4cb19355ea19 "device-dax: fail all private mapping attempts": "I think that is more restrictive than you intended: haven't tried, but I believe it rejects a PROT_READ, MAP_SHARED, O_RDONLY fd mmap, leaving no way to mmap /dev/dax without write permission to i

linux-next: build failure after merge of the tip tree

2016-12-06 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc64le perf) failed like this: LINK /home/sfr/next/perf/fixdep /bin/sh: 1: /home/sfr/next/perf//fixdep: Permission denied tools/build/Makefile.build:91: recipe for target '/home/sfr/next/perf/pmu-events/jevents.o' failed $

Re: [PATCH 0/7] arm: Add livepatch support

2016-12-06 Thread zhouchengming
On 2016/12/7 1:06, Abel Vesa wrote: This is just an idea I've been trying out for a while now. Just in case somebody wants to play with it, this applies to linux-arm/for-next. Also please note that this was only tested in qemu, but I will do some testing on some real hardware in the following d

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Stultz
On Tue, Dec 6, 2016 at 4:35 PM, John Stultz wrote: > On Tue, Dec 6, 2016 at 4:26 PM, John Youn wrote: >> On 12/6/2016 4:05 PM, John Stultz wrote: >>> On Tue, Dec 6, 2016 at 3:17 PM, John Youn wrote: Also, do you really need this at all? Wasn't your system previously able to detect the

Re: [PATCH 4/5] acpi, nfit: fix bus vs dimm confusion in xlat_status

2016-12-06 Thread Dan Williams
On Tue, Dec 6, 2016 at 4:39 PM, Dan Williams wrote: > Given dimms and bus commands share the same command number space we need > to be careful that we are translating status in the correct context. > Otherwise we can, for example, fail an ND_CMD_GET_CONFIG_SIZE command > because max_xfer is zero.

[RFC][PATCH] HACK: usb: dwc2: Workaround case where GOTGCTL state is wrong

2016-12-06 Thread John Stultz
Hey John, Just wanted to send this by you, as it seems something is slightly off with the GOTGCTL state when removing a otg adapter cable. The following seems to work around the issue I'm seeing. Let me know if you have any thoughts on this. thanks -john When removing a USB-A to USB-otg adapte

Re: [PATCH v2] tty: serial: fsl_lpuart: fix del_timer_sync() vs timer routine deadlock

2016-12-06 Thread Stefan Agner
On 2016-12-04 07:49, Nikita Yushchenko wrote: > Problem found via lockdep: > > - lpuart_set_termios() calls del_timer_sync(&sport->lpuart_timer) while > holding sport->port.lock > > - sport->lpuart_timer routine is lpuart_timer_func() that calls > lpuart_copy_rx_to_tty() that acquires same lo

Re: [PATCH 00/16] FSI device driver introduction

2016-12-06 Thread Sebastian Reichel
Hi. On Tue, Dec 06, 2016 at 06:14:21PM -0600, Chris Bostic wrote: > [...] > > Introduction of the IBM 'Flexible Support Interface' (FSI) bus device > driver. FSI is a high fan out serial bus consisting of a clock and a serial > data line capable of running at speeds up to 166 MHz. > > [...] I wo

Re: [PATCH v3 1/3] ARM: da850: fix infinite loop in clk_set_rate()

2016-12-06 Thread David Lechner
On 12/05/2016 04:09 AM, Bartosz Golaszewski wrote: The aemif clock is added twice to the lookup table in da850.c. This breaks the children list of pll0_sysclk3 as we're using the same list links in struct clk. When calling clk_set_rate(), we get stuck in propagate_rate(). &emac_clk is used twic

Re: [PATCH v4 2/7] MFD: add STM32 General Purpose Timer driver

2016-12-06 Thread kbuild test robot
Hi Benjamin, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.9-rc8] [cannot apply to next-20161206] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Benjamin-Gaignard/Add-PWM

Re: [PATCH 04/10] perf sched timehist: Split is_idle_sample()

2016-12-06 Thread Namhyung Kim
Hi David, On Mon, Dec 05, 2016 at 07:57:43PM -0800, David Ahern wrote: > On 12/5/16 7:40 PM, Namhyung Kim wrote: > > The is_idle_sample() function actually does more than determining > > whether sample come from idle task. Split the callchain part into > > save_task_callchain() to make it clearer

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Alexei Starovoitov
On Tue, Dec 6, 2016 at 1:02 PM, Arnaldo Carvalho de Melo wrote: [acme@jouet linux]$ ls -lah /tmp/perf > -rwxr-xr-x. 1 acme acme 41M Dec 6 17:58 /tmp/perf awesome. that's reasonable and matches to what I see with libbcc.so We had few tricks before to reduce it into <30M range, but they were too

Re: [PATCH 3/3] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Laura Abbott
On 12/06/2016 11:53 AM, Florian Fainelli wrote: > x86 has an option: CONFIG_DEBUG_VIRTUAL to do additional checks on > virt_to_phys calls. The goal is to catch users who are calling > virt_to_phys on non-linear addresses immediately. This includes caller > using __virt_to_phys() on image addresses

Re: [PATCH v3 3/3] ARM: da850: fix da850_set_pll0rate()

2016-12-06 Thread David Lechner
On 12/05/2016 04:09 AM, Bartosz Golaszewski wrote: This function is confusing - its second argument is an index to the freq table, not the requested clock rate in Hz, but it's used as the set_rate callback for the pll0 clock. It leads to an oops when the caller doesn't know the internals and pass

Re: [PATCH 3/7] arm: module: Add apply_relocate_add

2016-12-06 Thread kbuild test robot
Hi Abel, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc8 next-20161206] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Abel-Vesa/arm-Add-livepatch-support/20161207

[PATCH 11/16] drivers/fsi: Add device read/write/peek functions

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 47 +++

[PATCH 12/16] drivers/fsi: Set up links for slave communication

2016-12-06 Thread Chris Bostic
From: Chris Bostic Enable each link and send a break command in preparation for scanning each link for slaves. Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 39 --- drivers/fsi/fsi-master.h | 2 ++ 2 files changed, 38 insertions(+), 3 deletions

[PATCH 04/16] drivers/fsi: Add fsi master definition

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 20 drivers/fsi/fsi-master.h | 37 + 2 files changed, 57 insertions(+) create mode 100644 drivers/fsi/fsi-master.h diff --git a/dri

[PATCH 09/16] drivers/fsi: Implement slave initialisation

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Create fsi_slave devices during the master scan. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 55 -- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/drivers/fsi/fsi-core.c b

[PATCH 08/16] drivers/fsi: Add crc4 helpers

2016-12-06 Thread Chris Bostic
From: Jeremy Kerr Add some helpers for the crc checks for the slave configuration table. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr

Re: [PATCH 06/10] perf sched timehist: Introduce struct idle_time_data

2016-12-06 Thread Namhyung Kim
On Mon, Dec 05, 2016 at 08:07:09PM -0800, David Ahern wrote: > On 12/5/16 7:40 PM, Namhyung Kim wrote: > > The struct idle_time_data is to keep idle stats with callchains entering > > to the idle task. The normal thread_runtime calculation is done > > transparently since it extends the struct thre

Re: [PATCH 3/3] iio: cros_ec_activity: add ChromeOS EC Activity Sensors

2016-12-06 Thread kbuild test robot
Hi Gwendal, [auto build test WARNING on iio/togreg] [also build test WARNING on next-20161206] [cannot apply to v4.9-rc8] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Thierry-Escande/mfd

[PATCH] arm: dts: rockchip: add qos node for rk3288

2016-12-06 Thread Elaine Zhang
when pd power on/off, the qos regs need to save and restore. Signed-off-by: Elaine Zhang --- arch/arm/boot/dts/rk3288.dtsi | 84 +++ 1 file changed, 84 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 4fad1336

Re: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-06 Thread Namhyung Kim
On Mon, Dec 05, 2016 at 07:52:57PM -0800, David Ahern wrote: > On 12/5/16 7:40 PM, Namhyung Kim wrote: > > Sometimes samples have tid of 0 but non-0 pid. It ends up having a > > Any idea how that happens? It seems that an exiting task wakes up its parent and the parent might call wait(2) concurr

Re: [PATCH 3/3] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-06 Thread Florian Fainelli
On 12/06/2016 06:00 PM, Laura Abbott wrote: >> @@ -261,6 +261,16 @@ static inline unsigned long __phys_to_virt(phys_addr_t >> x) >> unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT) + \ >> PHYS_PFN_OFFSET) >> >> +#define __pa_symbol_nodebug(x) ((x) - (unsigned long)KERNEL_S

Re: [PATCH RFC] drm/sun4i: rgb: Add 5% tolerance to dot clock frequency check

2016-12-06 Thread Chen-Yu Tsai
On Wed, Dec 7, 2016 at 1:29 AM, Maxime Ripard wrote: > On Thu, Nov 24, 2016 at 07:22:31PM +0800, Chen-Yu Tsai wrote: >> The panels shipped with Allwinner devices are very "generic", i.e. >> they do not have model numbers or reliable sources of information >> for the timings (that we know of) other

Re: [PATCH] spi: davinci: Allow device tree devices to use DMA

2016-12-06 Thread David Lechner
On 11/21/2016 02:37 AM, Sekhar Nori wrote: On Sunday 20 November 2016 10:31 PM, David Lechner wrote: On 11/20/2016 06:59 AM, Sekhar Nori wrote: On Saturday 19 November 2016 10:11 AM, David Lechner wrote: @@ -400,6 +401,9 @@ static int davinci_spi_of_setup(struct spi_device *spi)

Re: [PATCH 4/7] arm: Add ftrace with regs support

2016-12-06 Thread Steven Rostedt
On Tue, 6 Dec 2016 17:06:04 + Abel Vesa wrote: > This adds __ftrace_regs_caller which, unlike __ftrace_caller, > adds register saving/restoring and livepatch handling if > the pc register gets modified by klp_ftrace_handler. > > Signed-off-by: Abel Vesa > --- > arch/arm/kernel/entry-ftrac

Re: [PATCH v4 1/2] perf sdt: add scanning of sdt probles arguments

2016-12-06 Thread Masami Hiramatsu
On Sat, 26 Nov 2016 01:58:02 +0100 Alexis Berlemont wrote: > During a "perf buildid-cache --add" command, the section > ".note.stapsdt" of the "added" binary is scanned in order to list the > available SDT markers available in a binary. The parts containing the > probes arguments were left unscan

Re: [PATCH 7/7] arm: Add livepatch necessary arch selects into Kconfig

2016-12-06 Thread Steven Rostedt
On Tue, 6 Dec 2016 17:06:07 + Abel Vesa wrote: > This adds HAVE_LIVEPATCH, MODULES_USE_ELF_RELA and HAVE_LIVEPATCH > to arm Kconfig. > > Signed-off-by: Abel Vesa Patch 5, 6 and 7 really ought to be one patch. -- Steve

Re: [PATCH] vfio/pci: Support error recovery

2016-12-06 Thread Cao jin
On 12/06/2016 11:35 PM, Alex Williamson wrote: > On Tue, 6 Dec 2016 18:46:04 +0800 > Cao jin wrote: > >> On 12/06/2016 12:59 PM, Alex Williamson wrote: >>> On Tue, 6 Dec 2016 05:55:28 +0200 >>> "Michael S. Tsirkin" wrote: >>> On Mon, Dec 05, 2016 at 09:17:30AM -0700, Alex Williamson wr

Re: [PATCH v3 0/7] irda: w83977af_ir: Neatening

2016-12-06 Thread David Miller
From: Joe Perches Date: Tue, 6 Dec 2016 10:15:59 -0800 > Originally on top of Arnd's overly long udelay patches because I > noticed a misindented block. That's now already fixed along with some > other whitespace problems. These patches are the remainder style > issues from my original series.

Re: [PATCH] vfio/pci: Support error recovery

2016-12-06 Thread Cao jin
On 12/06/2016 11:25 PM, Alex Williamson wrote: > On Tue, 6 Dec 2016 14:11:03 +0800 > Cao jin wrote: > >> On 12/06/2016 12:17 AM, Alex Williamson wrote: >>> On Mon, 5 Dec 2016 13:52:03 +0800 >>> Cao jin wrote: >>> On 12/04/2016 11:30 PM, Alex Williamson wrote: > On Sun, 4 Dec 2016

Re: [PATCH 03/12] power_supply: axp288_charger: Replace the extcon API

2016-12-06 Thread Sebastian Reichel
Hi Chanwoo, On Tue, Dec 06, 2016 at 09:26:14AM +0900, Chanwoo Choi wrote: > Could you please review and pick the patch3/4 for power-supply driver? Patches look fine. As I expect the merge window to open next week I would rather not queue this for 4.10 and instead do it once 4.10-rc1 has been tagg

Re: [PATCH] n900 device tree: cleanup

2016-12-06 Thread Sebastian Reichel
Hi Tony, It looks like this fell through the cracks. Apart from inconsistent patch subject: Reviewed-By: Sebastian Reichel -- Sebastian On Tue, Oct 11, 2016 at 10:12:43AM +0200, Pavel Machek wrote: > Fix GPIO comment to be consistent with rest of file and add comment what > tpa6130 is. > > Si

Re: [PATCH v2] drm/bridge: analogix: Don't return -EINVAL when panel not support PSR in PSR functions

2016-12-06 Thread Archit Taneja
On 12/07/2016 06:27 AM, zain wang wrote: We will ignored PSR setting if panel not support it. So, in this case, we should return from analogix_dp_enable/disable_psr() without any error code. Let's retrun 0 instead of -EINVAL when panel not support PSR in analogix_dp_enable/disable_psr(). Than

Re: [PATCH v2] tun: Use netif_receive_skb instead of netif_rx

2016-12-06 Thread David Miller
From: Jason Wang Date: Wed, 7 Dec 2016 11:21:11 +0800 > David, looks like this commit is not in net-next.git. > > Please help to check. Take a look, it should be there now.

Re: [PATCH v4 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-12-06 Thread Masami Hiramatsu
Hello Alexis, On Sat, 26 Nov 2016 01:58:03 +0100 Alexis Berlemont wrote: > An sdt probe can be associated with arguments but they were not passed > to the user probe tracing interface (uprobe_events); this patch adapts > the sdt argument descriptors according to the uprobe input format. Great!

Re: [PATCH v2] tun: Use netif_receive_skb instead of netif_rx

2016-12-06 Thread Jason Wang
On 2016年12月02日 03:43, David Miller wrote: From: Andrey Konovalov Date: Thu, 1 Dec 2016 10:34:40 +0100 This patch changes tun.c to call netif_receive_skb instead of netif_rx when a packet is received (if CONFIG_4KSTACKS is not enabled to avoid stack exhaustion). The difference between the tw

[PATCH] tracing: fix "softirq" flag detection

2016-12-06 Thread Pavankumar Kondeti
The 's' flag is supposed to indicate that a softirq is running. This can be detected by testing the preempt_count with SOFTIRQ_OFFSET. The current code tests the preempt_count with SOFTIRQ_MASK, which would be true even when softirqs are disabled but not serving a softirq. Change-Id: I084531ce806

Re: [PATCH] i2c: rk3x: keep i2c irq ON in suspend

2016-12-06 Thread David.Wu
Hi Doug, 在 2016/12/7 0:31, Doug Anderson 写道: Hi, On Tue, Dec 6, 2016 at 12:12 AM, David.Wu wrote: Hi Heiko, 在 2016/12/5 18:54, Heiko Stuebner 写道: Hi David, Am Montag, 5. Dezember 2016, 16:02:59 CET schrieb David Wu: During suspend there may still be some i2c access happening. And if we

Re: [PATCH v2] tun: Use netif_receive_skb instead of netif_rx

2016-12-06 Thread Jason Wang
On 2016年12月07日 11:25, David Miller wrote: From: Jason Wang Date: Wed, 7 Dec 2016 11:21:11 +0800 David, looks like this commit is not in net-next.git. Please help to check. Take a look, it should be there now. Yes, thanks.

Re: [PATCH 03/12] power_supply: axp288_charger: Replace the extcon API

2016-12-06 Thread Chanwoo Choi
Hi Sebastian, On 2016년 12월 07일 12:05, Sebastian Reichel wrote: > Hi Chanwoo, > > On Tue, Dec 06, 2016 at 09:26:14AM +0900, Chanwoo Choi wrote: >> Could you please review and pick the patch3/4 for power-supply driver? > > Patches look fine. As I expect the merge window to open next week I > would

Re: [RFC][PATCH] HACK: usb: dwc2: Workaround case where GOTGCTL state is wrong

2016-12-06 Thread John Youn
On 12/6/2016 5:48 PM, John Stultz wrote: > Hey John, > Just wanted to send this by you, as it seems something is > slightly off with the GOTGCTL state when removing a otg adapter > cable. The following seems to work around the issue I'm seeing. > > Let me know if you have any thoughts on this. >

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread Chanwoo Choi
Hi John, I give a some guide for extcon API. This patch uses the deprecated extcon API (extcon_get_cable_state_). So, I recommend that you better to use following extcon API: - extcon_get_cable_state_() -> extcon_get_state() - extcon_register_notifier() -> devm_extcon_register_notifier() Best Re

[PATCH] staging/lustre/osc: Revert erroneous list_for_each_entry_safe use

2016-12-06 Thread Oleg Drokin
I have been having a lot of unexplainable crashes in osc_lru_shrink lately that I could not see a good explanation for and then I found this patch that slip under the radar somehow that incorrectly converted while loop for lru list iteration into list_for_each_entry_safe totally ignoring that in th

[PATCH net-next 0/2] Initial driver for Synopsys DWC XLGMAC

2016-12-06 Thread Jie Deng
This series provides the support for 25/40/50/100 GbE devices using Synopsys DWC Enterprise Ethernet (XLGMAC). The first patch adds support for Synopsys XLGMII. The second patch provides the initial driver for Synopsys XLGMAC The driver has three layers by refactoring AMD XGBE. dwc-eth-xxx.x T

[PATCH net-next 1/2] net: phy: add extension of phy-mode for XLGMII

2016-12-06 Thread Jie Deng
This patch adds phy-mode support for Synopsys XLGMAC Signed-off-by: Jie Deng --- Documentation/devicetree/bindings/net/ethernet.txt | 1 + include/linux/phy.h| 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet.txt

[net-next][PATCH v2 05/18] RDS: RDMA: fix the ib_map_mr_sg_zbva() argument

2016-12-06 Thread Santosh Shilimkar
Fixes warning: Using plain integer as NULL pointer Signed-off-by: Santosh Shilimkar --- net/rds/ib_frmr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/rds/ib_frmr.c b/net/rds/ib_frmr.c index d921adc..66b3d62 100644 --- a/net/rds/ib_frmr.c +++ b/net/rds/ib_frmr.c @

[net-next][PATCH v2 07/18] RDS: RDMA: return appropriate error on rdma map failures

2016-12-06 Thread Santosh Shilimkar
The first message to a remote node should prompt a new connection even if it is RDMA operation. For RDMA operation the MR mapping can fail because connections is not yet up. Since the connection establishment is asynchronous, we make sure the map failure because of unavailable connection reach to

[net-next][PATCH v2 00/18] net: RDS updates

2016-12-06 Thread Santosh Shilimkar
v1->v2: Re-aligned indentation in patch 'RDS: mark few internal functions Series consist of: - RDMA transport fixes for map failure, listen sequence, handler panic and composite message notification. - Couple of sparse fixes. - Message logging improvements for bind failure, use once mr seman

[net-next][PATCH v2 02/18] RDS: mark few internal functions static to make sparse build happy

2016-12-06 Thread Santosh Shilimkar
Fixes below warnings: warning: symbol 'rds_send_probe' was not declared. Should it be static? warning: symbol 'rds_send_ping' was not declared. Should it be static? warning: symbol 'rds_tcp_accept_one_path' was not declared. Should it be static? warning: symbol 'rds_walk_conn_path_info' was not dec

[net-next][PATCH v2 09/18] RDS: RDMA: silence the use_once mr log flood

2016-12-06 Thread Santosh Shilimkar
In absence of extension headers, message log will keep flooding the console. As such even without use_once we can clean up the MRs so its not really an error case message so make it debug message Signed-off-by: Santosh Shilimkar --- net/rds/rdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 dele

[net-next][PATCH v2 17/18] RDS: add receive message trace used by application

2016-12-06 Thread Santosh Shilimkar
Socket option to tap receive path latency in various stages in nano seconds. It can be enabled on selective sockets using using SO_RDS_MSG_RXPATH_LATENCY socket option. RDS will return the data to application with RDS_CMSG_RXPATH_LATENCY in defined format. Scope is left to add more trace points for

[net-next][PATCH v2 12/18] RDS: IB: Add vector spreading for cqs

2016-12-06 Thread Santosh Shilimkar
Based on available device vectors, allocate cqs accordingly to get better spread of completion vectors which helps performace great deal.. Signed-off-by: Santosh Shilimkar --- net/rds/ib.c| 11 +++ net/rds/ib.h| 5 + net/rds/ib_cm.c | 40 +

[net-next][PATCH v2 03/18] RDS: IB: include faddr in connection log

2016-12-06 Thread Santosh Shilimkar
Also use pr_* for it. Signed-off-by: Santosh Shilimkar --- net/rds/ib_cm.c | 19 +-- net/rds/ib_recv.c | 4 ++-- net/rds/ib_send.c | 4 ++-- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index 5b2ab95..b9da1e5 100644 --- a/

[net-next][PATCH v2 06/18] RDS: RDMA: start rdma listening after init

2016-12-06 Thread Santosh Shilimkar
From: Qing Huang This prevents RDS from handling incoming rdma packets before RDS completes initializing its recv/send components. Signed-off-by: Qing Huang Signed-off-by: Santosh Shilimkar --- net/rds/rdma_transport.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --

linux-next: manual merge of the staging tree with the net-next tree

2016-12-06 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/slicoss/slicoss.c between commit: a52ad514fdf3 ("net: deprecate eth_change_mtu, remove usage") from the net-next tree and commit: 0af72df267f2 ("staging: slicoss: remove the staging driver") from t

[net-next][PATCH v2 11/18] RDS: IB: add few useful cache stasts

2016-12-06 Thread Santosh Shilimkar
Tracks the ib receive cache total, incoming and frag allocations. Signed-off-by: Santosh Shilimkar --- net/rds/ib.h | 7 +++ net/rds/ib_recv.c | 6 ++ net/rds/ib_stats.c | 2 ++ 3 files changed, 15 insertions(+) diff --git a/net/rds/ib.h b/net/rds/ib.h index 97e7696..4987387 1006

[net-next][PATCH v2 01/18] RDS: log the address on bind failure

2016-12-06 Thread Santosh Shilimkar
It's useful to know the IP address when RDS fails to bind a connection. Thus, adding it to the error message. Orabug: 21894138 Reviewed-by: Wei Lin Guay Signed-off-by: Santosh Shilimkar --- net/rds/bind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rds/bind.c b/n

[net-next][PATCH v2 04/18] RDS: IB: make the transport retry count smallest

2016-12-06 Thread Santosh Shilimkar
Transport retry is not much useful since it indicate packet loss in fabric so its better to failover fast rather than longer retry. Signed-off-by: Santosh Shilimkar --- net/rds/ib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rds/ib.h b/net/rds/ib.h index 45ac8e8..f4e

[net-next][PATCH v2 15/18] RDS: add stat for socket recv memory usage

2016-12-06 Thread Santosh Shilimkar
From: Venkat Venkatsubra Tracks the receive side memory added to scokets and removed from sockets. Signed-off-by: Venkat Venkatsubra Signed-off-by: Santosh Shilimkar --- net/rds/rds.h | 3 +++ net/rds/recv.c | 4 2 files changed, 7 insertions(+) diff --git a/net/rds/rds.h b/net/rds/rds

[net-next][PATCH v2 18/18] RDS: IB: add missing connection cache usage info

2016-12-06 Thread Santosh Shilimkar
rds-tools already support it. Signed-off-by: Santosh Shilimkar --- include/uapi/linux/rds.h | 1 + net/rds/ib.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h index 3833113..410ae3c 100644 --- a/include/uapi/linux/rds.h +++ b

[net-next][PATCH v2 14/18] RDS: IB: fix panic due to handlers running post teardown

2016-12-06 Thread Santosh Shilimkar
Shutdown code reaping loop takes care of emptying the CQ's before they being destroyed. And once tasklets are killed, the hanlders are not expected to run. But because of core tasklet code issues, tasklet handler could still run even after tasklet_kill, RDS IB shutdown code already reaps the CQs b

[net-next][PATCH v2 16/18] RDS: make message size limit compliant with spec

2016-12-06 Thread Santosh Shilimkar
From: Avinash Repaka RDS support max message size as 1M but the code doesn't check this in all cases. Patch fixes it for RDMA & non-RDMA and RDS MR size and its enforced irrespective of underlying transport. Signed-off-by: Avinash Repaka Signed-off-by: Santosh Shilimkar --- net/rds/rdma.c |

[net-next][PATCH v2 13/18] RDS: RDMA: Fix the composite message user notification

2016-12-06 Thread Santosh Shilimkar
When application sends an RDS RDMA composite message consist of RDMA transfer to be followed up by non RDMA payload, it expect to be notified *only* when the full message gets delivered. RDS RDMA notification doesn't behave this way though. Thanks to Venkat for debug and root casuing the issue whe

[net-next][PATCH v2 08/18] RDS: IB: split the mr registration and invalidation path

2016-12-06 Thread Santosh Shilimkar
MR invalidation in RDS is done in background thread and not in data path like registration. So break the dependency between them which helps to remove the performance bottleneck. Signed-off-by: Santosh Shilimkar --- net/rds/ib.h | 4 +++- net/rds/ib_cm.c | 9 +++-- net/rds/ib_frmr.c

[net-next][PATCH v2 10/18] RDS: IB: track and log active side endpoint in connection

2016-12-06 Thread Santosh Shilimkar
Useful to know the active and passive end points in a RDS IB connection. Signed-off-by: Santosh Shilimkar --- net/rds/ib.h| 3 +++ net/rds/ib_cm.c | 11 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/net/rds/ib.h b/net/rds/ib.h index f14c26d..97e7696 100644 ---

Re: [PATCH 02/10] drm/virtio: fix endianness in primary_plane_update

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: virtio_gpu_cmd_transfer_to_host_2d expects x and y parameters in LE, but virtio_gpu_primary_plane_update passes in the CPU format instead. Signed-off-by: Michael S. Tsirkin --- drivers/gpu/drm/virtio/virtgpu_plane.c | 4 ++-- 1 file changed,

Re: [PATCH 03/10] drm/virtio: fix lock context imbalance

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: When virtio_gpu_free_vbufs exits due to list empty, it does not drop the free_vbufs lock that it took. list empty is not expected to happen anyway, but it can't hurt to fix this and drop the lock. Signed-off-by: Michael S. Tsirkin --- drivers/

Re: [PATCH 01/10] virtio_console: drop unused config fields

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: struct ports_device includes a config field including the whole virtio_console_config, but only max_nr_ports in there is ever updated or used. The rest is unused and in fact does not even mirror the device config. Drop everything except max_nr_por

Re: [RFC][PATCH 1/3 v2] usb: dwc2: Add extcon support to dwc2 driver

2016-12-06 Thread John Stultz
On Tue, Dec 6, 2016 at 7:54 PM, Chanwoo Choi wrote: > Hi John, > > I give a some guide for extcon API. > This patch uses the deprecated extcon API (extcon_get_cable_state_). > So, I recommend that you better to use following extcon API: > - extcon_get_cable_state_() -> extcon_get_state() > - extc

Re: [PATCH 04/10] drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_locked

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: virtio_gpu_queue_ctrl_buffer_locked is called with ctrlq.qlock taken, it releases and acquires this lock. This causes a sparse warning. Add appropriate annotations for sparse context checking. Signed-off-by: Michael S. Tsirkin --- drivers/gp

Re: [PATCH 05/10] vhost: make interval tree static inline

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: vhost_umem_interval_tree is only used locally within vhost.c, mark it static. As some functions generated go unused, this triggers warnings unless we also mark it inline. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 2 +- 1 f

Re: [PATCH 06/10] vhost: add missing __user annotations

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: Several vhost functions were missing __user annotations on pointers, causing sparse warnings. Fix this up. Signed-off-by: Michael S. Tsirkin --- drivers/vhost/vhost.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --gi

Re: [PATCH 07/10] vsock/virtio: add a missing __le annotation

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:40, Michael S. Tsirkin wrote: guest cid is read from config space, therefore it's in little endian format and is treated as such, annotate it accordingly. Signed-off-by: Michael S. Tsirkin --- net/vmw_vsock/virtio_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH 08/10] vsock/virtio: mark an internal function static

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:41, Michael S. Tsirkin wrote: virtio_transport_alloc_pkt is only used locally, make it static. Signed-off-by: Michael S. Tsirkin --- net/vmw_vsock/virtio_transport_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/vmw_vsock/virtio_transport_

Re: [PATCH 3/5] arm64: dts: exynos5433: Add PPMU dt node

2016-12-06 Thread Chanwoo Choi
On 2016년 12월 07일 04:07, Krzysztof Kozlowski wrote: > On Fri, Dec 02, 2016 at 04:18:05PM +0900, Chanwoo Choi wrote: >> This patch adds PPMU (Platform Performance Monitoring Unit) Device-tree node >> to measure the utilization of each IP in Exynos SoC. >> >> - PPMU_D{0|1}_CPU are used to measure the

Re: [PATCH 09/10] vsock/virtio: fix src/dst cid format

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:41, Michael S. Tsirkin wrote: These fields are 64 bit, using le32_to_cpu and friends on these will not do the right thing. Fix this up. Cc: sta...@vger.kernel.org Signed-off-by: Michael S. Tsirkin --- net/vmw_vsock/virtio_transport_common.c | 14 +++--- 1 file cha

[PATCH 1/5] staging/lustre/o2iblnd: Add missing space

2016-12-06 Thread Oleg Drokin
checkpatch highlighted missing space before assignment for lock variable. + spinlock_t *lock= &kiblnd_data.kib_connd_lock; Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stag

[PATCH 2/5] staging/lustre/socklnd: Fix whitespace problem

2016-12-06 Thread Oleg Drokin
checkpatch highlighted there are 8 spaces that could be converted to a tab: ERROR: code indent should use tabs where possible +^I^I^I^I^I */$ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 0/5] Lustre style fixes

2016-12-06 Thread Oleg Drokin
These patches fix some more of the low hanging fruits in the style problems highlighted by checkpatch. Now only false positive ERRORs are left. This also converts all bare unsigneds into unsigned ints and a couple of spelling fixes. Please consider. Oleg Drokin (5): staging/lustre/o2iblnd: Add

[PATCH 4/5] staging/lustre/o2iblnd: Fix misspelling intialized->intialized

2016-12-06 Thread Oleg Drokin
Highlighted by checkpatch: + if (!ps->ps_net) /* intialized? */ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c b/drivers/staging/

[PATCH 5/5] staging/lustre/o2iblnd: Fix misspelled attemps->attempts

2016-12-06 Thread Oleg Drokin
Highlighted by checkpatch: WARNING: 'attemps' may be misspelled - perhaps 'attempts'? #20278: FILE: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c:3272: + * reconnection attemps. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 2 +- 1 file changed,

[PATCH 3/5] staging/lustre: Convert all bare unsigned to unsigned int

2016-12-06 Thread Oleg Drokin
Highlighted by relatively new checkpatch test, warnings like: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Oleg Drokin --- drivers/staging/lustre/include/linux/lnet/lnetst.h | 6 +- .../staging/lustre/lustre/include/lprocfs_status.h | 3 +- drivers/staging/lustre/lus

Re: [PATCH] net: return value of skb_linearize should be handled in Linux kernel

2016-12-06 Thread Cong Wang
On Mon, Dec 5, 2016 at 11:10 PM, Zhouyi Zhou wrote: > diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c > b/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c > index 2a653ec..ab787cb 100644 > --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c > +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_f

Re: [PATCH 1/1] mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()

2016-12-06 Thread Marek Vasut
On 12/07/2016 12:38 AM, Cyrille Pitchen wrote: > Le 06/12/2016 à 20:00, Marek Vasut a écrit : >> On 12/06/2016 06:14 PM, Cyrille Pitchen wrote: >>> This patch removes the WARN_ONCE() test in spi_nor_write(). >>> This macro triggers the display of a warning message almost every time we >>> use a UBI

Re: [PATCH] net: wireless: realtek: constify rate_control_ops structures

2016-12-06 Thread Jes Sorensen
Larry Finger writes: > On 12/02/2016 03:50 AM, Bhumika Goyal wrote: >> The structures rate_control_ops are only passed as an argument to the >> functions ieee80211_rate_control_{register/unregister}. This argument is >> of type const, so rate_control_ops having this property can also be >> declare

[PATCH v2 1/2] misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present

2016-12-06 Thread Peter Rosin
The SSC is currently not usable with the ASoC simple-audio-card, as every SSC audio user has to build a platform driver that may do as little as calling atmel_ssc_set_audio/atmel_ssc_put_audio (which allocates the SSC and registers a DAI with the ASoC subsystem). So, have that happen automatically

Re: [PATCH 10/10] virtio: enable endian checks for sparse builds

2016-12-06 Thread Jason Wang
On 2016年12月06日 23:41, Michael S. Tsirkin wrote: __CHECK_ENDIAN__ isn't on by default presumably because it triggers too many sparse warnings for correct code. But virtio is now clean of these warnings, and we want to keep it this way - enable this for sparse builds. Signed-off-by: Michael S. T

[PATCH v2 2/5] perf report: Find the inline stack for a given address

2016-12-06 Thread Jin Yao
It would be useful for perf to support a mode to query the inline stack for a given callgraph address. This would simplify finding the right code in code that does a lot of inlining. The srcline.c has contained the code which supports to translate the address to filename:line_nr. This patch just e

[PATCH v2 4/5] perf report: Show inline stack in stdio mode

2016-12-06 Thread Jin Yao
If the address belongs to an inlined function, the source information back to the first non-inlined function will be printed. For example: 0.05% test2test2 [.] main | ---/home/jinyao/perf-dev/test/test2.c:27 (inline) /home/jinyao/perf-dev/test/test2.c:35

[PATCH v2 5/5] perf report: Show inline stack in browser mode

2016-12-06 Thread Jin Yao
For example: -0.05% test2test2 [.] main /home/jinyao/perf-dev/test/test2.c:27 (inline) /home/jinyao/perf-dev/test/test2.c:35 (inline) /home/jinyao/perf-dev/test/test2.c:45 (inline) /home/jinyao/perf-dev/test/test2.c:61 (inline) Signed-off-by: Jin Yao ---

[PATCH v2 3/5] perf report: Create a new option "--inline"

2016-12-06 Thread Jin Yao
It takes some time to look for inline stack for callgraph addresses. So it provides a new option "--inline" to let user decide if enable this feature. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 4 tools/perf/builtin-report.c | 2 ++ tools/perf/util/sy

[PATCH v2 0/5] perf report: Show inline stack

2016-12-06 Thread Jin Yao
v2: Thanks so much for Arnaldo's comments! The modifications are: 1. Divide v1 patch "perf report: Find the inline stack for a given address" into 2 patches: a. perf report: Refactor common code in srcline.c b. perf report: Find the inline stack for a given address

[PATCH v2 1/5] perf report: Refactor common code in srcline.c

2016-12-06 Thread Jin Yao
Introduce dso__name() and filename_split() out of existing code because these codes will be used in several places in next patch. For filename_split(), it may also solve a potential memory leak in existing code. In existing addr2line(), sep = strchr(filename, ':'); if (sep) {

<    3   4   5   6   7   8   9   >