Re: [PATCH] net: hns3: Fix an error handling path in 'hclge_rss_init_hw()'

2017-10-01 Thread David Miller
From: Christophe JAILLET Date: Sat, 30 Sep 2017 07:34:34 +0200 > If this sanity check fails, we must free 'rss_indir'. Otherwise there is a > memory leak. > 'goto err' as done in the other error handling paths to fix it. > > Fixes: 46a3df9f9718 ("net: hns3: Fix

Re: [PATCH] net: hns3: Fix an error handling path in 'hclge_rss_init_hw()'

2017-10-01 Thread David Miller
From: Christophe JAILLET Date: Sat, 30 Sep 2017 07:34:34 +0200 > If this sanity check fails, we must free 'rss_indir'. Otherwise there is a > memory leak. > 'goto err' as done in the other error handling paths to fix it. > > Fixes: 46a3df9f9718 ("net: hns3: Fix for setting rss_size

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: David Miller Date: Sun, 01 Oct 2017 22:54:19 -0700 (PDT) > From: Avinash Repaka > Date: Fri, 29 Sep 2017 18:13:50 -0700 > >> This patch fixes the scope of has_fr and has_fmr variables as they are >> needed only in rds_ib_add_one(). >> >>

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: David Miller Date: Sun, 01 Oct 2017 22:54:19 -0700 (PDT) > From: Avinash Repaka > Date: Fri, 29 Sep 2017 18:13:50 -0700 > >> This patch fixes the scope of has_fr and has_fmr variables as they are >> needed only in rds_ib_add_one(). >> >> Signed-off-by: Avinash Repaka > > Applied.

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: Avinash Repaka Date: Fri, 29 Sep 2017 18:13:50 -0700 > This patch fixes the scope of has_fr and has_fmr variables as they are > needed only in rds_ib_add_one(). > > Signed-off-by: Avinash Repaka Applied.

Re: [PATCH net] RDS: IB: Limit the scope of has_fr/has_fmr variables

2017-10-01 Thread David Miller
From: Avinash Repaka Date: Fri, 29 Sep 2017 18:13:50 -0700 > This patch fixes the scope of has_fr and has_fmr variables as they are > needed only in rds_ib_add_one(). > > Signed-off-by: Avinash Repaka Applied.

Re: [PATCH v2 net] net: mvpp2: Fix clock resource by adding an optional bus clock

2017-10-01 Thread David Miller
From: Gregory CLEMENT Date: Fri, 29 Sep 2017 14:27:39 +0200 > On Armada 7K/8K we need to explicitly enable the bus clock. The bus clock > is optional because not all the SoCs need them but at least for Armada > 7K/8K it is actually mandatory. > > The binding

Re: [PATCH v2 net] net: mvpp2: Fix clock resource by adding an optional bus clock

2017-10-01 Thread David Miller
From: Gregory CLEMENT Date: Fri, 29 Sep 2017 14:27:39 +0200 > On Armada 7K/8K we need to explicitly enable the bus clock. The bus clock > is optional because not all the SoCs need them but at least for Armada > 7K/8K it is actually mandatory. > > The binding documentation is updating

Re: [PATCH V4] r8152: add Linksys USB3GIGV1 id

2017-10-01 Thread David Miller
From: Grant Grundler Date: Thu, 28 Sep 2017 11:35:00 -0700 > This linksys dongle by default comes up in cdc_ether mode. > This patch allows r8152 to claim the device: >Bus 002 Device 002: ID 13b1:0041 Linksys > > Signed-off-by: Grant Grundler

Re: [PATCH V4] r8152: add Linksys USB3GIGV1 id

2017-10-01 Thread David Miller
From: Grant Grundler Date: Thu, 28 Sep 2017 11:35:00 -0700 > This linksys dongle by default comes up in cdc_ether mode. > This patch allows r8152 to claim the device: >Bus 002 Device 002: ID 13b1:0041 Linksys > > Signed-off-by: Grant Grundler Applied, thanks.

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Greg KH
On Sun, Oct 01, 2017 at 08:52:20PM -0400, Jérémy Lefaure wrote: > On Mon, 2 Oct 2017 09:01:31 +1100 > "Tobin C. Harding" wrote: > > > > In order to reduce the size of the To: and Cc: lines, each patch of the > > > series is sent only to the maintainers and lists concerned by the

Re: [PATCH 00/18] use ARRAY_SIZE macro

2017-10-01 Thread Greg KH
On Sun, Oct 01, 2017 at 08:52:20PM -0400, Jérémy Lefaure wrote: > On Mon, 2 Oct 2017 09:01:31 +1100 > "Tobin C. Harding" wrote: > > > > In order to reduce the size of the To: and Cc: lines, each patch of the > > > series is sent only to the maintainers and lists concerned by the patch. > > >

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Michael Witten
On Sun, 1 Oct 2017 17:59:09 -0700, Stephen Hemminger wrote: > On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > >> +spin_lock_irqsave(>lock, flags); >> +skb = q->next; >> +__skb_queue_head_init(q); >> +spin_unlock_irqrestore(>lock, flags); > > Other code manipulating

Re: [PATCH net 3/3] net: skb_queue_purge(): lock/unlock the queue only once

2017-10-01 Thread Michael Witten
On Sun, 1 Oct 2017 17:59:09 -0700, Stephen Hemminger wrote: > On Sun, 01 Oct 2017 22:19:20 - Michael Witten wrote: > >> +spin_lock_irqsave(>lock, flags); >> +skb = q->next; >> +__skb_queue_head_init(q); >> +spin_unlock_irqrestore(>lock, flags); > > Other code manipulating

Re: [PATCH 04/18] IB/mlx5: Use ARRAY_SIZE

2017-10-01 Thread Leon Romanovsky
On Sun, Oct 01, 2017 at 03:30:42PM -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) >

Re: [PATCH 04/18] IB/mlx5: Use ARRAY_SIZE

2017-10-01 Thread Leon Romanovsky
On Sun, Oct 01, 2017 at 03:30:42PM -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) >

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 07:42:42PM -0400, Mimi Zohar wrote: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar > > > wrote: > > > > > > > > Right,

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 07:42:42PM -0400, Mimi Zohar wrote: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar > > > wrote: > > > > > > > > Right, re-introducing the

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-01 Thread Michael S. Tsirkin
Looks good to me. minor comments below. On Sat, Sep 30, 2017 at 12:05:52PM +0800, Wei Wang wrote: > @@ -141,13 +146,128 @@ static void set_page_pfns(struct virtio_balloon *vb, > page_to_balloon_pfn(page) + i); > } > > + > +static void

