Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 03:07:19PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > > > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > &

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 03:31:51PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 3:19 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 03:07:19PM +0300, Oded Gabbay wrote: > > > On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > > > &

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-19 Thread Leon Romanovsky
On Sat, Sep 19, 2020 at 08:40:20AM +0200, Greg Kroah-Hartman wrote: > On Fri, Sep 18, 2020 at 03:19:05PM +0300, Leon Romanovsky wrote: > > > So we do have an open-source library called hl-thunk, which uses our > > > driver and indeed that was part of the requirement. > >

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-19 Thread Leon Romanovsky
On Sat, Sep 19, 2020 at 10:30:12AM +0200, Greg Kroah-Hartman wrote: > On Sat, Sep 19, 2020 at 11:20:03AM +0300, Leon Romanovsky wrote: > > On Sat, Sep 19, 2020 at 08:40:20AM +0200, Greg Kroah-Hartman wrote: > > > On Fri, Sep 18, 2020 at 03:19:05PM +0300, Leon Romanovsky wrote:

Re: [PATCH net-next] net: stmmac: introduce rtnl_lock|unlock() on configuring real_num_rx|tx_queues

2020-09-17 Thread Leon Romanovsky
On Thu, Sep 17, 2020 at 01:02:15PM +0800, Wong Vee Khee wrote: > From: "Tan, Tee Min" > > For driver open(), rtnl_lock is acquired by network stack but not in the > resume(). Therefore, we introduce lock_acquired boolean to control when > to use rtnl_lock|unlock() within stmmac_hw_setup(). Doesn'

Re: [PATCH] ptp: mark symbols static where possible

2020-09-17 Thread Leon Romanovsky
On Thu, Sep 17, 2020 at 10:25:08AM +0800, Herrington wrote: > We get 1 warning when building kernel with W=1: > drivers/ptp/ptp_pch.c:182:5: warning: no previous prototype for > ‘pch_ch_control_read’ [-Wmissing-prototypes] > u32 pch_ch_control_read(struct pci_dev *pdev) > drivers/ptp/ptp_pch.c:19

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Leon Romanovsky
nters.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Thanks, Acked-by: Leon Romanovsky

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Leon Romanovsky
On Thu, Sep 17, 2020 at 05:10:08PM +0800, Liu Shixin wrote: > sizeof() when applied to a pointer typed expression should give the > size of the pointed data, even if the data is a pointer. > > Signed-off-by: Liu Shixin > --- > drivers/infiniband/hw/mlx5/counters.c | 4 ++-- > 1 file changed, 2 in

Re: [PATCH -next v2] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Leon Romanovsky
t; 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky

[PATCH rdma-next v1 0/4] Improve ODP by using HMM API

2020-09-17 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v1: * Cleaned code. * Support a potential valid dma_address of NULL by flags detection, note was added to clarify things as was asked. * Fix 80 character lines in few places. v0: https://lore.kernel.org/lkml/20200914113949.346562-1-l...@kernel.org Based on

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Leon Romanovsky
On Thu, Sep 17, 2020 at 09:38:06AM -0300, Jason Gunthorpe wrote: > On Thu, Sep 17, 2020 at 12:08:10PM +0300, Leon Romanovsky wrote: > > On Thu, Sep 17, 2020 at 05:10:08PM +0800, Liu Shixin wrote: > > > sizeof() when applied to a pointer typed expression should give the > &g

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Leon Romanovsky
On Thu, Sep 17, 2020 at 02:24:51PM -0300, Jason Gunthorpe wrote: > On Thu, Sep 17, 2020 at 08:05:11PM +0300, Leon Romanovsky wrote: > > On Thu, Sep 17, 2020 at 09:38:06AM -0300, Jason Gunthorpe wrote: > > > On Thu, Sep 17, 2020 at 12:08:10PM +0300, Leon Romanovsky wrote: >

[PATCH rdma-next v2 0/4] Improve ODP by using HMM API

2020-09-22 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v2: * Patch #1 – Drop redundant mask. * Patch #4 – Use address and length directly from umem_odp. v1: https://lore.kernel.org/lkml/20200917112152.1075974-1-l...@kernel.org * Cleaned code. * Support a potential valid dma_address of NULL by flags detection

[PATCH rdma-next v2 0/4] Query GID table API

2020-09-22 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v2: * Embedded RoCE protocol type into rdma_read_gid_attr_ndev_rcu v1: https://lore.kernel.org/lkml/2020091429.343651-1-l...@kernel.org * Moved git_type logic to cma_set_default_gid_type - Patch #2 * Changed signature of rdma_query_gid_table - Patch #3

[PATCH rdma-next v3 0/2] Dynamicaly allocate SG table from the pages

2020-09-22 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: * Squashed Christopher's suggestion to avoid introduced new API, but extend existing one. v2: https://lore.kernel.org/linux-rdma/20200916140726.839377-1-l...@kernel.org * Fixed indentations and comments * Deleted sg_alloc_next() * Squashe

