Skip to contentSkip to conversation

ASoC: Intel; Add debug output when boot fails.

PATCH Applied Liam Girdwood 2 participants 2 messages Oct 30, 2014

Subsystems (3)
lore
Share & tools
lore

Liam Girdwood

author maintainer
#0 lore raw

PATCH 1/1 ASoC: Intel; Add debug output when boot fails.

Add the debug output from IPCD and IPCX when booting fails.

---
 sound/soc/intel/sst-haswell-ipc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
sound/soc/intel/sst-haswell-ipc.c +6 -2
index b37d3ee..0ea7c3d 100644
@@ -1927,7 +1927,9 @@ int sst_hsw_dsp_runtime_resume(struct sst_hsw *hsw)
 	ret = wait_event_timeout(hsw->boot_wait, hsw->boot_complete,
 		msecs_to_jiffies(IPC_BOOT_MSECS));
 	if (ret == 0) {
-		dev_err(hsw->dev, "error: audio DSP boot timeout\n");
+		dev_err(hsw->dev, "error: audio DSP boot timeout IPCD 0x%x IPCX 0x%x\n",
+			sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCD),
+			sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCX));
 		return -EIO;
 	}
 
@@ -2038,7 +2040,9 @@ int sst_hsw_dsp_init(struct device *dev, struct sst_pdata *pdata)
 		msecs_to_jiffies(IPC_BOOT_MSECS));
 	if (ret == 0) {
 		ret = -EIO;
-		dev_err(hsw->dev, "error: ADSP boot timeout\n");
+		dev_err(hsw->dev, "error: audio DSP boot timeout IPCD 0x%x IPCX 0x%x\n",
+			sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCD),
+			sst_dsp_shim_read_unlocked(hsw->dsp, SST_IPCX));
 		goto boot_err;
 	}
 
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 1 line · Liam Girdwood

Add the debug output from IPCD and IPCX when booting fails.

Applied, thanks.