Re: [PATCH V2 net 07/20] net/ena: refactor ena_get_stats64 to be atomic context safe

2016-12-04 Thread Matt Wilson
On Sun, Dec 04, 2016 at 03:19:25PM +0200, Netanel Belgazal wrote: > ndo_get_stat64 can be called from atomic context. > However the current implementation sends an admin command to retrieve > the statistics from the device. > This admin commands uses sleep. Suggest some comment edits: ndo_get_sta

Re: [PATCH V2 net 06/20] net/ena: fix NULL dereference when removing the driver after device reset faild

2016-12-04 Thread Matt Wilson
On Sun, Dec 04, 2016 at 03:19:24PM +0200, Netanel Belgazal wrote: > If for some reason the device stop responding and the device reset failed > to recover the device, the mmio register read datastructure will not be > reinitialized. If for some reason the device stops responding, and the device re

Re: [PATCH V2 net 08/20] net/ena: add hardware hints capability to the driver

2016-12-04 Thread Matt Wilson
On Sun, Dec 04, 2016 at 03:19:26PM +0200, Netanel Belgazal wrote: > The ENA device can update the ena driver about the desire timeouts. > The hardware hints are transmitted as Asynchronous event to the driver. This is really a new feature, not a bugfix - correct? If it is a new feature, submit it

Re: [PATCH V2 net 13/20] net/ena: change driver's default timeouts

2016-12-04 Thread Matt Wilson
On Sun, Dec 04, 2016 at 03:19:31PM +0200, Netanel Belgazal wrote: ... because? (they turned out to be too aggressive, I believe.) > Signed-off-by: Netanel Belgazal > --- > drivers/net/ethernet/amazon/ena/ena_com.c| 4 ++-- > drivers/net/ethernet/amazon/ena/ena_netdev.h | 7 --- > 2 file

Re: [PATCH v6 1/2] mtd: arasan: Add device tree binding documentation

2016-12-04 Thread Marek Vasut
On 12/05/2016 05:11 AM, Punnaiah Choudary Kalluri wrote: > This patch adds the dts binding document for arasan nand flash > controller. > > Signed-off-by: Punnaiah Choudary Kalluri > Acked-by: Rob Herring > --- > changes in v6: > - Removed num-cs property > - Separated nandchip from nand control

Re: [PATCH v6 2/2] mtd: nand: Add support for Arasan Nand Flash Controller

2016-12-04 Thread Marek Vasut
On 12/05/2016 05:11 AM, Punnaiah Choudary Kalluri wrote: > Added the basic driver for Arasan Nand Flash Controller used in > Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit > correction. Ummm, NAND, ECC, can you fix the acronyms to be in caps ? > Signed-off-by: Punnaiah Choudary Ka

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

2016-12-04 Thread Wangnan (F)
On 2016/12/5 10:36, Wangnan (F) wrote: On 2016/12/2 23:44, Arnaldo Carvalho de Melo wrote: Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. t

[PATCH v6 2/2] mtd: nand: Add support for Arasan Nand Flash Controller

2016-12-04 Thread Punnaiah Choudary Kalluri
Added the basic driver for Arasan Nand Flash Controller used in Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit correction. Signed-off-by: Punnaiah Choudary Kalluri --- Chnages in v6: - Addressed most of the Brian and Boris comments - Separated the nandchip from the nand controller

linux-next: build failure in the powerpc allyesconfig build

2016-12-04 Thread Stephen Rothwell
Hi all, After mergeing everything but Andrew's tree, today's linux-next build (powerpc allyesconfig) failed like this: kallsyms failure: relative symbol value 0xc000 out of range in relative mode I have no idea what caused this, so I have left the powerpc allyesconfig build broken f

[PATCH 0/3] clkdev: add devm_get_clk_from_child()

2016-12-04 Thread Kuninori Morimoto
Hi Stephen This is v5 of "clkdev: add devm_of_clk_get()", but new series. I hope my understanding was correct with your idea. Kuninori Morimoto (3): 1) clkdev: add devm_get_clk_from_child() 2) ASoC: simple-card: use devm_get_clk_from_child() 3) ASoC: simple-card-utils: enable clocks/clock-

[PATCH 2/3] ASoC: simple-card: use devm_get_clk_from_child()

