-
Notifications
You must be signed in to change notification settings - Fork 132
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
ASoC: SOF: Intel: hda: Create debugfs file to force a clean DSP boot #4738
ASoC: SOF: Intel: hda: Create debugfs file to force a clean DSP boot #4738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks quite straight forward, provided that hdev->skip_imr_boot works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR would not work for MTL+, see below
debugfs_create_bool("request_cold_boot", | ||
0644, sdev->debugfs_root, | ||
&hdev->skip_imr_boot); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not call is 'skip_imr_boot' then? I find 'cold-boot' confusing because we run this code path during reboot aka warm boot...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also have a post_fw_run in mtl.c and lnl.c!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other name that came up was request_dsp_cold_boot
to imply that it is only for the next DSP boot.
I'm fine naming it skip_imr_boot
though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option has a slight flaw and would work only to skip IMR boot for the second iteration of FW boot after the value is written isnt it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranj063, it will skip the IMR boot at the next DSP boot.
If the DSP was off then the next boot will be a 'clean' boot.
If the DSP was not off then it needs to be power cycled.
1757235
to
8e36a19
Compare
Changes since v1:
|
When IMR boot is supported on a platform it is always going to be used to boot the DSP unless some catastrophic event happens. There is no way for a developer to force a clean DSP boot without removing and re-inserting the modules. Create a 'skip_imr_boot' debugfs file which can be used to force the next DSP boot as clean (prune) boot. Signed-off-by: Peter Ujfalusi <[email protected]>
When IMR boot is supported on a platform it is always going to be used to boot the DSP unless some catastrophic event happens. There is no way for a developer to force a clean DSP boot without removing and re-inserting the modules.
Create a 'request_cold_boot' debugfs file which can be used to force the next DSP boot as clean (prune) boot.