From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH v3] NVMe: Add controller state for scheduling resets
Date: Tue, 31 May 2016 18:26:41 -0400 [thread overview]
Message-ID: <20160531222640.GH24107@localhost.localdomain> (raw)
In-Reply-To: <201605312210.u4VM8qNZ046737@mx0a-001b2d01.pphosted.com>
On Tue, May 31, 2016@07:10:45PM -0300, Guilherme G. Piccoli wrote:
> On 05/31/2016 06:25 PM, Keith Busch wrote:
> >All resets now must be submitted through the new state. This makes it
> >easier to coordinate controller tasks and simplifies the reset logic.
>
> Keith, I'm working on a patch right now that explores the capacity of
> differentiate between resets. What I'm doing is re-working a quirk already
> sent to the list, in which we need to wait some seconds before read the
> NVME_REG_CSTS register in a specific adapter after fw-activate event.
>
> The improved quirk was counting on ctrl->state to differentiate between
> resets; whenever reset_controller was issued from userspace, this state was
> set as NVME_CTRL_LIVE and in any other case, the state was
> NVME_CTRL_RESETTING.
>
> Now, I tested the quirk after adding this patch and, as expected, the state
> is always NVME_CTRL_RESETTING. So, is there any other way to differentiate
> between resets?
Do you need such distinguishing? What if you 'modprobe -r nvme &&
modprobe nvme'? Does that sequence somehow not require the delayed MMIO
that a nvme controller reset requires?
Why not just do delay all the time for your device? In the worst case
scenario, it just adds an unnecessary, but harmless, short delay during
initialization.
next prev parent reply other threads:[~2016-05-31 22:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 21:25 [PATCH v3] NVMe: Add controller state for scheduling resets Keith Busch
2016-05-31 22:10 ` Guilherme G. Piccoli
[not found] ` <201605312210.u4VM8qNZ046737@mx0a-001b2d01.pphosted.com>
2016-05-31 22:26 ` Keith Busch [this message]
2016-05-31 22:24 ` Guilherme G. Piccoli
[not found] ` <201605312224.u4VMNvZS024236@mx0a-001b2d01.pphosted.com>
2016-05-31 23:05 ` Keith Busch
2016-05-31 23:23 ` Guilherme G. Piccoli
2016-06-01 8:03 ` Christoph Hellwig
2016-06-01 13:29 ` Guilherme G. Piccoli
2016-06-01 7:21 ` Johannes Thumshirn
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=20160531222640.GH24107@localhost.localdomain \
--to=keith.busch@intel.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