Re: [PATCH v16 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-10-01 Thread Michael S. Tsirkin
Looks good to me. minor comments below. On Sat, Sep 30, 2017 at 12:05:52PM +0800, Wei Wang wrote: > @@ -141,13 +146,128 @@ static void set_page_pfns(struct virtio_balloon *vb, > page_to_balloon_pfn(page) + i); > } > > + > +static void

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-10-01 Thread Daniel Drake
Hi AceLan, On Thu, Sep 28, 2017 at 4:28 PM, AceLan Kao wrote: > Hi Daniel, > > I've tried your patch, but it doesn't work for me. > Wifi can scan AP, but can't get connected. Can you please clarify which patch(es) you have tried? This is the base patch which adds the

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-10-01 Thread Daniel Drake
Hi AceLan, On Thu, Sep 28, 2017 at 4:28 PM, AceLan Kao wrote: > Hi Daniel, > > I've tried your patch, but it doesn't work for me. > Wifi can scan AP, but can't get connected. Can you please clarify which patch(es) you have tried? This is the base patch which adds the infrastructure to request

[PATCH v2] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-01 Thread Anup Patel
Currently, RPMSG_VIRTIO can only be enabled if some other kconfig option selects it. This does not allow it to be enabled for virtualized systems where Virtio RPMSG is available over Virtio MMIO or PCI transport. This patch updates RPMSG_VIRTIO kconfig option so that we can enable the VirtIO

