[PATCH net-next V0 00/21] net/mlx4: SRIOV support

2011-12-02 Thread Yevgeny Petrilin
Hello David, This patch set adds SRIOV support for ConnectX2 and ConnectX3 HW for Ethernet Link layer. Infiniband and RoCE SRIOV support will be added at later stage In ConnectX, nearly all device resources can be associated with any function. Once allocated, these resources can be manipulated

[PATCH net-next V0 01/21] mlx4_core: initial header-file changes for SRIOV support

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il These changes will not affect module operation as yet. They are only to get some structs and enums in place for use by subsequent patches (making those smaller). Added here: * sriov state structs and inlines (mlx4_is_master/slave/mfunc) *

[PATCH net-next V0 02/21] net/mlx4: Extending port_mask functionality

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il Port mask now has additional state. Port can be set as none. In this case neither the mlx4_en or mlx4_ib drivers take ownership of the port. In multifunction mode there is an option to set the vfs as single ported devices. This option will be added

[PATCH net-next V0 03/21] mlx4_core: Add native argument to mlx4_cmd and its callers (where needed)

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il For SRIOV, some Hypervisor commands can be executed directly (native = 1). Others should go through the command wrapper flow (for tracking resource usage, for example, or for changing some HCA configurations that slaves need to be notified of).

[PATCH net-next V0 04/21] mlx4_core: Reduce number of PD bits to 17

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il When SRIOV is enabled on the chip (at FW burning time), the HCA uses only 17 bits for the PD. The remaining 7 high-order bits are ignored. Change the allocator to return only 17 bits for the PD. The MSB 7 bits will be used to encode the slave

[PATCH net-next V0 05/21] mlx4_core: Implement the master-slave, communication channel

2011-12-02 Thread Yevgeny Petrilin
From: Yevgeny Petrilin yevge...@mellanox.co.il When SRIOV is enabled, pf and vfs communicate via shared comm channel. The vf gets its side of the comm channel via a VF BAR. Each VF (slave) creates its vHCR (virtual HCA Command Register), Its DMA address is passed to the PF (master) using

[PATCH net-next V0 06/21] mlx4_core: Added FW commands and their wrappers for supporting SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il The following commands are added here: 1. QUERY_FUNC_CAP and its wrapper. This function is used by VFs when they start up to receive configuration information from the PF, such as resource quotas for this VF, which ports should be used

[PATCH net-next V0 07/21] mlx4_core: srq modifications for SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il SRQs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have work functions whose names start

[PATCH net-next V0 08/21] mlx4_core: qp modifications for SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il QPs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have work functions whose names start

[PATCH net-next V0 09/21] mlx4_core: cq modifications for SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il CQs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have work functions whose names start

[PATCH net-next V0 10/21] mlx4_core: mtt modifications for SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il MTTs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have work functions whose names start

[PATCH net-next V0 11/21] mlx4_core: Add wrapper functions and comm channel and, slave event support to EQs

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il Passing async events to slaves: In SRIOV mode, each slave creates its own async EQ, but only the master can register directly with the FW to receive async events. Async events which should be passed to slaves (such as a WQ_ACCESS_ERROR for a QP

[PATCH net-next V0 13/21] mlx4_ib: disable SRIOV mode for IB ports (not yet supported)

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il Signed-off-by: Jack Morgenstein ja...@dev.mellanox.co.il --- drivers/infiniband/hw/mlx4/main.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index

[PATCH net-next V0 14/21] mlx4: Traffic steering management support for SRIOV

2011-12-02 Thread Yevgeny Petrilin
From: Eugenia Emantayev euge...@mellanox.co.il Let multicast/unicast attaching flow go through resource tracker. The PF is the one responsible for managing all the steering entries. Define and use module parameter that determines the number of qps per multicast group. Minor changes in function

[PATCH net-next V0 15/21] mlx4: Ethernet port management modifications

2011-12-02 Thread Yevgeny Petrilin
From: Eugenia Emantayev euge...@mellanox.co.il The physical port is now common to the PF and VFs. The port resources and configuration is managed by the PF, VFs can only influence the MTU of the port, it is set as max among all functions, Each function alloccates RX buffers of required size to

[PATCH net-next V0 17/21] mlx4_core: mtts resources units changed to offset

2011-12-02 Thread Yevgeny Petrilin
From: Marcel Apfelbaum marc...@dev.mellanox.co.il Date: Wed, 30 Nov 2011 19:57:41 +0200 Subject: [PATCH 17/21] mlx4_core: mtts resources units changed to offset In the previous implementation mtts are managed by: 1. order - log(mtt segments), 'mtt segment' groups several mtts together. 2.

[PATCH net-next V0 18/21] mlx4_core: adjust catas operation for SRIOV mode

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il When running in SRIOV mode, driver should not automatically start/stop the mlx4_core upon sensing an HCA internal error -- doing this disables/enables sriov, which will cause the hypervisor to hang if there are running VMs with attached VFs. In

[PATCH net-next V0 19/21] mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet

2011-12-02 Thread Yevgeny Petrilin
From: Jack Morgenstein ja...@dev.mellanox.co.il 1. Added module parameters sr_iov and probe_vf for controlling enablement of SRIOV mode. 2. Increased default max num-qps, num-mpts and log_num_macs to accomodate SRIOV mode 3. Added port_type_array as a module parameter to allow driver

[PATCH net-next V0 20/21] mlx4_core: updated driver version to 1.1

2011-12-02 Thread Yevgeny Petrilin
From: Yevgeny Petrilin yevge...@mellanox.co.il Signed-off-by: Yevgeny Petrilin yevge...@mellanox.co.il --- drivers/net/ethernet/mellanox/mlx4/mlx4.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h

[PATCH net-next V0 16/21] mlx4_en: Allow communication between functions on same host

2011-12-02 Thread Yevgeny Petrilin
From: Eugenia Emantayev euge...@mellanox.co.il To enable internal loopback, always fill DMAC in control segment when transmitting the packet, once this is done, the packet is subject for loopback for if the DMAC mathces one of the multicast/unicast addresses registered on the physical port. In

Re: [PATCH net-next V0 03/21] mlx4_core: Add native argument to mlx4_cmd and its callers (where needed)

2011-12-02 Thread Roland Dreier
On Fri, Dec 2, 2011 at 2:16 AM, Yevgeny Petrilin yevge...@mellanox.co.il wrote:        return mlx4_cmd(dev, limit_watermark, srq_num, 0, MLX4_CMD_ARM_SRQ, -                       MLX4_CMD_TIME_CLASS_B); +                       MLX4_CMD_TIME_CLASS_B, 0); Instead of a 0 or 1 for the native

