From owner-svn-src-head@freebsd.org Tue Mar 28 23:39:12 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69EEDD20F82; Tue, 28 Mar 2017 23:39:12 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36F612F63; Tue, 28 Mar 2017 23:39:12 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2SNdBP1049191; Tue, 28 Mar 2017 23:39:11 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2SNdBjw049190; Tue, 28 Mar 2017 23:39:11 GMT (envelope-from np@FreeBSD.org) Message-Id: <201703282339.v2SNdBjw049190@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Tue, 28 Mar 2017 23:39:11 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 23:39:12 -0000 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) {