2016-12-04 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils is getting clk by of_clk_get(), but didn't call clk_free(). Now we can use devm_get_clk_from_child() for this purpose. Let's use it. Signed-off-by: Kuninori Morimoto --- include/sound/simple_card_utils.h | 11 ++- sound/soc/generic

[PATCH 3/3] ASoC: simple-card-utils: enable clocks/clock-names/clock-ranges

2016-12-04 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card is supporting this style for clocks sound { ... simple-audio-card,cpu { sound-dai = <&xxx>; clocks = <&cpu_clock>; }; simple-audio-c

Re: linux-next: build failure in the powerpc allyesconfig build

2016-12-04 Thread Stephen Rothwell
Hi all, On Mon, 5 Dec 2016 16:22:04 +1100 Stephen Rothwell wrote: > > After mergeing everything but Andrew's tree, today's linux-next build > (powerpc allyesconfig) failed like this: > > kallsyms failure: relative symbol value 0xc000 out of range in > relative mode > > I have no i

[PATCH 1/3] clkdev: add devm_get_clk_from_child()

2016-12-04 Thread Kuninori Morimoto
From: Kuninori Morimoto Some driver is using this type of DT bindings for clock (more detail, see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt). sound_soc { ... cpu { clocks = <&xxx>; ...

[PATCH v3] mach-omap2: fixing wrong strcat for Non-NULL terminated string

2016-12-04 Thread Maninder Singh
Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it won't overflow the buffer. Reported-by: Maninder Singh Signed-off-by: Vaneet Narang Signed-off-by: Russell

linux-next: manual merge of the akpm-current tree with Linus' tree

2016-12-04 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: mm/workingset.c between commit: 20ab67a563f5 ("mm: workingset: fix NULL ptr in count_shadow_nodes") from Linus' tree and commit: 8b6983cf8ca6 ("mm: workingset: update shadow limit to reflect bigger active l

Re: linux-next: build failure in the powerpc allyesconfig build

2016-12-04 Thread Nicholas Piggin
On Mon, 5 Dec 2016 16:24:31 +1100 Stephen Rothwell wrote: > Hi all, > > On Mon, 5 Dec 2016 16:22:04 +1100 Stephen Rothwell > wrote: > > > > After mergeing everything but Andrew's tree, today's linux-next build > > (powerpc allyesconfig) failed like this: > > > > kallsyms failure: relative sym

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

2016-12-04 Thread Cao jin
On 12/04/2016 11:30 PM, Alex Williamson wrote: > On Sun, 4 Dec 2016 20:16:42 +0800 > Cao jin wrote: > >> On 12/01/2016 10:55 PM, Alex Williamson wrote: >>> On Thu, 1 Dec 2016 21:40:00 +0800 >> > If an AER fault occurs and the user doesn't do a reset, what > happens when that device is

Re: linux-next: possible removal of the kvm-ppc tree

2016-12-04 Thread Alexander Graf
Hi Stephen, > Am 05.12.2016 um 01:39 schrieb Stephen Rothwell : > > Hi Alexander, > > I noticed that the kvm-ppc tree > (git://github.com/agraf/linux-2.6.git#kvm-ppc-next) has not been > updated for over a year. I was wondering if I should remove it from > linux-next? > > If so, I will rename

Re: linux-next: manual merge of the akpm-current tree with Linus' tree

2016-12-04 Thread Michal Hocko
On Mon 05-12-16 16:38:08, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > mm/workingset.c > > between commit: > > 20ab67a563f5 ("mm: workingset: fix NULL ptr in count_shadow_nodes") > > from Linus' tree and commit: > > 8b

Re: [PATCH V2 net 10/20] net/ena: remove redundant logic in napi callback for busy poll mode

2016-12-04 Thread Eric Dumazet
On Sun, 2016-12-04 at 15:19 +0200, Netanel Belgazal wrote: > sk_busy_loop can call the napi callback few million times a sec. > For each call there is unmask interrupt. > We want to reduce the number of unmasks. > > Add an atomic variable that will tell the napi handler if > it was called from irq

linux-next: Tree for Dec 5

2016-12-04 Thread Stephen Rothwell
Hi all, Changes since 20161202: The powerpc allyesconfig build fails for this release. The pinctrl tree gained a build failure so I used the version from next-20161202. The kvm-ppc-paulus tree gained a conflict against Linus' tree. The akpm-current tree gained a conflict against Linus' tree.

[PATCH 1/4] g_NCR5380: Check for chip presence before calling NCR5380_init()

2016-12-04 Thread Finn Thain
From: Ondrej Zary Write and read back mode register to check that a chip is really there. If no card is present, reads result in 0xff. Signed-off-by: Ondrej Zary Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/scsi/g_NC

[PATCH 2/4] g_NCR5380: Use probe_irq_*() for IRQ probing

2016-12-04 Thread Finn Thain
From: Ondrej Zary Use standard probe_irq_on() and probe_irq_off() functions instead of own implementation. This prevents warning messages like this in the kernel log: genirq: Flags mismatch irq 1. (NCR-probe) vs. 0080 (i8042) Move the IRQ trigger code from NCR5380 to g_NCR5380 where

[PATCH 3/4] g_NCR5380: Fix automatic IRQ on HP C2502 cards

2016-12-04 Thread Finn Thain
When IRQ_AUTO is used, the interrupt for HP C2502 cards gets disabled. Fix this by programming the card for a suitable free irq. The code for the free irq search comes from ALSA. Also allow IRQ 9 to work (it aliases to IRQ 2 on the card), as per Ondrej Zary's patch. Suggested-by: Ondrej Zary Sig

[PATCH 4/4] g_NCR5380: Autoprobe board IRQ by default

2016-12-04 Thread Finn Thain
Automatically probe the board irq when no irq parameter is provided, to simulate PnP. The old default behaviour was to disable the irq. Update driver documentation accordingly and add some printk messages to make this behaviour visible. Signed-off-by: Finn Thain --- Documentation/scsi/g_NCR5380

[PATCH 0/4] g_NCR5380: Bug fix and some enhancements

2016-12-04 Thread Finn Thain
This patch series is based on the one submitted recently by Ondrej Zary. This version has a different irq probing fix for HP C2502 boards and a more comprehensive patch to change the default irq parameter. It needs testing on actual ISA hardware. Finn Thain (4): g_NCR5380: Check for chip pres

Re: [PATCH] hotplug: make register and unregister notifier API symmetric

2016-12-04 Thread Michal Hocko
On Sat 03-12-16 13:15:42, kbuild test robot wrote: > Hi Michal, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.9-rc7 next-20161202] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com

Re: linux-next: manual merge of the akpm-current tree with Linus' tree

2016-12-04 Thread Stephen Rothwell
Hi Michal, On Mon, 5 Dec 2016 06:56:56 +0100 Michal Hocko wrote: > > FWIW this resolution is correct Thanks, good to know. > > but any non trivial > > conflicts should be mentioned to your upstream maintainer when your tree > > is submitted for merging. You may also want to consider cooperatin

Re: [PATCH] kernel/sysctl: return -EINVAL if write invalid val to ulong type sysctl

2016-12-04 Thread Xishi Qiu
On 2016/12/3 3:24, Eric W. Biederman wrote: > Yisheng Xie writes: > >> On 2016/12/1 5:33, Andrew Morton wrote: >>> On Wed, 30 Nov 2016 18:30:52 +0800 Yisheng Xie >>> wrote: >>> I tried to echo an invalid value to an unsigned long type sysctl on 4.9.0-rc6: linux:~# cat /proc/s

Re: linux-next: build failure in the powerpc allyesconfig build

2016-12-04 Thread Stephen Rothwell
Hi Nick, On Mon, 5 Dec 2016 16:41:53 +1100 Nicholas Piggin wrote: > > In scripts/kallsyms.c, is there a table[i].sym string you can print? From a quick try, it printed nothing useful i.e. just some garbled random characters. -- Cheers, Stephen Rothwell

Re: [PATCH 1/1] xen: xenbus: set error code on failure

2016-12-04 Thread Juergen Gross
On 03/12/16 11:49, Pan Bian wrote: > In function xenstored_local_init(), the value of return variable err > should be negative on errors. But the value of err keeps 0 even if the > call to get_zeroed_page() returns a NULL pointer. This patch assigns > "-ENOMEM" to err on the error branch. > > Bu

Crypto Fixes for 4.9

2016-12-04 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - Intermittent build failure in RSA. - Memory corruption in chelsio crypto driver. - Regression in DRBG due to vmalloced stack. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus David Michael (1):

Re: [PATCH] crypto: rsa - fix a potential race condition in build

2016-12-04 Thread Herbert Xu
On Fri, Dec 02, 2016 at 03:41:04PM -0800, Yang Shi wrote: > When building kernel with RSA enabled with multithreaded, the below > compile failure might be caught: > > | /buildarea/kernel-source/crypto/rsa_helper.c:18:28: fatal error: > rsapubkey-asn1.h: No such file or directory > | #include "rsa

Re: [PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-04 Thread Thierry Reding
On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote: > Define bindings for pwm-stm32 > > version 2: > - use parameters instead of compatible of handle the hardware configuration > > Signed-off-by: Benjamin Gaignard > --- > .../devicetree/bindings/pwm/pwm-stm32.txt | 38 >

Re: [PATCH 1/1] xen: set error code on failures

2016-12-04 Thread Juergen Gross
On 04/12/16 07:24, Pan Bian wrote: > From: Pan Bian > > The return variable rc is initialized with "-ENOMEM" outside the loop. > However, it is reset in the loop, and its value is not negative during > the second or after repeat of the loop. If kzalloc() fails then, it will > return 0. This pat

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

2016-12-04 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 12/18] RDS: IB: Add vector spreading for cqs

2016-12-04 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 01/18] RDS: log the address on bind failure

2016-12-04 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 08/18] RDS: IB: split the mr registration and invalidation path

2016-12-04 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 07/18] RDS: RDMA: return appropriate error on rdma map failures

