From: hare@suse.de (Hannes Reinecke)
Subject: [PATCH] nvme: Register for ANA AEN
Date: Thu, 26 Jul 2018 12:55:54 +0200 [thread overview]
Message-ID: <20180726105554.80437-1-hare@suse.de> (raw)
We need to register for ANA AENs as we rely on them for our ANA implementation.
Patch is relative to hch nvme-ana tree.
Signed-off-by: Hannes Reinecke <hare at suse.com>
---
drivers/nvme/host/core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3b96ace1f86d..99910497acdc 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -1042,6 +1042,10 @@ static void nvme_enable_aen(struct nvme_ctrl *ctrl)
u32 supported = ctrl->oaes & NVME_AEN_SUPPORTED, result;
int status;
+#ifdef CONFIG_NVME_MULTIPATH
+ if (ctrl->subsys->cmic & (1 << 3))
+ supported |= NVME_AEN_CFG_ANA_CHANGE;
+#endif
status = nvme_set_features(ctrl, NVME_FEAT_ASYNC_EVENT, supported, NULL,
0, &result);
if (status)
--
2.12.3
next reply other threads:[~2018-07-26 10:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 10:55 Hannes Reinecke [this message]
2018-07-26 10:58 ` [PATCH] nvme: Register for ANA AEN Hannes Reinecke
2018-07-26 11:59 ` Christoph Hellwig
2018-07-26 12:01 ` Christoph Hellwig
2018-07-26 12:02 ` Hannes Reinecke
2018-07-26 12:07 ` Christoph Hellwig
2018-07-26 13:37 ` Hannes Reinecke
2018-07-26 15:12 ` 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=20180726105554.80437-1-hare@suse.de \
--to=hare@suse.de \
/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.