Skip to content

Conversation

@mythi
Copy link
Contributor

@mythi mythi commented Nov 17, 2025

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.

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), "-")
Copy link
Contributor

@eero-t eero-t Nov 17, 2025

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@eero-t
Copy link
Contributor

eero-t commented Nov 17, 2025

SGX test fails due to SHA checksum failure, and I guess that's why rest of the rests are cancelled?

@mythi
Copy link
Contributor Author

mythi commented Nov 18, 2025

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

@msheikh-wind
Copy link

Hi @mythi
I have tested with this code, and the QAT pod is running fine. Could you please release the latest image as soon as possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QAT plugin fails to parse “ServicesEnabled = sym;dc” configuration after upgrade to v0.34.0

4 participants