2016-12-04 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 17/18] RDS: add receive message trace used by application

2016-12-04 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 10/18] RDS: IB: track and log active side endpoint in connection

2016-12-04 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 ---

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

2016-12-04 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 14/18] RDS: IB: fix panic due to handlers running post teardown

2016-12-04 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 09/18] RDS: RDMA: silence the use_once mr log flood

2016-12-04 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

Re: [PATCH v9] QE: remove PPCisms for QE

2016-12-04 Thread kbuild test robot
Hi Zhao, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc8] [cannot apply to next-20161202] [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/Zhao-Qiang/QE-remove-PPCisms-f

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

2016-12-04 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 06/18] RDS: RDMA: start rdma listening after init

2016-12-04 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 --

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

2016-12-04 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 18/18] RDS: IB: add missing connection cache usage info

2016-12-04 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 15/18] RDS: add stat for socket recv memory usage

2016-12-04 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

[PATCH v1 0/2] Add MediaTek crypto acclelrator driver

2016-12-04 Thread Ryder Lee
Hello, This adds support for the MediaTek hardware accelerator on mt7623 SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash alogrithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Changes since v1: - remove EXPORT_SYMBOL - remove unused PRNG setting - so

[PATCH v1 2/2] crypto: mediatek - add DT bindings documentation

