mbox series

[v2,0/3] accel/qaic: Add debugfs entries

Message ID 20240322175730.3855440-1-quic_jhugo@quicinc.com
Headers show
Series accel/qaic: Add debugfs entries | expand

Message

Jeffrey Hugo March 22, 2024, 5:57 p.m. UTC
Add 3 debugfs entries that can be useful in debugging a variety of
issues.

bootlog - output the device bootloader log

fifo_size - output the configured dbc fifo size

queued - output how many requests are queued in the dbc fifo

Bootlog is unique to the device, where as fifo_size/queued is per-dbc.

v2:
-Use size_add() for bounds check
-Move locking into reset_bootlog()
-Clamp num dbcs supported to 256 to address a sprintf warning

Jeffrey Hugo (3):
  accel/qaic: Add bootlog debugfs
  accel/qaic: Add fifo size debugfs
  accel/qaic: Add fifo queued debugfs

 drivers/accel/qaic/Makefile       |   2 +
 drivers/accel/qaic/qaic.h         |   9 +
 drivers/accel/qaic/qaic_data.c    |   9 +
 drivers/accel/qaic/qaic_debugfs.c | 338 ++++++++++++++++++++++++++++++
 drivers/accel/qaic/qaic_debugfs.h |  20 ++
 drivers/accel/qaic/qaic_drv.c     |  16 +-
 6 files changed, 393 insertions(+), 1 deletion(-)
 create mode 100644 drivers/accel/qaic/qaic_debugfs.c
 create mode 100644 drivers/accel/qaic/qaic_debugfs.h

Comments

Jeffrey Hugo April 5, 2024, 3:49 p.m. UTC | #1
On 3/22/2024 11:57 AM, Jeffrey Hugo wrote:
> Add 3 debugfs entries that can be useful in debugging a variety of
> issues.
> 
> bootlog - output the device bootloader log
> 
> fifo_size - output the configured dbc fifo size
> 
> queued - output how many requests are queued in the dbc fifo
> 
> Bootlog is unique to the device, where as fifo_size/queued is per-dbc.
> 
> v2:
> -Use size_add() for bounds check
> -Move locking into reset_bootlog()
> -Clamp num dbcs supported to 256 to address a sprintf warning
> 
> Jeffrey Hugo (3):
>    accel/qaic: Add bootlog debugfs
>    accel/qaic: Add fifo size debugfs
>    accel/qaic: Add fifo queued debugfs
> 
>   drivers/accel/qaic/Makefile       |   2 +
>   drivers/accel/qaic/qaic.h         |   9 +
>   drivers/accel/qaic/qaic_data.c    |   9 +
>   drivers/accel/qaic/qaic_debugfs.c | 338 ++++++++++++++++++++++++++++++
>   drivers/accel/qaic/qaic_debugfs.h |  20 ++
>   drivers/accel/qaic/qaic_drv.c     |  16 +-
>   6 files changed, 393 insertions(+), 1 deletion(-)
>   create mode 100644 drivers/accel/qaic/qaic_debugfs.c
>   create mode 100644 drivers/accel/qaic/qaic_debugfs.h
> 

Pushed to drm-misc-next.