crypto: ccp - Add unit tests for dynamic boost control
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 23 Jun 2023 13:50:00 +0000 (08:50 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jul 2023 10:15:12 +0000 (22:15 +1200)
commit15f8aa7bb3e550278aa561e81b2e72ffa8e442b7
tree02656b7cd2e7610c2c145bcf959c94da74bd189a
parentf40d42f116cf965a9e37e2991f19ca1b5b156210
crypto: ccp - Add unit tests for dynamic boost control

Interacting with dynamic boost control messages requires the caller
to supply a signature. To allow validation of individual dynamic
boost control components, introduce a set of tests that can be run.

The tests can be run in 3 distinct different environments, and so
certain tests will be skipped depending on the environment.

1. Systems that do not support DBC.
2. Production systems that support DBC but are secured silicon.
3. Pre-production systems that support DBC but are unsecured silicon.

Unsecured silicon does not validate the signature, and so this allows
testing more of the state machine and functionality.

Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
tools/crypto/ccp/test_dbc.py [new file with mode: 0755]