2016-12-04 Thread Ryder Lee
Add DT bindings documentation for the crypto driver Signed-off-by: Ryder Lee --- .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/mediatek-crypto.txt diff --git a/Documen

[PATCH v1 1/2] Add crypto driver support for some MediaTek chips

2016-12-04 Thread Ryder Lee
This adds support for the MediaTek hardware accelerator on mt7623/mt2701/mt8521p SoC. This driver currently implement: - SHA1 and SHA2 family(HMAC) hash alogrithms. - AES block cipher in CBC/ECB mode with 128/196/256 bits keys. Signed-off-by: Ryder Lee --- drivers/crypto/Kconfig

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

2016-12-04 Thread Santosh Shilimkar
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 semantics and connection remote address, active end point. - Performance imp

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

2016-12-04 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 02/18] RDS: mark few internal functions static to make sparse build happy

2016-12-04 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 05/18] RDS: RDMA: fix the ib_map_mr_sg_zbva() argument

2016-12-04 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 @

Re: [PATCH] ARM: dts: imx7d: fix LCDIF clock assignment

2016-12-04 Thread Uwe Kleine-König
Hello Stefan, On Sun, Dec 04, 2016 at 05:26:58PM -0800, Stefan Agner wrote: > Since this fixes a kernel freeze, is there a chance to get this still in > 4.9? a Fixes:-Line would be nice then. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industr

Re: [PATCH 1/1] mtd: ubi: fix improper return value

2016-12-04 Thread Artem Bityutskiy
On Sun, 2016-12-04 at 21:52 +0100, Richard Weinberger wrote: > We should better think about how to get ubi_self_check_all_ff() > fixed. > When enabled on a modern NAND, vmalloc() is likely to fail now and > then > since len is the erase block size and can be up to a few mega bytes. I did an attemp

