From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH V3 2/2] nvme: Add support for FW activation without reset
Date: Mon, 19 Jun 2017 13:05:52 -0400 [thread overview]
Message-ID: <20170619170551.GK21765@localhost.localdomain> (raw)
In-Reply-To: <1497078522-5764-1-git-send-email-a.dawn@samsung.com>
On Sat, Jun 10, 2017@12:38:42PM +0530, Arnav Dawn wrote:
> This patch adds support for handling Fw activation without reset
> On completion of FW-activation-starting AER, all queues are
> paused till CSTS.PP is cleared or timed out (exceeds max time for
> fw activtion MTFA). If device fails to clear CSTS.PP within MTFA,
> driver issues reset controller
> @@ -2268,6 +2314,24 @@ void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
> dev_info(ctrl->device, "rescanning\n");
> nvme_queue_scan(ctrl);
> break;
> + case NVME_AER_NOTICE_FW_ACT_STARTING:
> + {
> + if (nvme_ctrl_pp_status(ctrl)) {
> + if (ctrl->mtfa)
> + ctrl->fw_act_timeout = jiffies +
> + msecs_to_jiffies(ctrl->mtfa * 100);
Instead of adding another field to the nvme_ctrl structure, just
calculate the timeout in your nvme_fw_act_work function.
> + else
> + ctrl->fw_act_timeout = jiffies +
> + msecs_to_jiffies(admin_timeout * 1000);
> +
> + schedule_delayed_work(&ctrl->fw_act_work, 0);
If scheduling with 0 delay, why is this delayed work?
next prev parent reply other threads:[~2017-06-19 17:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170610070549epcas1p4fae7273b007148b52d31bf62cbb07b74@epcas1p4.samsung.com>
2017-06-10 7:05 ` [PATCH V3 0/2] Support for FW activation without reset Arnav Dawn
2017-06-10 7:06 ` [PATCH V3 1/2] nvme: Rename and move get_log_page to nvme/scsi Arnav Dawn
2017-06-13 6:43 ` Christoph Hellwig
2017-06-10 7:08 ` [PATCH V3 2/2] nvme: Add support for FW activation without reset Arnav Dawn
2017-06-19 17:05 ` Keith Busch [this message]
2017-06-21 7:36 ` Arnav Dawn
2017-06-21 13:37 ` Keith Busch
2017-06-23 12:11 ` Arnav Dawn
2017-06-23 15:25 ` Keith Busch
2017-06-25 9:19 ` Arnav Dawn
2017-06-29 13:09 ` Arnav Dawn
2017-06-24 7:11 ` Christoph Hellwig
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=20170619170551.GK21765@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 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.