Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 23:39:11 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316118 - head/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201703282339.v2SNdBjw049190@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Mar 28 23:39:11 2017
New Revision: 316118
URL: https://svnweb.freebsd.org/changeset/base/316118

Log:
  cxgbe/iw_cxgbe: T6 has no limit on the amount of memory that can be
  registered in one ib_reg_phys_mr.

Modified:
  head/sys/dev/cxgbe/iw_cxgbe/mem.c

Modified: head/sys/dev/cxgbe/iw_cxgbe/mem.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/mem.c	Tue Mar 28 23:02:41 2017	(r316117)
+++ head/sys/dev/cxgbe/iw_cxgbe/mem.c	Tue Mar 28 23:39:11 2017	(r316118)
@@ -47,11 +47,14 @@ __FBSDID("$FreeBSD$");
 #define C4IW_MAX_INLINE_SIZE 96
 
 static int
-mr_exceeds_hw_limits(struct c4iw_dev *dev __unused, u64 length)
+mr_exceeds_hw_limits(struct c4iw_dev *dev, u64 length)
 {
 
-	return (length >= 8*1024*1024*1024ULL);
+	return ((is_t4(dev->rdev.adap) ||
+		is_t5(dev->rdev.adap)) &&
+		length >= 8*1024*1024*1024ULL);
 }
+
 static int
 write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703282339.v2SNdBjw049190>