RE: [PATCH v9] QE: remove PPCisms for QE

2016-12-04 Thread Qiang Zhao
This patch depends on the patchset of QEIC as following links: http://patchwork.ozlabs.org/patch/675925/ http://patchwork.ozlabs.org/patch/675926/ http://patchwork.ozlabs.org/patch/675927/ http://patchwork.ozlabs.org/patch/675928/ > -Original Message- > From

Re: net: use-after-free in worker_thread

2016-12-04 Thread Herbert Xu
On Sat, Dec 03, 2016 at 10:14:48AM -0800, Cong Wang wrote: > On Sat, Dec 3, 2016 at 9:41 AM, Cong Wang wrote: > > On Sat, Dec 3, 2016 at 4:56 AM, Andrey Konovalov > > wrote: > >> Hi! > >> > >> I'm seeing lots of the following error reports while running the > >> syzkaller fuzzer. > >> > >> Repor

Re: net: use-after-free in worker_thread

2016-12-04 Thread Herbert Xu
On Sat, Dec 03, 2016 at 05:49:07AM -0800, Eric Dumazet wrote: > > @@ -600,6 +600,7 @@ static int __netlink_create(struct net *net, struct > socket *sock, > } > init_waitqueue_head(&nlk->wait); > > + sock_set_flag(sk, SOCK_RCU_FREE); > sk->sk_destruct = netlink_sock_destruct

[PATCH 2/2 v2] scsi: be2iscsi: set errno on error path

2016-12-04 Thread Pan Bian
Variable ret is reset in the loop, and its value will be 0 during the after repeat of the loop. Then, if pci_alloc_consistent() returns NULL, the return value is 0. 0 means no error, which may make it impossible for the callers of beiscsi_create_eqs() to detect the memory allocation error. This

Re: [PATCH v3 4/7] PWM: add pwm driver for stm32 plaftorm

2016-12-04 Thread Thierry Reding
On Fri, Dec 02, 2016 at 11:17:19AM +0100, Benjamin Gaignard wrote: > This driver add support for pwm driver on stm32 platform. "adds". Also please use PWM in prose because it's an abbreviation. > The SoC have multiple instances of the hardware IP and each > of them could have small differences: n

[PATCH 1/2 v2] scsi: be2iscsi: set errno on error path

2016-12-04 Thread Pan Bian
Variable ret is reset in the loop, and its value will be 0 during the after repeat of the loop. Then, if pci_alloc_consistent() returns NULL, the return value is 0. 0 means no error, which may make it impossible for the callers of beiscsi_create_cqs() to detect the memory allocation error. This

[v2 PATCH] netlink: Do not schedule work from sk_destruct

2016-12-04 Thread Herbert Xu
On Mon, Dec 05, 2016 at 03:19:46PM +0800, Herbert Xu wrote: > > Thanks for the patch. It'll obviously work but I wanted avoid that > because it penalises the common path for the rare case. > > Andrey, please try this patch and let me know if it's any better. > > ---8<--- > Subject: netlink: Do n

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-04 Thread Daniel Vetter
On Sat, Dec 03, 2016 at 03:47:00PM +0100, Nicolai Stange wrote: > Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a > struct drm_device's ->control member is always NULL. > > In the case of CONFIG_DEBUG_FS=y, radeon_debugfs_add_files() accesses > ->control->debugfs_root though. This res

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-12-04 Thread Jiada Wang
Hi Sakamoto On 11/30/2016 02:45 AM, Takashi Sakamoto wrote: Hi Jiada, I don't oppose this patch. Nevertheless, your description is not necessarily correct. On Nov 30 2016 16:59, Jiada Wang wrote: From: Daniel Girnus ALSA usually calls the prepare function twice before starting the playba

RE: [LINUX RFC v4 3/4] mtd: spi-nor: add stripe support

2016-12-04 Thread Naga Sureshkumar Relli
Hi Cyrille, > > Hi Cyrille, > > > >> I have not finished to review the whole series yet but here some > >> first > >> comments: > > > > Thanks for reviewing these patch series. > > > >> > >> Le 27/11/2016 à 09:33, Naga Sureshkumar Relli a écrit : > >>> This patch adds stripe support and it is need

[RFC PATCH] doc: change the way how the stable backport is requested

