Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Initial FW watchdog implementation #841

Closed
wants to merge 2 commits into from

Commits on Apr 17, 2019

  1. ASoC: SOF: force suspend upon IPC error

    Implement a basic recovery flow for the case when hardware
    hits a fatal error and stops responding to IPC messages.
    The SOF core is left in an unrecoverable state in this case, as power
    down sequence is blocked by inability to send state save IPC to
    the firmware.
    
    To force recovery, detect when IPC fails to a timeout on the
    suspend call path, and force device to suspend despite of the error.
    
    This patch only helps on devices with runtime PM enabled.
    
    Signed-off-by: Kai Vehmanen <[email protected]>
    kv2019i committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    9c389da View commit details
    Browse the repository at this point in the history
  2. ASoC: SOF: power cycle upon errors at hw_free

    To ensure fatal FW errors are detected even if runtime PM is not
    in use, add an additional check to 'hw_free' method. By forcing
    a suspend-resume cycle on IPC timeout errors, we ensure FW is
    not left in error state at stream close.
    
    Signed-off-by: Kai Vehmanen <[email protected]>
    kv2019i committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    7cd1569 View commit details
    Browse the repository at this point in the history