Skip to content

Commit 6f3dc0a

Browse files
committed
dmaengine: sdxi: context: Drop doorbell push debugging
This overhwelms the log when there's any significant traffic and I haven't had to use it in a while; discard it for v1. Signed-off-by: Nathan Lynch <nathan.lynch@amd.com>
1 parent 84bfda8 commit 6f3dc0a

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

drivers/dma/sdxi/context.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -298,41 +298,10 @@ static void sdxi_rescind_cxt(struct sdxi_cxt *cxt)
298298
/* todo: need to send DSC_CXT_UPD to admin */
299299
}
300300

301-
static const char *cxt_sts_state_str(enum cxt_sts_state state)
302-
{
303-
static const char *const context_states[] = {
304-
[CXTV_STOP_SW] = "stopped (software)",
305-
[CXTV_RUN] = "running",
306-
[CXTV_STOPG_SW] = "stopping (software)",
307-
[CXTV_STOP_FN] = "stopped (function)",
308-
[CXTV_STOPG_FN] = "stopping (function)",
309-
[CXTV_ERR_FN] = "error",
310-
};
311-
const char *str = "unknown";
312-
313-
switch (state) {
314-
case CXTV_STOP_SW:
315-
case CXTV_RUN:
316-
case CXTV_STOPG_SW:
317-
case CXTV_STOP_FN:
318-
case CXTV_STOPG_FN:
319-
case CXTV_ERR_FN:
320-
str = context_states[state];
321-
break;
322-
/* default: label deliberately omitted so -Wswitch will work. */
323-
}
324-
325-
return str;
326-
}
327-
328301
void sdxi_cxt_push_doorbell(struct sdxi_cxt *cxt, u64 index)
329302
{
330-
enum cxt_sts_state state = sdxi_cxt_sts_state(cxt->sq->cxt_sts);
331-
332303
/* Ensure preceding write index increment is visible. */
333304
dma_wmb();
334-
sdxi_dbg(cxt->sdxi, "Ringing context %u (state = %s) doorbell: %llu\n",
335-
cxt->id, cxt_sts_state_str(state), index);
336305
iowrite64(index, cxt->db);
337306
}
338307

0 commit comments

Comments
 (0)