Re: [PATCH net-next V0 18/21] mlx4_core: adjust catas operation for SRIOV mode

2011-12-02 Thread Roland Dreier
On Fri, Dec 2, 2011 at 2:19 AM, Yevgeny Petrilin yevge...@mellanox.co.il wrote: When running in SRIOV mode, driver should not automatically start/stop the mlx4_core upon sensing an HCA internal error -- doing this disables/enables sriov, which will cause the hypervisor to hang if there are

[PATCH] IB/qib: correct sense on freectxts increment and decrement

2011-12-02 Thread Mike Marciniszyn
The maintenance of dd-nfreectxts was incorrectly opposite of the patch intention in 53ab1c64983 (IB/qib: Correct nfreectxts for multiple HCAs) Reviewed-by: Ram Vepa ram.v...@qlogic.com Signed-off-by: Mike Marciniszyn mike.marcinis...@qlogic.com --- drivers/infiniband/hw/qib/qib_file_ops.c |4

Re: [PATCH net-next V0 19/21] mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet

2011-12-02 Thread Roland Dreier
 #ifdef CONFIG_PCI_IOV + +static int sr_iov; +module_param(sr_iov, int, 0444); +MODULE_PARM_DESC(sr_iov, enable #sr_iov functions if sr_iov 0); + +static int probe_vf; +module_param(probe_vf, int, 0444); +MODULE_PARM_DESC(probe_vf, number of vfs to probe by pf driver (sr_iov 0)); +  

Re: [RFC] – Proposal for new process for OFED releases

2011-12-02 Thread Christoph Lameter
On Fri, 2 Dec 2011, Bart Van Assche wrote: On Fri, Dec 2, 2011 at 1:04 AM, Hefty, Sean sean.he...@intel.com wrote: - What should we do with modules like SDP that are not in kernel? Either remove them or carry them forward as experimental features. Wat I expect is that reworking the SDP

Re: [RFC] – Proposal for new process for OFED releases

2011-12-02 Thread Christoph Lameter
On Thu, 1 Dec 2011, Tziporet Koren wrote: We propose a new process for the OFED releases starting from next OFED release: - OFED content will be the relevant kernel.org modules and user space released packages - OFED will offer only backports to the distros (no fixes) - OFED package will

Re: [RFC] – Proposal for new process for OFED releases

2011-12-02 Thread Bart Van Assche
On Fri, Dec 2, 2011 at 7:12 PM, Christoph Lameter c...@linux.com wrote: What were the issues that prevented the merging of the SDP implementation? At least AF_INET_SDP - there might have been other issues. See e.g. http://lkml.org/lkml/2006/3/6/70. Bart. -- To unsubscribe from this list: send

[PATCH 2/3] infiniband-diags: add config file option for Mellanox ExtPortInfo queries

2011-12-02 Thread Ira Weiny
In addition add a common option to specify an alternate config file. Signed-off-by: Ira Weiny wei...@llnl.gov --- etc/ibdiag.conf |4 + include/ibdiag_common.h |1 + libibnetdisc/include/infiniband/ibnetdisc.h |6 +-

[PATCH 3/3] infiniband-diags: Update Common options in man pages.

2011-12-02 Thread Ira Weiny
Specifically remove duplicated common options sections from all man pages and reference infiniband-diags(8) page for those options. Furthermore clean up infiniband-diags common options. Signed-off-by: Ira Weiny wei...@llnl.gov --- man/ibaddr.8 | 56

[PATCH] infiniband-diags: fix printing of extended speeds when port is down

2011-12-02 Thread Ira Weiny
Signed-off-by: Ira Weiny wei...@llnl.gov --- src/iblinkinfo.c| 20 ++-- src/ibqueryerrors.c | 18 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/iblinkinfo.c b/src/iblinkinfo.c index 00c7bc0..0a652ba 100644 --- a/src/iblinkinfo.c

RE: [PATCH 4/5] rdma/cm: Update port reservation to support AF_IB

2011-12-02 Thread Hefty, Sean
+static struct idr *cma_select_ib_ps(struct rdma_id_private *id_priv) [...] + if (ps) { + sib-sib_sid = cpu_to_be64(sid_ps | ntohs(cma_port((struct sockaddr *) sib))); + sib-sib_sid_mask = cpu_to_be64(RDMA_IB_IP_PS_MASK | sib- sib_sid_mask); + } + return

[PATCH] infiniband-diags/src/ibccquery.c: Fix off by one output bug, ccti_limit is 0 based not 1 based

2011-12-02 Thread Albert Chu
Signed-off-by: Albert Chu ch...@llnl.gov --- src/ibccquery.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ibccquery.c b/src/ibccquery.c index a7fd79f..69db8d0 100644 --- a/src/ibccquery.c +++ b/src/ibccquery.c @@ -309,7 +309,7 @@ static char