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>
Cc: Sascha Hauer <sha@pengutronix.de>
Subject: RE: [PATCH v3 4/4] wifi: rtw88: Enable USB RX aggregation for 8822c/8822b/8821c
Date: Wed, 7 Aug 2024 00:37:53 +0000	[thread overview]
Message-ID: <8218e3aeb62b463d9562ae02213e29ee@realtek.com> (raw)
In-Reply-To: <3b7b3655-9ec5-4277-b0ff-5535b1fdf281@gmail.com>

Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> @@ -236,13 +237,17 @@ static void rtw_watch_dog_work(struct work_struct *work)
>         else
>                 ps_active = false;
> 
> -       ewma_tp_add(&stats->tx_ewma_tp,
> -                   (u32)(stats->tx_unicast >> RTW_TP_SHIFT));
> -       ewma_tp_add(&stats->rx_ewma_tp,
> -                   (u32)(stats->rx_unicast >> RTW_TP_SHIFT));
> +       tx_unicast_mbps = stats->tx_unicast >> RTW_TP_SHIFT;
> +       rx_unicast_mbps = stats->rx_unicast >> RTW_TP_SHIFT;
> +
> +       ewma_tp_add(&stats->tx_ewma_tp, tx_unicast_mbps);
> +       ewma_tp_add(&stats->rx_ewma_tp, rx_unicast_mbps);
>         stats->tx_throughput = ewma_tp_read(&stats->tx_ewma_tp);
>         stats->rx_throughput = ewma_tp_read(&stats->rx_ewma_tp);
> 
> +       rtw_hci_dynamic_rx_agg(rtwdev,
> +                              tx_unicast_mbps >= 1 || rx_unicast_mbps >= 1);
> +

Not sure if you have tried RTL8822CU with this dynamic_rx_agg? 
I suspect RTL8822CU can't access IO before rtw_leave_lps(), at least RTL8822CE can't.
Let's move rtw_hci_dynamic_rx_agg() right after rtw_phy_dynamic_mechanism() below.

Sorry to forget this point on v2 review. 

>         /* reset tx/rx statictics */
>         stats->tx_unicast = 0;
>         stats->rx_unicast = 0;




  reply	other threads:[~2024-08-07  0:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06 17:39 [PATCH v3 1/4] wifi: rtw88: usb: Init RX burst length according to USB speed Bitterblue Smith
2024-08-06 17:41 ` [PATCH v3 2/4] wifi: rtw88: usb: Update the RX stats after every frame Bitterblue Smith
2024-08-06 17:45 ` [PATCH v3 3/4] wifi: rtw88: usb: Support RX aggregation Bitterblue Smith
2024-08-06 17:47 ` [PATCH v3 4/4] wifi: rtw88: Enable USB RX aggregation for 8822c/8822b/8821c Bitterblue Smith
2024-08-07  0:37   ` Ping-Ke Shih [this message]
2024-08-07 20:17     ` 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=8218e3aeb62b463d9562ae02213e29ee@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rtl8821cerfe2@gmail.com \
    --cc=sha@pengutronix.de \
    /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.