[PATCH rdma-next v3 0/5] Cleanup restrack code

2020-09-22 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: * Removed the mlx4 SR-IOV patch in favour of more robust fix that not needed in this series. * Cut the eroginal series to already reviewed and standalone patches. v2: https://lore.kernel.org/linux-rdma/20200907122156.478360-1-l...@kernel.org/ * Added

Re: [PATCH 0/5] mm: Break COW for pinned pages during fork()

2020-09-23 Thread Leon Romanovsky
On Mon, Sep 21, 2020 at 05:17:39PM -0400, Peter Xu wrote: > Finally I start to post formal patches because it's growing. And also since > we've discussed quite some issues already, so I feel like it's clearer on what > we need to do, and how. > > This series is majorly inspired by the previous dis

[PATCH rdma-next v3 0/4] Query GID table API

2020-09-23 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v3: * Returned back port validity check, because we are using port number to check protocol type. * Removed check that interface is up from rdma_read_gid_attr_ndev_rcu(), without it, this API behaved differently from sysfs by not showing GIDs for interfaces

Re: [PATCH rdma-next v1 1/4] lib/scatterlist: Refactor sg_alloc_table_from_pages

2020-09-16 Thread Leon Romanovsky
On Tue, Sep 15, 2020 at 06:16:43PM +0200, Christoph Hellwig wrote: > On Thu, Sep 10, 2020 at 04:42:56PM +0300, Leon Romanovsky wrote: > > From: Maor Gottlieb > > > > Currently, sg_alloc_table_from_pages doesn't support dynamic chaining of > > SG entries. Th

Re: [PATCH rdma-next v1 2/4] lib/scatterlist: Add support in dynamically allocation of SG entries

2020-09-16 Thread Leon Romanovsky
On Tue, Sep 15, 2020 at 06:19:26PM +0200, Christoph Hellwig wrote: > > + /* We decrease one since the prvious last sge in used to > > +* chainning. > > +*/ > > The normal style would be: It is netdev style of formatting, will change. > >

Re: [PATCH rdma-next v1 3/4] lib/scatterlist: Add support in dynamic allocation of SG table from pages

2020-09-16 Thread Leon Romanovsky
On Tue, Sep 15, 2020 at 06:23:39PM +0200, Christoph Hellwig wrote: > > +#ifndef CONFIG_ARCH_NO_SG_CHAIN > > +struct scatterlist *sg_alloc_table_append( > > + struct sg_table *sgt, struct page **pages, unsigned int n_pages, > > + unsigned int offset, unsigned long size, unsigned int max_segment,

Re: [PATCH] RDMA/ucma: Use struct_size() helper

2019-06-04 Thread Leon Romanovsky
On Tue, Jun 04, 2019 at 10:42:22AM -0500, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes, in particular in the > context in which this code is being used. What does "in particular in the context in

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

2019-05-28 Thread Leon Romanovsky
On Mon, May 20, 2019 at 02:28:35PM +0300, Leon Romanovsky wrote: > 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 divisio

Re: [PATCH] RDMA/nldev: add check for null return from call to nlmsg_put

2019-05-16 Thread Leon Romanovsky
On Thu, May 16, 2019 at 02:12:15PM +0100, Colin King wrote: > From: Colin Ian King > > It is possible that nlmsg_put can return a null pointer, currently > this will lead to a null pointer dereference when passing a null > nlh pointer to nlmsg_end. Fix this by adding a null pointer check. > > Add

Re: RDMA: Clean destroy CQ in drivers do not return errors

2019-06-15 Thread Leon Romanovsky
On Fri, Jun 14, 2019 at 03:46:50PM -0400, Doug Ledford wrote: > On Fri, 2019-06-14 at 14:59 +0100, Colin Ian King wrote: > > Hi, > > > > Static analysis with Coverity reported an issue with the following > > commit: > > > > commit a52c8e2469c30cf7ac

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

2019-06-16 Thread Leon Romanovsky
On Mon, Jun 17, 2019 at 12:19:59PM +1000, Stephen Rothwell wrote: > Hi Leon, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > include/linux/mlx5/eswitch.h > > between commit: > > 02f3afd97556 ("net/mlx5: E-Switch, Correct type to u16 for vport_num and > int for vport_i

Re: [PATCH] IB/mlx5: Limit to 64-bit builds

2019-05-30 Thread Leon Romanovsky
On Thu, May 30, 2019 at 04:35:44AM -0700, Guenter Roeck wrote: > 32-bit builds fail with errors such as > > ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! It is fixed in rdma-rc. https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?h=wip/jgg-for-rc&id=37eb86

Re: [PATCH][next] RDMA/mlx5: check for error return in flow_rule rather than err

2019-04-12 Thread Leon Romanovsky
an King > --- > drivers/infiniband/hw/mlx5/qp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky signature.asc Description: PGP signature

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

2019-04-12 Thread Leon Romanovsky
On Fri, Apr 12, 2019 at 04:30:24PM -0300, Jason Gunthorpe wrote: > On Mon, Mar 04, 2019 at 06:27:26AM +, Parav Pandit wrote: > > > I think we should use rdma_nl_register(RDMA_NL_RDMA_CM, cma_cb_table) which > > was removed as part of ID stats removal. > > Because of below reasons. > > 1. rdma

Re: [PATCH] mm/hmm: kconfig split HMM address space mirroring from device memory

2019-04-13 Thread Leon Romanovsky
E on ARM) split the > HMM_MIRROR option dependency from the HMM_DEVICE dependency. > > Signed-off-by: Jérôme Glisse > Cc: Leon Romanovsky > Cc: Jason Gunthorpe > Cc: Andrew Morton > Cc: Ralph Campbell > Cc: John Hubbard > --- > mm/Kconfig | 17 ++-

