Date: Thu, 2 Feb 2023 07:39:28 GMT From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 5d45caebfad6 - stable/13 - cxgbe(4): Add support for PPOD_EDRAM feature. Message-ID: <202302020739.3127dSbS061954@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=5d45caebfad60cd323b732d99e52239644a724a0 commit 5d45caebfad60cd323b732d99e52239644a724a0 Author: Navdeep Parhar <np@FreeBSD.org> AuthorDate: 2022-04-14 22:43:32 +0000 Commit: Navdeep Parhar <np@FreeBSD.org> 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302020739.3127dSbS061954>