Re: [PATCH] firmware: stratix10-svc: Reduce polling interval for command status

From: Dinh Nguyen

Date: Mon Oct 05 2026 - 12:13:39 EST




On 9/21/26 11:00, Adrian Ng Ho Yin wrote:
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@xxxxxxxxxx>
---
drivers/firmware/stratix10-svc.c | 104 ++++++++++++++++++++++---------
1 file changed, 76 insertions(+), 28 deletions(-)

Applied!

Thanks,
Dinh