Lines Matching +full:no +full:- +full:dump +full:- +full:oops

1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
11 /* ACP-specific Common code */
13 #include "../sof-priv.h"
14 #include "../sof-audio.h"
16 #include "../sof-audio.h"
18 #include "acp-dsp-offset.h"
22 * amd_sof_ipc_dump() - This function is called when IPC tx times out.
27 const struct sof_amd_acp_desc *desc = get_chip_info(sdev->pdata); in amd_sof_ipc_dump()
28 u32 base = desc->dsp_intr_base; in amd_sof_ipc_dump()
29 u32 dsp_msg_write = sdev->debug_box.offset + in amd_sof_ipc_dump()
31 u32 dsp_ack_write = sdev->debug_box.offset + in amd_sof_ipc_dump()
33 u32 host_msg_write = sdev->debug_box.offset + in amd_sof_ipc_dump()
35 u32 host_ack_write = sdev->debug_box.offset + in amd_sof_ipc_dump()
45 dev_err(sdev->dev, in amd_sof_ipc_dump()
51 * amd_get_registers() - This function is called in case of DSP oops
57 * @stack: Stores the stack dump.
58 * @stack_words: Size of the stack dump.
65 u32 offset = sdev->dsp_oops_offset; in amd_get_registers()
71 if (xoops->arch_hdr.totalsize > EXCEPT_MAX_HDR_SIZE) { in amd_get_registers()
72 dev_err(sdev->dev, "invalid header size 0x%x. FW oops is bogus\n", in amd_get_registers()
73 xoops->arch_hdr.totalsize); in amd_get_registers()
77 offset += xoops->arch_hdr.totalsize; in amd_get_registers()
86 * amd_sof_dump() - This function is called when a panic message is
101 if (sdev->dsp_oops_offset > sdev->debug_box.offset) { in amd_sof_dump()
102 acp_mailbox_read(sdev, sdev->debug_box.offset, &status, sizeof(u32)); in amd_sof_dump()
108 acp_mailbox_read(sdev, sdev->dsp_box.offset, &status, sizeof(u32)); in amd_sof_dump()
109 sdev->dsp_oops_offset = sdev->dsp_box.offset + sizeof(status); in amd_sof_dump()
124 struct snd_sof_pdata *sof_pdata = sdev->pdata; in amd_sof_machine_select()
125 const struct sof_dev_desc *desc = sof_pdata->desc; in amd_sof_machine_select()
128 mach = snd_soc_acpi_find_machine(desc->machines); in amd_sof_machine_select()
130 dev_warn(sdev->dev, "No matching ASoC machine driver found\n"); in amd_sof_machine_select()
134 sof_pdata->tplg_filename = mach->sof_tplg_filename; in amd_sof_machine_select()
135 sof_pdata->fw_filename = mach->fw_filename; in amd_sof_machine_select()