| Previous | Next |
| TPM_20_E_YIELDED | TPM_20_E_TESTING |
TPM_20_E_CANCELED
Cancellation is an explicit command outcome
TPM_20_E_CANCELED represents TPM_RC_CANCELED. A caller, resource manager, platform timeout path, or TPM interface can request cancellation of an outstanding command. The response means the TPM observed that cancellation; it does not describe why the higher layer requested it.
Windows TBS provides Tbsip_Cancel_Commands, which cancels outstanding commands for a context. Closing the context or terminating a client can also change resource lifetime. Retrying automatically may be wrong when the original application intentionally canceled an operation.
Trace the cancellation source
- Check whether the application invoked the TBS cancel API during timeout or shutdown handling.
- Correlate cancellation with service stop, sleep, device reset, and process termination events.
- Verify that output buffers are discarded because a canceled command has no ordinary successful result.
- Retry only after determining that the cancellation was transient and the command is safe to repeat.
References
- TCG Part 2: TPM_RC_CANCELED
- Microsoft: Tbsip_Cancel_Commands
- Microsoft: TBS command submission model
Looking for a different code? Search another status or error code.