diff options
| author | Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com> | 2026-09-22 00:00:22 +0800 |
|---|---|---|
| committer | Dinh Nguyen <dinguyen@kernel.org> | 2026-10-08 09:41:24 -0500 |
| commit | 580c64140e174c27cfeb3e499e2eb851571e0773 (patch) | |
| tree | 1598c67054154b3711602ebebb5558d05d438819 /tools/lib/python | |
| parent | 71513255896d77331804710cd2a5f30cf150adf7 (diff) | |
firmware: stratix10-svc: Reduce polling interval for command status
The service controller currently polls FPGA configuration status at a
fixed 1 second interval until the 30 second timeout expires. This leads
to slow response time for fast-returning commands and unnecessary delay
before reporting completion.
Introduce two polling modes:
- Fast polling: 20 ms interval for up to 50 iterations (≈1 s total)
- Slow polling: 500 ms interval for up to 29 seconds
A new helper, svc_cmd_poll_status(), abstracts the polling logic and
replaces the existing loop in svc_thread_cmd_config_status(). This allows
the driver to respond quickly to short operations while still handling
long-running configuration commands within the same overall timeout
window.
Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
