From da223b36b63bee8a8453a8abd23bda33ac3bce48 Mon Sep 17 00:00:00 2001 From: pgardratzama Date: Thu, 25 Sep 2025 16:54:36 +0200 Subject: [PATCH] fix(hpu): reduce polling period of backend on iop ack file from 10 to 2us --- backends/tfhe-hpu-backend/config_store/v80/hpu_config.toml | 2 +- backends/tfhe-hpu-backend/src/ffi/v80/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backends/tfhe-hpu-backend/config_store/v80/hpu_config.toml b/backends/tfhe-hpu-backend/config_store/v80/hpu_config.toml index 889e8cfdc..8e86e4e56 100644 --- a/backends/tfhe-hpu-backend/config_store/v80/hpu_config.toml +++ b/backends/tfhe-hpu-backend/config_store/v80/hpu_config.toml @@ -4,7 +4,7 @@ "${HPU_BACKEND_DIR}/config_store/${HPU_CONFIG}/hpu_regif_core_cfg_3in3.toml", "${HPU_BACKEND_DIR}/config_store/${HPU_CONFIG}/hpu_regif_core_prc_1in3.toml", "${HPU_BACKEND_DIR}/config_store/${HPU_CONFIG}/hpu_regif_core_prc_3in3.toml"] - polling_us=10 + polling_us=2 [fpga.ffi.V80] id="${V80_PCIE_DEV}" board_sn="${V80_SERIAL_NUMBER}" diff --git a/backends/tfhe-hpu-backend/src/ffi/v80/mod.rs b/backends/tfhe-hpu-backend/src/ffi/v80/mod.rs index 0e493ab06..783b0fe71 100644 --- a/backends/tfhe-hpu-backend/src/ffi/v80/mod.rs +++ b/backends/tfhe-hpu-backend/src/ffi/v80/mod.rs @@ -89,7 +89,8 @@ impl HpuHw { } else { Err(format!( "UUID mismatch loaded {:?} expected {:?}", - current_uuid, pdi.metadata.bitstream.uuid.to_lowercase() + current_uuid, + pdi.metadata.bitstream.uuid.to_lowercase() ) .into()) }