From: "Macpaul Lin (林智斌)" <Macpaul.Lin@mediatek.com>
To: "Deren Wu (武德仁)" <Deren.Wu@mediatek.com>,
"Johnny-CC Chang (張晋嘉)" <Johnny-CC.Chang@mediatek.com>,
"Mingyen Hsieh (謝明諺)" <Mingyen.Hsieh@mediatek.com>,
"Yenchia Chen (陳彥嘉)" <Yenchia.Chen@mediatek.com>,
"Pablo Sun (孫毓翔)" <pablo.sun@mediatek.com>,
"helgaas@kernel.org" <helgaas@kernel.org>,
"Jieyy Yang (杨洁)" <Jieyy.Yang@mediatek.com>,
"ajayagarwal@google.com" <ajayagarwal@google.com>,
"sashal@kernel.org" <sashal@kernel.org>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"Bear Wang (萩原惟德)" <bear.wang@mediatek.com>,
"david.e.box@linux.intel.com" <david.e.box@linux.intel.com>,
"johan+linaro@kernel.org" <johan+linaro@kernel.org>,
"ilpo.jarvinen@linux.intel.com" <ilpo.jarvinen@linux.intel.com>,
"sdalvi@google.com" <sdalvi@google.com>,
"manivannan.sadhasivam@linaro.org"
<manivannan.sadhasivam@linaro.org>,
"Hanson Lin (林聖峰)" <Hanson.Lin@mediatek.com>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"xueshuai@linux.alibaba.com" <xueshuai@linux.alibaba.com>,
"manugautam@google.com" <manugautam@google.com>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"bhelgaas@google.com" <bhelgaas@google.com>,
"vidyas@nvidia.com" <vidyas@nvidia.com>
Subject: Re: [PATCH v3] PCI/ASPM: Disable L1 before disabling L1ss
Date: Thu, 5 Jun 2025 11:23:02 +0000 [thread overview]
Message-ID: <8a7897f69c6347833c8e37ca5991ab051933de6e.camel@mediatek.com> (raw)
In-Reply-To: <20241022223018.GA893095@bhelgaas>
On Tue, 2024-10-22 at 17:30 -0500, Bjorn Helgaas wrote:
> On Mon, Oct 07, 2024 at 08:59:17AM +0530, Ajay Agarwal wrote:
> > The current sequence in the driver for L1ss update is as follows.
> >
> > Disable L1ss
> > Disable L1
> > Enable L1ss as required
> > Enable L1 if required
> >
> > With this sequence, a bus hang is observed during the L1ss
> > disable sequence when the RC CPU attempts to clear the RC L1ss
> > register after clearing the EP L1ss register. It looks like the
> > RC attempts to enter L1ss again and at the same time, access to
> > RC L1ss register fails because aux clk is still not active.
> >
> > PCIe spec r6.2, section 5.5.4, recommends that setting either
> > or both of the enable bits for ASPM L1 PM Substates must be done
> > while ASPM L1 is disabled. My interpretation here is that
> > clearing L1ss should also be done when L1 is disabled. Thereby,
> > change the sequence as follows.
> >
> > Disable L1
> > Disable L1ss
> > Enable L1ss as required
> > Enable L1 if required
> >
> > Signed-off-by: Ajay Agarwal <ajayagarwal@google.com>
>
> Applied to pci/aspm for v6.13, thank you, Ajay!
Thanks! MediaTek also found this issue will happen on some old kernel,
for example 6.11 or 6.12. would you please pick this patch also to some
stable tree?
LINK:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/pci/pcie/aspm.c?id=7447990137bf06b2aeecad9c6081e01a9f47f2aa
Thanks a lot.
Macpaul Lin
next prev parent reply other threads:[~2025-06-05 11:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 3:29 [PATCH v3] PCI/ASPM: Disable L1 before disabling L1ss Ajay Agarwal
2024-10-18 15:25 ` Ajay Agarwal
2024-10-22 22:30 ` Bjorn Helgaas
2025-06-05 11:23 ` Macpaul Lin (林智斌) [this message]
2025-06-05 11:27 ` Greg KH
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=8a7897f69c6347833c8e37ca5991ab051933de6e.camel@mediatek.com \
--to=macpaul.lin@mediatek.com \
--cc=Deren.Wu@mediatek.com \
--cc=Hanson.Lin@mediatek.com \
--cc=Jieyy.Yang@mediatek.com \
--cc=Johnny-CC.Chang@mediatek.com \
--cc=Mingyen.Hsieh@mediatek.com \
--cc=Yenchia.Chen@mediatek.com \
--cc=ajayagarwal@google.com \
--cc=bear.wang@mediatek.com \
--cc=bhelgaas@google.com \
--cc=david.e.box@linux.intel.com \
--cc=helgaas@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=johan+linaro@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=manugautam@google.com \
--cc=pablo.sun@mediatek.com \
--cc=sashal@kernel.org \
--cc=sdalvi@google.com \
--cc=stable@vger.kernel.org \
--cc=vidyas@nvidia.com \
--cc=xueshuai@linux.alibaba.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;
as well as URLs for NNTP newsgroup(s).