Re: [PATCH rdma-next 0/7] Introduce KABIs to query UCONTEXT, PD and MR properties

2020-06-17 Thread Leon Romanovsky
On Wed, Jun 17, 2020 at 01:29:16AM -0700, Christoph Hellwig wrote: > I think you are talking about UABIs (which in linux we actually call > uapis). Yes, I used Yishai's cover letter as is. >

Re: [PATCH rdma-next 0/7] Introduce KABIs to query UCONTEXT, PD and MR properties

2020-06-17 Thread Leon Romanovsky
On Wed, Jun 17, 2020 at 01:34:50AM -0700, Christoph Hellwig wrote: > On Wed, Jun 17, 2020 at 11:31:38AM +0300, Leon Romanovsky wrote: > > On Wed, Jun 17, 2020 at 01:29:16AM -0700, Christoph Hellwig wrote: > > > I think you are talking about UABIs (which in linux we actuall

[PATCH rdma-next v1 00/10] Enable asynchronous event FD per object

2020-05-06 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v1: Forgot to add patch "IB/uverbs: Move QP, SRQ, WQ type and flags to UAPI" v0: https://lore.kernel.org/lkml/20200506074049.8347-1-l...@kernel.org --- >From Yishai: This s

Re: [PATCH 06/11] net: ethernet: mtk-eth-mac: new driver

2020-05-06 Thread Leon Romanovsky
On Tue, May 5, 2020 at 5:03 PM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > This adds the driver for the MediaTek Ethernet MAC used on the MT8* SoC > family. For now we only support full-duplex. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/net/ethernet/mediatek/Kconfig

Re: [PATCH 06/11] net: ethernet: mtk-eth-mac: new driver

2020-05-06 Thread Leon Romanovsky
On Wed, May 06, 2020 at 12:23:29PM -0700, Jakub Kicinski wrote: > On Wed, 6 May 2020 22:16:11 +0300 Leon Romanovsky wrote: > > > +#define MTK_MAC_DRVNAME"mtk_eth_mac" > > > +#define MTK_MAC_VERSION"

[PATCH rdma-rc 0/2] Fixes to IB_EVENT_DEVICE_FATAL logic

2020-05-06 Thread Leon Romanovsky
From: Leon Romanovsky Hi, Two changes, pretty straightforward. Thanks Jason Gunthorpe (2): RDMA/uverbs: Do not discard the IB_EVENT_DEVICE_FATAL event RDMA/uverbs: Move IB_EVENT_DEVICE_FATAL to destroy_uobj drivers/infiniband/core/rdma_core.c | 3 +- drivers/infiniband/core

Re: [PATCH] net/mlx5e: Use IS_ERR() to check and simplify code

2020-05-07 Thread Leon Romanovsky
/core/en/tc_tun.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky

[PATCH rdma-next 0/2] Fix kasan compilation warnings

2020-05-11 Thread Leon Romanovsky
From: Leon Romanovsky Hi, The following two fixes are adding missing function prototypes declarations to internal kasan header in order to eliminate compilation warnings. Thanks Leon Romanovsky (2): kasan: fix compilation warnings due to missing function prototypes kasan: add missing

[PATCH rdma-next 2/2] kasan: add missing prototypes to fix compilation warnings

2020-05-11 Thread Leon Romanovsky
From: Leon Romanovsky Use internal kasan header to declare missing prototypes to fix the following compilation warnings. mm/kasan/report.c:457:6: warning: no previous prototype for 'report_enabled' [-Wmissing-prototypes] 457 | bool report_enabled(void) | ^

[PATCH rdma-next 1/2] kasan: fix compilation warnings due to missing function prototypes

2020-05-11 Thread Leon Romanovsky
From: Leon Romanovsky __asan_report_* function generates the following warnings while compiling kernel, add them to the internal header to be aligned with other __asan_* function prototypes. mm/kasan/generic_report.c:130:6: warning: no previous prototype for '__asan_report_load1_no

Re: [PATCH rdma-next 0/2] Fix kasan compilation warnings

2020-05-12 Thread Leon Romanovsky
On Tue, May 12, 2020 at 09:37:26AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Hi, > > The following two fixes are adding missing function prototypes > declarations to internal kasan header in order to eliminate compilation > warnings. > > Thanks So

Re: [PATCH rdma-next 0/2] Fix kasan compilation warnings

2020-05-12 Thread Leon Romanovsky
On Tue, May 12, 2020 at 05:34:10PM +0200, Andrey Konovalov wrote: > On Tue, May 12, 2020 at 8:37 AM Leon Romanovsky wrote: > > > > From: Leon Romanovsky > > > > Hi, > > > > The following two fixes are adding missing function prototypes > > decl

Re: [PATCH 3/3] kasan: add missing functions declarations to kasan.h

2020-05-12 Thread Leon Romanovsky
On Tue, May 12, 2020 at 05:33:21PM +0200, Andrey Konovalov wrote: > KASAN is currently missing declarations for __asan_report* and > __hwasan* functions. This can lead to compiler warnings. > > Reported-by: Leon Romanovsky > Signed-off-by: Andrey Konovalov > --- >

Re: [PATCH 2/3] kasan: move kasan_report() into report.c

2020-05-12 Thread Leon Romanovsky
On Tue, May 12, 2020 at 05:33:20PM +0200, Andrey Konovalov wrote: > The kasan_report() functions belongs to report.c, as it's a common > functions that does error reporting. > > Reported-by: Leon Romanovsky > Signed-off-by: Andrey Konovalov > --- &g

Re: [PATCH v2] IB/srpt: Remove WARN_ON from srpt_cm_req_recv

2020-06-16 Thread Leon Romanovsky
On Tue, Jun 16, 2020 at 09:17:15AM +0800, Jing Xiangfeng wrote: > It's easy to show that sdev and req are always valid, > so we remove unnecessary WARN_ON. So show it in the commit message, please. > > Signed-off-by: Jing Xiangfeng > --- > drivers/infiniband/ulp/srpt/ib_srpt.c | 3 --- > 1 file

[PATCH rdma-next 0/7] Introduce KABIs to query UCONTEXT, PD and MR properties

2020-06-16 Thread Leon Romanovsky
From: Leon Romanovsky >From Yishai, This series introduce KABIs to query existing UCONTEXT, PD and MR for their properties. By those KABIs a user space application which owns the command FD of the device can retrieve and rebuild the above objects despite that it wasn't their creato

Re: [PATCH v3] IB/sa: Resolving use-after-free in ib_nl_send_msg

2020-06-16 Thread Leon Romanovsky
On Tue, Jun 16, 2020 at 10:56:53AM -0700, Divya Indi wrote: > Hi Leon, > > Please find my comments inline - > > On 6/13/20 11:41 PM, Leon Romanovsky wrote: > > On Tue, Jun 09, 2020 at 07:45:21AM -0700, Divya Indi wrote: > >> Hi Leon, > >> > >> Thanks

Re: [PATCH v3] IB/sa: Resolving use-after-free in ib_nl_send_msg

2020-06-21 Thread Leon Romanovsky
On Wed, Jun 17, 2020 at 03:23:00PM -0300, Jason Gunthorpe wrote: > On Wed, Jun 17, 2020 at 08:17:39AM +0300, Leon Romanovsky wrote: > > > > My thoughts that everything here hints me that state machine and > > locking are implemented wrongly. In ideal world, the expectation &g

[PATCH rdma-next 0/2] Convert XRC to use xarray

2020-06-21 Thread Leon Romanovsky
From: Leon Romanovsky Two small patches to simplify and improve XRC logic. Maor Gottlieb (2): RDMA: Clean ib_alloc_xrcd() and reuse it to allocate XRC domain RDMA/core: Optimize XRC target lookup drivers/infiniband/core/uverbs_cmd.c | 12 ++--- drivers/infiniband/core/verbs.c | 69

[PATCH rdma-next 0/4] Bag of fixes and refactoring in MAD layer

2020-06-21 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This is combination of fixes and refactoring in MAD layer. Because everything here is "old", I'm sending it to rdma-next and not "wasting" our time in attempt to separate fix patches from refactoring ones. Thanks Shay Drory (4): IB/mad

Re: [PATCH v3] IB/sa: Resolving use-after-free in ib_nl_send_msg

2020-06-09 Thread Leon Romanovsky
On Mon, Jun 08, 2020 at 07:46:16AM -0700, Divya Indi wrote: > Commit 3ebd2fd0d011 ("IB/sa: Put netlink request into the request list before > sending")' > - > 1. Adds the query to the request list before ib_nl_snd_msg. > 2. Removes ib_nl_send_msg from within the spinlock which also makes it > poss

Re: Review Request

2020-06-09 Thread Leon Romanovsky
On Mon, Jun 08, 2020 at 07:46:15AM -0700, Divya Indi wrote: > [PATCH v3] IB/sa: Resolving use-after-free in ib_nl_send_msg > > Hi, > > Please review the patch that follows. Please read Documentation/process/submitting-patches.rst 14) The canonical patch format You don't need an extra email "Revie

