All of lore.kernel.org
 help / color / mirror / Atom feed
From: Selvin Xavier <selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	Mitesh Ahuja
	<mitesh.ahuja-HfQkIhtri/DQT0dZR+AlfA@public.gmane.org>,
	Selvin Xavier
	<selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH for-next 11/15] RDMA/ocrdma: Return proper value for
Date: Wed, 4 Jun 2014 14:22:42 +0530	[thread overview]
Message-ID: <ba8eeeee-38cb-443d-8b4e-5048b4fa79a9@CMEXHTCAS1.ad.emulex.com> (raw)
In-Reply-To: <1401871966-20408-11-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>

From: Mitesh Ahuja <mitesh.ahuja-HfQkIhtri/DQT0dZR+AlfA@public.gmane.org>

Signed-off-by: Mitesh Ahuja <mitesh.ahuja-HfQkIhtri/DQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Selvin Xavier <selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
---
 drivers/infiniband/hw/ocrdma/ocrdma_hw.c    | 3 ++-
 drivers/infiniband/hw/ocrdma/ocrdma_sli.h   | 2 +-
 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index 5b6e9d9..105659d 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
@@ -1088,7 +1088,8 @@ static void ocrdma_get_attr(struct ocrdma_dev *dev,
 	    OCRDMA_MBX_QUERY_CFG_CA_ACK_DELAY_SHIFT;
 	attr->max_mw = rsp->max_mw;
 	attr->max_mr = rsp->max_mr;
-	attr->max_mr_size = ~0ull;
+	attr->max_mr_size = ((u64)rsp->max_mr_size_hi << 32) |
+			      rsp->max_mr_size_lo;
 	attr->max_fmr = 0;
 	attr->max_pages_per_frmr = rsp->max_pages_per_frmr;
 	attr->max_num_mr_pbl = rsp->max_num_mr_pbl;
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_sli.h b/drivers/infiniband/hw/ocrdma/ocrdma_sli.h
index 14a84b2..3cb88f0 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_sli.h
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_sli.h
@@ -530,8 +530,8 @@ struct ocrdma_mbx_query_config {
 	u32 max_ird_ord_per_qp;
 	u32 max_shared_ird_ord;
 	u32 max_mr;
-	u32 max_mr_size_lo;
 	u32 max_mr_size_hi;
+	u32 max_mr_size_lo;
 	u32 max_num_mr_pbl;
 	u32 max_mw;
 	u32 max_fmr;
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
index 8cd16a1..90152de 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
@@ -69,7 +69,7 @@ int ocrdma_query_device(struct ib_device *ibdev, struct ib_device_attr *attr)
 	memcpy(&attr->fw_ver, &dev->attr.fw_ver[0],
 	       min(sizeof(dev->attr.fw_ver), sizeof(attr->fw_ver)));
 	ocrdma_get_guid(dev, (u8 *)&attr->sys_image_guid);
-	attr->max_mr_size = ~0ull;
+	attr->max_mr_size = dev->attr.max_mr_size;
 	attr->page_size_cap = 0xffff000;
 	attr->vendor_id = dev->nic_info.pdev->vendor;
 	attr->vendor_part_id = dev->nic_info.pdev->device;
-- 
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-06-04  8:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1401871966-20408-1-git-send-email-selvin.xavier@emulex.com>
     [not found] ` <1401871966-20408-1-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52   ` [PATCH for-next 01/15] RDMA/ocrdma: Avoid posting DPP requests for Selvin Xavier
     [not found] ` <1401871966-20408-2-git-send-email-selvin.xavier@emulex.com>
     [not found]   ` <1401871966-20408-2-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52     ` [PATCH for-next 02/15] RDMA/ocrdma: Query and initalize the PFC SL Selvin Xavier
     [not found]       ` <17b84e4b-a78f-40a0-bfa7-cdc3afb53fc1-3RiH6ntJJkP8BX6JNMqfyFjyZtpTMMwT@public.gmane.org>
2014-06-09 21:05         ` Or Gerlitz
     [not found]   ` <1401871966-20408-3-git-send-email-selvin.xavier@emulex.com>
     [not found]     ` <1401871966-20408-3-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52       ` [PATCH for-next 03/15] RDMA/ocrdma: Adding hca_type and fixing Selvin Xavier
     [not found]     ` <1401871966-20408-4-git-send-email-selvin.xavier@emulex.com>
     [not found]       ` <1401871966-20408-4-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52         ` [PATCH for-next 04/15] be2net: issue shutdown event to ocrdma driver Selvin Xavier
     [not found]       ` <1401871966-20408-5-git-send-email-selvin.xavier@emulex.com>
     [not found]         ` <1401871966-20408-5-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52           ` [PATCH for-next 05/15] RDMA/ocrdma: Handle shutdown event from Selvin Xavier
     [not found]         ` <1401871966-20408-6-git-send-email-selvin.xavier@emulex.com>
     [not found]           ` <1401871966-20408-6-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52             ` [PATCH for-next 06/15] RDMA/ocrdma: Remove hardcoding of the max DPP Selvin Xavier
     [not found]           ` <1401871966-20408-7-git-send-email-selvin.xavier@emulex.com>
     [not found]             ` <1401871966-20408-7-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52               ` [PATCH for-next 07/15] RDMA/ocrdma: Delete AH table if Selvin Xavier
     [not found]             ` <1401871966-20408-8-git-send-email-selvin.xavier@emulex.com>
     [not found]               ` <1401871966-20408-8-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                 ` [PATCH for-next 08/15] RDMA/ocrdma: Avoid reporting wrong Selvin Xavier
     [not found]               ` <1401871966-20408-9-git-send-email-selvin.xavier@emulex.com>
     [not found]                 ` <1401871966-20408-9-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                   ` [PATCH for-next 09/15] RDMA/ocrdma: Allow only SEND opcode in case Selvin Xavier
     [not found]                 ` <1401871966-20408-10-git-send-email-selvin.xavier@emulex.com>
     [not found]                   ` <1401871966-20408-10-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                     ` [PATCH for-next 10/15] RDMA/ocrdma: Do proper cleanup evenif FW is Selvin Xavier
     [not found]                   ` <1401871966-20408-11-git-send-email-selvin.xavier@emulex.com>
     [not found]                     ` <1401871966-20408-11-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                       ` Selvin Xavier [this message]
     [not found]                     ` <1401871966-20408-12-git-send-email-selvin.xavier@emulex.com>
     [not found]                       ` <1401871966-20408-12-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                         ` [PATCH for-next 12/15] RDMA/ocrdma : Add missing adapter mailbox Selvin Xavier
     [not found]                       ` <1401871966-20408-13-git-send-email-selvin.xavier@emulex.com>
     [not found]                         ` <1401871966-20408-13-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                           ` [PATCH for-next 13/15] RDMA/ocrdma: Increase the size of STAG array Selvin Xavier
     [not found]                         ` <1401871966-20408-14-git-send-email-selvin.xavier@emulex.com>
     [not found]                           ` <1401871966-20408-14-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                             ` [PATCH for-next 14/15] RDMA/ocrdma: Initialize the GID table while Selvin Xavier
     [not found]                           ` <1401871966-20408-15-git-send-email-selvin.xavier@emulex.com>
     [not found]                             ` <1401871966-20408-15-git-send-email-selvin.xavier-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2014-06-04  8:52                               ` [PATCH for-next 15/15] RDMA/ocrdma: Fixing a sparse warning Selvin Xavier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba8eeeee-38cb-443d-8b4e-5048b4fa79a9@CMEXHTCAS1.ad.emulex.com \
    --to=selvin.xavier-lakksmnt4hbqt0dzr+alfa@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mitesh.ahuja-HfQkIhtri/DQT0dZR+AlfA@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.