aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDamian Muszynski <[email protected]>2023-06-30 19:03:58 +0200
committerHerbert Xu <[email protected]>2023-07-20 22:16:23 +1200
commitbec61a294dbec1c5929aa6f138cddcab68a62311 (patch)
treea00931aa5b27309cfaa7f0d357034206b1c5cff0 /tools/perf/scripts/python/bin
parent359b84f8db942ef46d24de8aa397790c3fae22e0 (diff)
crypto: qat - add heartbeat counters check
A firmware update for QAT GEN2 changed the format of a data structure used to report the heartbeat counters. To support all firmware versions, extend the heartbeat logic with an algorithm that detects the number of counters returned by firmware. The algorithm detects the number of counters to be used (and size of the corresponding data structure) by the comparison the expected size of the data in memory, with the data which was written by the firmware. Firmware detection is done one time during the first read of heartbeat debugfs file to avoid increasing the time needed to load the module. Signed-off-by: Damian Muszynski <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions