Skip to content

Commit

Permalink
ASoC: SOF: add exception node in sof debugfs directory
Browse files Browse the repository at this point in the history
The exception node is created when FW is ready and clear to
zero when FW post boot.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Aug 16, 2023
1 parent b5fdc22 commit f94f25f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/sof/ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "sof-audio.h"
#include "ipc4-fw-reg.h"
#include "ipc4-priv.h"
#include "ipc4-telemetry.h"
#include "ops.h"

static const struct sof_ipc4_fw_status {
Expand Down Expand Up @@ -593,6 +594,8 @@ static int ipc4_fw_ready(struct snd_sof_dev *sdev, struct sof_ipc4_msg *ipc4_msg
sdev->debug_box.offset = snd_sof_dsp_get_window_offset(sdev,
SOF_IPC4_DEBUG_WINDOW_IDX);

sof_ipc4_create_exception_debugfs_node(sdev);

dev_dbg(sdev->dev, "mailbox upstream 0x%x - size 0x%x\n",
inbox_offset, inbox_size);
dev_dbg(sdev->dev, "mailbox downstream 0x%x - size 0x%x\n",
Expand Down

0 comments on commit f94f25f

Please sign in to comment.