7b3c2348 | 29-Aug-2023 |
Mario Limonciello <mario.limonciello@amd.com> |
crypto: ccp - Fix some unfused tests
Some of the tests for unfused parts referenced a named member parameter, but when the test suite was switched to call a python ctypes library they weren't update
crypto: ccp - Fix some unfused tests
Some of the tests for unfused parts referenced a named member parameter, but when the test suite was switched to call a python ctypes library they weren't updated. Adjust them to refer to the first argument of the process_param() call and set the data type of the signature appropriately.
Fixes: 15f8aa7bb3e5 ("crypto: ccp - Add unit tests for dynamic boost control") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
2ad01eb5 | 29-Aug-2023 |
Mario Limonciello <mario.limonciello@amd.com> |
crypto: ccp - Fix sample application signature passing
When parameters are sent the PSP returns back it's own signature for the application to verify the authenticity of the result.
Display this si
crypto: ccp - Fix sample application signature passing
When parameters are sent the PSP returns back it's own signature for the application to verify the authenticity of the result.
Display this signature to the caller instead of the one the caller sent.
Fixes: f40d42f116cf ("crypto: ccp - Add a sample python script for Dynamic Boost Control") Fixes: febe3ed3222f ("crypto: ccp - Add a sample library for ioctl use") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
70f242c1 | 29-Aug-2023 |
Mario Limonciello <mario.limonciello@amd.com> |
crypto: ccp - Fix DBC sample application error handling
The sample application was taking values from ioctl() and treating those as the error codes to present to a user.
This is incorrect when ret
crypto: ccp - Fix DBC sample application error handling
The sample application was taking values from ioctl() and treating those as the error codes to present to a user.
This is incorrect when ret is non-zero, the error is stored to `errno`. Use this value instead.
Fixes: f40d42f116cf ("crypto: ccp - Add a sample python script for Dynamic Boost Control") Fixes: febe3ed3222f ("crypto: ccp - Add a sample library for ioctl use") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
show more ...
|
15f8aa7b | 23-Jun-2023 |
Mario Limonciello <mario.limonciello@amd.com> |
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 cont
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>
show more ...
|
f40d42f1 | 23-Jun-2023 |
Mario Limonciello <mario.limonciello@amd.com> |
crypto: ccp - Add a sample python script for Dynamic Boost Control
Dynamic Boost Control commands are triggered by userspace with an IOCTL interface that userspace will prepare proper buffers for a
crypto: ccp - Add a sample python script for Dynamic Boost Control
Dynamic Boost Control commands are triggered by userspace with an IOCTL interface that userspace will prepare proper buffers for a request.
To allow prototyping and testing this interface, add a python3 command line script that loads the dbc_library.so for utilizing the IOCTLs.
The signature to use and UID are passed as arguments to this script.
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>
show more ...
|