All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next 1/2] wifi: rtw89: Increase polling delay in rtw89_fw_read_c2h_reg() for USB
Date: Tue, 15 Jul 2025 00:28:19 +0000	[thread overview]
Message-ID: <541d90fbd7114d9b8c5247ee50d68507@realtek.com> (raw)
In-Reply-To: <b24bb8a2-d635-4312-b451-065b8d8e950c@gmail.com>

Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> On 14/07/2025 05:49, Ping-Ke Shih wrote:
> > Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> >> This read_poll_timeout_atomic() with a delay of 1 µs and a timeout of
> >> 1000000 µs can take ~250 seconds in the worst case because sending a
> >> USB control message takes ~250 µs.
> >
> > I was not aware of the change of [1]. The behavior of atomic version becomes
> > different from non-atomic version.
> >
> > For this patch, I feel we can keep delay_us to 1 and treat timeout_us as
> > 'count', which USB devices do smaller retries. The smaller delay_us can
> > reduce total polling time, especially for PCIE devices (see my comments below)
> >
> > Though I don't measure total polling time of patch 2/2, I feel we can apply
> > similar idea.
> >
> 
> Yes, a smaller timeout also works. I tested 4000 for this patch and 3200
> for patch 2. 

Forgot to say, for PCIE devices please keep the timeout as was.

> (4000 * 250 = 1000000 and 3200 * 125 = 400000. I don't know
> why rtw89_read8() in the second patch takes only 125 µs.)



  reply	other threads:[~2025-07-15  0:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-11 12:47 [PATCH rtw-next 1/2] wifi: rtw89: Increase polling delay in rtw89_fw_read_c2h_reg() for USB Bitterblue Smith
2025-07-11 12:50 ` [PATCH rtw-next 2/2] wifi: rtw89: Increase polling delay in rtw89_fwdl_check_path_ready_* " Bitterblue Smith
2025-07-14  2:49 ` [PATCH rtw-next 1/2] wifi: rtw89: Increase polling delay in rtw89_fw_read_c2h_reg() " Ping-Ke Shih
2025-07-14 22:01   ` Bitterblue Smith
2025-07-15  0:28     ` Ping-Ke Shih [this message]
2025-07-15 10:07       ` Bitterblue Smith

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=541d90fbd7114d9b8c5247ee50d68507@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rtl8821cerfe2@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.