From: Pkshih <pkshih@realtek.com>
To: Jian-Hong Pan <jhp@endlessos.org>,
Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: Yan-Hsuan Chuang <tony0620emma@gmail.com>,
Kalle Valo <kvalo@codeaurora.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux@endlessos.org" <linux@endlessos.org>
Subject: RE: [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE
Date: Sat, 11 Dec 2021 06:31:01 +0000 [thread overview]
Message-ID: <617008e3be9c4b5aa37b26f97daf9354@realtek.com> (raw)
In-Reply-To: <CAPpJ_efvmPWsCFsff35GHV8Q52YvQcFr_Hs=q3RtvbfVohY+4Q@mail.gmail.com>
> -----Original Message-----
> From: Jian-Hong Pan <jhp@endlessos.org>
> Sent: Friday, December 10, 2021 5:34 PM
> To: Kai-Heng Feng <kai.heng.feng@canonical.com>
> Cc: Pkshih <pkshih@realtek.com>; Yan-Hsuan Chuang <tony0620emma@gmail.com>; Kalle Valo
> <kvalo@codeaurora.org>; linux-wireless@vger.kernel.org; netdev@vger.kernel.org;
> linux-kernel@vger.kernel.org; linux@endlessos.org
> Subject: Re: [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE
>
> Kai-Heng Feng <kai.heng.feng@canonical.com> 於 2021年12月10日 週五 下午5:24寫道:
> >
> > On Fri, Dec 10, 2021 at 5:00 PM Pkshih <pkshih@realtek.com> wrote:
> > >
> > > +Kai-Heng
> > >
> > > > -----Original Message-----
> > > > From: Jian-Hong Pan <jhp@endlessos.org>
> > > > Sent: Friday, December 10, 2021 4:17 PM
> > > > To: Pkshih <pkshih@realtek.com>; Yan-Hsuan Chuang <tony0620emma@gmail.com>; Kalle Valo
> > > > <kvalo@codeaurora.org>
> > > > Cc: linux-wireless@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
> > > > linux@endlessos.org; Jian-Hong Pan <jhp@endlessos.org>
> > > > Subject: [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE
> > > >
> > > > More and more laptops become frozen, due to the equipped RTL8821CE.
> > > >
> > > > This patch follows the idea mentioned in commits 956c6d4f20c5 ("rtw88:
> > > > add quirks to disable pci capabilities") and 1d4dcaf3db9bd ("rtw88: add
> > > > quirk to disable pci caps on HP Pavilion 14-ce0xxx"), but disables its
> > > > PCI ASPM capability of RTL8821CE directly, instead of checking DMI.
> > > >
> > > > Buglink:https://bugzilla.kernel.org/show_bug.cgi?id=215239
> > > > Fixes: 1d4dcaf3db9bd ("rtw88: add quirk to disable pci caps on HP Pavilion 14-ce0xxx")
> > > > Signed-off-by: Jian-Hong Pan <jhp@endlessos.org>
> > >
> > > We also discuss similar thing in this thread:
> > > https://bugzilla.kernel.org/show_bug.cgi?id=215131
> > >
> > > Since we still want to turn on ASPM to save more power, I would like to
> > > enumerate the blacklist. Does it work to you?
> >
> > Too many platforms are affected, the blacklist method won't scale.
>
> Exactly!
Got it.
>
> > Right now it seems like only Intel platforms are affected, so can I
> > propose a patch to disable ASPM when its upstream port is Intel?
>
> I only have laptops with Intel chip now. So, I am not sure the status
> with AMD platforms.
> If this is true, then "disable ASPM when its upstream port is Intel"
> might be a good idea.
>
Jian-Hong, could you try Kai-Heng's workaround that only turn off ASPM
during NAPI poll function. If it also works to you, I think it is okay
to apply this workaround to all Intel platform with RTL8821CE chipset.
Because this workaround has little (almost no) impact of power consumption.
>
> > > If so, please help to add one quirk entry of your platform.
> > >
> > > Another thing is that "attachment 299735" is another workaround for certain
> > > platform. And, we plan to add quirk to enable this workaround.
> > > Could you try if it works to you?
> >
> > When the hardware is doing DMA, it should initiate leaving ASPM L1,
> > correct? So in theory my workaround should be benign enough for most
> > platforms.
I don't see and know the detail of hardware waveform, but I think your
understanding is correct.
--
Ping-Ke
next prev parent reply other threads:[~2021-12-11 6:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 8:17 [PATCH] rtw88: 8821c: disable the ASPM of RTL8821CE Jian-Hong Pan
2021-12-10 9:00 ` Pkshih
2021-12-10 9:23 ` Kai-Heng Feng
2021-12-10 9:33 ` Jian-Hong Pan
2021-12-11 6:31 ` Pkshih [this message]
2021-12-13 7:30 ` Jian-Hong Pan
2021-12-13 8:59 ` Pkshih
2021-12-13 9:43 ` Kai-Heng Feng
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=617008e3be9c4b5aa37b26f97daf9354@realtek.com \
--to=pkshih@realtek.com \
--cc=jhp@endlessos.org \
--cc=kai.heng.feng@canonical.com \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linux@endlessos.org \
--cc=netdev@vger.kernel.org \
--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 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.