From: "Wu. JackBB (GSM)" <JackBB_Wu@compal.com>
To: "netdev-bot+sashiko@kernel.org" <netdev-bot+sashiko@kernel.org>
Cc: "loic.poulain@oss.qualcomm.com" <loic.poulain@oss.qualcomm.com>,
"ryazanov.s.a@gmail.com" <ryazanov.s.a@gmail.com>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"wen-zhi.huang@mediatek.com" <wen-zhi.huang@mediatek.com>,
"shi-wei.yeh@mediatek.com" <shi-wei.yeh@mediatek.com>,
"Minano.tseng@mediatek.com" <Minano.tseng@mediatek.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"angelogioacchino.delregno@collabora.com"
<angelogioacchino.delregno@collabora.com>,
"horms@kernel.org" <horms@kernel.org>,
"corbet@lwn.net" <corbet@lwn.net>,
"skhan@linuxfoundation.org" <skhan@linuxfoundation.org>,
"Yu. Robert (GSM)" <robert_yu@compal.com>,
"Chang. Jeff (GSM)" <Jeff_Chang@compal.com>,
"edumazet@kernel.org" <edumazet@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH net-next v14 1/6] net: wwan: t9xx: Add PCIe core
Date: Fri, 4 Dec 2026 06:15:27 +0000 [thread overview]
Message-ID: <8438a51cfc5746c289c89458432b8017@compal.com> (raw)
In-Reply-To: <179629119600.3146.12340573869676520153@kernel.org>
Thanks for the review.
> Is 1 s enough after a successful MRST._RST? In that case polls is
> MTK_PLDR_READY_POLLS, which gives 50 x 20 ms. On timeout the code only
> warns and still calls pci_restore_state().
>
> drivers/pci/pci.c notes that devices may extend the post-reset period:
>
> /*
> * Devices may extend the 1 sec period through Request Retry Status
> * completions (PCIe r6.0 sec 2.3.1). The spec does not provide an upper
> * limit, but 60 sec ought to be enough for any device to become
> * responsive.
> */
> #define PCIE_RESET_READY_POLL_MS 60000 /* msec */
>
> The polling also starts as soon as the ACPI method returns. The core waits
> 100 ms after a reset before it accesses the device; this code does not.
>
> The comment above the loop says a config write the device does not take
> is lost. So if the modem holds off readiness past 1 s with RRS, the
> restore writes are lost. The BARs and the Command register then stay at
> their reset values, while the PCI core believes they were restored. A
> later bind on the same pci_dev cannot reach the device's MMIO.
>
> Could the wait follow the core's timing? Alternatively, could the restore
> be skipped when the device never became ready?
True.
Will fix in v15: when the reset is not seen within the current 1
s, remove() keeps polling, up to the 60 s the PCI core allows, for as
long as PCI_COMMAND still reads as an error and the upstream port
reports the link active, which is when the device can still be holding
off with RRS. If the reset is still not seen, remove() warns and skips
pci_restore_state() instead of writing to a device that has not
answered. No fixed 100 ms delay is added: before the reset is seen this
code only reads config space, and the PCI core itself restores right
after an ACPI _RST returns.
Thanks,
Jack
pw-bot: cr
next prev parent reply other threads:[~2026-12-04 6:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 8:58 [PATCH net-next v14 0/6] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Jack Wu via B4 Relay
2026-12-02 8:59 ` [PATCH net-next v14 1/6] net: wwan: t9xx: Add PCIe core Jack Wu via B4 Relay
2026-12-03 9:46 ` netdev-bot+sashiko
2026-12-04 6:15 ` Wu. JackBB (GSM) [this message]
2026-12-02 8:59 ` [PATCH net-next v14 2/6] net: wwan: t9xx: Add control plane transaction layer framework Jack Wu via B4 Relay
2026-12-02 8:59 ` [PATCH net-next v14 3/6] net: wwan: t9xx: Add control DMA interface Jack Wu via B4 Relay
2026-12-03 9:46 ` netdev-bot+sashiko
2026-12-02 8:59 ` [PATCH net-next v14 4/6] net: wwan: t9xx: Add control port Jack Wu via B4 Relay
2026-12-03 9:46 ` netdev-bot+sashiko
2026-12-02 8:59 ` [PATCH net-next v14 5/6] net: wwan: t9xx: Add FSM thread Jack Wu via B4 Relay
2026-12-03 9:46 ` netdev-bot+sashiko
2026-12-04 6:14 ` Wu. JackBB (GSM)
2026-12-02 8:59 ` [PATCH net-next v14 6/6] net: wwan: t9xx: Add AT & MBIM WWAN ports Jack Wu via B4 Relay
2026-12-03 9:46 ` netdev-bot+sashiko
2026-12-04 6:15 ` Wu. JackBB (GSM)
2026-12-04 6:21 ` [PATCH net-next v14 0/6] net: wwan: t9xx: Add MediaTek T9XX WWAN driver Wu. JackBB (GSM)
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=8438a51cfc5746c289c89458432b8017@compal.com \
--to=jackbb_wu@compal.com \
--cc=Jeff_Chang@compal.com \
--cc=Minano.tseng@mediatek.com \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=matthias.bgg@gmail.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robert_yu@compal.com \
--cc=ryazanov.s.a@gmail.com \
--cc=shi-wei.yeh@mediatek.com \
--cc=skhan@linuxfoundation.org \
--cc=wen-zhi.huang@mediatek.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