ops.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) | ops.c (1dedbe4f223cac603e871d91133b9aa3136fbc21) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2// 3// This file is provided under a dual BSD/GPLv2 license. When using or 4// redistributing this file, you may do so under either license. 5// 6// Copyright(c) 2018 Intel Corporation. All rights reserved. 7// 8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> --- 163 unchanged lines hidden (view full) --- 172 * Use different message within the snd_sof_dsp_dbg_dump() depending on 173 * the non_recoverable flag. 174 */ 175 sdev->dbg_dump_printed = false; 176 if (non_recoverable) { 177 snd_sof_dsp_dbg_dump(sdev, "DSP panic!", 178 SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX); 179 sof_set_fw_state(sdev, SOF_FW_CRASHED); | 1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2// 3// This file is provided under a dual BSD/GPLv2 license. When using or 4// redistributing this file, you may do so under either license. 5// 6// Copyright(c) 2018 Intel Corporation. All rights reserved. 7// 8// Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> --- 163 unchanged lines hidden (view full) --- 172 * Use different message within the snd_sof_dsp_dbg_dump() depending on 173 * the non_recoverable flag. 174 */ 175 sdev->dbg_dump_printed = false; 176 if (non_recoverable) { 177 snd_sof_dsp_dbg_dump(sdev, "DSP panic!", 178 SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX); 179 sof_set_fw_state(sdev, SOF_FW_CRASHED); |
180 snd_sof_trace_notify_for_error(sdev); | 180 sof_fw_trace_fw_crashed(sdev); |
181 } else { 182 snd_sof_dsp_dbg_dump(sdev, 183 "DSP panic (recovery will be attempted)", 184 SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX); 185 } 186} 187EXPORT_SYMBOL(snd_sof_dsp_panic); | 181 } else { 182 snd_sof_dsp_dbg_dump(sdev, 183 "DSP panic (recovery will be attempted)", 184 SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX); 185 } 186} 187EXPORT_SYMBOL(snd_sof_dsp_panic); |