Skip to content

Kernel: add MinkIPC QTEE PKCS#11 validation - #537

Open
Srikanth Muppandam (smuppand) wants to merge 3 commits into
qualcomm-linux:mainfrom
smuppand:pkcs11-tests
Open

Kernel: add MinkIPC QTEE PKCS#11 validation#537
Srikanth Muppandam (smuppand) wants to merge 3 commits into
qualcomm-linux:mainfrom
smuppand:pkcs11-tests

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

Add functional validation for the Qualcomm QTEE PKCS#11 Trusted Application through MinkIPC and xtest_qtee.

Changes

  • Add shared QTEE runtime preparation, TA discovery, result parsing, timeout logging, service restoration, and dmesg scanning helpers.
  • Add Debian and Ubuntu package mappings for required QTEE components.
  • Validate the PKCS#11 TA, device access, secure storage, services, expected 21-case manifest, and kernel-log health.
  • Support test filtering, configurable levels, timeouts, and repeatability through --iterations.
  • Skip --clear-storage when its separate storage-test TAs are not provisioned.
  • Add concurrent non-mutating PKCS#11 validation.
  • Recover only from QTEE TEEC_ERROR_BUSY session-open contention using bounded retries.
  • Preserve per-client and per-attempt logs while treating all non-BUSY errors as failures.

Centralize QTEE runtime preparation, TA discovery, result parsing, timeout logging, and service restoration for PKCS11 tests.

Add Debian and Ubuntu package mappings so missing QTEE test components can be provisioned before execution.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Validate the QTEE PKCS11 TA, runtime services, secure storage, expected case manifest, and relevant kernel-log health.

Support filters and bounded repeatability in one suite while avoiding inapplicable clear-storage failures on PKCS11-only images.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Exercise non-mutating PKCS11 initialization, discovery, and session cases from concurrent xtest_qtee clients.

Recover only from serialized QTEE TEEC_ERROR_BUSY session opens with bounded retries while preserving strict failures and per-attempt logs.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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.

1 participant