From: keith.busch@intel.com (Keith Busch)
Subject: [PATCH] NVMe: Write CC before calling enable.
Date: Wed, 2 Jul 2014 12:33:08 -0600 (MDT) [thread overview]
Message-ID: <alpine.LRH.2.03.1407021232240.4703@AMR> (raw)
In-Reply-To: <1404229914-6776-1-git-send-email-daniel.mcleran@intel.com>
On Tue, 1 Jul 2014, Dan McLeran wrote:
> Write the controller configuration register to configure queue sizes,
> memory page size, etc. from within nvme_configure_admin_queue before
> calling nvme_enable_ctrl.
I can see that you're doing that, but why? Is this fixing something?
> Signed-off-by: Dan McLeran <daniel.mcleran at intel.com>
> ---
> drivers/block/nvme-core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
> index 28aec2d..58281d2 100644
> --- a/drivers/block/nvme-core.c
> +++ b/drivers/block/nvme-core.c
> @@ -1512,6 +1512,7 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev)
> writel(aqa, &dev->bar->aqa);
> writeq(nvmeq->sq_dma_addr, &dev->bar->asq);
> writeq(nvmeq->cq_dma_addr, &dev->bar->acq);
> + writel(dev->ctrl_config, &dev->bar->cc);
>
> result = nvme_enable_ctrl(dev, cap);
> if (result)
> --
> 1.7.10.4
>
>
> _______________________________________________
> Linux-nvme mailing list
> Linux-nvme at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-nvme
>
next prev parent reply other threads:[~2014-07-02 18:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 15:51 [PATCH] NVMe: Write CC before calling enable Dan McLeran
2014-07-02 18:33 ` Keith Busch [this message]
2014-07-02 20:18 ` Matthew Wilcox
2014-07-02 20:39 ` Dan McLeran
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=alpine.LRH.2.03.1407021232240.4703@AMR \
--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