diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-04-10 05:06:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-04-10 05:06:58 +0000 |
commit | 113f2316c617b113de58ce85b244819bb49cdcee (patch) | |
tree | a6410c3fe374f2e0d9dc93c18d5a0479f538e79a /sys/dev/cxgbe/tom/t4_ddp.c | |
parent | 70e22add96ff6317d002cd62250ae83b9a3073a2 (diff) | |
download | src-113f2316c617b113de58ce85b244819bb49cdcee.tar.gz src-113f2316c617b113de58ce85b244819bb49cdcee.zip |
Add a 'show t4 tcb <nexus> <tid>' command to dump a TCB from DDB.
This allows the contents of a TCB to be extracted from a T4/T5 card in
DDB after a panic.
Notes
Notes:
svn path=/head/; revision=297777
Diffstat (limited to 'sys/dev/cxgbe/tom/t4_ddp.c')
-rw-r--r-- | sys/dev/cxgbe/tom/t4_ddp.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sys/dev/cxgbe/tom/t4_ddp.c b/sys/dev/cxgbe/tom/t4_ddp.c index 2df025777ddb..2aa774d0139c 100644 --- a/sys/dev/cxgbe/tom/t4_ddp.c +++ b/sys/dev/cxgbe/tom/t4_ddp.c @@ -80,31 +80,6 @@ static struct mbuf *get_ddp_mbuf(int len); /* XXX: must match A_ULP_RX_TDDP_PSZ */ static int t4_ddp_pgsz[] = {4096, 4096 << 2, 4096 << 4, 4096 << 6}; -#if 0 -static void -t4_dump_tcb(struct adapter *sc, int tid) -{ - uint32_t tcb_base, off, i, j; - - /* Dump TCB for the tid */ - tcb_base = t4_read_reg(sc, A_TP_CMM_TCB_BASE); - t4_write_reg(sc, PCIE_MEM_ACCESS_REG(A_PCIE_MEM_ACCESS_OFFSET, 2), - tcb_base + tid * TCB_SIZE); - t4_read_reg(sc, PCIE_MEM_ACCESS_REG(A_PCIE_MEM_ACCESS_OFFSET, 2)); - off = 0; - printf("\n"); - for (i = 0; i < 4; i++) { - uint32_t buf[8]; - for (j = 0; j < 8; j++, off += 4) - buf[j] = htonl(t4_read_reg(sc, MEMWIN2_BASE + off)); - - printf("%08x %08x %08x %08x %08x %08x %08x %08x\n", - buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], - buf[7]); - } -} -#endif - #define MAX_DDP_BUFFER_SIZE (M_TCB_RX_DDP_BUF0_LEN) static int alloc_ppods(struct tom_data *td, int n, u_int *ppod_addr) |