diff mbox

ASoC: Intel; Add debug output when boot fails.

Message ID 1414679640-11108-1-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State Accepted
Commit b891f62fcd28a46ab0818cd9acbb5bbb20542ab6
Headers show

Commit Message

Liam Girdwood Oct. 30, 2014, 2:34 p.m. UTC
Add the debug output from IPCD and IPCX when booting fails.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 sound/soc/intel/sst-haswell-ipc.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comments

Mark Brown Oct. 30, 2014, 3:46 p.m. UTC | #1
On Thu, Oct 30, 2014 at 02:34:00PM +0000, Liam Girdwood wrote:
> Add the debug output from IPCD and IPCX when booting fails.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index b37d3ee..0ea7c3d 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -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;
 	}