[PATCH v2] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-01 Thread Anup Patel
Currently, RPMSG_VIRTIO can only be enabled if some other kconfig option selects it. This does not allow it to be enabled for virtualized systems where Virtio RPMSG is available over Virtio MMIO or PCI transport. This patch updates RPMSG_VIRTIO kconfig option so that we can enable the VirtIO

Re: [PATCH 01/18] sound: use ARRAY_SIZE

2017-10-01 Thread Joe Perches
On Sun, 2017-10-01 at 15:30 -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) > > >

Re: [PATCH 01/18] sound: use ARRAY_SIZE

2017-10-01 Thread Joe Perches
On Sun, 2017-10-01 at 15:30 -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) > > >

[PATCH] platform/x86: peaq-wmi: Blacklist Lenovo ideapad 700-15ISK

2017-10-01 Thread Kai-Heng Feng
peaq-wmi on Lenovo ideapad 700-15ISK keeps sending KEY_SOUND, which makes user's repeated keys gets interrupted. The system does not have Dolby button, let's blacklist it. BugLink: https://bugs.launchpad.net/bugs/1720219 Signed-off-by: Kai-Heng Feng ---

[PATCH] platform/x86: peaq-wmi: Blacklist Lenovo ideapad 700-15ISK

2017-10-01 Thread Kai-Heng Feng
peaq-wmi on Lenovo ideapad 700-15ISK keeps sending KEY_SOUND, which makes user's repeated keys gets interrupted. The system does not have Dolby button, let's blacklist it. BugLink: https://bugs.launchpad.net/bugs/1720219 Signed-off-by: Kai-Heng Feng --- drivers/platform/x86/peaq-wmi.c | 19

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 04:15:07PM -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 3:34 PM, Dave Chinner wrote: > > > > We already have a change counter on the inode, which is modified on > > any data or metadata write (i_version) under filesystem locks. The > >

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Dave Chinner
On Sun, Oct 01, 2017 at 04:15:07PM -0700, Linus Torvalds wrote: > On Sun, Oct 1, 2017 at 3:34 PM, Dave Chinner wrote: > > > > We already have a change counter on the inode, which is modified on > > any data or metadata write (i_version) under filesystem locks. The > > i_version counter has well

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Eric W. Biederman
Mimi Zohar writes: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: >> On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: >> > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar >> > wrote: >> > > >> > > Right, re-introducing the

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-01 Thread Eric W. Biederman
Mimi Zohar writes: > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: >> On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: >> > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar >> > wrote: >> > > >> > > Right, re-introducing the iint->mutex and a new i_generation field in >> > >

Re: [PATCH] powernv: Add OCC driver to mmap sensor area

2017-10-01 Thread Stewart Smith
Shilpasri G Bhat writes: > This driver provides interface to mmap the OCC sensor area > to userspace to parse and read OCC inband sensors. Why? Is this for debug? If so, the existing exports interface should be used. If there's actual sensors, we already have

Re: [PATCH] powernv: Add OCC driver to mmap sensor area

2017-10-01 Thread Stewart Smith
Shilpasri G Bhat writes: > This driver provides interface to mmap the OCC sensor area > to userspace to parse and read OCC inband sensors. Why? Is this for debug? If so, the existing exports interface should be used. If there's actual sensors, we already have two ways of exposing sensors to

Re: [RFC][PATCH] KEYS: Replace uid/gid/perm permissions checking with ACL

2017-10-01 Thread Eric Biggers
Hi David, On Wed, Sep 27, 2017 at 12:41:41PM +0100, David Howells wrote: > > Replace the uid/gid/perm permissions checking on a key with an ACL to > allow > the SETATTR permission to be split. The problem is that SETATTR covers a > slew of things, not all of which should be

Re: [RFC][PATCH] KEYS: Replace uid/gid/perm permissions checking with ACL

