mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pkshih <pkshih@realtek.com>
To: "kai.heng.feng@canonical.com" <kai.heng.feng@canonical.com>,
	"tony0620emma@gmail.com" <tony0620emma@gmail.com>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
	"jian-hong@endlessm.com" <jian-hong@endlessm.com>,
	"kvalo@codeaurora.org" <kvalo@codeaurora.org>,
	Bernie Huang <phhuang@realtek.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"briannorris@chromium.org" <briannorris@chromium.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] rtw88: Disable PCIe ASPM while doing NAPI poll on 8821CE
Date: Wed, 15 Dec 2021 12:23:07 +0000	[thread overview]
Message-ID: <d2ddfaa035315ca91a2a05a8188810ff50db83c8.camel@realtek.com> (raw)
In-Reply-To: <20211215114635.333767-1-kai.heng.feng@canonical.com>

On Wed, 2021-12-15 at 19:46 +0800, Kai-Heng Feng wrote:
> Many Intel based platforms face system random freeze after commit
> 9e2fd29864c5 ("rtw88: add napi support").
> 
> The commit itself shouldn't be the culprit. My guess is that the 8821CE
> only leaves ASPM L1 for a short period when IRQ is raised. Since IRQ is
> masked during NAPI polling, the PCIe link stays at L1 and makes RX DMA
> extremely slow. Eventually the RX ring becomes messed up:
> [ 1133.194697] rtw_8821ce 0000:02:00.0: pci bus timeout, check dma status
> 
> Since the 8821CE hardware may fail to leave ASPM L1, manually do it in
> the driver to resolve the issue.
> 
> Fixes: 9e2fd29864c5 ("rtw88: add napi support")
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215131
> BugLink: https://bugs.launchpad.net/bugs/1927808
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>

Reviewed-and-Tested-by: Ping-Ke Shih <pkshih@realtek.com>

> ---
> v4:
>  - Rebase to the right tree.
> 
> v3:
>  - Move the module parameter to be part of private struct.
>  - Ensure link_usage never goes below zero.
> 
> v2:
>  - Add default value for module parameter.
> 
>  drivers/net/wireless/realtek/rtw88/pci.c | 70 +++++++-----------------
>  drivers/net/wireless/realtek/rtw88/pci.h |  2 +
>  2 files changed, 21 insertions(+), 51 deletions(-)
> 
> 

[...]



  reply	other threads:[~2021-12-15 12:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 11:46 Kai-Heng Feng
2021-12-15 12:23 ` Pkshih [this message]
2021-12-16  2:46   ` Jian-Hong Pan
2021-12-20 18:48 ` Kalle Valo

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=d2ddfaa035315ca91a2a05a8188810ff50db83c8.camel@realtek.com \
    --to=pkshih@realtek.com \
    --cc=briannorris@chromium.org \
    --cc=davem@davemloft.net \
    --cc=jian-hong@endlessm.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=kuba@kernel.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=phhuang@realtek.com \
    --cc=tony0620emma@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 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®