ASoC: SOF: debug: add new debugfs entries for IPC flood test
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 3 Jun 2019 16:18:20 +0000 (11:18 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 17:59:07 +0000 (18:59 +0100)
commit091c12e1f50cce93b1af90e56cad88787ec86dfb
treed5d6cf8bbee3aab79d727fc908b66f288734099d
parent53b22d25ec36cebc2f5888a0bd5fba84b05f3dee
ASoC: SOF: debug: add new debugfs entries for IPC flood test

Add a couple of new debugfs entries "ipc_flood_count"
and "ipc_flood_duration_ms" that can be used to
execute the IPC flood test. "ipc_flood_count" floods the DSP
with the number of test IPCs specified and ipc_flood_duration_ms
floods the DSP with test IPC's for the duration(in ms) specified.
The test stats such as average, min and max IPC response times
are logged in the dmesg and saved in the debugfs entry cache buffer.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Kconfig
sound/soc/sof/debug.c
sound/soc/sof/sof-priv.h