2017-10-01 Thread Eric Biggers
Hi David, On Wed, Sep 27, 2017 at 12:41:41PM +0100, David Howells wrote: > > Replace the uid/gid/perm permissions checking on a key with an ACL to > allow > the SETATTR permission to be split. The problem is that SETATTR covers a > slew of things, not all of which should be

[Patch v4 14/22] CIFS: SMBD: Implement function to send data via RDMA send

2017-10-01 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 | 248

[Patch v4 02/22] CIFS: SMBD: Establish SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add code to implement the core functions to establish a SMBDirect connection. 1. Establish an RDMA connection to SMB server. 2. Negotiate and setup SMBDirect protocol. 3. Implement idle connection timer and credit management. Add to Makefile. Signed-off-by:

[Patch v4 14/22] CIFS: SMBD: Implement function to send data via RDMA send

2017-10-01 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 | 248 fs/cifs/smbdirect.h | 4

[Patch v4 02/22] CIFS: SMBD: Establish SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add code to implement the core functions to establish a SMBDirect connection. 1. Establish an RDMA connection to SMB server. 2. Negotiate and setup SMBDirect protocol. 3. Implement idle connection timer and credit management. Add to Makefile. Signed-off-by: Long Li ---

[Patch v4 01/22] CIFS: SMBD: Add SMBDirect protocol initial values and constants

2017-10-01 Thread Long Li
From: Long Li To prepare for protocol implementation, add constants and user-configurable values in the SMBDirect protocol. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 77 +

[Patch v4 01/22] CIFS: SMBD: Add SMBDirect protocol initial values and constants

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

[Patch v4 06/22] CIFS: SMBD: Upper layer connects to SMBDirect session

2017-10-01 Thread Long Li
From: Long Li When "rdma" is specified in the mount option, CIFS attempts to connect to SMBDirect instead of TCP socket. Signed-off-by: Long Li --- fs/cifs/connect.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[Patch v4 06/22] CIFS: SMBD: Upper layer connects to SMBDirect session

2017-10-01 Thread Long Li
From: Long Li When "rdma" is specified in the mount option, CIFS attempts to connect to SMBDirect instead of TCP socket. Signed-off-by: Long Li --- fs/cifs/connect.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index

[Patch v4 07/22] CIFS: SMBD: Implement function to reconnect to a SMBDirect transport

2017-10-01 Thread Long Li
From: Long Li Add function to implement a reconnect to SMBDirect. This involves tearing down the current connection and establishing/negotiating a new connection. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 36

[Patch v4 11/22] CIFS: SMBD: Set SMBDirect maximum read or write size for I/O

2017-10-01 Thread Long Li
From: Long Li When connecting over SMBDirect, 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.

[Patch v4 07/22] CIFS: SMBD: Implement function to reconnect to a SMBDirect transport

2017-10-01 Thread Long Li
From: Long Li Add function to implement a reconnect to SMBDirect. This involves tearing down the current connection and establishing/negotiating a new connection. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 36 fs/cifs/smbdirect.h | 3 +++ 2 files

[Patch v4 11/22] CIFS: SMBD: Set SMBDirect maximum read or write size for I/O

2017-10-01 Thread Long Li
From: Long Li When connecting over SMBDirect, 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 ---

[Patch v4 08/22] CIFS: SMBD: Upper layer reconnects to SMBDirect session

2017-10-01 Thread Long Li
From: Long Li Do a reconnect on SMBDirect when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of upper layer SMB2. Signed-off-by: Long Li --- fs/cifs/connect.c | 6 +- 1 file changed, 5

[Patch v4 08/22] CIFS: SMBD: Upper layer reconnects to SMBDirect session

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

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

2017-10-01 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

[Patch v4 12/22] CIFS: SMBD: Implement function to receive data via RDMA receive

2017-10-01 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

[Patch v4 10/22] CIFS: SMBD: Upper layer destroys SMBDirect session on shutdown or umount

