From nobody Tue Apr 30 20:04:51 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 4VTWPv5HGwz5Jqvw; Tue, 30 Apr 2024 20:04:51 +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 4VTWPv35Vjz4HmR; Tue, 30 Apr 2024 20:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714507491; 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=Uv881dMY/t2haSo1IcalLG14lmbpadWPdcQslc1q3/8=; b=ZFW06sjS0SiIeL4R2UBaaKO9AFaVTYlQqMhiORLylYuFsOfPG9OgL6Rak9I/hKAiPtIXm0 ZCucofMMNWre4cxN3ipgPh+RVnh4Y5NbBO0J7/dH3GuFce9gg//gkigkQ/BErETWywo0QC rRZE0I+e2VHpktmS/DuQGIoctMUtBfhMDmnbddEOOL5C7kB3le4D51L7ZrtLoBCo/bNtLo usG7FCpBym6sQJz991UjPnqPgbCaKmx17ylFJrA76GdA9ksk7VcXApL91umzMxior9CX25 G7X9Z+g8RO2kKklImBlZntDveIS2MCE79H7IR1wUpf91ArAm9JINWBuoFmNelA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714507491; a=rsa-sha256; cv=none; b=a8PPaNQvf3+2hR3peSWZFggLutkrbkxWRVp7/ok5J5snptlU5fCbRyS1fn0iB2Bgu4ggIh MT8rpbtDUyt1C1hwCYy3NH9F5ffI1SzJ6rtqTIAMTs0BCcTY4jDFwSnBf0hlr9giQevMin 3P1lR0gM5JhRuDnup4C1DOw/DfpkX0sRyrS5Ih8SlleHOPN3uB+jThf84m4w8/pojdnzQL rO0fDnK3VzMYjJT4HmuBdJKLNwF1RRbnIAjUKs0d+5tAYZJtaSYzVNv9crEh8QqLcKlfLg K680rN6thbD4eCB8g3DSwFCaFMkXvx65/mr2FOvrqkCxxQiDJgG3a8IxjtCdww== 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=1714507491; 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=Uv881dMY/t2haSo1IcalLG14lmbpadWPdcQslc1q3/8=; b=m9rb0N+JSfOEFz6YyAojZsv5+o1FCF9NsWMKWqsFOhdRIwqTsUua5fTWQ+ZwG4r53pNU6s gesFQ3pjuAMAbfj97sbKcVnhaDCNGJb4vP3e1S+15hsXeGQgj9xjxSspzLm9tA2bGjY8+s uIWKoqCcYw/gKVoh0JqZ4e5yF28OGwWwfI0tpo+VSC/Hziw1du8w+oR4I4bYQHAwpQyMg5 fqapU8qqQq4asrjJ2u0+pnnOyM78EHQpSMOJDehqjatvE8rLPbWwMKjl+FAk3Igm8JW/SF /ct6L66Vij62/tMrZO9Y9rCbQZCeeXxtTTwnEIZ5N8Al+UWi+q3dOV9ZUzEqTQ== 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 4VTWPv2jLTzpRT; Tue, 30 Apr 2024 20:04:51 +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 43UK4pZg076734; Tue, 30 Apr 2024 20:04:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43UK4p7o076731; Tue, 30 Apr 2024 20:04:51 GMT (envelope-from git) Date: Tue, 30 Apr 2024 20:04:51 GMT Message-Id: <202404302004.43UK4p7o076731@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: 9de0036b55dc - main - cxgbe(4): Initialize mps_bg_map to an invalid value if it's not known. 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: 9de0036b55dcdabc54fa69ea6e583b22d739818c Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=9de0036b55dcdabc54fa69ea6e583b22d739818c commit 9de0036b55dcdabc54fa69ea6e583b22d739818c Author: Navdeep Parhar AuthorDate: 2024-04-30 19:51:29 +0000 Commit: Navdeep Parhar CommitDate: 2024-04-30 20:02:44 +0000 cxgbe(4): Initialize mps_bg_map to an invalid value if it's not known. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/common/t4_hw.c | 2 +- sys/dev/cxgbe/t4_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c index 400c0d7882c0..8ac7ec069174 100644 --- a/sys/dev/cxgbe/common/t4_hw.c +++ b/sys/dev/cxgbe/common/t4_hw.c @@ -6742,7 +6742,7 @@ static unsigned int t4_get_mps_bg_map(struct adapter *adap, int idx) { u32 n; - if (adap->params.mps_bg_map) + if (adap->params.mps_bg_map != UINT32_MAX) return ((adap->params.mps_bg_map >> (idx << 3)) & 0xff); n = adap->params.nports; diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index ca6e35718d21..1b1adc2f8614 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -5327,7 +5327,7 @@ get_params__post_init(struct adapter *sc) if (rc == 0) sc->params.mps_bg_map = val[0]; else - sc->params.mps_bg_map = 0; + sc->params.mps_bg_map = UINT32_MAX; /* Not a legal value. */ /* * Determine whether the firmware supports the filter2 work request.