mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firmware: stratix10-svc: Reduce polling interval for command status
Date: Mon, 5 Oct 2026 11:13:24 -0500	[thread overview]
Message-ID: <a10dc0ef-213a-4c46-865a-02d0b720f5a1@kernel.org> (raw)
In-Reply-To: <397bca17aad39df1b48dc971ab09c8955d778252.1790005475.git.adrian.ho.yin.ng@altera.com>



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@altera.com>
> ---
>   drivers/firmware/stratix10-svc.c | 104 ++++++++++++++++++++++---------
>   1 file changed, 76 insertions(+), 28 deletions(-)
>
Applied!

Thanks,
Dinh

  reply	other threads:[~2026-10-05 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 16:00 Adrian Ng Ho Yin
2026-10-05 16:13 ` Dinh Nguyen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-02-10  6:42 adrianhoyin.ng
2025-10-30  3:52 adrianhoyin.ng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a10dc0ef-213a-4c46-865a-02d0b720f5a1@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=adrian.ho.yin.ng@altera.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®