From nobody Tue Jul 2 08:06:17 2024 X-Original-To: dev-commits-src-branches@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 4WCwTk0mXgz5PhXf; Tue, 02 Jul 2024 08:06:18 +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 4WCwTj5vVqz4JLv; Tue, 2 Jul 2024 08:06:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719907577; 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=KrpRfnexn05WKI5gMZiMihKo0kloXR6Ff2wJOJg/xNg=; b=YitUkMS92c8ZqvyrcInacr09GWiGDvchCSUHMrQYRBwFeUbXAlnoEcdavBgF0xG970QW2i VAucrb8t4RKs72qKe+td9/Sbt9i/ZAvUO+x23v6vtiPcB1vYpZAnYArx1cV+lpdmmM6MKb T/Bv/XIXmGwt4EWZ40qbW8O+iphl1PExw3SgvoTOpETiK/NYtuGQRoAvvWiJpU2Jjblh4A 7VByyKmkbLoO65SeVRoqUIQOIKoek8ZRoRBbiN+jNS9Sq2iQtNgpv0m7NdAYhDKtjYROg7 eZ8L0J1Eo8sjGARyvmzHPxG9lUyNWjX0JnYeZqWZxpnSgRPhIULA3ARvBq1Rcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719907577; a=rsa-sha256; cv=none; b=XrV44coPlFRJTk/8/yUz1PFgxrLTNAoosRdbu6Q/MJEp0tBY3gDqJPpJ2Swp0ie1x2i94x ZVMcTVnZS6QaWhpYkYDgpF9XdOlcjxN7cR3Q0UlkESKWtdPW1+pzh28AcpfdQhff73QDuy TMc8ei+xMxC5+TaiGOUyMnmcQjSZzosfZUrJxlTA6cSxb9aDeomwWNgw9oAgkAR6nSdR2P UlK1OHgZ1vs8TFC6fKFS8Fpt2S4dCscv/9siMBmCMAWNI0qbWwl1ke8b+gKrL/jiS7pNGt XhkBwuQoMFjZQna97+nzmArYCCh2hXV1n6LgS/eGhHBjL3PWpAKEfDWckC49LQ== 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=1719907577; 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=KrpRfnexn05WKI5gMZiMihKo0kloXR6Ff2wJOJg/xNg=; b=xaGVEslWvONgY3gitPWeaF8dzvH8T3+Xz6OqvP8bj1qv4Gy8d/bKsbesbaILuJGi1zJkuY F7/PBtBkHUp6KZB76QI4E5b9r4M9wk0FJdWRGsTUBDyGGBSCpDxJlMbVHr7WzneXDR+0Gm T0+SjBbkRyRvCCVHqacVwgj0AEC9rCH6eiR3LazpXsS9l/g/LlRCpF9L2FmhQfBjMLPI5u AIN7agSUI2eVxORiUFoo472vKKXtCDfLHC9/ErPDT4C67TdFc2WSkMNjO1KMr7BjEKpiPD WSCj7+OgPGJP/F+OhY2GTWWQZ7/bmuJzxXUcWUpJnN/xps+EAyFu9ZwjqEmn/w== 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 4WCwTj5Bf2zgKq; Tue, 2 Jul 2024 08:06:17 +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 46286HcS082765; Tue, 2 Jul 2024 08:06:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46286HWB082762; Tue, 2 Jul 2024 08:06:17 GMT (envelope-from git) Date: Tue, 2 Jul 2024 08:06:17 GMT Message-Id: <202407020806.46286HWB082762@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: 460d934fd3d8 - stable/13 - cxgbev(4): Use the correct source pf for T6 in the VF driver. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: 460d934fd3d81d478b7ede6351baf16335c4bfe6 Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=460d934fd3d81d478b7ede6351baf16335c4bfe6 commit 460d934fd3d81d478b7ede6351baf16335c4bfe6 Author: Navdeep Parhar AuthorDate: 2024-06-16 18:27:15 +0000 Commit: Kristof Provost CommitDate: 2024-07-02 07:45:53 +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);