From nobody Tue Jul 02 08:06:18 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WCwTl14Kjz5PhXs; Tue, 02 Jul 2024 08:06:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCwTk6JJ8z4JKf; Tue, 2 Jul 2024 08:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719907578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4yFm8UmMbFPdoVyjIkRV1xAswqxUNCGS48Dg0ETGJwU=; b=qGAPbBVQWhQCpywEES0MM8hgdBvOmNbEQ4+e3m6b8rnouvbmVJIcq8ZE0JbIFSsAryPYAB W4sekks9jFKtAPz7KZ+fU5MdZ3q24IomI+W5zwNiwYqvkK80nIfNktpzPzxIvCbTCEnhkK mHP7Qx2LevqD6YXSORrBpEWTw0r/THTF3vxRTYI7VM2gpkksKC5/viG81JcCUHBmgSzhzh i+HfKI7xDpHUBZupfYK9y2G3IGuQQo33jv2I2aGzscidNj37w5nbAR6cm1FopzfsGVFGIq C871vDgiSzNvYq7dj/QoDqfpjW8dd58lMSGdlV/C88wAHAG/6KeQCTY1TZ2dmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719907578; a=rsa-sha256; cv=none; b=DOSJDZdLQZXB2jaMRguL7uQXUkRbkLFqV/Vb89nno1F1S9gURlMPQBh0kRR/yp8XSBYU07 JmHMUtasiL7Ph4X9lUpXIJa1SbhzvEOIzVXTYUJu6/sMbrWrz0x23nP7Qn613TNg4LXOwc iLODPTAfN6cFdwBf0mXo4A9LgRhKtl+i6359hAKTusC9b5jdX4VHUrW+02IIp7j1gP33aE GqK6W34pnmz1vSjkrV85rB/W3Hc8V9gIgLrJFt0XS02Kq5nWFiXrlLwCh+umUVXQOVQlWs P0rpJbpthOEXLafquzJRyD4kdbsCLuzTdl5yWtJ6r9L3tKhZ8REYvSz5UgJUwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719907578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4yFm8UmMbFPdoVyjIkRV1xAswqxUNCGS48Dg0ETGJwU=; b=o7plDmlzItmoHdBBgewzUT8YdZh6tYgdZEvEq3M5FPsNvc4rsSpsJZNL471EHzohHg7y11 Fi10ILtXf9zlRbM3svtzhWluiRH+7+vn9hGNgnkWolvVEvd00HKt51BmHhQtCqsDyW0xxa j7/DBbdmn9+sONyEOq1f9iQs/JnWha1SkGQq7GjzPH/C3CKW5zMiNp59G7VJkNjRMXUCbh 5rR5mo5fSmcTTxvyUAgdpV52w/yHSh6SvdAUsJNx9msxXjC/N1y7R5UrZl4LviBYDJY84v /6zU8Wy8+SMs0zu+RQzQBjaLjklexTgDCx+2vWJ5COBZhc9TD2Ld/9fxJ0FUUA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WCwTk5rc2zgJh; Tue, 2 Jul 2024 08:06:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46286Ijg082866; Tue, 2 Jul 2024 08:06:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46286IYd082845; Tue, 2 Jul 2024 08:06:18 GMT (envelope-from git) Date: Tue, 2 Jul 2024 08:06:18 GMT Message-Id: <202407020806.46286IYd082845@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: b913bd160626 - stable/14 - cxgbev(4): Use the correct source pf for T6 in the VF driver. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b913bd160626d8837e9623665eaa53feaca0c0c2 Auto-Submitted: auto-generated The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=b913bd160626d8837e9623665eaa53feaca0c0c2 commit b913bd160626d8837e9623665eaa53feaca0c0c2 Author: Navdeep Parhar AuthorDate: 2024-06-16 18:27:15 +0000 Commit: Kristof Provost CommitDate: 2024-07-01 16:07:39 +0000 cxgbev(4): Use the correct source pf for T6 in the VF driver. MFC after: 1 week Sponsored by: Chelsio Communications (cherry picked from commit d0fdafdb0ef4ec9c5c66f39daf2eca926f14be0d) --- sys/dev/cxgbe/common/t4vf_hw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/common/t4vf_hw.c b/sys/dev/cxgbe/common/t4vf_hw.c index 25ab3db77c72..a0c2eb5f60b3 100644 --- a/sys/dev/cxgbe/common/t4vf_hw.c +++ b/sys/dev/cxgbe/common/t4vf_hw.c @@ -139,7 +139,10 @@ int t4vf_get_sge_params(struct adapter *adapter) * This is based on the PF from which we're instantiated. */ whoami = t4_read_reg(adapter, VF_PL_REG(A_PL_VF_WHOAMI)); - pf = G_SOURCEPF(whoami); + if (chip_id(adapter) <= CHELSIO_T5) + pf = G_SOURCEPF(whoami); + else + pf = G_T6_SOURCEPF(whoami); s_hps = (S_HOSTPAGESIZEPF0 + (S_HOSTPAGESIZEPF1 - S_HOSTPAGESIZEPF0) * pf);