From nobody Thu Feb 02 07:39:28 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 4P6rJx0D6sz3c97y; Thu, 2 Feb 2023 07:39:29 +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 4P6rJw6b5Xz3BwQ; Thu, 2 Feb 2023 07:39:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323568; 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=ijvwGHWNIPIoQZHZd24sdEEaGTL/41HeKqsLeYKqztE=; b=gLVM2STP5LBheQTl2Htt/OlFaeePrYvzpklnwyT8Eb1CtLcybMjYCehethKyXpgyANtQAx fcZDD8Q6y3U8JQ5baMMjqT9bhNIOAYuvFZxVbFxu9ETG+gJROwlQ01YbUa1gj0o0s5HS9X e08/fZ6vMmupcYl/zZTUBKi3bEITULpkslfGtkdLxnRdM3kwAJ1/V9CNghDj7RY53ovAE8 zHKGvNavkYHY8H5VWBwp50SwKJWnMW85NTV0cOf12SoxAbgloBnKzanJYWL5a6ezEa+PpY 7MJORYO32VcCjJUW5sA9xe9zeLYcOJ2j+TNDiYTxTrvmU9iMqCakgRlflqjUNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675323568; 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=ijvwGHWNIPIoQZHZd24sdEEaGTL/41HeKqsLeYKqztE=; b=YCL2HkxS8+l7OEE1r5/ZHQUEKVp/Q261hGABEtfpdyA1B2zH1RGGFknAw/HH6dewZgRwKe ng8pZboCAOb09uW/P2EO2YfB3b65b//oyAtQdKe4HS2PbRD2Ztb39BQDIF6AHB1OtDFQRz VFDw9nm/Z5nlrXI+OxiUZcIMkLrac+18kvSAR9H6PUbs2JOaDP3+7z9Unj1Xwnt9IIPB3D hZOUTsfncCTGLVEcfn8NJIE6WmigDB4wX50CKFR0KbXWw5VIcf6AgEHpn7JWdBTysLA29Z T5ciqVMZE0i5kGzTM8AF0xVXluYZd0m5tOr3Wu6j/ApF+LHRjq4I9nAZzK/Dbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675323568; a=rsa-sha256; cv=none; b=s2rFbonrpLKUEiNqfB+og7NI4RBGBl6skbaPXDvjXI9/NF0sAPDg8wTlZanJWg90cJ4uja 4XNwpAsbpFddUO0d7cKH+mh7QH0rUFKTpk+V3m7ZyxociQ4MzE5m/2MYmoR24JKeLb68jz t+uy4yh09SC72dDg7CpeNYsugGiAq2HZVuJUurtzaMOS+CMh7W1GVtztiuDUxDNeUJn+Ud UGUH6zHoJU2wuCS6huFQDvNHeqggm73IAMECTQ2MSbTYMyN74XHG0J6tbAAfvAh/N/booT uMPYeRiPWXGJ6427J5WZfd4vHkdgJQBwlsHgnAH6MnJzTD/gicHr/j8PON2bTg== 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 4P6rJw5dnCzm4v; Thu, 2 Feb 2023 07:39:28 +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 3127dSK2061955; Thu, 2 Feb 2023 07:39:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3127dSbS061954; Thu, 2 Feb 2023 07:39:28 GMT (envelope-from git) Date: Thu, 2 Feb 2023 07:39:28 GMT Message-Id: <202302020739.3127dSbS061954@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: 5d45caebfad6 - stable/13 - cxgbe(4): Add support for PPOD_EDRAM feature. 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: 5d45caebfad60cd323b732d99e52239644a724a0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=5d45caebfad60cd323b732d99e52239644a724a0 commit 5d45caebfad60cd323b732d99e52239644a724a0 Author: Navdeep Parhar AuthorDate: 2022-04-14 22:43:32 +0000 Commit: Navdeep Parhar CommitDate: 2023-02-02 07:13:18 +0000 cxgbe(4): Add support for PPOD_EDRAM feature. The driver queries the firmware to find out if it supports this feature and enables it if it does. The firmware moves the iSCSI page pod region to a lower address so that some of it is located in the faster on-chip memory instead of external DDR. Reviewed by: jhb@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D34895 (cherry picked from commit 169e94c41e235191014503de06915b0c1b60db91) --- sys/dev/cxgbe/t4_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 0ec1dc54bdd4..ebbe1bf1306e 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -5252,6 +5252,17 @@ set_params__pre_init(struct adapter *sc) "failed to enable high priority filters :%d.\n", rc); } + + param = FW_PARAM_DEV(PPOD_EDRAM); + rc = -t4_query_params(sc, sc->mbox, sc->pf, 0, 1, ¶m, &val); + if (rc == 0 && val == 1) { + rc = -t4_set_params(sc, sc->mbox, sc->pf, 0, 1, ¶m, + &val); + if (rc != 0) { + device_printf(sc->dev, + "failed to set PPOD_EDRAM: %d.\n", rc); + } + } } /* Enable opaque VIIDs with firmwares that support it. */