Re: [PATCH][next] RDMA/mlx5: remove duplicated assignment to variable rcqe_sz

2020-05-07 Thread Leon Romanovsky
olin Ian King > --- > drivers/infiniband/hw/mlx5/qp.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Fixes: 8bde2c509e40 ("RDMA/mlx5: Update all DRIVER QP places to use QP subtype") Thanks, Acked-by: Leon Romanovsky

[PATCH rdma-next 0/5] ib_core allocation patches

2020-06-24 Thread Leon Romanovsky
From: Leon Romanovsky Let's continue my allocation work. Leon Romanovsky (5): RDMA/core: Create and destroy counters in the ib_core RDMA: Clean MW allocation and free flows RDMA: Move XRCD to be under ib_core responsibility RDMA/core: Delete not-used create RWQ table function

Re: [PATCH rdma-next v1 00/10] Enable asynchronous event FD per object

2020-05-17 Thread Leon Romanovsky
On Sun, May 17, 2020 at 08:37:13PM -0300, Jason Gunthorpe wrote: > On Wed, May 06, 2020 at 11:24:34AM +0300, Leon Romanovsky wrote: > > > RDMA/core: Consolidate ib_create_srq flows > > IB/uverbs: Cleanup wq/srq context usage from uverbs layer > > IB/uverbs: Fix cr

