git: 04e756596883 - stable/13 - cxgbe: Move page pods KTR traces under VERBOSE_TRACES.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Apr 2022 23:12:47 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=04e756596883c01631d2afd1a8bb2a4dc6ad5bbd commit 04e756596883c01631d2afd1a8bb2a4dc6ad5bbd Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-03-02 23:32:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-29 23:09:53 +0000 cxgbe: Move page pods KTR traces under VERBOSE_TRACES. (cherry picked from commit 2753997438ae16e520a55fd2381aef3e2f35746e) --- sys/dev/cxgbe/tom/t4_ddp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/cxgbe/tom/t4_ddp.c b/sys/dev/cxgbe/tom/t4_ddp.c index f49a8aaaaf70..7614f2ea9497 100644 --- a/sys/dev/cxgbe/tom/t4_ddp.c +++ b/sys/dev/cxgbe/tom/t4_ddp.c @@ -866,9 +866,11 @@ alloc_page_pods(struct ppod_region *pr, u_int nppods, u_int pgsz_idx, &addr) != 0) return (ENOMEM); +#ifdef VERBOSE_TRACES CTR5(KTR_CXGBE, "%-17s arena %p, addr 0x%08x, nppods %d, pgsz %d", __func__, pr->pr_arena, (uint32_t)addr & pr->pr_tag_mask, nppods, 1 << pr->pr_page_shift[pgsz_idx]); +#endif /* * The hardware tagmask includes an extra invalid bit but the arena was @@ -1077,8 +1079,10 @@ t4_free_page_pods(struct ppod_reservation *prsv) addr = prsv->prsv_tag & pr->pr_tag_mask; MPASS((addr & pr->pr_invalid_bit) == 0); +#ifdef VERBOSE_TRACES CTR4(KTR_CXGBE, "%-17s arena %p, addr 0x%08x, nppods %d", __func__, pr->pr_arena, addr, prsv->prsv_nppods); +#endif vmem_free(pr->pr_arena, addr, PPOD_SZ(prsv->prsv_nppods)); prsv->prsv_nppods = 0;