linux/sound/soc/sof
Kai Vehmanen ec9025e5d3
ASoC: SOF: force end-of-file for debugfs trace at suspend
Current trace implementation gets out of sync when sof device
is put to suspend. The debugfs file handle is kept open, but
firmware will reset its state. After resume, debugfs client's
read offset will not be synchronized to firmware and this may
result in traces read in incorrect order and/or stale data being
read after resume.

Add logic to signal end-of-file to read() when firmware tracing
has ended, and all trace data has been read. This allows debugfs
client to capture all trace data, and reopen the trace file to
ensure proper synchronization with firmware after reopening
the node.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-28 15:52:34 +01:00
..
intel Linux 5.2-rc1 2019-05-20 11:53:50 +01:00
xtensa ASoC: SOF: Add xtensa support 2019-04-28 02:49:31 +09:00
control.c ASoC: SOF: Add Sound Open Firmware KControl support 2019-04-28 02:47:50 +09:00
core.c ASoC: SOF: Fix unused variable warnings 2019-05-09 11:18:57 +09:00
debug.c ASoC: SOF: Add driver debug support. 2019-04-28 02:47:54 +09:00
ipc.c ASoC: SOF: fix error in verbose ipc command parsing 2019-05-13 12:37:28 +01:00
Kconfig ASoC: SOF: nocodec: fix undefined reference 2019-05-13 12:36:56 +01:00
loader.c ASoC: SOF: Use struct_size() in kmemdup() 2019-05-28 15:51:46 +01:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
nocodec.c ASoC: SOF: Add Nocodec machine driver support 2019-04-28 02:49:26 +09:00
ops.c ASoC: SOF: Fix a compile warning with CONFIG_PCI=n 2019-05-07 11:23:57 +09:00
ops.h ASoC: SOF: IPC: add ipc dump function 2019-05-03 15:02:16 +09:00
pcm.c ASoC: SOF: pcm: remove runtime PM calls during pcm open/close 2019-05-13 12:42:41 +01:00
pm.c ASoC: SOF: intel: hda: add hw_params_upon_resume flag for hda stream 2019-05-03 15:01:45 +09:00
sof-acpi-dev.c ASoC: SOF: Add ACPI device support 2019-04-28 02:51:01 +09:00
sof-pci-dev.c ASoC: SOF: Intel: ICL add Icelake chip info struct 2019-05-13 12:43:13 +01:00
sof-priv.h ASoC: SOF: force end-of-file for debugfs trace at suspend 2019-05-28 15:52:34 +01:00
topology.c ASoC: SOF: topology: Use struct_size() helper 2019-05-28 15:51:01 +01:00
trace.c ASoC: SOF: force end-of-file for debugfs trace at suspend 2019-05-28 15:52:34 +01:00
utils.c ASoC: SOF: Add utils 2019-04-28 02:49:47 +09:00