2017-10-01 Thread Long Li
From: Long Li When CIFS wants to umount, call shutdown on transport when SMBDirect is used. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index

[Patch v4 04/22] CIFS: SMBD: Add rdma mount option

2017-10-01 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

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

2017-10-01 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

[Patch v4 12/22] CIFS: SMBD: Implement function to receive data via RDMA receive

2017-10-01 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

[Patch v4 10/22] CIFS: SMBD: Upper layer destroys SMBDirect session on shutdown or umount

2017-10-01 Thread Long Li
From: Long Li When CIFS wants to umount, call shutdown on transport when SMBDirect is used. Signed-off-by: Long Li --- fs/cifs/connect.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 26ad706..1a9f22f 100644 --- a/fs/cifs/connect.c +++

[Patch v4 04/22] CIFS: SMBD: Add rdma mount option

2017-10-01 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 ---

[Patch v4 05/22] CIFS: SMBD: Implement function to create a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li The upper layer calls this function to connect to peer through SMBDirect. Each SMBDirect connection is based on a RC Queue Pair. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 17 + fs/cifs/smbdirect.h | 4 2

[Patch v4 05/22] CIFS: SMBD: Implement function to create a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li The upper layer calls this function to connect to peer through SMBDirect. Each SMBDirect connection is based on a RC Queue Pair. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 17 + fs/cifs/smbdirect.h | 4 2 files changed, 21 insertions(+) diff --git

[Patch v4 16/22] CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE

2017-10-01 Thread Long Li
From: Long Li The channel value for requesting server remote invalidating local memory registration should be 0x0002 Signed-off-by: Long Li --- fs/cifs/smb2pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Patch v4 03/22] CIFS: SMBD: export protocol initial values

2017-10-01 Thread Long Li
From: Long Li Those values can be configured by user. Export them to /proc/fs/cifs. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 70 1 file changed, 70 insertions(+) diff --git

[Patch v4 16/22] CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE

2017-10-01 Thread Long Li
From: Long Li The channel value for requesting server remote invalidating local memory registration should be 0x0002 Signed-off-by: Long Li --- fs/cifs/smb2pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index

[Patch v4 03/22] CIFS: SMBD: export protocol initial values

2017-10-01 Thread Long Li
From: Long Li Those values can be configured by user. Export them to /proc/fs/cifs. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 70 1 file changed, 70 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index

[Patch v4 22/22] CIFS: SMBD: Add SMBDirect debug counters

2017-10-01 Thread Long Li
From: Long Li Export SMBDirect debug counters to /proc/fs/cifs/DebugData. Those are used for debugging, troubleshooting and profiling. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 87 1 file

[Patch v4 09/22] CIFS: SMBD: Implement function to destroy a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add function to tear down a SMBDirect connection. This is used by upper layer to free all SMBDirect connection and transport resources. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 16 fs/cifs/smbdirect.h | 3 +++

[Patch v4 19/22] CIFS: SMBD: Add parameter rdata to smb2_new_read_req

2017-10-01 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

[Patch v4 22/22] CIFS: SMBD: Add SMBDirect debug counters

2017-10-01 Thread Long Li
From: Long Li Export SMBDirect debug counters to /proc/fs/cifs/DebugData. Those are used for debugging, troubleshooting and profiling. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 87 1 file changed, 87 insertions(+) diff --git

[Patch v4 09/22] CIFS: SMBD: Implement function to destroy a SMBDirect connection

2017-10-01 Thread Long Li
From: Long Li Add function to tear down a SMBDirect connection. This is used by upper layer to free all SMBDirect connection and transport resources. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 16 fs/cifs/smbdirect.h | 3 +++ 2 files changed, 19 insertions(+) diff

[Patch v4 19/22] CIFS: SMBD: Add parameter rdata to smb2_new_read_req

2017-10-01 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

[Patch v4 00/22] CIFS: Implement SMBDirect

