Skip to content

ASoC: SOF: force end-of-file for debugfs trace at suspend - #781

Merged
plbossart merged 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:topic/trace-suspend-fix
May 16, 2019
Merged

plbossart merged 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:topic/trace-suspend-fix

Conversation

@kv2019i

@kv2019i kv2019i commented Apr 3, 2019 •

Copy link
Copy Markdown
Collaborator

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.

Changelog:

  • V5 7th May: new bug introduced in V4, still more work to improve patch and description understandability
  • V4 26th Apr: Split into multiple patches, dropped renames.
  • V3 24th Apr: Updated patchset with simplified code. Reworked to signal EOF only once so that this works with old and new sof-loggers.
  • V2 11th Apr: Revised patchset to address comments so far, no longer RFC
  • V1 3th Aprh: initial patchset (RFC)

Related patches:

~~ Issues handled in previous iterations~~:

  • this is not full alternative but has overlap with issue SOF DMA Trace: avoid logs clearance at runtime suspend/resume #306 (and related PR) -> this can be merged as incremental update
  • locking needs to be revisited still (I'll go through this if we move forward) -> handled in PR800
  • having multiple u32 entries for various single-bit pieces of dtrace info in sof-priv.h is ugly, I'd like to combine these -> sorted in 11th April push

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Unclear No agreement on problem statement and resolution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants