From: Vidya Sagar <vidyas@nvidia.com>
To: <nitirawa@codeaurora.org>
Cc: Keith Busch <kbusch@kernel.org>, <rafael.j.wysocki@intel.com>,
<hch@lst.de>, <bhelgaas@google.com>, <mmaddireddy@nvidia.com>,
<kthota@nvidia.com>, <sagar.tv@gmail.com>,
<linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: Query related to shutting down NVMe during system suspend
Date: Mon, 7 Feb 2022 17:41:30 +0530 [thread overview]
Message-ID: <cc0b6768-5722-2277-6e51-75baf3311dc5@nvidia.com> (raw)
In-Reply-To: <24710253b2e34dfdd81ebe1f46b84652@codeaurora.org>
On 2/7/2022 4:27 PM, nitirawa@codeaurora.org wrote:
> External email: Use caution opening links or attachments
>
>
> On 2022-02-01 22:28, Vidya Sagar wrote:
>> Thanks for the super quick reply and I couldn't agree more.
>>
>> On 2/1/2022 10:00 PM, Keith Busch wrote:
>>> External email: Use caution opening links or attachments
>>>
>>>
>>> On Tue, Feb 01, 2022 at 09:52:28PM +0530, Vidya Sagar wrote:
>>>> Hi Rafael & Christoph,
>>>> My query is regarding the comment and the code that follows after it
>>>> at
>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/nvme/host/pci.c?h=v5.17-rc2#n3243
>>>>
>>>> What I understood from it is that, there is an underlying assumption
>>>> that the power to the devices is not removed during the suspend call.
>>>> In the case of device-tree based platforms like Tegra194, power is
>>>> indeed removed to the devices during suspend-resume process. Hence,
>>>> the
>>>> NVMe devices need to be taken through the shutdown path irrespective
>>>> of
>>>> whether the ASPM states are enabled or not.
>>>> I would like to hear from you the best method to follow to achieve
>>>> this.
>>>
>>> Since platform makers can't converge on how to let a driver know what
>>> it's supposed to do, I suggest we default to the simple shutdown
>>> suspend
>>> all the time. We can add a module parameter to let a user request nvme
>>> power management if they really want it. No matter what we do here,
>>> someone is going to complain, but at least simple shutdown is safe...
>>>
>
> Hi Vidya,
>
> Are you planning to add module parameter based on above discussion. I
> see similar behaviour even with qualcomm platform.
>
> [ 119.994092] nvme nvme0: I/O 9 QID 0 timeout, reset controller
> [ 120.006612] PM: dpm_run_callback(): pci_pm_resume+0x0/0xe4 returns
> -16
> [ 120.013502] nvme 0001:01:00.0: PM: pci_pm_resume+0x0/0xe4 returned
> -16 after 60059958 usecs
> [ 120.022239] nvme 0001:01:00.0: PM: failed to resume async: error -16
Not really.
Keith Busch has already pushed a patch to fix it in a different way and
issue is resolved (on Tegra platforms) with that patch.
https://lore.kernel.org/all/20220201165006.3074615-1-kbusch@kernel.org/
is that patch.
Thanks & Regards,
Vidya Sagar
>
> Regards,
> Nitin
>
>
next prev parent reply other threads:[~2022-02-07 13:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 16:22 Query related to shutting down NVMe during system suspend Vidya Sagar
2022-02-01 16:30 ` Keith Busch
2022-02-01 16:58 ` Vidya Sagar
2022-02-07 10:57 ` nitirawa
2022-02-07 12:11 ` Vidya Sagar [this message]
2022-02-07 15:44 ` nitirawa
2022-02-07 15:47 ` Keith Busch
2022-02-01 17:17 ` Rafael J. Wysocki
2022-02-09 20:26 ` Keith Busch
2022-02-09 21:17 ` nitirawa
2022-02-09 21:47 ` Keith Busch
2022-02-10 4:11 ` Vidya Sagar
2022-02-10 5:40 ` Lukas Wunner
2022-02-10 12:36 ` nitirawa
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=cc0b6768-5722-2277-6e51-75baf3311dc5@nvidia.com \
--to=vidyas@nvidia.com \
--cc=bhelgaas@google.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=kthota@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mmaddireddy@nvidia.com \
--cc=nitirawa@codeaurora.org \
--cc=rafael.j.wysocki@intel.com \
--cc=sagar.tv@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;
as well as URLs for NNTP newsgroup(s).