2017-10-01 Thread Long Li
From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMBDirect transport protocol for transferring upper layer (SMB2) payload over RDMA via Infiniband, RoCE or iWARP. The prococol is published in [MS-SMBD]

[Patch v4 00/22] CIFS: Implement SMBDirect

2017-10-01 Thread Long Li
From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMBDirect 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). Patch v2 added

[Patch v4 13/22] CIFS: SMBD: Upper layer receives data via RDMA receive

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for receiving data via RDMA receive. 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

[Patch v4 13/22] CIFS: SMBD: Upper layer receives data via RDMA receive

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for receiving data via RDMA receive. 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 1a9f22f..8026682 100644 --- a/fs/cifs/connect.c

[Patch v4 17/22] CIFS: SMBD: Implement RDMA memory registration

2017-10-01 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 ---

[Patch v4 17/22] CIFS: SMBD: Implement RDMA memory registration

2017-10-01 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 | 428

[Patch v4 15/22] CIFS: SMBD: Upper layer sends data via RDMA send

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7efbab0..3a9b5a0

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

2017-10-01 Thread Long Li
From: Long Li This patch is for preparing upper layer for 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

[Patch v4 15/22] CIFS: SMBD: Upper layer sends data via RDMA send

2017-10-01 Thread Long Li
From: Long Li With SMBDirect connected, use it for sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7efbab0..3a9b5a0 100644 --- a/fs/cifs/transport.c +++

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

2017-10-01 Thread Long Li
From: Long Li This patch is for preparing upper layer for 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.

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

2017-10-01 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

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

2017-10-01 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

[PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes

2017-10-01 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi

[PATCH v3 07/10] arm: dts: mt7623: add iommu and jpecdec nodes

2017-10-01 Thread Ryder Lee
This patch adds iommu and jpecdec nodes for MT7623. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 74 +++ 1 file changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index a877f9a..b257715

[PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-01 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git

[PATCH v3 06/10] arm: dts: mt7623: add subsystem clock controller nodes

2017-10-01 Thread Ryder Lee
This patch adds missing susbsystem clock controllers nodes for MT7623. (e.g., mmsys, imgsys, vdecsys and bdpsys) Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi

[PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-01 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git

[PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee ---

[PATCH v3 05/10] arm: dts: mt7623: update pio, usb and crypto nodes

2017-10-01 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi

[PATCH v3 02/10] arm: dts: mt2701: enable display pwm backlight

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701-evb.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git

[PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-01 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff

[PATCH v3 04/10] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-10-01 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 4 +++- arch/arm/boot/dts/mt7623.dtsi | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75

[PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-01 Thread Ryder Lee
Hi Matthias, This patch series adds/corrects some device nodes for both MT7623 and MT2701. changes since v3: - revert PIO register space. changes since v2: - move non-common part and non-display related nodes to different patches. - remove unused wdma node. - add display related nodes for

[PATCH v3 03/10] arm: dts: mt2701: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
From: YT Shen This patch adds the device nodes for MT2701 DISP function blocks. Signed-off-by: YT Shen Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git

[PATCH v3 00/10] update MT7623 and MT2701 dts

2017-10-01 Thread Ryder Lee
Hi Matthias, This patch series adds/corrects some device nodes for both MT7623 and MT2701. changes since v3: - revert PIO register space. changes since v2: - move non-common part and non-display related nodes to different patches. - remove unused wdma node. - add display related nodes for

[PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi

[PATCH v3 08/10] arm: dts: mt7623: add display subsystem related nodes

2017-10-01 Thread Ryder Lee
This patch adds the device nodes for the display function blocks. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 94 +++ 1 file changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index

[PATCH v3 01/10] arm: dts: mt2701: add pwm backlight device node

2017-10-01 Thread Ryder Lee
From: Weiqing Kong This patch adds the device node for MT2701 pwm backlight. Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt2701.dtsi | 9

[PATCH v3 10/10] arm: dts: mt7623: add PCIe related nodes

2017-10-01 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++

  1   2   3   4   5   >