From patchwork Mon Aug 16 22:16:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vu Pham X-Patchwork-Id: 119812 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7GMNvsX011718 for ; Mon, 16 Aug 2010 22:23:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756559Ab0HPWXx (ORCPT ); Mon, 16 Aug 2010 18:23:53 -0400 Received: from p02c12o142.mxlogic.net ([208.65.145.75]:37653 "EHLO p02c12o142.mxlogic.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756457Ab0HPWXx (ORCPT ); Mon, 16 Aug 2010 18:23:53 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 16 Aug 2010 22:23:58 +0000 (UTC) X-Greylist: delayed 458 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Aug 2010 18:23:52 EDT Received: from unknown [63.251.237.3] (EHLO p02c12o142.mxlogic.net) by p02c12o142.mxlogic.net(mxl_mta-6.7.0-0) with ESMTP id 87ab96c4.62604940.30983.00-574.69253.p02c12o142.mxlogic.net (envelope-from ); Mon, 16 Aug 2010 16:23:52 -0600 (MDT) X-MXL-Hash: 4c69ba781ea68124-5a0c928aed34970f43647d885863ceb4e71d4fdb Received: from unknown [63.251.237.3] (EHLO mtiexch01.mti.com) by p02c12o142.mxlogic.net(mxl_mta-6.7.0-0) with ESMTP id ca8b96c4.0.29475.00-366.65866.p02c12o142.mxlogic.net (envelope-from ); Mon, 16 Aug 2010 16:16:14 -0600 (MDT) X-MXL-Hash: 4c69b8ae615ccaa3-faf589b7147b36408471c98eb18d4a3d272098df Received: from vu-lt.mti.mtl.com ([10.2.1.17]) by mtiexch01.mti.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 16 Aug 2010 15:20:37 -0700 Message-ID: <4C69B8AD.1070404@mellanox.com> Date: Mon, 16 Aug 2010 15:16:13 -0700 From: Vu Pham User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 To: Roland Dreier CC: Oren Duer , OpenFabrics EWG , Linux RDMA Subject: [PATCH v1 01/10] mlx4_core: Change fw profile and qp context to enable FC X-OriginalArrivalTime: 16 Aug 2010 22:20:37.0515 (UTC) FILETIME=[40B1FDB0:01CB3D91] X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010073001)] X-MAIL-FROM: X-SOURCE-IP: [63.251.237.3] X-AnalysisOut: [v=1.0 c=1 a=eON9WSovfEwA:10 a=VphdPIyG4kEA:10 a=xupnbh4h0Y] X-AnalysisOut: [LOHZnncC45HQ==:17 a=37r9H06TAAAA:8 a=CbDCq_QkAAAA:8 a=fUH-] X-AnalysisOut: [LBXhsBevVcHV26kA:9 a=O1Oqu9NAWwd0-T1drOvgGXaDN38A:4 a=E3yz] X-AnalysisOut: [0KKPV6YA:10 a=iLrb41c49dmluFq7:21 a=0XOgSzKRDTHNxB2u:21] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From 5fd7e9795e085ff64b2396a5339f98e9b7021965 Mon Sep 17 00:00:00 2001 From: Vu Pham Date: Tue, 10 Aug 2010 13:55:43 -0700 Subject: [PATCH 01/10] mlx4_core: Change fw profile and qp context to enable FC Increase num_qp, num_mpt resource in fw profile to enable FC Add fields in qp context and qp path to enable FC qps Signed-off-by: Oren Duer Signed-off-by: Vu Pham --- drivers/net/mlx4/main.c | 4 ++-- include/linux/mlx4/qp.h | 13 +++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 5102ab1..fe3be88 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c @@ -79,12 +79,12 @@ static char mlx4_version[] __devinitdata = DRV_VERSION " (" DRV_RELDATE ")\n"; static struct mlx4_profile default_profile = { - .num_qp = 1 << 17, + .num_qp = 1 << 18, .num_srq = 1 << 16, .rdmarc_per_qp = 1 << 4, .num_cq = 1 << 16, .num_mcg = 1 << 13, - .num_mpt = 1 << 17, + .num_mpt = 1 << 19, .num_mtt = 1 << 20, }; diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index 7abe643..249dacf 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h @@ -109,7 +109,7 @@ struct mlx4_qp_path { __be32 tclass_flowlabel; u8 rgid[16]; u8 sched_queue; - u8 snooper_flags; + u8 vlan_index; u8 reserved3[2]; u8 counter_index; u8 reserved4[7]; @@ -151,7 +151,16 @@ struct mlx4_qp_context { u8 reserved4[2]; u8 mtt_base_addr_h; __be32 mtt_base_addr_l; - u32 reserved5[10]; + u8 VE; + u8 reserved5; + __be16 VFT_id_prio; + u8 reserved6; + u8 exch_size; + __be16 exch_base; + u8 VFT_hop_cnt; + u8 my_fc_id_idx; + __be16 reserved7; + u32 reserved8[7]; }; /* Which firmware version adds support for NEC (NoErrorCompletion) bit */ -- 1.6.3.3