From nobody Fri Nov 4 22:55:55 2022 X-Original-To: dev-commits-src-main@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 4N3wvw1yVXz4h0Qx; Fri, 4 Nov 2022 22:55:56 +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 4N3wvw12Jwz40xl; Fri, 4 Nov 2022 22:55:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667602556; 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=JKzF+bQOvIahtQtg2PIzxupAFA2E0yKupxejEmNoeGM=; b=PVMLnbqemMiyygLv9I5kl/LMn22r1zK1Y+aC8Y6XpxKXp1Iuoz/0rapNgzJXcrdjvmaNMV 9weIlRNqtAnlrTudPf8QALRr7QSlLs6cSz/qfxq0VJt2c4F0OXiLLS3q+J+wF2Z4rwFnFm izpG0bbfR68CDf2Zzfs0iXJ7/2CGha1YrtscHNmkUqUqjHh4DmIecssNeFfWIR9oiphrIP bOWNX+aLlASwbTtceArG0AHGtm2p363Cv51MhlydeiT62/fgvolh9UuYQHmfFno7rGKdO5 StoAk/KxCKwbPsAT4C0HuSEIOrEp+5zwZYPhmgWPe9fzDVqANzWgwfNUPk7cgA== 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 4N3wvv6thyzJwP; Fri, 4 Nov 2022 22:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A4MttDI032772; Fri, 4 Nov 2022 22:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A4MttZ0032771; Fri, 4 Nov 2022 22:55:55 GMT (envelope-from git) Date: Fri, 4 Nov 2022 22:55:55 GMT Message-Id: <202211042255.2A4MttZ0032771@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 19a57f85baac - main - if_bnxt: Fix the PORT_PHY_CFG HWRM requests while setting Pause List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19a57f85baac915a3642733c8a856517f4e95cb3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667602556; 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=JKzF+bQOvIahtQtg2PIzxupAFA2E0yKupxejEmNoeGM=; b=dWrqJeU8r93dBX9GWGLpV/pgw7MTMCgShbYVEqFIvNI2kiwxKMvvHIfDYztlU9izExoyey gmI0XcBuZoIv5l0jgwbxaQSJcbBvoBIflzazSVKu/3V24KS9j2V9SpWPEgdfsE5meiMUwn 59zWBm2vn0gFW9IwNqMIWYUtu7pDKh/pasd1pxpisBZZJJc6boYi28hIdEedtX0DeMDhIR 0/rZ9PBJ0ugerQjDymT3bHSEtKiGXCpR7pQvgiJ4k4k5b3b2B7nr1u7v/8QTh2kUxKEknY LLywqF8XiaD/mn+56Rqh1a+m7nN9gzvKEcM2RIvZliAgW2OK/wRoC0z1gd2kAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667602556; a=rsa-sha256; cv=none; b=sWhgiUCxrQUk1xtPBuxCdKqFDkH0Ey0d8RfMhnuPqDYhaL1rMe8OkXkMd1shBuMVyvtb7k xVPzzCy2D2B6EDjavSmq82RI5mM3mgwBw9pePqADRVkDs/lFNNxH9vxr81PsW6JEr4eEim Qy2xQAkuxJySglRwhsvbKhVnJYlsa+BLXplRda4bazPLekrq5kwsfdSYY2I21bwhr0zJRs xNYiS2OzegEfW3jZNxfnVXPcTo1CEtvfGRbwOkj//9u3N8gcuP4oflnlzAEv9cwMnLqEEt MADWC3ayqPc5cTJZB0Bew5OjpylwS/ABozrij0Pyd8gx7W7EwmJMb+qEZx2tyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=19a57f85baac915a3642733c8a856517f4e95cb3 commit 19a57f85baac915a3642733c8a856517f4e95cb3 Author: Sumit Saxena AuthorDate: 2022-11-04 22:31:24 +0000 Commit: Warner Losh CommitDate: 2022-11-04 22:31:24 +0000 if_bnxt: Fix the PORT_PHY_CFG HWRM requests while setting Pause Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36446 --- sys/dev/bnxt/bnxt_hwrm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/bnxt/bnxt_hwrm.c b/sys/dev/bnxt/bnxt_hwrm.c index 40c47ffe372c..9d74b1ebf65b 100644 --- a/sys/dev/bnxt/bnxt_hwrm.c +++ b/sys/dev/bnxt/bnxt_hwrm.c @@ -868,6 +868,9 @@ bnxt_hwrm_set_pause_common(struct bnxt_softc *softc, HWRM_PORT_PHY_CFG_INPUT_FORCE_PAUSE_TX; req->enables |= htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_FORCE_PAUSE); + req->auto_pause = req->force_pause; + req->enables |= + htole32(HWRM_PORT_PHY_CFG_INPUT_ENABLES_AUTO_PAUSE); } }