Re: [PATCH] net/mlx4: suppress 'may be used uninitialized' warning

2017-04-18 Thread Leon Romanovsky
On Mon, Apr 17, 2017 at 11:21:35PM -0700, Greg Thelen wrote: > gcc 4.8.4 complains that mlx4_SW2HW_MPT_wrapper() uses an uninitialized > 'mpt' variable: > drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function > 'mlx4_SW2HW_MPT_wrapper': > drivers/net/ethernet/mellanox/mlx4/resourc

Re: export pcie_flr and remove copies of it in drivers V2

2017-04-18 Thread Leon Romanovsky
On Tue, Apr 18, 2017 at 01:36:12PM -0500, Bjorn Helgaas wrote: > On Fri, Apr 14, 2017 at 09:11:24PM +0200, Christoph Hellwig wrote: > > Hi all, > > > > this exports the PCI layer pcie_flr helper, and removes various opencoded > > copies of it. > > > > Changes since V1: > > - rebase on top of the p

Re: export pcie_flr and remove copies of it in drivers V2

2017-04-19 Thread Leon Romanovsky
On Wed, Apr 19, 2017 at 08:37:37AM +0300, Leon Romanovsky wrote: > On Tue, Apr 18, 2017 at 01:36:12PM -0500, Bjorn Helgaas wrote: > > On Fri, Apr 14, 2017 at 09:11:24PM +0200, Christoph Hellwig wrote: > > > Hi all, > > > > > > this exports the PCI layer

