Re: [PATCH] infiniband: hfi1: fix memory leaks

2019-08-19 Thread Leon Romanovsky
ee_data' label > to free 'data' before returning the error. > > Signed-off-by: Wenwen Wang > --- > drivers/infiniband/hw/hfi1/fault.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky

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

2020-05-02 Thread Leon Romanovsky
On Fri, May 01, 2020 at 12:48:36PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c > > between commit: > > 8075411d93b6 ("net/mlx5: DR, On creation set CQ's arm_db member

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-05-02 Thread Leon Romanovsky
On Thu, Apr 30, 2020 at 04:37:14PM +0200, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 7:22 AM Leon Romanovsky wrote: > > On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > > > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > > &g

[PATCH rdma-next v3 0/5] Set flow_label and RoCEv2 UDP source port for datagram QP

2020-05-03 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: Rebased on latest rdma-nex, which includes HCA set capability patch and LAG code and this is why new patch from Maor was added. v2: https://lore.kernel.org/linux-rdma/20200413133703.932731-1-l...@kernel.org Dropped patch "RDMA/cm: Set flow lab

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-04-29 Thread Leon Romanovsky
On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > excessive and now causes the compiler to complain on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c: In function > 'qp_read_field':

Re: [BUG] infiniband: mlx5: a possible null-pointer dereference in set_roce_addr()

2019-07-28 Thread Leon Romanovsky
On Mon, Jul 29, 2019 at 10:16:30AM +0800, Jia-Ju Bai wrote: > In set_roce_addr(), there is an if statement on line 589 to check whether > gid is NULL: >     if (gid) > > When gid is NULL, it is used on line 613: >     return mlx5_core_roce_gid_set(..., gid->raw, ...); > > Thus, a possible null-poin

Re: [BUG] infiniband: mlx5: a possible null-pointer dereference in set_roce_addr()

2019-07-28 Thread Leon Romanovsky
On Mon, Jul 29, 2019 at 05:26:30AM +, Parav Pandit wrote: > > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Parav Pandit > > Sent: Monday, July 29, 2019 10:55 AM > > To: Jia-Ju Bai ; l...@kernel.org; > > dledf...@redhat.com; j

Re: [PATCH 5/8] infiniband: mlx5: no need to check return value of debugfs_create functions

2019-01-22 Thread Leon Romanovsky
On Tue, Jan 22, 2019 at 04:17:57PM +0100, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Leon Romanov

Re: [PATCH net-next] net/mlx4: remove unneeded semicolon

2019-01-17 Thread Leon Romanovsky
eletions(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

[PATCH rdma-next] IB/core: Simplify rdma cgroup registration

2019-01-17 Thread Leon Romanovsky
device. Signed-off-by: Parav Pandit Signed-off-by: Leon Romanovsky Sorry for resend, now with relevant people in TO and CC --- drivers/infiniband/core/cgroup.c| 5 ++--- drivers/infiniband/core/core_priv.h | 17 +++-- drivers/infiniband/core/device.c| 8

Re: [PATCH] RDMA/mlx5: Replace kzalloc with kcalloc

2019-01-15 Thread Leon Romanovsky
ed with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/infiniband/hw/mlx5/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH] [V2] infiniband: fix a missing check of nla_put

2019-01-15 Thread Leon Romanovsky
On Sat, Jan 05, 2019 at 10:18:07AM -0600, Aditya Pakki wrote: > nla_put() may fail. The fix adds a check for its return value, and > returns -EMSGSIZE if it fails, post canceling netlink msg. > > Signed-off-by: Aditya Pakki > --- > drivers/infiniband/core/addr.c | 5 - > 1 file changed, 4 ins

Re: [PATCH] mlx5: avoid 64-bit division

2019-05-20 Thread Leon Romanovsky
On Mon, May 20, 2019 at 01:19:02PM +0200, Michal Kubecek wrote: > Commit 25c13324d03d ("IB/mlx5: Add steering SW ICM device memory type") > breaks i386 build by introducing three 64-bit divisions. As the divisor > is MLX5_SW_ICM_BLOCK_SIZE() which is always a power of 2, we can replace > the divisi

Re: [PATCH] checkpatch: add test for empty line after Fixes statement

2019-05-20 Thread Leon Romanovsky
On Mon, May 20, 2019 at 05:56:36AM -0700, Joe Perches wrote: > On Mon, 2019-05-20 at 15:42 +0300, Michal Kalderon wrote: > > Check that there is no empty line after a fixes statement > > why? It is common mistake for Gerrit users, they are removing their ChangeID crap with some wrong sed command w

Re: [EXT] Re: [PATCH] checkpatch: add test for empty line after Fixes statement

2019-05-20 Thread Leon Romanovsky
On Mon, May 20, 2019 at 06:34:49AM -0700, Joe Perches wrote: > On Mon, 2019-05-20 at 13:16 +, Michal Kalderon wrote: > > > From: Joe Perches > > > Sent: Monday, May 20, 2019 3:57 PM > > > Subject: [EXT] Re: [PATCH] checkpatch: add test for empty line after Fixes > > > statement > > > > > > Ext

Re: undefined reference to `__aeabi_uldivmod' after 25c13324d03d ("IB/mlx5: Add steering SW ICM device memory type")

2019-05-14 Thread Leon Romanovsky
On Wed, May 15, 2019 at 12:34:00AM +, Jason Gunthorpe wrote: > On Tue, May 14, 2019 at 12:45:10PM -0700, Nathan Chancellor wrote: > > DIV_ROUND_UP is u64 / u32 in this case. I think DIV_ROUND_UP_ULL is > > needed but I am not sure if that has any unintended side effects so I > > didn't want to

Re: [PATCH v15 13/17] IB, arm64: untag user pointers in ib_uverbs_(re)reg_mr()

2019-05-06 Thread Leon Romanovsky
On Mon, May 06, 2019 at 04:50:20PM -0300, Jason Gunthorpe wrote: > On Mon, May 06, 2019 at 06:30:59PM +0200, Andrey Konovalov wrote: > > This patch is a part of a series that extends arm64 kernel ABI to allow to > > pass tagged user pointers (with the top byte set to something else other > > than 0

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-04-29 Thread Leon Romanovsky
On Mon, Apr 29, 2019 at 11:00:40AM +0200, Michal Kubecek wrote: > On Mon, Apr 29, 2019 at 08:40:37AM +, Jason Gunthorpe wrote: > > On Mon, Apr 29, 2019 at 08:09:47AM +0200, Heiko Carstens wrote: > > > On Sun, Apr 28, 2019 at 11:52:12AM +, Jason Gunthorpe wrote: > > > > Hi Linus, > > > > > >

Re: Build regressions/improvements in v5.1-rc7

2019-04-29 Thread Leon Romanovsky
On Mon, Apr 29, 2019 at 10:30:06AM +0200, Geert Uytterhoeven wrote: > On Mon, Apr 29, 2019 at 10:28 AM Geert Uytterhoeven > wrote: > > JFYI, when comparing v5.1-rc7[1] to v5.1-rc6[3], the summaries are: > > - build errors: +1/-0 > > + /kisskb/src/drivers/infiniband/core/uverbs_main.c: error: '

Re: [GIT PULL] Please pull rdma.git

2019-04-29 Thread Leon Romanovsky
On Mon, Apr 29, 2019 at 01:13:01PM -0400, Doug Ledford wrote: > On Mon, 2019-04-29 at 09:48 -0700, Linus Torvalds wrote: > > On Mon, Apr 29, 2019 at 9:29 AM Doug Ledford wrote: > > > > > > drivers/infiniband/core/uverbs_main.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Th

Re: [PATCH 4.19 36/45] net/mlx5: Fix modify_cq_in alignment

2019-08-10 Thread Leon Romanovsky
On Sat, Aug 10, 2019 at 01:25:45PM +0200, Pavel Machek wrote: > Hi! > > > From: Edward Srouji > > > > [ Upstream commit 7a32f2962c56d9d8a836b4469855caeee8766bd4 ] > > > > Fix modify_cq_in alignment to match the device specification. > > After this fix the 'cq_umem_valid' field will be in the right

Re: [PATCH 11/11] treewide: remove dummy Makefiles for single targets

2019-08-11 Thread Leon Romanovsky
On Sun, Aug 11, 2019 at 12:53:07AM +0900, Masahiro Yamada wrote: > Now that the single target build descends into sub-directories > in the same ways as the normal build, these dummy Makefiles > are not needed any more. > > Signed-off-by: Masahiro Yamada > --- > It is hard to test/review/ack on th

Re: [PATCH -next] RDMA/hns: remove set but not used variable 'irq_num'

2019-08-01 Thread Leon Romanovsky
c | 2 -- > 1 file changed, 2 deletions(-) > I'm hitting this error too. Thanks, Reviewed-by: Leon Romanovsky

Re: [PATCH 0/3] Use refcount_t for refcount

2019-08-04 Thread Leon Romanovsky
On Fri, Aug 02, 2019 at 08:10:35PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > > First convert the refcount field to refcount_t

Re: [PATCH v2 0/3] Use refcount_t for refcount

2019-08-04 Thread Leon Romanovsky
On Sat, Aug 03, 2019 at 01:23:34AM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > > First convert the refcount field to refcount_t

Re: [PATCH v2] net/mlx5e: Use refcount_t for refcount

2019-08-04 Thread Leon Romanovsky
On Sat, Aug 03, 2019 at 12:48:28AM +0800, Chuhong Yuan wrote: > refcount_t is better for reference counters since its > implementation can prevent overflows. > So convert atomic_t ref counters to refcount_t. I'm not thrilled to see those automatic conversion patches, especially for flows which can

Re: drivers/infiniband/core/.tmp_gl_uverbs_main.o:undefined reference to `__user_bad'

2019-08-04 Thread Leon Romanovsky
On Sun, Aug 04, 2019 at 09:50:50PM -0700, Randy Dunlap wrote: > On 4/2/19 7:38 PM, Randy Dunlap wrote: > > On 2/28/19 1:03 AM, kbuild test robot wrote: > >> Hi Jason, > >> > >> FYI, the error/warning still remains. > >> > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Re: [PATCH 0/3] Use refcount_t for refcount

2019-08-04 Thread Leon Romanovsky
On Sun, Aug 04, 2019 at 10:58:19PM +0800, Chuhong Yuan wrote: > On Sun, Aug 4, 2019 at 8:48 PM Leon Romanovsky wrote: > > > > On Fri, Aug 02, 2019 at 08:10:35PM +0800, Chuhong Yuan wrote: > > > Reference counters are preferred to use refcount_t instead of > > > at

Re: [PATCH v2] net/mlx5e: Use refcount_t for refcount

2019-08-04 Thread Leon Romanovsky
On Sun, Aug 04, 2019 at 10:44:47PM +0800, Chuhong Yuan wrote: > On Sun, Aug 4, 2019 at 8:59 PM Leon Romanovsky wrote: > > > > On Sat, Aug 03, 2019 at 12:48:28AM +0800, Chuhong Yuan wrote: > > > refcount_t is better for reference counters since its > > > imp

Re: [PATCH v2] net/mlx5e: Use refcount_t for refcount

2019-08-06 Thread Leon Romanovsky
On Mon, Aug 05, 2019 at 08:06:36PM +, Saeed Mahameed wrote: > On Mon, 2019-08-05 at 14:55 +0800, Chuhong Yuan wrote: > > On Mon, Aug 5, 2019 at 2:13 PM Leon Romanovsky > > wrote: > > > On Sun, Aug 04, 2019 at 10:44:47PM +0800, Chuhong Yuan wrote: > > > >

Re: [PATCH][next] RDMA/core: fix spelling mistake "Nelink" -> "Netlink"

2019-07-31 Thread Leon Romanovsky
1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky

Re: [PATCH v3] mlx5: Use refcount_t for refcount

2019-08-06 Thread Leon Romanovsky
.c | 6 +++--- > > drivers/net/ethernet/mellanox/mlx5/core/qp.c | 6 +++--- > > include/linux/mlx5/driver.h | 3 ++- > > 3 files changed, 8 insertions(+), 7 deletions(-) > > > > LGTM, Leon, let me know if you are happy with this version, > this should go to mlx5-next. Thanks, Acked-by: Leon Romanovsky

Re: [PATCH] arch/microblaze: add support for get_user() of size 8 bytes

2019-08-06 Thread Leon Romanovsky
quot;microblaze: fix get_user/put_user side-effects") > Reported-by: kbuild test robot > Signed-off-by: Randy Dunlap > Cc: Al Viro > Cc: Steven J. Magnani > Cc: Michal Simek > Cc: Jason Gunthorpe > Cc: Leon Romanovsky > Cc: Andrew Morton > --- > arch/microblaze/include/asm/uaccess.h |6 ++ > 1 file changed, 6 insertions(+) > Thanks, it works for us. Reviewed-by: Leon Romanovsky

Re: [PATCH] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: > If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > but INFINIBAND_HNS is y, building fails: > > drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_exit': > hns_roce_hw_v2.c:(.exit.text+0xd): undefined reference to

Re: [PATCH] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 06:06:22PM +0800, Yuehaibing wrote: > > On 2019/7/23 15:43, Leon Romanovsky wrote: > > On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: > >> If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > >> but INFINIBAND_HNS is y, bui

Re: [PATCH] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 09:34:02AM -0300, Jason Gunthorpe wrote: > On Tue, Jul 23, 2019 at 10:43:39AM +0300, Leon Romanovsky wrote: > > On Tue, Jul 23, 2019 at 10:49:08AM +0800, YueHaibing wrote: > > > If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > > > but INFINIBA

Re: [PATCH] IB/mlx4: prevent undefined shift in set_user_sq_size()

2019-06-10 Thread Leon Romanovsky
On Mon, Jun 10, 2019 at 10:28:49AM -0300, Jason Gunthorpe wrote: > On Sat, Jun 08, 2019 at 12:22:31PM +0300, Dan Carpenter wrote: > > The ucmd->log_sq_bb_count is a u8 that comes from the user. If it's > > larger than the number of bits in an int then that's undefined behavior. > > It turns out th

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

2019-07-01 Thread Leon Romanovsky
On Tue, Jul 02, 2019 at 01:13:27PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c > > between commit: > > 955858009708 ("net/mlx5e: Fix number of vports for ingress ACL

Re: linux-next: Fixes tag needs some work in the mlx5-next tree

2019-07-01 Thread Leon Romanovsky
On Tue, Jul 02, 2019 at 10:05:33AM +1000, Stephen Rothwell wrote: > Hi all, > > In commit > > 16fff98a7e82 ("net/mlx5: E-Switch, Reg/unreg function changed event at > correct stage") > > Fixes tag > > Fixes: 61fc880839e6 ("net/mlx5: E-Switch, Handle representors creation in > handler context"

Re: linux-next: manual merge of the mlx5-next tree with the rdma tree

2019-07-03 Thread Leon Romanovsky
On Thu, Jul 04, 2019 at 12:47:38PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > drivers/infiniband/hw/mlx5/cq.c > > between commit: > > e39afe3d6dbd ("RDMA: Convert CQ allocations to be under core > responsibility") > > from

Re: [PATCH v2] RDMA/core: Fix race when resolving IP address

2019-07-04 Thread Leon Romanovsky
On Fri, Jul 05, 2019 at 07:49:06AM +0530, Parav Pandit wrote: > On Fri, Jun 28, 2019 at 2:20 PM Dag Moxnes wrote: > > > > Use neighbour lock when copying MAC address from neighbour data struct > > in dst_fetch_ha. > > > > When not using the lock, it is possible for the function to race with > > ne

Re: linux-next: build failure after merge of the net-next tree

2019-07-08 Thread Leon Romanovsky
27;t know why this didn't fail after I mereged > that tree. I had the same question, because I have this fix for a couple of days already. From 56c9e15ec670af580daa8c3ffde9503af3042d67 Mon Sep 17 00:00:00 2001 From: Leon Romanovsky Date: Sun, 7 Jul 2019 10:43:42 +0300 Subject: [PATCH] Fixup to build SI

Re: linux-next: build failure after merge of the rdma tree

2019-07-09 Thread Leon Romanovsky
On Tue, Jul 09, 2019 at 10:04:16AM +0300, Mark Zhang wrote: > Hi Stephen, Stephen, For some reason, I wasn't in initial email report, can you please check why? I need to be aware of any issues related to patches with my name on it for tracking and improving internal submission flows/checks. > >

Re: linux-next: build failure after merge of the rdma tree

2019-07-09 Thread Leon Romanovsky
On Tue, Jul 09, 2019 at 10:43:56PM +1000, Stephen Rothwell wrote: > Hi Leon, > > On Tue, 9 Jul 2019 07:18:00 +0000 Leon Romanovsky wrote: > > > > For some reason, I wasn't in initial email report, can you please check why? > > Sorry about that, I manually grab e

Re: [PATCH] net/mlx5e: Return in default case statement in tx_post_resync_params

2019-07-09 Thread Leon Romanovsky
On Tue, Jul 09, 2019 at 04:10:24PM -0700, Nathan Chancellor wrote: > On Tue, Jul 09, 2019 at 03:44:59PM -0700, Nick Desaulniers wrote: > > On Mon, Jul 8, 2019 at 4:13 PM Nathan Chancellor > > wrote: > > > > > > clang warns: > > > > > > drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c:251

Re: [PATCH] RDMA/siw: Print error code while kthread_create failed

2019-07-09 Thread Leon Romanovsky
On Wed, Jul 10, 2019 at 09:50:09AM +0800, YueHaibing wrote: > In iw_create_tx_threads(), if we failed to create kthread, > we should print the 'rv', this fix gcc warning: > > drivers/infiniband/sw/siw/siw_main.c: In function 'siw_create_tx_threads': > drivers/infiniband/sw/siw/siw_main.c:91:11: war

Re: linux-next: build failure after merge of the net-next tree

2019-07-09 Thread Leon Romanovsky
On Wed, Jul 10, 2019 at 02:31:58PM +1000, Stephen Rothwell wrote: > Hi Leon, > > On Tue, 9 Jul 2019 09:43:46 +0300 Leon Romanovsky wrote: > > > > From 56c9e15ec670af580daa8c3ffde9503af3042d67 Mon Sep 17 00:00:00 2001 > > From: Leon Romanovsky > > Date: Sun, 7 Ju

Re: [PATCH v2] net/mlx5e: Refactor switch statements to avoid using uninitialized variables

2019-07-09 Thread Leon Romanovsky
ead1f360e8 ("net/mlx5e: Add kTLS TX HW offload support") > Link: https://github.com/ClangBuiltLinux/linux/issues/590 > Suggested-by: Leon Romanovsky > Suggested-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- > > v1 -> v2: > > * Refactor switch

Re: [PATCH net-next v3] net/mlx5e: Convert single case statement switch statements into if statements

2019-07-10 Thread Leon Romanovsky
ments > that return early so that the code is easier to follow. > > Suggested-by: Leon Romanovsky > Suggested-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- Thanks again, Reviewed-by: Leon Romanovsky

Re: linux-next: build failure after merge of the net-next tree

2019-07-10 Thread Leon Romanovsky
On Thu, Jul 11, 2019 at 01:16:03PM +1000, Stephen Rothwell wrote: > Hi all, > > On Thu, 11 Jul 2019 13:13:44 +1000 Stephen Rothwell > wrote: > > > > On Thu, 11 Jul 2019 02:26:27 + Jason Gunthorpe > > wrote: > > > > > > On Thu, Jul 11, 2019 at 11:50:54AM +1000, Stephen Rothwell wrote: > > >

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-08 Thread Leon Romanovsky
On Fri, Mar 08, 2019 at 09:09:46AM +0100, Rasmus Villemoes wrote: > On 08/03/2019 08.01, Leon Romanovsky wrote: > > > > Mathematical therm for discrete numbers greater or equal to zero is > > "normal numbers". > > Sorry, WHAT? "Normal" is used and abu

Re: linux-next: build failure after merge of the xarray tree

2019-03-11 Thread Leon Romanovsky
On Sun, Mar 10, 2019 at 07:44:34PM -0700, Matthew Wilcox wrote: > On Thu, Feb 21, 2019 at 12:34:42PM +0000, Leon Romanovsky wrote: > > On Thu, Feb 21, 2019 at 05:13:32PM +1100, Stephen Rothwell wrote: > > > Hi all, > > > > > > After merging the xarray tre

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Leon Romanovsky
On Thu, Feb 21, 2019 at 05:13:32PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the xarray tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/linux/uio.h:12, > from include/linux/socket.h:8, >

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Leon Romanovsky
On Thu, Feb 21, 2019 at 11:48:01PM +1100, Stephen Rothwell wrote: > Hi Leon, > > On Thu, 21 Feb 2019 12:34:42 +0000 Leon Romanovsky > wrote: > > > > Matthew, really? change of API in -rc7? And it after you pushed us to > > base our -next on -rc5 after another API

Re: [PATCH] RDMA/cma: Make CM response timeout and # CM retries configurable

2019-02-23 Thread Leon Romanovsky
On Fri, Feb 22, 2019 at 12:51:55PM -0500, Doug Ledford wrote: > > > > On Feb 22, 2019, at 12:14 PM, Steve Wise > > wrote: > > > > > > On 2/22/2019 10:36 AM, Jason Gunthorpe wrote: > >> On Sun, Feb 17, 2019 at 06:09:09PM +0100, Håkon Bugge wrote: > >>> During certain workloads, the default CM resp

Re: linux-next: manual merge of the net-next tree with the rdma tree

2019-02-18 Thread Leon Romanovsky
On Mon, Feb 18, 2019 at 11:05:49AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/infiniband/hw/mlx5/ib_rep.c > > between commits: > > 459cc69fa4c1 ("RDMA: Provide safe ib_alloc_device() function") > fc9e4477f924 ("RDM

Re: [PATCH][next] net/mlx5e: Remove redundant assignment

2019-03-03 Thread Leon Romanovsky
ssue or not, the code is wrong and should be fixed. This alone is enough to see the Fixes line. Thanks, Acked-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH][next] RDMA/nes: remove redundant check on udata

2019-03-03 Thread Leon Romanovsky
On Sat, Mar 02, 2019 at 11:06:36PM +, Colin King wrote: > From: Colin Ian King > > The non-null check on udata is redundant as this check was performed > just a few statements earlier and the check is always true as udata > must be non-null at this point. Remove redundant the check on udata >

Re: [PATCH v2] RDMA/umem: minor bug fix and cleanup in error handling paths

2019-03-03 Thread Leon Romanovsky
On Sun, Mar 03, 2019 at 02:37:33PM -0800, John Hubbard wrote: > On 3/3/19 1:52 AM, Artemy Kovalyov wrote: > > > > > > On 02/03/2019 21:44, Ira Weiny wrote: > > > > > > On Sat, Mar 02, 2019 at 12:24:35PM -0800, john.hubb...@gmail.com wrote: > > > > From: John Hubbard > > > > > > > > ... > > > > 3.

Re: [PATCH v3] RDMA/umem: minor bug fix in error handling path

2019-03-04 Thread Leon Romanovsky
nement: for that same cleanup code, release_pages() > is better than put_page() in a loop. > > Cc: Leon Romanovsky > Cc: Ira Weiny > Cc: Jason Gunthorpe > Cc: Andrew Morton > Cc: Doug Ledford > Cc: linux-r...@vger.kernel.org > Cc: linux...@kvack.org > Signed-off

Re: [PATCH v3] RDMA/umem: minor bug fix in error handling path

2019-03-05 Thread Leon Romanovsky
an off by one error in the code that > > > cleans up if it fails to dma-map a page, after having > > > done a get_user_pages_remote() on a range of pages. > > > > > > 2. Refinement: for that same cleanup code, release_pages() > > > is better than put_page()

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-06 Thread Leon Romanovsky
_s < 8 * sizeof(*d) ? _s : 0; \ > > >^ > > > drivers/infiniband/hw/mlx5/qp.c:5820:6: note: in expansion of macro > > > check_shl_overflow > > >if (check_shl_overflow(rwq->wqe_count, rwq->wqe_shift, &rwq->buf_size)) > > >

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 06:53:54AM -0800, Bart Van Assche wrote: > On 3/6/19 11:24 PM, Leon Romanovsky wrote: > > My simple patch passes too :). > > Can you repost your patch? https://patchwork.kernel.org/patch/10841079/ As Rasmus wrote, the thing is to avoid a < 0 che

Re: [PATCH][next] RDMA/nes: remove redundant check on udata

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 10:23:28AM +, Colin Ian King wrote: > On 04/03/2019 06:36, Leon Romanovsky wrote: > > On Sat, Mar 02, 2019 at 11:06:36PM +, Colin King wrote: > >> From: Colin Ian King > >> > >> The non-null check on udata is redundant as this

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 08:52:51AM -0800, Kees Cook wrote: > On Thu, Mar 7, 2019 at 7:40 AM Leon Romanovsky wrote: > > > > On Thu, Mar 07, 2019 at 06:53:54AM -0800, Bart Van Assche wrote: > > > On 3/6/19 11:24 PM, Leon Romanovsky wrote: > > > > My simple patc

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 09:12:40AM -0800, Kees Cook wrote: > On Thu, Mar 7, 2019 at 9:02 AM Leon Romanovsky wrote: > > > > On Thu, Mar 07, 2019 at 08:52:51AM -0800, Kees Cook wrote: > > > On Thu, Mar 7, 2019 at 7:40 AM Leon Romanovsky > > > wrote: > > &g

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 04:08:23PM -0800, Bart Van Assche wrote: > On Thu, 2019-03-07 at 08:18 +0100, Rasmus Villemoes wrote: > > On 07/03/2019 03.14, Bart Van Assche wrote: > > > On 3/6/19 5:24 PM, Jason Gunthorpe wrote: > > > > > > > > > > diff --git a/include/linux/overflow.h b/include/linux/ove

Re: [PATCH] Avoid that check_shl_overflow() triggers a compiler warning when building with W=1

2019-03-07 Thread Leon Romanovsky
On Thu, Mar 07, 2019 at 09:28:45PM +0100, Rasmus Villemoes wrote: > On 07/03/2019 18.12, Kees Cook wrote: > > On Thu, Mar 7, 2019 at 9:02 AM Leon Romanovsky wrote: > >> > >> On Thu, Mar 07, 2019 at 08:52:51AM -0800, Kees Cook wrote: > >>> On Thu,

Re: [PATCH] ucma: fix a use-after-free in ucma_resolve_ip()

2018-09-12 Thread Leon Romanovsky
easing it. The similar > pattern is already used by ucma_destroy_id(). > > Reported-and-tested-by: syzbot+da2591e115d57a9cb...@syzkaller.appspotmail.com > Reported-by: syzbot+cfe3c1e8ef634ba89...@syzkaller.appspotmail.com > Cc: Jason Gunthorpe > Cc: Doug Ledford > Cc: Leon Romano

Re: [PATCH -next] RDMA: Remove duplicated include from ib_addr.h

2018-09-13 Thread Leon Romanovsky
On Thu, Sep 13, 2018 at 09:47:52PM +0800, YueHaibing wrote: > Remove duplicated include. > > Signed-off-by: YueHaibing > --- > include/rdma/ib_addr.h | 1 - > 1 file changed, 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH] infiniband: nes: add unlikely() to assert()

2018-09-04 Thread Leon Romanovsky
On Fri, Aug 31, 2018 at 10:24:18PM +0300, Igor Stoppa wrote: > Typically the assert is expected to not fail. This whole assert can be removed. > > Signed-off-by: Igor Stoppa > Acked-by: Doug Ledford Most probably that I missed discussion, but anyway, does this "Acked-by" come from internal or

Re: [PATCH] IB/mlx4: Remove unnecessary parentheses

2018-09-19 Thread Leon Romanovsky
hw/mlx4/mcg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: Linux RDMA mini-conf at Plumbers 2018

2018-09-20 Thread Leon Romanovsky
On Thu, Sep 20, 2018 at 12:19:23PM -0600, Jason Gunthorpe wrote: > This is just a friendly reminder that registration deadlines are > approaching for this conference. Please see > > https://www.linuxplumbersconf.org/event/2/page/7-attend > > For details. > > This year we expect to have close to a d

Re: [PATCH] infiniband: nes: add unlikely() to assert()

2018-09-07 Thread Leon Romanovsky
On Fri, Sep 07, 2018 at 06:25:03PM +0300, Igor Stoppa wrote: > On 07/09/18 18:13, Doug Ledford wrote: > > > This patch was part of a larger series on lkml. In that context, I > > acked it so that the series could be applied by whomever took it (it > > didn't belong on rdma-list as a series since o

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-09 Thread Leon Romanovsky
On Fri, Jun 08, 2018 at 10:42:18AM -0700, Matthew Wilcox wrote: > From: Matthew Wilcox > > Allocate agent IDs from a global IDR instead of an atomic variable. > This eliminates the possibility of reusing an ID which is already in > use after 4 billion registrations, and we can also limit the assig

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Leon Romanovsky
On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: > > 1. IBTA spec doesn't talk at all about the size of TransactionID, more > > on that in section "13.4.6.4 TRANSACTION ID USAGE", th

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-10 Thread Leon Romanovsky
On Sun, Jun 10, 2018 at 02:30:27PM -0600, Jason Gunthorpe wrote: > On Sun, Jun 10, 2018 at 03:25:05PM +0300, Leon Romanovsky wrote: > > On Sun, Jun 10, 2018 at 03:43:05AM -0700, Matthew Wilcox wrote: > > > On Sun, Jun 10, 2018 at 09:30:28AM +0300, Leon Romanovsky wrote: &g

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Leon Romanovsky
On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > > The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. > > If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has > > exited, get_

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Leon Romanovsky
On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 09:12:35PM +0300, Leon Romanovsky wrote: > > On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > > > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > &g

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread Leon Romanovsky
On Fri, May 04, 2018 at 04:32:38PM +0800, 858585 jemmy wrote: > On Fri, May 4, 2018 at 6:01 AM, Jason Gunthorpe wrote: > > On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: > >> On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: > >> >

Re: [PATCH v4] IB/umem: Release pid in error and ODP flow

2017-01-04 Thread Leon Romanovsky
d ("IB/core: Add support for on demand paging regions") > Signed-off-by: Kenneth Lee > Reviewed-by: Haggai Eran Thanks a lot for resending. Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: linux-next: bad rebase of the rdma-leon tree

2017-01-04 Thread Leon Romanovsky
On Thu, Jan 05, 2017 at 09:34:53AM +1100, Stephen Rothwell wrote: > Hi Leon, > > In rebasing the rdma-leon tree, you have cherry-picked several patches > that were in the net-next tree: > > Commit 8e4881aa == 90af6fea net: mdio: add mdio45_ethtool_ksettings_get > Commit e938ed15 == 9aee5260 net:

Re: [PATCH] IB/isert: fix spelling mistake: "teminating" -> "terminating"

2017-01-05 Thread Leon Romanovsky
1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-14 Thread Leon Romanovsky
On Thu, Jan 12, 2017 at 04:37:16PM +0100, Michal Hocko wrote: > From: Michal Hocko > > There are many code paths opencoding kvmalloc. Let's use the helper > instead. The main difference to kvmalloc is that those users are usually > not considering all the aspects of the memory allocator. E.g. allo

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 08:33:11AM +0100, Michal Hocko wrote: > On Sat 14-01-17 12:56:32, Leon Romanovsky wrote: > [...] > > Hi Michal, > > > > I don't see mlx5_vzalloc in the changed list. Any reason why did you skip > > it? > > > > 881 stat

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > We wanna know who's doing such a thing. Like slab.c does that. > > Signed-off-by: Borislav Petkov > --- > mm/slub.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/slub.c b/mm/slub.c > index

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:37:02AM +0100, Borislav Petkov wrote: > On Mon, Jan 16, 2017 at 11:28:40AM +0200, Leon Romanovsky wrote: > > On Mon, Jan 16, 2017 at 10:16:43AM +0100, Borislav Petkov wrote: > > > From: Borislav Petkov > > > > > > We wanna know who&#x

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 10:55:22AM +0100, Borislav Petkov wrote: > On Mon, Jan 16, 2017 at 11:48:51AM +0200, Leon Romanovsky wrote: > > Almost, except one point - pr_warn and dump_stack have different log > > Actually, Michal pointed out on IRC a more relevant difference: > &

Re: [PATCH] mm/slub: Add a dump_stack() to the unexpected GFP check

2017-01-16 Thread Leon Romanovsky
On Mon, Jan 16, 2017 at 11:13:10AM +0100, Borislav Petkov wrote: > On Mon, Jan 16, 2017 at 12:09:30PM +0200, Leon Romanovsky wrote: > > And doesn't dump_stack do the same? It pollutes the log too. > > It is not about polluting the log - it is about tainting. > >

Re: [PING][PATCH] IBcore/CM: Issue DREQ when receiving REQ/REP for stale QP

2017-02-01 Thread Leon Romanovsky
It was applied, see commit 9315bc9a133011fdb084f2626b86db3ebb64661f Thanks signature.asc Description: PGP signature

Re: [PATCH] IB/cxgb3: header should be defining CXGB3_ABI_USER_H

2017-01-25 Thread Leon Romanovsky
On Wed, Jan 25, 2017 at 02:48:49PM +, Colin King wrote: > From: Colin Ian King > > Fix typo in header guard macro, is currently CXBG3_ABI_USER_H and > should be CXGB3_ABI_USER_H (B and G are swapped). > > Signed-off-by: Colin Ian King Doug had similar fix already in his tree queued for 4.10.

Re: [PATCHv14 0/3] rdmacg: IB/core: rdma controller support

2017-01-10 Thread Leon Romanovsky
On Tue, Jan 10, 2017 at 11:15:05AM -0500, Tejun Heo wrote: > On Tue, Jan 10, 2017 at 12:02:12AM +, Parav Pandit wrote: > > Patchset is compiled and tested against below Tejun's cgroup tree > > using cgroup v1 and v2 mode. > > URL: git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git > >

Re: [PATCH] net/mlx4: use rb_entry()

2017-01-21 Thread Leon Romanovsky
On Fri, Jan 20, 2017 at 10:36:57PM +0800, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang > --- > drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 8 > 1 file changed, 4 insertions(+),

Re: [PATCH 1/1] IB/cxgb3: fix misspelling in header guard

2017-01-22 Thread Leon Romanovsky
IB/cxgb3: Move user vendor structures") Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH] net/mlx4: use rb_entry()

2017-01-22 Thread Leon Romanovsky
On Sun, Jan 22, 2017 at 10:42:25PM +0800, Geliang Tang wrote: > On Sun, Jan 22, 2017 at 09:48:39AM +0200, Leon Romanovsky wrote: > > On Fri, Jan 20, 2017 at 10:36:57PM +0800, Geliang Tang wrote: > > > To make the code clearer, use rb_entry() instead of container_of() to >

Re: [PATCH 5/9] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-30 Thread Leon Romanovsky
er Viro > Cc: Alexei Starovoitov > Cc: Eric Dumazet > Cc: net...@vger.kernel.org > Acked-by: Andreas Dilger # Lustre > Reviewed-by: Boris Ostrovsky # Xen bits > Acked-by: Christian Borntraeger # KVM/s390 > Acked-by: Dan Williams # nvdim > Acked-by: David Sterba # btrfs

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-15 Thread Leon Romanovsky
On Fri, Jul 15, 2016 at 08:17:59AM -0700, Benjamin Poirier wrote: > On 2016/07/15 08:00, Leon Romanovsky wrote: > > On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: > > > This is a driver for the ENA family of networking devices. > > > > >

Re: [PATCH] net/mlx5_core/health: Remove deprecated create_singlethread_workqueue

2016-07-16 Thread Leon Romanovsky
On Sat, Jul 16, 2016 at 01:29:20PM +0530, Bhaktipriya Shridhar wrote: > The workqueue health->wq was used as per device private health thread. > This was done so that system error handling could be processed > concurrently. Not exactly, AFAIK it was intended to perform delayed work and not relevan

Re: [PATCH net-next V3] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-07-19 Thread Leon Romanovsky
On Tue, Jul 19, 2016 at 02:09:25PM +0300, Netanel Belgazal wrote: > > > On 07/15/2016 08:00 AM, Leon Romanovsky wrote: > > On Thu, Jul 14, 2016 at 09:46:14AM +0300, Netanel Belgazal wrote: > >> This is a driver for the ENA family of networking devices. > >> >

Re: [PATCH] mellanox: mlx5: Use logging functions to reduce text ~10k/5%

2016-06-23 Thread Leon Romanovsky
ges now do not include line #, > but do include the function offset. > > Signed-off-by: Joe Perches As far as I see all these functions are used in error paths, so no implication on performance is expected. And I'm fine with function offsets. Saeed, What do you think? Reviewed-by:

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