accel/qaic: Add fifo queued debugfs
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 22 Mar 2024 17:57:30 +0000 (11:57 -0600)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 5 Apr 2024 15:47:56 +0000 (09:47 -0600)
commite495e523b888a6155f82c767d34c8d712a41ee54
tree0bdb52f0148001605656316aa4fdf94a0a5036dd
parentb05d357244e93ad073bed27a22668cf418e847fa
accel/qaic: Add fifo queued debugfs

When debugging functional issues with workload input processing, it is
useful to know if requests are backing up in the fifo, or perhaps
getting stuck elsewhere. To answer the question of how many requests are
in the fifo, implement a "queued" debugfs entry per-dbc that returns the
number of pending requests when read.

Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240322175730.3855440-4-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic.h
drivers/accel/qaic/qaic_data.c
drivers/accel/qaic/qaic_debugfs.c