Re: [PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Leon Romanovsky
On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: > The previous patch addressed a sparse warning but replaced it with a > compiler warning when CONFIG_MODULES is disabled: > > drivers/net/ethernet/mellanox/mlx5/core/ipoib.c:485:13: error: > 'mlx5_rdma_netdev_free' defined but not use

Re: [PATCH net-next] mlx5: work around unused function warning

2017-04-27 Thread Leon Romanovsky
On Thu, Apr 27, 2017 at 02:04:15PM +0200, Arnd Bergmann wrote: > On Thu, Apr 27, 2017 at 1:55 PM, Leon Romanovsky wrote: > > On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: > >> The previous patch addressed a sparse warning but replaced it with a > >

Re: [PATCH 00/14] RDMA/cxgb: Fine-tuning for several function implementations

2017-04-08 Thread Leon Romanovsky
On Wed, Apr 05, 2017 at 02:16:14PM -0400, Doug Ledford wrote: > On Wed, 2017-02-08 at 22:10 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Wed, 8 Feb 2017 22:00:10 +0100 > > > > Several update suggestions were taken into account > > from static source code analysis. > > > > Mar

Re: [PATCH] IB/rxe: Don't clamp residual length to mtu

2017-04-13 Thread Leon Romanovsky
On Thu, Apr 13, 2017 at 02:00:00PM +0200, Johannes Thumshirn wrote: > On Thu, Apr 06, 2017 at 02:49:44PM +0200, Johannes Thumshirn wrote: > > When reading a RDMA WRITE FIRST packet we copy the DMA length from the RDMA > > header into the qp->resp.resid variable for later use. Later in check_rkey()

Re: [PATCH v2 07/12] IB/ocrdma: Adjust 21 checks for null pointers

2017-04-22 Thread Leon Romanovsky
On Sat, Apr 22, 2017 at 04:47:19PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 22 Apr 2017 14:20:37 +0200 > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > The script “checkpatch.pl” pointed information out like the followin

Re: [PATCH v2 03/12] IB/ocrdma: Improve size determinations in ten functions

2017-04-23 Thread Leon Romanovsky
On Sat, Apr 22, 2017 at 04:36:19PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 22 Apr 2017 13:26:49 +0200 > > Replace the specification of data types by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determinations a bit s

Re: [PATCH 1/1] iw_cxgb4: check return value of alloc_skb

2017-04-23 Thread Leon Romanovsky
On Sun, Apr 23, 2017 at 05:09:11PM +0800, Pan Bian wrote: > Function alloc_skb() will return a NULL pointer when there is no enough > memory. However, the return value of alloc_skb() is directly used > without validation in function send_fw_pass_open_req(). This patches > checks the return value of

Re: IB/ocrdma: Improve size determinations in ten functions

2017-04-24 Thread Leon Romanovsky
On Mon, Apr 24, 2017 at 03:23:52PM +0200, SF Markus Elfring wrote: > > Markus, what have you done to ensure your patches don't break anything? > > I would expect that this update step will not change the run time behaviour > for the OCRDMA module. I guess that it will influence the run time > chara

Re: [PATCH v2 03/12] IB/ocrdma: Improve size determinations in ten functions

2017-04-24 Thread Leon Romanovsky
On Mon, Apr 24, 2017 at 12:38:58PM -0400, Doug Ledford wrote: > On Mon, 2017-04-24 at 08:54 -0400, Dennis Dalessandro wrote: > > On 04/23/2017 03:33 AM, Leon Romanovsky wrote: > > > > > > On Sat, Apr 22, 2017 at 04:36:19PM +0200, SF Markus Elfring wrote: > >

Re: [infiniband-hw-i40iw] question about identical code for different branches

2017-05-17 Thread Leon Romanovsky
On Wed, May 17, 2017 at 05:06:54PM -0500, Gustavo A. R. Silva wrote: > > Hello everybody, > > While looking into Coverity ID 1362263 I ran into the following piece of > code at drivers/infiniband/hw/i40iw/i40iw_virtchnl.c:445: > > 445if (vchnl_msg->iw_op_code == I40IW_VCHNL_OP_GET_VER) { >

Re: [PATCH] IB/IPoIB: Replace netdev_priv with ipoib_priv for ipoib_get_link_ksettings

2017-05-18 Thread Leon Romanovsky
On Fri, May 19, 2017 at 11:15:32AM +0800, Yanjun Zhu wrote: > > > On 2017/5/11 20:40, Leon Romanovsky wrote: > > On Thu, May 11, 2017 at 03:31:10PM +0300, Yuval Shaia wrote: > > > On Thu, May 11, 2017 at 08:14:28PM +0800, Honggang LI wrote: > > > > From: Honggan

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

2017-07-13 Thread Leon Romanovsky
On Thu, Jul 13, 2017 at 09:17:13PM -0400, Doug Ledford wrote: > On Fri, 2017-07-14 at 11:14 +1000, Stephen Rothwell wrote: > > Hi Doug, > > > > Today's linux-next merge of the rdma tree got conflicts in: > > > > drivers/infiniband/core/uverbs_cmd.c > > drivers/infiniband/core/verbs.c > > > > be

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

2017-07-13 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 12:12:33AM -0400, Doug Ledford wrote: > On Fri, 2017-07-14 at 06:34 +0300, Leon Romanovsky wrote: > > On Thu, Jul 13, 2017 at 09:17:13PM -0400, Doug Ledford wrote: > > > On Fri, 2017-07-14 at 11:14 +1000, Stephen Rothwell wrote: > > > > Hi

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

2017-07-13 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 01:50:26PM +1000, Stephen Rothwell wrote: > Hi all, > > On Fri, 14 Jul 2017 06:34:16 +0300 Leon Romanovsky wrote: > > > > Sorry Doug, but it is not expected at all for the code which will go to > > 4.14. > > > > Both patches in ques

Re: [PATCH 11/14] IB/uverbs: fix gcc-7 type warning

2017-07-14 Thread Leon Romanovsky
x27;&&' instead [-Werror=int-in-bool-context] > > This changes the macro to explicitly check the number for a positive > length, which avoids the warning. > > Fixes: a96e4e2ffe43 ("IB/uverbs: New macro to set pointers to NULL if length > is 0 in INIT_UDATA()"

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

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 08:03:49AM -0400, Doug Ledford wrote: > On Fri, 2017-07-14 at 07:55 +0300, Leon Romanovsky wrote: > > On Fri, Jul 14, 2017 at 01:50:26PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > On Fri, 14 Jul 2017 06:34:1

Re: [PATCH 22/22] IB/mlx4: fix sprintf format warning

2017-07-14 Thread Leon Romanovsky
hould be able to assume that port_num is positive here, > making the buffer one byte longer has no downsides and avoids the > warning. > > Fixes: c1e7e466120b ("IB/mlx4: Add iov directory in sysfs under the ib > device") > Signed-off-by: Arnd Bergmann > --- > d

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

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 10:33:54AM -0400, Doug Ledford wrote: > So, you need to take your pick. Do you want continuous development, or > do you want me bending over backwards to try and avoid your company's > endless stream of conflicts so Linus isn't yelling about that? Doug, You are mixing my

Re: [PATCH V4 net-next 8/8] net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS

2017-07-23 Thread Leon Romanovsky
On Sat, Jul 22, 2017 at 11:09:42PM +0100, Salil Mehta wrote: > This patch updates the MAINTAINERS file with HNS3 Ethernet driver > maintainers names and other details. This also introduces the new > Makefiles required to build the HNS3 Ethernet driver and updates > the existing Kconfig file in the

Re: [PATCH V4 net-next 2/8] net: hns3: Add support of the HNAE3 framework

2017-07-23 Thread Leon Romanovsky
On Sat, Jul 22, 2017 at 11:09:36PM +0100, Salil Mehta wrote: > This patch adds the support of the HNAE3 (Hisilicon Network > Acceleration Engine 3) framework support to the HNS3 driver. > > Framework facilitates clients like ENET(HNS3 Ethernet Driver), RoCE > and user-space Ethernet drivers (like O

Re: [PATCH] RDMA/nldev: Fix multiple potential NULL pointer dereferences

2018-02-09 Thread Leon Romanovsky
On Fri, Feb 09, 2018 at 12:37:02AM -0600, Gustavo A. R. Silva wrote: > In case the message header and payload cannot be stored, function > nlmsg_put returns null. > > Fix this by adding multiple sanity checks and avoid a potential > null dereference on _nlh_ when calling nlmsg_end. > > Addresses-Co

Re: [PATCH] RDMA/nldev: Fix multiple potential NULL pointer dereferences

2018-02-09 Thread Leon Romanovsky
On Fri, Feb 09, 2018 at 07:36:49AM -0600, Gustavo A. R. Silva wrote: > Hi Leon, > > Quoting Leon Romanovsky : > > > On Fri, Feb 09, 2018 at 12:37:02AM -0600, Gustavo A. R. Silva wrote: > > > In case the message header and payload cannot be stored, function &

Re: [PATCH] RDMA/nldev: Fix multiple potential NULL pointer dereferences

2018-02-09 Thread Leon Romanovsky
On Fri, Feb 09, 2018 at 09:56:00AM -0600, Gustavo A. R. Silva wrote: > > Quoting Leon Romanovsky : > > > On Fri, Feb 09, 2018 at 07:36:49AM -0600, Gustavo A. R. Silva wrote: > > > Hi Leon, > > > > > > Quoting Leon Romanovsky : > > > > > &

Re: [PATCH] IB/ocrdma: Use zeroing memory allocator than allocator/memset

2017-12-31 Thread Leon Romanovsky
gt; 3 files changed, 12 insertions(+), 21 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH/RFC] RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()

2017-11-16 Thread Leon Romanovsky
On Thu, Nov 16, 2017 at 11:50:48AM +0100, Arnd Bergmann wrote: > On Thu, Nov 16, 2017 at 11:26 AM, Geert Uytterhoeven > wrote: > > With gcc-4.1.2: > > > > drivers/infiniband/core/iwpm_util.c: In function ‘iwpm_send_mapinfo’: > > drivers/infiniband/core/iwpm_util.c:647: warning: ‘ret’ may b

Re: [PATCH] rdma: Add Jason as a co-maintainer

2017-11-16 Thread Leon Romanovsky
On Thu, Nov 16, 2017 at 01:44:00PM -0700, Jason Gunthorpe wrote: > As was discussed in September and October, add Jason along with > Doug to have a team maintainership model for the RDMA subystem. > > Mellanox Technologies will be funding Jason's independent work on > the maintainership. > > Signed

Re: [PATCH] hw: Fix permissions for OCRDMA_RESET_STATS

2017-12-20 Thread Leon Romanovsky
On Tue, Dec 19, 2017 at 11:14:03PM +0530, Selvin Xavier wrote: > On Tue, Dec 19, 2017 at 6:00 PM, Leon Romanovsky wrote: > >> status = ocrdma_nonemb_mbx_cmd(dev, mqe, dev->stats_mem.va); > > > > It still doesn't make a lot of sense to me: > > > > ocrdma

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 01:36:26PM +0100, Knut Omang wrote: > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > > On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > > > Add a runchecks.cfg to drivers/infiniband/core > > > to start "reining in&q

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 11:03:51AM -0800, Joe Perches wrote: > On Mon, 2017-12-18 at 13:36 +0100, Knut Omang wrote: > > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > [] > > > Also, I agree with other reviewers, there is no excuse for adding > > > chec

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 07:39:50PM +0100, Knut Omang wrote: > On Mon, 2017-12-18 at 17:56 +, Bart Van Assche wrote: > > On Mon, 2017-12-18 at 10:46 -0700, Jason Gunthorpe wrote: > > > On Sun, Dec 17, 2017 at 10:00:17PM -0800, Joe Perches wrote: > > > > > > > > Today when we run checkers we get

Re: RDMA/bnxt_re: Remove redundant bnxt_qplib_disable_nq() call

2017-12-19 Thread Leon Romanovsky
On Tue, Dec 19, 2017 at 04:40:42PM +0530, Devesh Sharma wrote: > However delayed ack but still..thanks for supplying this fix. > > Acked-by: Devesh Sharma > Devesh, What should we do in order to stop you to answer in top-posting format? Thanks > > On Wed, Dec 13, 2017 at 11:07 PM, Jason Gunth

Re: [PATCH] hw: Fix permissions for OCRDMA_RESET_STATS

2017-12-19 Thread Leon Romanovsky
On Tue, Dec 19, 2017 at 03:59:30PM +0530, Selvin Xavier wrote: > On Wed, Aug 16, 2017 at 12:01 AM, Leon Romanovsky wrote: > > On Tue, Aug 08, 2017 at 06:56:37PM +0300, Anton Vasilyev wrote: > >> Debugfs file reset_stats is created with S_IRUSR permissions, > >> but ocrd

Re: [PATCH] i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready

2017-12-24 Thread Leon Romanovsky
vers/infiniband/hw/i40iw/i40iw_main.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH] ethernet: mlx4: Delete an error message for a failed memory allocation in five functions

2018-01-03 Thread Leon Romanovsky
On Wed, Jan 03, 2018 at 01:24:59PM +0200, Tariq Toukan wrote: > > > On 03/01/2018 10:06 AM, Julia Lawall wrote: > > > > > > On Wed, 3 Jan 2018, Tariq Toukan wrote: > > > > > > > > > > > On 01/01/2018 10:46 PM, SF Markus Elfring wrote: > > > > From: Markus Elfring > > > > Date: Mon, 1 Jan 2018 21:4

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Leon Romanovsky
On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > Add a runchecks.cfg to drivers/infiniband/core > to start "reining in" future checker errors, > and making it easier to selectively clean up existing > issues. > > This runchecks.cfg lets make C=2 M=drivers/infiniband/core > pass with al

Re: [PATCH] IB/rxe: check for allocation failure on elem

2017-09-13 Thread Leon Romanovsky
On Sat, Sep 09, 2017 at 03:56:07PM +0300, Leon Romanovsky wrote: > On Fri, Sep 08, 2017 at 03:37:45PM +0100, Colin King wrote: > > From: Colin Ian King > > > > The allocation for elem may fail (especially because we're using > > GFP_ATOMIC) so best to check

Re: [PATCH] IB/core: fix incorrect fall-through on switch statement

2017-09-13 Thread Leon Romanovsky
uot;) > > Fixes: fe2caefcdf58 ("RDMA/ocrdma: Add driver for Emulex OneConnect IBoE RDMA > adapter") > Signed-off-by: Colin Ian King > --- > drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 3 +++ > 1 file changed, 3 insertions(+) > Except the wrong title: IB/core -

Re: [PATCH] net/mlx5: fpga: avoid uninitialized return codes

2017-09-14 Thread Leon Romanovsky
On Thu, Sep 14, 2017 at 01:06:18PM +0200, Arnd Bergmann wrote: > calling mlx5_fpga_mem_{read,write}_i2c() with a zero length on > older compiler version such as gcc-4.6 results in a warning that > the return code is not initialized: > > drivers/net/ethernet/mellanox/mlx5/core/fpga/sdk.c:147:6: erro

Re: [PATCH for-next] RDMA/hns: Delete the unnecessary initializing enum to zero

2017-09-14 Thread Leon Romanovsky
lists/linux-rdma/msg54400.html > --- > drivers/infiniband/hw/hns/hns_roce_device.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky signature.asc Description: PGP signature

Re: [PATCH 05/13] IB/umem: update to new mmu_notifier semantic

2017-08-29 Thread Leon Romanovsky
e_page callback. > > Signed-off-by: Jérôme Glisse > Cc: Leon Romanovsky > Cc: linux-r...@vger.kernel.org > Cc: Artemy Kovalyov > Cc: Doug Ledford > Cc: Kirill A. Shutemov > Cc: Andrew Morton > Cc: Linus Torvalds > Cc: Andrea Arcangeli > --- > drivers/infin

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Leon Romanovsky
On Sun, Aug 20, 2017 at 12:04:37PM -0700, Long Li wrote: > 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 out-of-the-band, so modify the relevant fields in

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Leon Romanovsky
On Wed, Aug 23, 2017 at 06:09:11PM +, Long Li wrote: > > > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Wednesday, August 23, 2017 6:52 AM > > To: Long Li > > Cc: Steve French ; linux-c...@vger.kernel.org;

<    5   6   7   8   9   10   11   >