For the tpm2_loadexternal, and tpm2_import tests, the failure seems from RSA private key 1024 bit no support for this platform. So TPM returned ErrorCode (0x000002c4), "value is out of range or is not correct for the context"
+ openssl genrsa -aes128 -passout pass:mypassword -out private.pem 1024 Generating RSA private key, 1024 bit long modulus (2 primes) .........................+++++ ...+++++ e is 65537 (0x010001) + '[' pass:mypassword '!=' stdin ']' + cmd='tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin pass:mypassword' + eval tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin pass:mypassword ++ tpm2_loadexternal -Q -G rsa -r private.pem -c key.ctx --passin pass:mypassword WARNING:esys:src/tss2-esys/api/Esys_LoadExternal.c:304:Esys_LoadExternal_Finish() Received TPM Error ERROR:esys:src/tss2-esys/api/Esys_LoadExternal.c:108:Esys_LoadExternal() Esys Finish ErrorCode (0x000002c4) ERROR: Esys_LoadExternal(0x2C4) - tpm:parameter(2):value is out of range or is not correct for the context ERROR: Unable to run tpm2_loadexternal >From the PTP spec"TCG PC Client Platform TPM Profile Specification for TPM >2.0", Table2. PC Client TPM Algorithms It described, TPM_ALG_RSA M Support for 2048-bit keys is required; the TPM SHOULD NOT support 1024-bit keys. So I think this could be safely ignored, if 1024 key is not supported. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-intel in Ubuntu. https://bugs.launchpad.net/bugs/1936899 Title: [IoTG] [TGL-H] TPM tests fail Status in intel: New Status in linux-intel package in Ubuntu: New Bug description: [Summary]TPM tests from CDTS 20 automated fail [Steps to reproduce]Run cdts.odm_certification, select TPM [Expected result]All tests should pass. [Actual result] Failed Jobs (TPM 2.0): tpm2.0_4.1.1/tpm2_clockratedadjust tpm2.0_4.1.1/tpm2_createprimary tpm2.0_4.1.1/tpm2_import tpm2.0_4.1.1/tpm2_loadexternal Jobs with failed dependencies tpm2.0_4.1.1/tpm2_rc_decode [Failure rate]100% [Additional information] CID: 202106-29175 SKU: system-manufacturer: Intel Corporation system-product-name: Tiger Lake Client Platform bios-version: TGLIFUI1.R00.3455.A03.2011281547 CPU: Genuine Intel(R) CPU 0000 @ 2.60GHz (16x) GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:9a60] kernel-version: 5.11.0-1009-intel [Stage] Issue reported and logs collected right after it happened To manage notifications about this bug go to: https://bugs.launchpad.net/intel/+bug/1936899/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp