Re: [PATCH v16 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-07 Thread Gerd Hoffmann
Hi, > > Add a head field here?  People asked @ kvm forum about multihead > > support. > > Even if the initial driver version doesn't support it we could add > > a field so it > > becomes easier to add it at some point in the future. > > > > Probing for available heads could be done with the PRO

Suspend to disk with usb connected fails to detect usb(reset) during resume

2017-11-07 Thread Ivid Suvarna
Hi, I am trying to support suspend to disk(hibernate) on Hikey with 4.4 kernel. During suspend, I could see the usb devices getting reset and I can access them properly. Message can be seen as below: usb 1-1: reset high-speed USB device number 2 using dwc2 usb 1-1.2: reset high-speed USB device n

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-07 Thread Alexei Starovoitov
On 11/7/17 12:55 AM, Naveen N. Rao wrote: I thought such struct shouldn't change layout. If it is we need to fix include/linux/compiler-clang.h to do that anon struct as well. We considered that, but it looked to be very dependent on the version of gcc used to build the kernel. But, this may be

[PATCH 3/6] mmc: tmio: use devm_ioremap_resource() instead of devm_ioremap()

2017-11-07 Thread Masahiro Yamada
The TMIO core misses to request_mem_region(). devm_ioremap_resource() takes care of it and makes the code cleaner. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/tmio_mmc_core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc_core.c

[PATCH 0/6] mmc: tmio, renesas_shci: cleanups, core code change for new driver

2017-11-07 Thread Masahiro Yamada
When I was implementing my dirver, I just noticed some candidates for cleanups. Some are required changes for my driver. Masahiro Yamada (6): mmc: renesas_sdhc: remove eprobe jump label mmc: tmio: set tmio_mmc_host to driver data mmc: tmio: use devm_ioremap_resource() instead of devm_ior

[PATCH 4/6] mmc: tmio: move mmc_host_ops to struct tmio_mmc_host from static data

2017-11-07 Thread Masahiro Yamada
Currently, tmio_mmc_ops is static data and tmio_mmc_host_probe() updates some hooks in the static data. This is a problem when two or more instances call tmio_mmc_host_probe() and each of them requests to use its own card_busy/start_signal_voltage_switch. We can borrow a solution from sdhci_alloc

[PATCH 1/6] mmc: renesas_sdhc: remove eprobe jump label

2017-11-07 Thread Masahiro Yamada
"goto eprobe" does nothing useful. Return directly. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/renesas_sdhi_core.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c index fcf72

[PATCH 2/6] mmc: tmio: set tmio_mmc_host to driver data

2017-11-07 Thread Masahiro Yamada
The remove, suspend, resume hooks need tmio_mmc_host. It is tedious to get mmc_host from the driver_data and pass it to mmc_priv(). We can directly set tmio_mmc_host to driver data to clean up the code. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/renesas_sdhi_core.c | 3 +-- drivers/m

[PATCH 5/6] mmc: tmio, renesas_sdhi: set mmc_host_ops hooks directly

2017-11-07 Thread Masahiro Yamada
Drivers can set any mmc_host_ops hooks between tmio_mmc_host_alloc() and tmio_mmc_host_probe(). Remove duplicated hooks in tmio_mmc_host. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/renesas_sdhi_core.c | 4 ++-- drivers/mmc/host/tmio_mmc.h | 3 --- drivers/mmc/host/tmio_mmc_co

[PATCH 6/6] mmc: tmio: move mmc_of_parse() out of tmio_mmc_host_probe()

2017-11-07 Thread Masahiro Yamada
mmc_of_parse() parses various DT properties and sets capability flags accordingly. However, drivers have no chance to run platform init code depending on such flags because mmc_of_parse() is called from tmio_mmc_host_probe(). Move mmc_of_parse() out of tmio_mmc_host_probe() so that drivers can ha

Re: possible deadlock in generic_file_write_iter

2017-11-07 Thread Peter Zijlstra
On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote: > > The best I could come up with is something like the below; its not > > at all pretty and I could see people objecting; least of all myself for > > the __complete() thing, but I ran out of creative naming juice. > > Patches assigni

Re: [PATCH] dm-crypt, dm-integrity: allow unaligned bv_offset (was: [Regression, Bisected] dm-crypt IO failures with active slub_debug in 4.12 and later)

2017-11-07 Thread Bruno Prémont
On Mon, 6 Nov 2017 18:57:15 -0500 (EST) Mikulas Patocka wrote: > On Mon, 6 Nov 2017, Bruno Prémont wrote: > > On Mon, 6 Nov 2017 11:18:09 Mike Snitzer wrote: > > > On Thu, Nov 02 2017 at 4:39pm -0400, Bruno Prémont wrote: > > > > Hi, > > > > > > > > Between 4.11 and 4.12 I stopped being able

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT.

2017-11-07 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 03:16:58PM -0800, Andi Kleen wrote: > > +static int _perf_event_modify_breakpoint(struct perf_event *bp, > > +struct perf_event_attr *attr) > > +{ > > + u64 old_addr = bp->attr.bp_addr; > > + u64 old_len = bp->attr.bp_len; > > + int

Re: [PATCH] perf/core: fast breakpoint modification via _IOC_MODIFY_BREAKPOINT.

2017-11-07 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 05:09:15PM -0500, Milind Chabbi wrote: > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 362493a..d458214 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -433,6 +433,8 @@ struct perf_event_att

Re: POWER: Unexpected fault when writing to brk-allocated memory

2017-11-07 Thread Florian Weimer
On 11/07/2017 06:07 AM, Nicholas Piggin wrote: First of all, using addr and MAP_FIXED to develop our heuristic can never really give unchanged ABI. It's an in-band signal. brk() is a good example that steadily keeps incrementing address, so depending on malloc usage and address space randomizati

Re: [PATCH] documentation: update list of available compiled-in fonts

2017-11-07 Thread Geert Uytterhoeven
Hi Randy, On Tue, Nov 7, 2017 at 5:48 AM, Randy Dunlap wrote: > From: Randy Dunlap > > Update list of available compiled-in fonts in lib/fonts/: > add 6x10 and drop RomanLarge (which was reverted 12 years ago). > > Signed-off-by: Randy Dunlap > Cc: Geert Uytterhoeven Acked-by: Geert Uytterhoe

[PATCH] mfd: tmio: move register macros to tmio_core.c

2017-11-07 Thread Masahiro Yamada
These registers are only used in drivers/mfd/tmio_core.c Signed-off-by: Masahiro Yamada --- drivers/mfd/tmio_core.c | 20 include/linux/mfd/tmio.h | 20 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/mfd/tmio_core.c b/drivers/

Re: possible deadlock in generic_file_write_iter

2017-11-07 Thread Dmitry Vyukov
On Tue, Nov 7, 2017 at 9:11 AM, Peter Zijlstra wrote: > On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote: >> > The best I could come up with is something like the below; its not >> > at all pretty and I could see people objecting; least of all myself for >> > the __complete() thing,

Re: [RESEND PATCH v5 08/16] ARM: dts: socfpga: Add generic compatible string for I2C EEPROM

2017-11-07 Thread Javier Martinez Canillas
Hello Dinh, On Thu, Jun 15, 2017 at 8:54 PM, Javier Martinez Canillas wrote: > The at24 driver allows to register I2C EEPROM chips using different vendor > and devices, but the I2C subsystem does not take the vendor into account > when matching using the I2C table since it only has device entries

Re: AXP803 I2C support / AXP devicetree-bindings

2017-11-07 Thread Icenowy Zheng
于 2017年11月7日 GMT+08:00 上午11:13:23, Chen-Yu Tsai 写到: On Tue, Nov 7, 2017 at 6:39 AM, Martin Blumenstingl wrote: Hello, recently I discovered that there are some X-Powers AXP chips that support both, Allwinner's own "RSB" as well as the I2C ("TWSI" in the datasheet) busses. one chip that supp

RE: [PATCH v2 0/2] remoteproc: increase debug capabilities

2017-11-07 Thread Loic PALLARDY
> -Original Message- > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > Sent: Tuesday, November 07, 2017 7:04 AM > To: Loic PALLARDY > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Arnaud POULIQUEN ; > benjamin.gaign...@linaro.org > Su

Re: [PATCH v2] can: Use common error handling code in vxcan_newlink()

2017-11-07 Thread Marc Kleine-Budde
On 11/01/2017 03:16 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 1 Nov 2017 14:56:15 +0100 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle software. > > Signed-o

Re: [PATCH] locking/pvqspinlock: Hybrid PV queued/unfair locks

2017-11-07 Thread Juergen Gross
On 03/11/17 16:35, Waiman Long wrote: > Currently, all the lock waiters entering the slowpath will do one > lock stealing attempt to acquire the lock. That helps performance, > especially in VMs with over-committed vCPUs. However, the current > pvqspinlocks still don't perform as good as unfair loc

Re: [PATCH v2 3/3] usb: dwc3: Enable USB 3.0 phy driver

2017-11-07 Thread Felipe Balbi
Hi, Ran Wang writes: > Adds entry point at dwc3 core init function to enable > USB 3.0 PHY driver. > > Signed-off-by: Ran Wang > --- > Change in v2: > - New file > > drivers/usb/dwc3/core.c | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/drivers/usb/dwc3/core.c

Re: [PATCH] IB/ocrdma_hw: remove unnecessary code in ocrdma_mbx_dealloc_lkey

2017-11-07 Thread Leon Romanovsky
On Mon, Nov 06, 2017 at 08:35:14AM -0600, Gustavo A. R. Silva wrote: > Check on return value and goto label mbx_err are unnecessary. > > Addresses-Coverity-ID: 1268780 > Signed-off-by: Gustavo A. R. Silva > --- > drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 4 +--- > 1 file changed, 1 insertion(+),

[PATCH] renesas_usbhs: use renesas_usbhs_get_info()

2017-11-07 Thread Kuninori Morimoto
From: Kuninori Morimoto We already have renesas_usbhs_get_info() macro. Let's use it. Signed-off-by: Kuninori Morimoto --- Shimoda-san can you please check this patch ? drivers/usb/renesas_usbhs/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/ren

[PATCH v2 0/3] Add W83773G hwmon sensor driver and doc

2017-11-07 Thread Lei YU
Nuvoton W83773G is a hardware monitoring chip, which integrates two remote and one local temperature sensors. --- v2: - The driver is re-written as v1's comment, so the author is changed to me. - Added the device to trivial-devices.txt Lei YU (3): DT: i2c: W83773G is a trivial device drivers

[PATCH v2 2/3] drivers: hwmon: Add W83773G driver

2017-11-07 Thread Lei YU
Nuvoton W83773G is a hardware monitor IC providing one local temperature and two remote temperature sensors. Signed-off-by: Lei YU --- v2: - Rewrite the driver using regmap - Add offset and update_interval --- drivers/hwmon/Kconfig | 10 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/w83

[PATCH v2 3/3] hwmon: (w83773g) Add documentation

2017-11-07 Thread Lei YU
Add documentation for the w83773g driver. Signed-off-by: Lei YU --- v2: - Add notes for offset and update_interval --- Documentation/hwmon/w83773g | 33 + 1 file changed, 33 insertions(+) create mode 100644 Documentation/hwmon/w83773g diff --git a/Documentation

[PATCH v2 1/3] DT: i2c: W83773G is a trivial device

2017-11-07 Thread Lei YU
Signed-off-by: Lei YU --- Documentation/devicetree/bindings/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.txt index af284fb..63ad2f1 100644 --- a/Documentation/devi

Re: possible deadlock in generic_file_write_iter

2017-11-07 Thread Byungchul Park
11/7/2017 5:11 PM에 Peter Zijlstra 이(가) 쓴 글: On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote: The best I could come up with is something like the below; its not at all pretty and I could see people objecting; least of all myself for the __complete() thing, but I ran out of creative

Re: [RFC][PATCH] x86, sched: allow topolgies where NUMA nodes share an LLC

2017-11-07 Thread Peter Zijlstra
On Mon, Nov 06, 2017 at 02:15:00PM -0800, Dave Hansen wrote: > But, the CPUID for the SNC configuration discussed above enumerates > the LLC as being shared by the entire package. This is not 100% > precise because the entire cache is not usable by all accesses. But, > it *is* the way the hardwa

Re: [PATCH] dm-crypt, dm-integrity: allow unaligned bv_offset

2017-11-07 Thread Milan Broz
On 11/07/2017 09:13 AM, Bruno Prémont wrote: >> Signed-off-by: Mikulas Patocka >> Cc: sta...@vger.kernel.org # v4.12+ >> Fixes: 8f0009a22517 ("dm crypt: optionally support larger encryption sector >> size") >> Fixes: 7eada909bfd7 ("dm: add integrity target") > > Reported-by: Bruno Prémont > T

Re: [PATCH v3 0/3] *** Fix warning from kbuild test robot ***

2017-11-07 Thread Daniel Lezcano
On 07/11/2017 08:19, Rick Chen wrote: > *** Fix warnings when make with ARCH=x86_64 from auto build test *** > > rick (3): > clocksource/drivers/atcpit100: Add andestech atcpit100 timer > clocksource/drivers/Kconfig: Support andestech atcpit100 timer > dt-bindings: timer: Add andestech atcpi

Re: possible deadlock in generic_file_write_iter

2017-11-07 Thread Dmitry Vyukov
On Tue, Nov 7, 2017 at 9:30 AM, Byungchul Park wrote: > 11/7/2017 5:11 PM에 Peter Zijlstra 이(가) 쓴 글: > >> On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote: The best I could come up with is something like the below; its not at all pretty and I could see people objecting;

Re: [PATCH 3/3] [media] v4l2: disable filesystem-dax mapping support

2017-11-07 Thread Mauro Carvalho Chehab
Em Mon, 06 Nov 2017 16:57:28 -0800 Dan Williams escreveu: > V4L2 memory registrations are incompatible with filesystem-dax that > needs the ability to revoke dma access to a mapping at will, or > otherwise allow the kernel to wait for completion of DMA. The > filesystem-dax implementation breaks

[PATCH] mm, sparse: Fix boot on arm64

2017-11-07 Thread Kirill A. Shutemov
Since 83e3c48729d9 ("mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y") we allocate mem_section dynamically in sparse_memory_present_with_active_regions(). But some architectures, like arm64, don't use the routine to initialize sparsemem. Let's move the initialization i

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-07 Thread Naveen N. Rao
Alexei Starovoitov wrote: On 11/7/17 12:55 AM, Naveen N. Rao wrote: I thought such struct shouldn't change layout. If it is we need to fix include/linux/compiler-clang.h to do that anon struct as well. We considered that, but it looked to be very dependent on the version of gcc used to build t

[General protection fault] in bio_integrity_advance

2017-11-07 Thread Yu Chen
Hi all, We are using 4.13.5-100.fc25.x86_64 and a panic was found during resume from hibernation, the backtrace is illustrated as below, would someone please take a look if this has already been fixed or is this issue still in the upstream kernel? thanks! [ 114.846213] PM: Using 3 thread(s) for de

Re: UBSAN: Undefined behaviour in mm/sparse.c:81:17

2017-11-07 Thread Kirill A. Shutemov
On Mon, Nov 06, 2017 at 08:27:59PM +0100, Corentin Labbe wrote: > Hello > > Disabling UBSAN, does not change anything (NULL ptr dereference). > Reverting 83e3c48729d9ebb7af5a31a504f3fd6aff0348c4 ("mm/sparsemem: Allocate > mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y") made the boot > pr

RE: [PATCH v2 08/16] iommu: introduce device fault data

2017-11-07 Thread Liu, Yi L
Hi Jean, Nice to have you "online". This open is really blocking the progress. Pls check inline. > -Original Message- > From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Tuesday, November 7, 2017 3:02 AM > To: Liu, Yi L ; Jacob Pan ; > io...@lists.linux-foundatio

Re: possible deadlock in generic_file_write_iter

2017-11-07 Thread Byungchul Park
11/7/2017 5:31 PM에 Dmitry Vyukov 이(가) 쓴 글: On Tue, Nov 7, 2017 at 9:30 AM, Byungchul Park wrote: 11/7/2017 5:11 PM에 Peter Zijlstra 이(가) 쓴 글: On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote: The best I could come up with is something like the below; its not at all pretty and I

RE: [PATCH] refcount_t: documentation for memory ordering differences

2017-11-07 Thread Reshetova, Elena
Hi Randy, Thank you for your corrections! I will fix the language-related issues in the next version. More on content below. > On 11/06/2017 05:32 AM, Elena Reshetova wrote: > > Some functions from refcount_t API provide different > > memory ordering guarantees that their atomic counterparts. >

Re: [d_alloc_parallel] WARNING: bad unlock balance detected!

2017-11-07 Thread Peter Zijlstra
On Tue, Nov 07, 2017 at 12:03:29PM +0800, Fengguang Wu wrote: > >>[ 428.512005] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow > >>Control: RX > >>LKP: HOSTNAME vm-lkp-wsx03-openwrt-i386-8, MAC , kernel 4.14.0-rc8 158, > >>serial console /dev/ttyS0 > >>[ 429.798345] Kernel tests: Boot

Re: [PATCH v2 1/5] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-11-07 Thread Eugen Hristev
On 20.10.2017 00:58, Rob Herring wrote: On Thu, Oct 19, 2017 at 6:14 AM, Alexandre Belloni wrote: On 13/10/2017 at 16:51:42 -0500, Rob Herring wrote: On Wed, Oct 11, 2017 at 09:35:28AM +0300, Eugen Hristev wrote: Added property for DMA configuration of the device. Signed-off-by: Eugen Hris

Re: Soft lockup in rt2x00usb_work_rxdone()

2017-11-07 Thread Stanislaw Gruszka
Hi On Mon, Nov 06, 2017 at 04:57:09PM +0100, Richard Genoud wrote: > I get a soft lock-up while unbinding the USB driver on a TP-Link TL-WN727Nv3 > (chipset 5370): > > # echo 1-2.2 > /sys/bus/usb/drivers/usb/unbind > watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [kworker/u2:3:308] ... > I ca

[Patch v7 09/22] CIFS: SMBD: Implement function to reconnect to a SMB Direct transport

2017-11-07 Thread Long Li
From: Long Li Add function to implement a reconnect to SMB Direct. This involves tearing down the current connection and establishing/negotiating a new connection. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 36 1 file changed, 36 insertions(+) diff -

[Patch v7 12/22] CIFS: SMBD: Upper layer destroys SMB Direct session on shutdown or umount

2017-11-07 Thread Long Li
From: Long Li When upper layer wants to umount, make it call shutdown on transport when SMB Direct is used. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 3ccd703..3d74983 100644 -

[Patch v7 20/22] CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O

2017-11-07 Thread Long Li
From: Long Li This patch is for preparing upper layer doing SMB read via RDMA write. When RDMA write is used for SMB read, the returned data length is in DataRemaining in the response packet. Reading it properly by adding a parameter to specifiy where the returned data length is. Add the defiti

[Patch v7 01/22] CIFS: SMBD: Add parameter rdata to smb2_new_read_req

2017-11-07 Thread Long Li
From: Long Li This patch is for preparing upper layer for doing SMB read via RDMA write. When we assemble the SMB read packet header, we need to know the I/O layout if this request is to use a RDMA write. rdata has all the information we need for memory registration. Add rdata to smb2_new_read_r

[Patch v7 18/22] CIFS: SMBD: Implement RDMA memory registration

2017-11-07 Thread Long Li
From: Long Li Memory registration is used for transferring payload via RDMA read or write. After I/O is done, memory registrations are recovered and reused. This process can be time consuming and is done in a work queue. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 421

[Patch v7 04/22] CIFS: SMBD: Add SMB Direct protocol initial values and constants

2017-11-07 Thread Long Li
From: Long Li To prepare for protocol implementation, add constants and user-configurable values for the SMB Direct protocol. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 77 + fs/cifs/smbdirect.h | 21 +++ 2 files changed, 98

Re: [PATCH v2] cpupower : Fix cpupower working when cpu0 is offline

2017-11-07 Thread Abhishek
Hi, Can you have a look at it? Thanks and Regards, Abhishek Goel System Engineer IBM India Pvt. Ltd. On 11/07/2017 12:50 PM, Abhishek Goel wrote: cpuidle_monitor used to assume that cpu0 is always online which is not a valid assumption on POWER machines. This patch fixes this by searching

[Patch v7 05/22] CIFS: SMBD: Establish SMB Direct connection

2017-11-07 Thread Long Li
From: Long Li Add code to implement the core functions to establish a SMB Direct connection. 1. Establish an RDMA connection to SMB server. 2. Negotiate and setup SMB Direct protocol. 3. Implement idle connection timer and credit management. SMB Direct is enabled by setting CONFIG_CIFS_SMB_DIRE

[Patch v7 10/22] CIFS: SMBD: Upper layer reconnects to SMB Direct session

2017-11-07 Thread Long Li
From: Long Li Do a reconnect on SMB Direct when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of SMB2 upper layer. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/cifs/con

[Patch v7 00/22] CIFS: Implement SMB Direct protocol

2017-11-07 Thread Long Li
From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMB Direct transport protocol for transferring upper layer (SMB2) payload over RDMA via Infiniband, RoCE or iWARP. The prococol is published in [MS-SMBD] (https://msdn.microsoft.com/en-us/library/hh536346.aspx). Change log: v2: I

[Patch v7 11/22] CIFS: SMBD: Implement function to destroy a SMB Direct connection

2017-11-07 Thread Long Li
From: Long Li Add function to tear down a SMB Direct connection. This is used by upper layer to free all SMB Direct connection and transport resources. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 16 1 file changed, 16 insertions(+) diff --git a/fs/cifs/smbdirect.c b/fs/

[Patch v7 06/22] CIFS: SMBD: export protocol initial values

2017-11-07 Thread Long Li
From: Long Li For use-configurable SMB Direct protocol values, export them to /proc/fs/cifs. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 79 1 file changed, 79 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c ind

[Patch v7 15/22] CIFS: SMBD: Upper layer receives data via RDMA receive

2017-11-07 Thread Long Li
From: Long Li With SMB Direct connected, use it for receiving data via RDMA receive. Signed-off-by: Long Li --- fs/cifs/connect.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 3d74983..fcd01df 100644 --- a/fs/cifs/connect.

[Patch v7 22/22] CIFS: SMBD: Add SMB Direct debug counters

2017-11-07 Thread Long Li
From: Long Li For debugging and troubleshooting, export SMBDirect debug counters to /proc/fs/cifs/DebugData. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 66 1 file changed, 66 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/

[Patch v7 13/22] CIFS: SMBD: Set SMB Direct maximum read or write size for I/O

2017-11-07 Thread Long Li
From: Long Li When connecting over SMB Direct, the transport negotiates its maximum I/O sizes with the server and determines how to choose to do RDMA send/recv vs read/write. Expose these maximum I/O sizes to upper layer so we will get the correct sized payloads. Signed-off-by: Long Li --- fs/

[Patch v7 14/22] CIFS: SMBD: Implement function to receive data via RDMA receive

2017-11-07 Thread Long Li
From: Long Li On the receive path, the transport maintains receive buffers and a reassembly queue for transferring payload via RDMA recv. There is data copy in the transport on recv when it copies the payload to upper layer. The transport recognizes the RFC1002 header length use in the SMB upper

[Patch v7 21/22] CIFS: SMBD: Upper layer performs SMB read via RDMA write through memory registration

2017-11-07 Thread Long Li
From: Long Li If I/O size is larger than rdma_readwrite_threshold, use RDMA write for SMB read by specifying channel SMB2_CHANNEL_RDMA_V1 or SMB2_CHANNEL_RDMA_V1_INVALIDATE in the SMB packet, depending on SMB dialect used. Append a smbd_buffer_descriptor_v1 to the end of the SMB packet and fill i

[Patch v7 07/22] CIFS: SMBD: Implement function to create a SMB Direct connection

2017-11-07 Thread Long Li
From: Long Li The upper layer calls this function to connect to peer through SMB Direct. Each SMB Direct connection is based on a RDMA RC Queue Pair. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 17 + 1 file changed, 17 insertions(+) diff --git a/fs/cifs/smbdirect.c b/fs/c

[Patch v7 16/22] CIFS: SMBD: Implement function to send data via RDMA send

2017-11-07 Thread Long Li
From: Long Li The transport doesn't maintain send buffers or send queue for transferring payload via RDMA send. There is no data copy in the transport on send. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 246 fs/cifs/smbdirect.h | 3 +

[Patch v7 19/22] CIFS: SMBD: Upper layer performs SMB write via RDMA read through memory registration

2017-11-07 Thread Long Li
From: Long Li When sending I/O, if size is larger than rdma_readwrite_threshold we prepare to send SMB write packet for a RDMA read via memory registration. The actual I/O is done by remote peer through local RDMA hardware. Modify the relevant fields in the packet accordingly, and append a smbd_b

Re: [PATCH 1/7] au0828: fix spelling mistake: "synchronuously" -> "synchronously"

2017-11-07 Thread Mauro Carvalho Chehab
Em Thu, 2 Nov 2017 10:11:47 + Colin King escreveu: > From: Colin Ian King > > Trivial fix to spelling mistake in error message text > > Signed-off-by: Colin Ian King > --- > drivers/media/usb/au0828/au0828-video.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Colin, Patc

Re: [PATCH v2 1/5] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-11-07 Thread Ludovic Desroches
On Tue, Nov 07, 2017 at 10:49:41AM +0200, Eugen Hristev wrote: > > > On 20.10.2017 00:58, Rob Herring wrote: > > On Thu, Oct 19, 2017 at 6:14 AM, Alexandre Belloni > > wrote: > > > On 13/10/2017 at 16:51:42 -0500, Rob Herring wrote: > > > > On Wed, Oct 11, 2017 at 09:35:28AM +0300, Eugen Hristev

[Patch v7 08/22] CIFS: SMBD: Upper layer connects to SMBDirect session

2017-11-07 Thread Long Li
From: Long Li When "rdma" is specified in the mount option, make CIFS connect to SMB Direct. Signed-off-by: Long Li --- fs/cifs/connect.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b5a575f..75eb50b 100

[Patch v7 02/22] CIFS: SMBD: Introduce kernel config option CONFIG_CIFS_SMB_DIRECT

2017-11-07 Thread Long Li
From: Long Li Build SMB Direct code when this option is set. Signed-off-by: Long Li --- fs/cifs/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index f724361..8d05fff 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig @@ -191,6 +191,14 @@ c

[Patch v7 17/22] CIFS: SMBD: Upper layer sends data via RDMA send

2017-11-07 Thread Long Li
From: Long Li With SMB Direct connected, use it for sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7efbab0..bb9ffdd 100644 --- a/fs/cifs/trans

[Patch v7 03/22] CIFS: SMBD: Add rdma mount option

2017-11-07 Thread Long Li
From: Long Li Add "rdma" to CIFS mount options to connect to SMB Direct. Add checks to validate this is used on SMB 3.X dialects. To connect to SMBDirect, use "mount.cifs -o rdma,vers=3.x". At the time of this patch, 3.x can be 3.0, 3.02 or 3.1.1. Signed-off-by: Long Li --- fs/cifs/cifs_debug

Re: [PATCH] mm, sparse: do not swamp log with huge vmemmap allocation failures

2017-11-07 Thread Michal Hocko
Dohh, forgot to git add the follow up fix on top of Johannes' original diff so it didn't make it into the finall commit. Could you fold this into the patch Andrew, please? Sorry about that. --- diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index 3f85084cb8bb..9a745e2a6f9a 100644 --- a/mm/

[PATCH] Input: elan_i2c - add ELAN060C to the ACPI table

2017-11-07 Thread Kai-Heng Feng
ELAN060C touchpad uses elan_i2c as its driver. It can be found on Lenovo ideapad 320-14AST. BugLink: https://bugs.launchpad.net/bugs/1727544 Signed-off-by: Kai-Heng Feng --- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/elan_i2c_core.

Re: [PATCH 1/3] mm: memcontrol: eliminate raw access to stat and event counters

2017-11-07 Thread Vladimir Davydov
On Fri, Nov 03, 2017 at 11:33:34AM -0400, Johannes Weiner wrote: > Replace all raw 'this_cpu_' modifications of the stat and event > per-cpu counters with API functions such as mod_memcg_state(). > > This makes the code easier to read, but is also in preparation for the > next patch, which changes

Re: [PATCH 2/3] mm: memcontrol: implement lruvec stat functions on top of each other

2017-11-07 Thread Vladimir Davydov
On Fri, Nov 03, 2017 at 11:33:35AM -0400, Johannes Weiner wrote: > The implementation of the lruvec stat functions and their variants for > accounting through a page, or accounting from a preemptible context, > are mostly identical and needlessly repetitive. > > Implement the lruvec_page functions

Re: POWER: Unexpected fault when writing to brk-allocated memory

2017-11-07 Thread Nicholas Piggin
On Tue, 7 Nov 2017 09:15:21 +0100 Florian Weimer wrote: > On 11/07/2017 06:07 AM, Nicholas Piggin wrote: > > > First of all, using addr and MAP_FIXED to develop our heuristic can > > never really give unchanged ABI. It's an in-band signal. brk() is a > > good example that steadily keeps incremen

[rht_deferred_worker] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [kworker/0:1:15]

2017-11-07 Thread Fengguang Wu
Hello, FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. [ 485.097496] rcu-torture: Reader Pipe: 2 0 0 0 0 0 0 0 0 0 0 [ 485.317082] rcu-torture: Reader Batch: 0 2 0 0 0 0 0 0 0 0 0 [ 485.809530] rcu-torture: Free-Block Circulation: 0 0 0 0 0 0 0 0 0 0 0 [ 486.097071] ??? Wr

Re: [PATCH 1/2] ACPI / PMIC: Make some pointers, structure field and function argument as const

2017-11-07 Thread Mika Westerberg
On Fri, Nov 03, 2017 at 04:03:47PM +0100, Bhumika Goyal wrote: > Make some pointers of type intel_pmic_opregion_data as const as they > do not modify the fields of the structure they point too. > After this change, make the data field of intel_pmic_opregion > structure const as this data field is u

[PATCH 1/1] add rgb888 pins to a20 to enable parallel rgb LCD

2017-11-07 Thread Giulio Benetti
This patch gives possibility to set parallel lcd pins for RGB888. To be used with tcon0 in your .dts Best regards Giulio Benetti Micronova srl Signed-off-by: Giulio Benetti --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a

Re: [PATCH 2/2] ACPI / PMIC: make intel_pmic_opregion_data structures const

2017-11-07 Thread Mika Westerberg
On Fri, Nov 03, 2017 at 04:03:48PM +0100, Bhumika Goyal wrote: > Make these structures as const as they are only passed to the function > intel_pmic_install_opregion_handler having the argument as const. > > Signed-off-by: Bhumika Goyal Acked-by: Mika Westerberg

[PATCH 4/8] staging: ccree: simplify buf mgr using local vars

2017-11-07 Thread Gilad Ben-Yossef
Make the code more readable by using a local variables for commonly use expressions in the buffer manager part of the driver. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH 3/8] staging: ccree: simplify AEAD using local var

2017-11-07 Thread Gilad Ben-Yossef
Make the code more readable by using a local variable for commonly use expression in the AEAD part of the driver. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b

[PATCH 7/8] staging: ccree: remove compare to none zero

2017-11-07 Thread Gilad Ben-Yossef
The driver was full of code checking "if (x != 0)". Replace by "if (x)" for better readability. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 34 +++--- drivers/staging/ccree/ssi_buffer_mgr.c | 74 ++--- drivers/staging/ccree/ssi_c

[PATCH 6/8] staging: ccree: simplify pm manager using local var

2017-11-07 Thread Gilad Ben-Yossef
Make the code more readable by using a local variable. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_pm.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_pm.c b/drivers/staging/ccree/ssi_pm.c index e1bc4c5..d60143c 100644

[PATCH 1/8] staging: ccree: fix leak of import() after init()

2017-11-07 Thread Gilad Ben-Yossef
crypto_ahash_import() may be called either after crypto_ahash_init() or without such call. Right now we always internally call init() as part of import(), thus leaking memory and mappings if the user has already called init() herself. Fix this by only calling init() internally if the state is not

[PATCH 8/8] staging: ccree: remove braces for single statement

2017-11-07 Thread Gilad Ben-Yossef
Remove necessary braces for single statement blocks to improve code readabilty. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi

[PATCH 5/8] staging: ccree: fold common code into function

2017-11-07 Thread Gilad Ben-Yossef
Fold common code copying MAC to/from a temp. buffer into an inline function instead of keeping multiple open coded versions of same. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 92 ++ 1 file changed, 38 insertions(+), 54 deletions(

[PATCH 2/8] staging: ccree: use more readable func names

2017-11-07 Thread Gilad Ben-Yossef
The driver was using a function naming scheme including common prefixes for driver global functions based on the code module they came from. The combination of long names with long common prefixes made the whole thing hard for a human to parse. Make the semantic change of switching to simple func

[PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-07 Thread Jaewon Kim
online_page_ext and page_ext_init allocate page_ext for each section, but they do not allocate if the first PFN is !pfn_present(pfn) or !pfn_valid(pfn). Though the first page is not valid, page_ext could be useful for other pages in the section. But checking all PFNs in a section may be time consu

[PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-07 Thread Jaewon Kim
online_page_ext and page_ext_init allocate page_ext for each section, but they do not allocate if the first PFN is !pfn_present(pfn) or !pfn_valid(pfn). Then section->page_ext remains as NULL. lookup_page_ext checks NULL only if CONFIG_DEBUG_VM is enabled. For a valid PFN, __set_page_owner will try

[PATCH 0/8] staging: ccree: fixes and cleanups

2017-11-07 Thread Gilad Ben-Yossef
This is another batch of ccree fixes & cleanups. The first patch is a bug fix. All others are pure readability and coding style fixes. Gilad Ben-Yossef (8): staging: ccree: fix leak of import() after init() staging: ccree: use more readable func names staging: ccree: simplify AEAD using loc

Re: [PATCH v2 2/2] objtool: Move sync check to a script

2017-11-07 Thread Ingo Molnar
* Josh Poimboeuf wrote: > Replace the nasty diff checks in the objtool Makefile with a clean bash > script, and make the warnings more specific. > > Heavily inspired by tools/perf/check-headers.sh. > > Suggested-by: Ingo Molnar > Signed-off-by: Josh Poimboeuf > --- > tools/objtool/Makefile

Re: [PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-07 Thread Michal Hocko
[CC Joonsoo] On Tue 07-11-17 18:41:31, Jaewon Kim wrote: > online_page_ext and page_ext_init allocate page_ext for each section, but > they do not allocate if the first PFN is !pfn_present(pfn) or > !pfn_valid(pfn). Then section->page_ext remains as NULL. lookup_page_ext > checks NULL only if CONF

Re: [PATCH v2] cpupowerutils: bench - Fix cpu online check

2017-11-07 Thread Abhishek
Hi, Can you please have a look at this also? Thanks and Regards, Abhishek Goel System Engineer IBM India Pvt. Ltd. On 11/07/2017 03:17 PM, Abhishek Goel wrote: cpupower_is_cpu_online was incorrectly checking for 0. This patch fixes this by checking for 1 when the cpu is online. Signed-off-by:

Re: [PATCH] ARM: dts: add phy-reset property for rk3066a-rayeager emac

2017-11-07 Thread Chris Zhong
On 2017年11月07日 15:54, Vladimir Zapolskiy wrote: Hello Chris, On 11/07/2017 04:49 AM, Chris Zhong wrote: The ethernet phy of rk3066a-rayeager has a reset pin, it controlled by GPIO1_D6, this pin should be pull down then pull up to reset the phy. Add a phy-reset property in emac, make the phy c

[PATCH 1/1] add mali r6p2 dt node

2017-11-07 Thread Giulio Benetti
This patch adds device tree mali node compatible with r6p2 utgard kernel driver provided by ARM and patched by maxime ripard on his github. It can be easily used in target.dts with: &mali { status = "okay"; } then loading mali.ko in user space. Best regards Giulio Benetti Micronova srl

Re: [PATCH 3/3] mm: memcontrol: fix excessive complexity in memory.stat reporting

2017-11-07 Thread Vladimir Davydov
On Fri, Nov 03, 2017 at 11:33:36AM -0400, Johannes Weiner wrote: > We've seen memory.stat reads in top-level cgroups take up to fourteen > seconds during a userspace bug that created tens of thousands of ghost > cgroups pinned by lingering page cache. > > Even with a more reasonable number of cgro

[tip:core/objtool] objtool: Move kernel headers/code sync check to a script

2017-11-07 Thread tip-bot for Josh Poimboeuf
Commit-ID: 3bd51c5a371de917e4e7401c9df006b5998579df Gitweb: https://git.kernel.org/tip/3bd51c5a371de917e4e7401c9df006b5998579df Author: Josh Poimboeuf AuthorDate: Mon, 6 Nov 2017 07:21:51 -0600 Committer: Ingo Molnar CommitDate: Tue, 7 Nov 2017 10:48:34 +0100 objtool: Move kernel heade

Re: [PATCH v3] cpufreq: schedutil: Examine the correct CPU when we update util

2017-11-07 Thread Chris Redpath
Hi Viresh, Rafael, Without this patch, schedutil is totally broken for us - is there any chance at all this could go in 4.14 or is it just too late? Best Regards, Chris On 03/11/17 15:45, Viresh Kumar wrote: On 03-11-17, 13:36, Chris Redpath wrote: After 674e75411fc2 ("sched: cpufreq: Allow r

  1   2   3   4   5   6   7   8   9   10   >