Date: Thu, 22 Sep 2016 21:19:25 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r306216 - head/sys/dev/cxgbe Message-ID: <201609222119.u8MLJPGb098183@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Thu Sep 22 21:19:25 2016 New Revision: 306216 URL: https://svnweb.freebsd.org/changeset/base/306216 Log: cxgbe(4): Fix the output of the "tids" sysctl on T6. Modified: head/sys/dev/cxgbe/t4_main.c Modified: head/sys/dev/cxgbe/t4_main.c ============================================================================== --- head/sys/dev/cxgbe/t4_main.c Thu Sep 22 21:16:54 2016 (r306215) +++ head/sys/dev/cxgbe/t4_main.c Thu Sep 22 21:19:25 2016 (r306216) @@ -7237,7 +7237,12 @@ sysctl_tids(SYSCTL_HANDLER_ARGS) if (t->ntids) { if (t4_read_reg(sc, A_LE_DB_CONFIG) & F_HASHEN) { - uint32_t b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4; + uint32_t b; + + if (chip_id(sc) <= CHELSIO_T5) + b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4; + else + b = t4_read_reg(sc, A_LE_DB_SRVR_START_INDEX); if (b) { sbuf_printf(sb, "TID range: 0-%u, %u-%u", b - 1,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609222119.u8MLJPGb098183>