Skip to content

[FEATURE] trace: make last trace item persistent  #2371

@lgirdwood

Description

@lgirdwood

Is your feature request related to a problem? Please describe.
Currently only trace_error() messages are entered into the persistent buffer. This means we are unable to find the fault if FW crashes and DMA trace buffer is not flushed.

Describe the solution you'd like
Reserve the first item in the persistent trace buffer (error buffer) for the last trace message. This way (for any FW crash) the last trace item is always available regardless of DMA trace buffer copy status. i.e. we always write the current trace message to the top of the persistent buffer for every trace call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions