diff options
| author | Adam Guerin <[email protected]> | 2024-07-17 07:44:56 -0400 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2024-08-02 21:11:20 +0800 |
| commit | 4e190a5740aedc37654335089e7923bc8109dc3a (patch) | |
| tree | 726a198712fa74df0d6d2a25b982ed8932c321eb /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 47d96252099a7184b4bad852fcfa3c233c1d2f71 (diff) | |
crypto: qat - preserve ADF_GENERAL_SEC
The ADF_GENERAL_SEC configuration section contains values that must be
preserved during state transitions (down -> up, up -> down).
This patch modifies the logic in adf_dev_shutdown() to maintain all
key values within this section, rather than selectively saving and
restoring only the ADF_SERVICES_ENABLED attribute.
To achieve this, a new function has been introduced that deletes all
configuration sections except for the one specified by name.
This function is invoked during adf_dev_down(), with ADF_GENERAL_SEC
as the argument. Consequently, the adf_dev_shutdown_cache_cfg() function
has been removed as it is now redundant.
Additionally, this patch eliminates the cache_config parameter from
the adf_dev_down() function since ADF_GENERAL_SEC should always be
retained. This change does not cause any side effects because all
entries in the key-value store are cleared when a module is unloaded.
Signed-off-by: Adam Guerin <[email protected]>
Co-developed-by: Michal Witwicki <[email protected]>
Signed-off-by: Michal Witwicki <[email protected]>
Reviewed-by: Giovanni Cabiddu <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions