-
Notifications
You must be signed in to change notification settings - Fork 212
qat: handle service parsing via debugfs #2167
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
base: main
Are you sure you want to change the base?
Conversation
The QAT out-of-tree driver does not provide sysfs based cfg_services interface to read (and write) services configurations so QAT debugfs is used as the fallback. bad65eb changed how the services string is parsed and trimmed but missed the debugfs path. Because of this, the resource registration errors due so invalid resource names (e.g., "sym;dc", which should be "sym-dc"). Fix by handling the debugfs path the same way as the cfg_services sysfs path. Signed-off-by: Mikko Ylinen <[email protected]>
| } | ||
|
|
||
| return devCfg.Section("GENERAL").Key("ServicesEnabled").String() | ||
| return strings.Join(strings.SplitN(strings.TrimSpace(devCfg.Section("GENERAL").Key("ServicesEnabled").String()), ";", 3), "-") |
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 line is complicated enough that I think a helper function should be used both here, and on same operation done for on earlier line in this function => helper function could be internal to this function.
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.
I was slightly disappointed Go formatter could not do anything about 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.
I would agree with @eero-t . A helper function would be nice. Maybe even with a comment what it tries to do.
|
SGX test fails due to SHA checksum failure, and I guess that's why rest of the rests are cancelled? |
yup. I'll fix/update this image separately later this week |
|
Hi @mythi |
Fixes: #2168
The QAT out-of-tree driver does not provide sysfs based cfg_services interface to read (and write) services configurations so QAT debugfs is used as the fallback.
bad65eb changed how the services string is parsed and trimmed but missed the debugfs path. Because of this, the resource registration errors due to invalid resource names (e.g., "sym;dc", which should be "sym-dc").
Fix by handling the debugfs path the same way as the cfg_services sysfs path.