diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 21:00:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 21:00:30 +0000 |
commit | e54def4ad8144ab15f826416e2e0f290ef1901b4 (patch) | |
tree | 583f8d4bd95cd67c44ff37b878a7eddfca9ab97a /drivers/crypto/intel/qat/qat_common/adf_telemetry.c | |
parent | Adding upstream version 6.8.12. (diff) | |
download | linux-e54def4ad8144ab15f826416e2e0f290ef1901b4.tar.xz linux-e54def4ad8144ab15f826416e2e0f290ef1901b4.zip |
Adding upstream version 6.9.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'drivers/crypto/intel/qat/qat_common/adf_telemetry.c')
-rw-r--r-- | drivers/crypto/intel/qat/qat_common/adf_telemetry.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/adf_telemetry.c b/drivers/crypto/intel/qat/qat_common/adf_telemetry.c index 74fb0c2ed2..2ff714d11b 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_telemetry.c +++ b/drivers/crypto/intel/qat/qat_common/adf_telemetry.c @@ -41,20 +41,6 @@ static int validate_tl_data(struct adf_tl_hw_data *tl_data) return 0; } -static int validate_tl_slice_counters(struct icp_qat_fw_init_admin_slice_cnt *slice_count, - u8 max_slices_per_type) -{ - u8 *sl_counter = (u8 *)slice_count; - int i; - - for (i = 0; i < ADF_TL_SL_CNT_COUNT; i++) { - if (sl_counter[i] > max_slices_per_type) - return -EINVAL; - } - - return 0; -} - static int adf_tl_alloc_mem(struct adf_accel_dev *accel_dev) { struct adf_tl_hw_data *tl_data = &GET_TL_DATA(accel_dev); @@ -228,13 +214,6 @@ int adf_tl_run(struct adf_accel_dev *accel_dev, int state) return ret; } - ret = validate_tl_slice_counters(&telemetry->slice_cnt, tl_data->max_sl_cnt); - if (ret) { - dev_err(dev, "invalid value returned by FW\n"); - adf_send_admin_tl_stop(accel_dev); - return ret; - } - telemetry->hbuffs = state; atomic_set(&telemetry->state, state); |