diff options
author | Ohad Sharabi <osharabi@habana.ai> | 2024-01-10 15:27:44 +0300 |
---|---|---|
committer | Ofir Bitton <obitton@habana.ai> | 2024-06-23 09:42:24 +0300 |
commit | 892bc64827ddc021be9e9a402b96c6cc7eed89c6 (patch) | |
tree | 569642b49f8235168cc6b17b01ab5bef738a2a71 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1ddaaa244021aba8496536a6627b4ad2bc0f936a (diff) | |
download | linux-892bc64827ddc021be9e9a402b96c6cc7eed89c6.tar.xz |
accel/habanalabs/gaudi2: use single function to compare FW versions
Currently, the code contains 2 types of FW version comparison functions:
- hl_is_fw_sw_ver_[below/equal_or_greater]()
- gaudi2 specific function of the type
gaudi2_is_fw_ver_[below/above]x_y_z()
Moreover, some functions use the inner FW version which shuold be only
stage during development but not version dependencies.
Finally, some tests are done to deprecated FW version to which LKD
should hold no compatibility.
This commit aligns all APIs to a single function that just compares the
version and return an integers indicator (similar in some way to
strcmp()).
In addition, this generic function now considers also the sub-minor FW
version and also remove dead code resulting in deprecated FW versions
compatibility.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions