From nobody Mon Jun 17 02:11:35 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 4W2YKM3ryvz5N28l; Mon, 17 Jun 2024 02:11:35 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W2YKM3GTjz4f2T; Mon, 17 Jun 2024 02:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718590295; 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=p5hBrft9SHYzDPZXFdV2C/TXun8ANNDy6YcHmeJFw2E=; b=j3GdiDKL52LgwRvCbVdmvQtlnmhlRcXbG5gsqHtZ5KFV7Vq9nI/KrDwKo5VB/WxlFlPWbU UpHrcSJhRX8yRd8M5CQoPhrTzo36vckbxMzNbDPVuwbBIh+fHLEA+25aga7ZvVQK0x25MN a4dzt9PFg61+8J5A91X5C9g+AIaj/l9nJvkEPw+6RaTZisRc1I4KBSEGvAINJJeOAMVQL0 76mhGeLKeT9WJ/7wsD3vmxxIEJyPx+86IfPbyOaGDcOGR5CjONz46CJ4TzRoaclyotTCVJ oWF8vErle0E4hKxgawAI3gAdkvb2OGTb/nrr4skoxqJMyrId+slitn8OBooX5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718590295; a=rsa-sha256; cv=none; b=qkbWvu5DWV7y4pm1114lTYMEUGJQf8D1u6IXoVWaXm8CHwrgDkwwjhTEsNJNiLL/iQ3ZW6 O0mIWACmowtfGKni1YUuYfXxjYZ85zte62tMCXv/D1/SmLynPWPfwWXBNcEM9eBp2HMRCr l2SCB5i0U364EUKGoNbeQNvzcBEXji/yOQCr3/QXnEGjjIkasK4nSLTUFL5lrEpjR5D8yG LSxvDt27tVyF/cq0G0qkZYruCrLZtDBB6vNo1QdEQhqmO9mU1Mp2cdvMQnrW7PGlZKvGgc M/g6EL8wTKWFZwBLF7YV3lwzL4YqfzlGHnQsq48lh9rxEovt1S1tSAA0ydMEgw== 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=1718590295; 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=p5hBrft9SHYzDPZXFdV2C/TXun8ANNDy6YcHmeJFw2E=; b=wdXIUQlUznc3NPYVntwNroRzkrW8j5eJXrH/9t0OrxxsOucRpzTSRGi+K2V1alWMYjfxBE j8DdVFz0g/o57abdF5pXd/aG4rWtO0woGDQXTJEtn/ArB6lxCQhuKPluicZba+C4sU2YaO iLTUPRO5+UXoHkX1hPsJa8XLBu8CQoQn7uG0eVjCVu1E3VpbBU6jIUardOrW+Y3PM/CdXh vJadR+ObxXM1hRxgjZwoPELOw1Cmp8sSYcft5nM9FOl2GR144HRdkIE9CIQdZvPx5Y23lL kwbMQMsbuDNcDzpO7DZtgrj0nmyfEUiXDTd5f+Yh9vCIxC+on+IyMVrtERBErQ== 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 4W2YKM2l27z1BmC; Mon, 17 Jun 2024 02:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45H2BZlc046586; Mon, 17 Jun 2024 02:11:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45H2BZKw046583; Mon, 17 Jun 2024 02:11:35 GMT (envelope-from git) Date: Mon, 17 Jun 2024 02:11:35 GMT Message-Id: <202406170211.45H2BZKw046583@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: d0fdafdb0ef4 - main - 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: np X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d0fdafdb0ef4ec9c5c66f39daf2eca926f14be0d Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=d0fdafdb0ef4ec9c5c66f39daf2eca926f14be0d commit d0fdafdb0ef4ec9c5c66f39daf2eca926f14be0d Author: Navdeep Parhar AuthorDate: 2024-06-16 18:27:15 +0000 Commit: Navdeep Parhar CommitDate: 2024-06-17 01:54:02 +0000 cxgbev(4): Use the correct source pf for T6 in the VF driver. MFC after: 1 week Sponsored by: Chelsio Communications --- 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);