Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
Update for state handling#3231
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
a2ff547fc999fdd91d2046af6d368065c36257b2d9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -130,6 +130,7 @@ static int sof_resume(struct device *dev, bool runtime_resume) | ||
| dev_err(sdev->dev, | ||
| "error: failed to load DSP firmware after resume %d\n", | ||
| ret); | ||
| sof_set_fw_state(sdev, SOF_FW_BOOT_FAILED); | ||
| return ret; | ||
| } | ||
| @@ -144,6 +145,7 @@ static int sof_resume(struct device *dev, bool runtime_resume) | ||
| dev_err(sdev->dev, | ||
| "error: failed to boot DSP firmware after resume %d\n", | ||
| ret); | ||
| sof_set_fw_state(sdev, SOF_FW_BOOT_FAILED); | ||
| return ret; | ||
| } | ||
| @@ -313,10 +315,11 @@ int snd_sof_prepare(struct device *dev) | ||
| sdev->system_suspend_target = SOF_SUSPEND_S3; | ||
| /* | ||
| * if the firmware is crashed then we try to aim for S3 to reboot the | ||
| * firmware | ||
| * if the firmware is crashed or boot failed then we try to aim for S3 | ||
| * to reboot the firmware | ||
| */ | ||
| if (sdev->fw_state == SOF_FW_CRASHED) | ||
| if (sdev->fw_state == SOF_FW_CRASHED || | ||
| sdev->fw_state == SOF_FW_BOOT_FAILED) | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw, @keyonjie , when we add the boot-from-IMR logic, we should probably have similar logic to stop using the IMR copy and do a cold boot if FW has crashed or boot failed. now the info is there, so this should be straightforward to add. Just a comment, not for this PR. | ||
| return 0; | ||
| if (!desc->use_acpi_target_states) | ||
Uh oh!
There was an error while loading. Please reload this page.