From nobody Thu Feb 02 07:39:34 2023 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 4P6rK25DRFz3c94Q; Thu, 2 Feb 2023 07:39:34 +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 4P6rK24gL9z3CMc; Thu, 2 Feb 2023 07:39:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323574; 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=LRvlPsF09VIu0KdUsqZKIV7Vv89BTgAm8pmud+Q6IBQ=; b=YhqZZDlktwuF/C23ttDip7JlYKmeD6vn8j+w1fIk5wJ4fjb91MgnwFekSRlCwHqIGmK6f0 Jo10UwF1MnuRA2Fz5PG61VDvb27/33ATcOINqBATipUshKXoqyTrxx2vTfryVrCEYmkFfX 5p0JRBnVMO2zwpgqe3RxJdaS/paTIrf6elIuUCjp20esEzGiOxgi4dGU/dKliVckm52L2M I9V5iEgNXAaiaaXqt+KR4g4FIZGv4hA7tZywhSwit2lBsE2+FdbDCQrYnnRMMMqO+YygLz KU2ErmsdJ89sGqLZGyY7oUo9m20FD/Pp4fA4A8WlGmE9aB5K0i9SP27Qy0TROA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323574; 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=LRvlPsF09VIu0KdUsqZKIV7Vv89BTgAm8pmud+Q6IBQ=; b=ZIsY7NhiIeLGo1M6MJRxz3I0ZRtcFDUty4zlDvfl4ZqBFwhTW6s5ho7CU6C+P6ZwjRkVRH AdAbErWgfvuAfEgn8vJdEZgVhLhwjUsM8u86P+EUoZ1EPPJfIrmlYJg9V22kwayJ9x3YRP AV1OkVgtDIUtkJHc0oppZslHa46naDzvIBEUAcuzkeXZZQlNNKOZnbLyNZJo3r3upty2B4 wiA0GSd3VNB+95FN35/7NIZb7rg0Y/E8OEylIQsGAN1TGb3nFyqDQ2SYxUxxkKYBQ54mbM y2raAss6ZQkKOpI+5QFNsQrKXXrr/Ga9vPxgl++sVDCggJywFro4UI+SDYuhDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675323574; a=rsa-sha256; cv=none; b=Ftsz4k2Ii8weVrq4PEpa1dGgHZirCUIpRy5LUxqXfox0BFN8JkTzLnQMYUSppifHmTxxEr VVTWiX8wHBErCjBx2OEAIL0Q+jIQTN5jxM1xDigWWh58XLM/cdhfVfHYQSs/dCpkCp4PRN 9XQJAL8g/2TY/f3l1/3d/uUYhsx1UyetjLryHbc3FgM1sZ/KHZdyMghIKo85bUydYEsKm4 V/QSaBfN2uJUfcAZwfQGAxnyNkfo+r5ikF0oWW0y92L6Bfja8ibs3dlwXJGBg/mF3ClwOh qeTEFIcPE1cOjDvaNYJuf3fuG65UsT/j1TGXN4scDIUzwf4nYaXfK+Adi+q9uw== 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 4P6rK23mNjzlwr; Thu, 2 Feb 2023 07:39:34 +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 3127dYkO062082; Thu, 2 Feb 2023 07:39:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3127dYNR062081; Thu, 2 Feb 2023 07:39:34 GMT (envelope-from git) Date: Thu, 2 Feb 2023 07:39:34 GMT Message-Id: <202302020739.3127dYNR062081@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Navdeep Parhar Subject: git: 6c2b290e579a - stable/13 - cxgbe(4): Decode and display some more bits in the PL interrupt handler. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6c2b290e579a444c833d3bf784d762498a123f93 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=6c2b290e579a444c833d3bf784d762498a123f93 commit 6c2b290e579a444c833d3bf784d762498a123f93 Author: Navdeep Parhar AuthorDate: 2022-08-13 04:11:13 +0000 Commit: Navdeep Parhar CommitDate: 2023-02-02 07:16:01 +0000 cxgbe(4): Decode and display some more bits in the PL interrupt handler. Sponsored by: Chelsio Communications (cherry picked from commit a7d081a8ce0e1f4c985d2a771859d35561602b5c) --- sys/dev/cxgbe/common/t4_hw.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/common/t4_hw.c b/sys/dev/cxgbe/common/t4_hw.c index 0176eb3e2b0d..75797199e1cf 100644 --- a/sys/dev/cxgbe/common/t4_hw.c +++ b/sys/dev/cxgbe/common/t4_hw.c @@ -5266,10 +5266,28 @@ static bool mac_intr_handler(struct adapter *adap, int port, bool verbose) return (fatal); } +static bool pl_timeout_status(struct adapter *adap, int arg, bool verbose) +{ + + CH_ALERT(adap, " PL_TIMEOUT_STATUS 0x%08x 0x%08x\n", + t4_read_reg(adap, A_PL_TIMEOUT_STATUS0), + t4_read_reg(adap, A_PL_TIMEOUT_STATUS1)); + + return (false); +} + static bool plpl_intr_handler(struct adapter *adap, int arg, bool verbose) { + static const struct intr_action plpl_intr_actions[] = { + { F_TIMEOUT, 0, pl_timeout_status }, + { 0 }, + }; static const struct intr_details plpl_intr_details[] = { + { F_PL_BUSPERR, "Bus parity error" }, { F_FATALPERR, "Fatal parity error" }, + { F_INVALIDACCESS, "Global reserved memory access" }, + { F_TIMEOUT, "Bus timeout" }, + { F_PLERR, "Module reserved access" }, { F_PERRVFID, "VFID_MAP parity error" }, { 0 } }; @@ -5280,7 +5298,7 @@ static bool plpl_intr_handler(struct adapter *adap, int arg, bool verbose) .fatal = F_FATALPERR | F_PERRVFID, .flags = NONFATAL_IF_DISABLED, .details = plpl_intr_details, - .actions = NULL, + .actions = plpl_intr_actions, }; return (t4_handle_intr(adap, &plpl_intr_info, 0, verbose));