2016-12-04 Thread Michal Hocko
From: Michal Hocko Currently if a patch should aim a stable tree backport one should add Cc: sta...@vger.kernel.org # $version to the s-o-b block. This has two major disadvantages a) it spams the stable mailing list with patches which are just discussed and not merged yet and b) it is easy to m

[RESEND PATCH v12 1/4] drm/i915/debugfs: Move out pipe CRC code

2016-12-04 Thread Tomeu Vizoso
In preparation to using a generic API in the DRM core for continuous CRC generation, move the related code out of i915_debugfs.c into a new file. Eventually, only the Intel-specific code will remain in this new file. v2: Rebased. v6: Rebased. v7: Fix whitespace issue. v9: Have intel_display_cr

[RESEND PATCH v12 0/4] New debugfs API for capturing CRC of frames

2016-12-04 Thread Tomeu Vizoso
Hi, here are the patches that remain to be merged in this series. They have been rebased and I have also addressed two smaller comments: - Move locking into drm_crtc_add_crc_entry (Daniel Vetter). - Define intel_crtc_set_crc_source as NULL if !CONFIG_DEBUG_FS (Jani Nikula). Thanks, Tomeu To

[RESEND PATCH v12 3/4] drm/i915: Use new CRC debugfs API

2016-12-04 Thread Tomeu Vizoso
The core provides now an ABI to userspace for generation of frame CRCs, so implement the ->set_crc_source() callback and reuse as much code as possible with the previous ABI implementation. When handling the pageflip interrupt, we skip 1 or 2 frames depending on the HW because they contain wrong v

[RESEND PATCH v12 2/4] drm: Move locking into drm_debugfs_crtc_crc_add

2016-12-04 Thread Tomeu Vizoso
There's no reason any more for callers of this function to take the lock themselves, so just move the lock to the function to avoid confusion and bugs when more callers are contributed. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/drm_debugfs_crc.c | 9 +++-- 1 file changed, 7 insertions

[RESEND PATCH v12 4/4] drm/i915: Put "cooked" vlank counters in frame CRC lines

2016-12-04 Thread Tomeu Vizoso
Use drm_accurate_vblank_count so we have the full 32 bit to represent the frame counter and userspace has a simpler way of knowing when the counter wraps around. Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov --- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 1 file changed, 3 insertions(+

[PATCH v9] QE: remove PPCisms for QE

2016-12-04 Thread Zhao Qiang
QE was supported on PowerPC, and dependent on PPC, Now it is supported on other platforms. so remove PPCisms. Signed-off-by: Zhao Qiang --- Changes for v2: - na Changes for v3: - add NO_IRQ Changes for v4: - modify spin_event_timeout to opencoded timeout loop - rem

Re: [PATCH] drm/radeon: don't add files at control minor debugfs directory

2016-12-04 Thread Christian König
Am 05.12.2016 um 08:27 schrieb Daniel Vetter: On Sat, Dec 03, 2016 at 03:47:00PM +0100, Nicolai Stange wrote: Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a struct drm_device's ->control member is always NULL. In the case of CONFIG_DEBUG_FS=y, radeon_debugfs_add_files() accesses -

[PATCH v6 1/2] mtd: arasan: Add device tree binding documentation

2016-12-04 Thread Punnaiah Choudary Kalluri
This patch adds the dts binding document for arasan nand flash controller. Signed-off-by: Punnaiah Choudary Kalluri Acked-by: Rob Herring --- changes in v6: - Removed num-cs property - Separated nandchip from nand controller changes in v5: - None Changes in v4: - Added num-cs property - Added cl

Re: [PATCH V1] rtc: ds1307: Add ACPI support

2016-12-04 Thread Tin Huynh
On Wed, Nov 30, 2016 at 9:57 AM, Tin Huynh wrote: > > This patch enables ACPI support for rtc-ds1307 driver. > > Signed-off-by: Tin Huynh > --- > drivers/rtc/rtc-ds1307.c | 51 ++--- > 1 files changed, 43 insertions(+), 8 deletions(-) > > diff --git a/dr

Re: [PATCH 1/1] xen: xenbus: set error code on failure

2016-12-04 Thread Pan Bian
From: PanBian On Mon, Dec 05, 2016 at 07:30:49AM +0100, Juergen Gross wrote: > On 03/12/16 11:49, Pan Bian wrote: > > In function xenstored_local_init(), the value of return variable err > > should be negative on errors. But the value of err keeps 0 even if the > > call to get_zeroed_page() retu

<    1   2   3