-
Notifications
You must be signed in to change notification settings - Fork 48
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
case-lib/lib.sh: use sudo to access debugfs files #1172
Conversation
case-lib/lib.sh
Outdated
@@ -831,7 +831,7 @@ is_ipc4() | |||
fi | |||
|
|||
dlogw "using pre kernel 6.9 backwards-compatible fallback with ipc_type kernel parameter" | |||
if ipc_type=$(cat /sys/module/snd_sof_pci/parameters/ipc_type); then | |||
if ipc_type=$(sudo cat /sys/module/snd_sof_pci/parameters/ipc_type); then |
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 does not seem required. When running sof_insert/sof_remove I noticed sudo
can be pretty slow, even slower on Fedora I think. Of course we should ideally cache the result of is_ipc4()
but right now we don't.
EDIT: also, sudo creates a lot of journalctl
noise already.
6a415f8
to
a07333d
Compare
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.
Tests results look good. Very small change that gets rid of very confusing error messages: merging.
@plbossart want to keep this a draft still? If not then please merge |
I missed one:
|
Apparently debugfs requires more care. Oh well. Link: thesofproject#1171 Signed-off-by: Pierre-Louis Bossart <[email protected]>
a07333d
to
60b9fd4
Compare
Apparently debugfs requires more care. Oh well.
Link: #1171