accel/qaic: Add fifo size debugfs
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 22 Mar 2024 17:57:29 +0000 (11:57 -0600)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 5 Apr 2024 15:47:19 +0000 (09:47 -0600)
commitb05d357244e93ad073bed27a22668cf418e847fa
treef33964b058dd22003f277a3983142687ee12b324
parent5f8df5c6def641c164ed1b673d47a41fdd0013f8
accel/qaic: Add fifo size debugfs

Each DMA Bridge Channel (dbc) has a unique configured fifo size which is
specified by the userspace client of that dbc. Since the fifo is
circular, it is useful to know the configured size when debugging
issues.

Add a per-dbc subdirectory in debugfs and in each subdirectory add a
fifo_size entry that will display the size of that dbc's fifo 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-3-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_debugfs.c